postSubscriptions
Create a Subscription. A Subscription is a scheduled invocation of a particular Plan over a certain period of time. A Subscription specifies both starting and ending dates and the customer is charged according to the schedule in the associated Plan during the interval between these dates.
In: header
Header Parameters
A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.
A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.
Request Body
application/json
Create Subscription Request
Create Subscription Request
The identifier of the Plan that this Subscription is associated with. The Plan determines the frequency and amount of each payment.
For a plan that is attached to a billing, this is the paying entity to match to the generated statements of that billing for which the recurring payments will be made.
The identification of the first transaction processed through this subscription. This is used internally to process subsequent transactions.
The date on which the Subscription should start. The date is specified as an eight digit string in YYYYMMDD format, for example, '20160120' for January 20, 2016. The value of this field must represent a date in the future.
The date on which the Subscription should finish. The date is specified as an eight digit string in YYYYMMDD format, for example, '20160120' for January 20, 2016. The value of this field must represent a date in the future.
The amount of the total sum of this Subscription that is made up of tax. This field is specified as an integer in cents.
The descriptor used in this Subscription. This field is stored as a text string and must be between 1 and 50 characters long. If a value is not set, an attempt is made to set a default value from the merchant information.
The description of the Txn that will be created through this Subscription.
The order of the Txn that will be created through this Subscription.
The origin of the Txn that will be created through this Subscription.
2- Customer will be subscribing through eCommerce.3- Customer will be subscribing by Mail Order/Telephone.4- Originated with Apple Pay.5- Originated as a Successful 3D Secure transaction.6- Originated as an Attempted 3D Secure transaction.8- Originated in a Payframe.
Value in
- 2
- 3
- 4
- 5
- 6
- 8
Authentication token for 3D Secure transactions.
Authentication reference ID for 3D Secure transactions.
The current count of consecutive payment failures for this subscription.
The maximum consecutive amount of payment failures to allow for this subscription before inactivating it.
Whether this resource is marked as inactive.
0- Active1- Inactive
Value in
- 0
- 1
Whether this resource is marked as frozen.
0- Not Frozen1- Frozen
Value in
- 0
- 1
Response Body
application/json
application/json
curl -X POST "https://example.com/subscriptions" \ -H "Content-Type: application/json" \ -d '{ "plan": "t1_pln_680064c9e9920768c5f7156", "statementEntity": "paying entity", "firstTxn": "t1_txn_680064d333e8a4e6cc85903", "start": 20250416, "finish": 20250416, "tax": 0, "descriptor": "Subscription Descriptor", "txnDescription": "subscription1", "order": "t183l8nsmsiq", "origin": 2, "authentication": "Authentication token", "authenticationId": "Authentication reference ID", "failures": 0, "maxFailures": 0, "inactive": 0, "frozen": 0 }'{ "response": { "data": [ { "id": "t1_sbn_680064d2db9dbdc8d3e9a0z", "created": "2025-04-16 22:17:54.9157", "modified": "2025-04-16 22:17:57.0415", "creator": "t1_log_653ae6ec24a9357ace75ebf", "modifier": "t1_log_65e23f228adad41b7a2a0a9", "plan": "t1_pln_680064c9e9920768c5f7156", "start": 20250416, "finish": 20250416, "tax": 0, "descriptor": "", "inactive": 0, "frozen": 0, "failures": 0, "maxFailures": 0, "origin": 2, "firstTxn": "t1_txn_680064d333e8a4e6cc85903", "txnDescription": "subscription1", "order": "t183l8nsmsiq", "authentication": "", "authenticationId": "", "statementEntity": "" } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}getSubscriptions GET
Query a Subscription. A Subscription is a scheduled invocation of a particular Plan over a certain period of time. A Subscription specifies both starting and ending dates and the customer is charged according to the schedule in the associated Plan during the interval between these dates.
getTaxFormRequestsId GET
Query a taxFormRequests.
