Subscriptions
You can create subscription plans with customizable billing frequencies (daily, weekly, monthly, etc.) and amounts using just a single endpoint.
Last updated
You can create subscription plans with customizable billing frequencies (daily, weekly, monthly, etc.) and amounts using just a single endpoint.
Last updated
Content-type
Set value to application/json
Post a request to the URL below, where the base URL is determined by the environment you are in.
POST: {{baseUrl}}/subscription/api
Sample code:
Sample response:
POST: {{baseUrl}}/subscription/api/:planId
planId
Yes
Sample Code:
Sample Response:
GET: {{baseUrl}}/subscribers
subscriptionPlanId
Yes
the subscription plan id
status
No
should be activated, 'completed', or 'cancelled',
Sample Response:
PATCH : {{baseUrl}}/subscribers/:subscriberId/update-status
subscriberId
Yes
the subscriber's id
Sample Payload
Sample Response
How can we identify the subscription plan the user paid for - from the webhook response? ANS: The payment code returned in the webhook response would be the same as the code on the subscription link.
If a subscription charge attempt fails, will it be retried in the next billing cycle? ANS: Yes, until the number of expected payment cycles is completed— we retry in the next billing cycle.
With this endpoint, you can cancel a subscriber from a subscription plan. It allows you to remove a subscriber's access to a previously active subscription plan. You need to retrieve the subscriber's Id using the first.