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
id
string
ID of the plan
Query Parameters
triggeredBy
string
filter by the user who triggered the billing
from
number
filter by timestamp
(default 0)
to
number
filter by timestamp
(default current timestamp)
sort
string
asc
or desc
based on timestamp
(default desc
)
Headers
Authorization
string
Bearer <api-key>
Get cancellation for a subscription
GET
https://api.8pay.network/v1/:chain/variable-recurring/subscriptions/:subscriptionId/cancellation
Path Parameters
id
string
ID of the subscription
Headers
Authorization
string
Bearer <api-key>
Last updated