post
https://example.com/tnc/checkout/apis/v1/subscriptions
This API is used to create a subscription that defines a recurring billing agreement between the customer and the merchant before any recurring charges are initiated.
Transaction Idempotency
If appUtr and plan.name is present in the API request, then the Subscription transaction will be made idempotent. If another Subscription transaction is requested with the duplicate appUtr and plan.name, then the API will reject the subscription transaction.
HTTP Status and Response Status Matrix
| HTTP Status | Response Status | Response Message |
|---|---|---|
| 200 | SUCCESS | Subscription created successfully. |
| 400 | VALIDATION_ERROR | Request body validation failed. |
| 400 | REJECTED | App UTR provided is already used. |
| 400 | ERROR_FROM_PG | This will be populated by PG. |
| 500 | INTERNAL_PROCESSING_ERROR | Gateway account not found. |
| 500 | ERROR_CONNECTING_PG | Gateway connectivity unavailable. |
| 503 | ERROR_CONNECTING_PG | Gateway connectivity unavailable. |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…