Retrieve subscription
Changed onUse this method to retrieve information about a subscription.
To retrieve a subscription, you need its subscriptionId. You sent the subscriptionId in the request of the Create subscription method.
Note: If you don't have the subscriptionId, use our List subscriptions method to search for the subscription.
Our gateway returns information about the following for the subscription:
- Payment plan the subscription is linked to.
- Secure token that represents cardholder’s payment details.
- Current state of the subscription, including its status, next due date, and invoices.
- Fees for setup and the cost of the recurring order.
- Subscription length, end date, and frequency.
We also return the paymentPlanId and the secureTokenId, which you can use to perform follow-on actions.
Request
- Base URLhttps://api.payroc.com/v1
- URLhttps://api.payroc.com/v1/processing-terminals/{processingTerminalId}/subscriptions/{subscriptionId}
- AuthHTTP bearer
Path parameters
Unique identifier that we assigned to the terminal.
Unique identifier that the merchant assigned to the subscription.
Response
Successful request. Returns the requested subscription.
Changes
- breaking
the
//response property's maxLength was increased from100to255for the response status
- breaking
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
Bearerwas added to the API
- warning