Billing
GET /v1/billing/products
Description
Get all available products.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
GET /v1/billing/payment
Description
Get added payment methods.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
PUT /v1/billing/payment/{id}
Description
Update a payment method's expiration and billing zipcode.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Path Parameters
Param | Type | Required | Description |
| string | yes | ID of the payment method you want to update |
Body Parameters
Param | Type | Required | Description |
| string | yes | ID of the payment method (card) you are updating |
| no | Updated card expiration month | |
| no | Updated card expiration year | |
| object | no | Object containing one or more updated fields |
| string | no | Name on the card |
| string | no | Billing city |
| string | no | Billing country |
| string | no | Billing address line 1 |
| string | no | Billing address line 2 |
| int | no | Billing zip code |
| string | no | Billing state |
Example Response
POST /v1/billing/payment
Description
Attach a payment method to a customer ID.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Body Parameters
Example Response
DELETE /v1/billing/payment/{id}
Description
Delete an existing payment method.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Path Parameters
Param | Type | Required | Description |
| uuid | yes | ID of the source you want to delete |
Example Response
PUT /v1/billing/subscription
Description
Update subscription.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Body Parameters
Param | Type | Required | Description |
| uuid | yes | ID of the source you want to fetch |
Example Response
GET /v1/billing/subscription
Description
Get current subscription.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
GET /v1/billing/invoice/upcoming
Description
Get upcoming invoice.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
GET /v1/billing/invoice/history
Description
Get invoice history.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Example Response
POST /v1/billing/addon
Description
Update used addons.
Header Parameters
Param | Type | Required | Description |
| string | yes | Bearer token containing API key |
Body Parameters
Param | Type | Required | Description |
| array | yes | array containing one or more addon objects |
| string | yes | ID of the addon you want to update |
| int | yes | Update subscription to contain this many addons |
Example Response
Last updated