Payments
All Payments
GET
https://yoursite.mavenseed.com/api/v1/payments
Retrieve all payments
Path Parameters
Name | Type | Description |
---|---|---|
page | integer | Results are paginated. |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Show Payment
GET
https://yoursite.mavenseed.com/api/v1/payments/:id
Retrieve a single payment
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Create Payment
POST
https://yoursite.mavenseed.com/api/v1/payments
Create a payment.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth Token |
Request Body
Name | Type | Description |
---|---|---|
customer_id | integer | ID of customer to attach the payment to |
currency | string | Defaults to USD |
transaction_id | string | Typically the Stripe charge id |
payable_type | string | Subscription, Order |
payable_id | integer | ID of the Subscription or Order |
sub_total_cents | integer | Sub total in cents |
tax_cents | integer | Tax amount in cents |
total_cents | integer | Total amount in cents |
paid | boolean | Whether or not the payment is paid |
attempts | integer | Attempts made to pay this payment |
payment_method | integer | 0 - stripe, 1 - manual |
tax_type | string | 0 - no_tax, 1 - sales, 2 - vat |
tax_rate | number | tax rate if tax_type is set as vat |
Update Payment
PATCH
https://yoursite.mavenseed.com/api/v1/payments/:id
Update a single payment. All of the above properties in create payment are valid.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth token |
Delete a Payment
DELETE
https://yoursite.mavenseed.com/api/v1/payments/:id
Delete a payment.
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Auth toke |
Last updated