On This Page
Use the REST API to Validate Migrated Subscriptions
IMPORTANT
To validate the migration, compare the new subscription details to the export file you created in
Task 3: Export Current Subscriptions to a File.
Cybersource
- Follow these steps to use theREST API to validate the migrated subscriptions:Cybersource
- Follow these steps if you want to validate a specific subscription:
- To obtain the details of a specific subscription, see Retrieving a Subscription in theRecurring Billing Developer Guide. The subscription details are returned in the response message.
- Compare the subscription details to the corresponding subscription details that you exported to a file in Task 3: Export Current Subscriptions to a File. The subscription details are returned in the response message.
- Follow these steps if you want to validate a list of all subscription details:
- To obtain a list of all subscription details, see Retrieving a List of Subscriptions in theRecurring Billing Developer Guide. The list of subscription details is returned in the response message.
- Compare thesubscription details in the list to the subscription details in the export file from Task 3: Export Current Subscriptions to a File.Cybersource
- (Optional)Complete these steps if you want tocancela pending, active, suspended, or delinquent subscription:
- In the subscription details, find the subscription ID.
- Send the message to one of these endpoints, replacing the{id}portion of the URL with the value of the subscription ID:
- Production:POSThttps://api.cybersource.com/rbs/v1/subscriptions/{id}/cancel
- Test:POSThttps://apitest.cybersource.com/rbs/v1/subscriptions/{id}/cancel
- Check the response message to verify that the request was successful. A 200-level HTTP response code indicates success.
- (Recommended in your test environment) Send test transactions to validate proper setup.