On This Page
REST API
Retrieving a Subscription
You can retrieve the details of a specific subscription. The subscription details returned in
the response include:
- Subscription ID
- Subscription code
- Subscription status
- Subscription name
- Customer ID
- Plan ID
- Plan code
- Plan name
- Plan description
- Plan status
- Billing period unit
- Billing period length
- Billing cycles total
- Billing cycles current
- Currency
- Billing amount
- Set-up fee
Follow these steps to retrieve a subscription:
- In the endpoint path, include the subscription ID that you received from your list of subscriptions.
- Send the request to the recurring billing endpoint:
ADDITIONAL INFORMATION
GET https://<url_prefix>/rbs/v1/subscriptions{id}ADDITIONAL INFORMATION
Use one of these URL prefixes:- Test:apitest.cybersource.com
- Production:api.cybersource.com
- Production in India:api.in.cybersource.com
- Check the response message to make sure that the request was successful. A 200-level HTTP response code indicates success.For information about response codes, see Transaction Response Codes.