Cancellations
Customers cannot directly cancel a subscription but they must request the cancellation to the vendor. When the cancellation request is received by the vendor, he will perform one last billing to account for the remaining unpaid period and the subscription will be immediately cancelled. A subscription can be terminated (forcefully cancelled) anytime by plan’s admin or operational accounts, using the web app or the 8Pay Javascript library.
Get cancellations of a plan
GET
https://api.8pay.network/v1/:chain/variable-recurring/plans/:planId/cancellations
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the plan |
chain | string |
Query Parameters
Name | Type | Description |
---|---|---|
triggeredBy | string | filter by the user who triggered the billing |
from | number | filter by |
to | number | filter by |
sort | string |
|
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <api-key> |
Get cancellation for a subscription
GET
https://api.8pay.network/v1/:chain/variable-recurring/subscriptions/:subscriptionId/cancellation
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the subscription |
chain | string |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer <api-key> |
Last updated