postSubscriptionTokens
Create a Subscription Tokens resource. A Subscription Tokens resource represents an association between a Subscription and a means of payment (Token) for that Subscription.
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 Token Request
Create Subscription Token Request
The identifier of the Subscription resource that this Subscription Token is associated with. This is the Subscription that the Token identified in the 'token' field of this resource is responsible for paying for.
The identifier of the Token resource that this Subscription Token is associated with. This resource identifies the means of payment for the Subscription identified in the 'subscription' field of this resource.
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/subscriptionTokens" \ -H "Content-Type: application/json" \ -d '{ "subscription": "p1_sbn_5a1ef5e556583e67e5d55a2", "token": "e41272ec5464d9ec81cc85c854837472" }'{ "response": { "data": [ { "id": "t1_stn_680064d2e16ab367d7dffz0", "created": "2025-04-16 22:17:54.9444", "modified": "2025-04-16 22:17:54.9444", "creator": "t1_log_653ae6ec24a9357ace75ebf", "modifier": "t1_log_653ae6ec24a9357ace75ebf", "subscription": "t1_sbn_680064d2db9dbdc8d3e9a2b", "token": "95d4205826ef9e5e45891182220136ee", "inactive": 0, "frozen": 0 } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}getSubscriptionTokens GET
Query a Subscription Tokens resource. A Subscription Tokens resource represents an association between a Subscription and a means of payment (Token) for that Subscription.
getSubscriptionsId GET
Query a Subscription that specifies both starting and ending dates and charges the customer according to the schedule in the associated Plan during the interval between these dates.
