getSubscriptionsId
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.
In: header
Path Parameters
The ID of this subscription.
Query Parameters
Use the embed query parameter to include full object(s) of related resource(s) directly within the API response. This allows retrieval of associated resources in a single request, reducing the need for multiple round-trips. Format: GET https://{server}.payrix.com/{endpoint}?embed={relatedObject}
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.
Response Body
application/json
application/json
curl -X GET "https://example.com/subscriptions/t1_sbn_680064d2db9dbdc8d3e9a0z"{ "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": [] }}postSubscriptionTokens POST
Create a Subscription Tokens resource. A Subscription Tokens resource represents an association between a Subscription and a means of payment (Token) for that Subscription.
deleteSubscriptionsId DELETE
Delete a Subscription. A Subscription is a scheduled invocation of a particular Plan over a certain period of time, specifying both starting and ending dates, and the customer is charged according to the schedule in the associated Plan during the interval between these dates.
