Retrieving Details for Follow on Subscription Creation Based on Existing
Transaction
You can retrieve details from the specified transaction request ID that you can
include to create a new subscription. You will be able to verify the payment
instrument, billing, and shipping address information from an existing transaction
before creating a new subscription.
Follow these steps to retrieve details on a subscription:
- In the endpoint path, include the request ID of an existing transaction.
- Send the request message to one of these endpoints:
ADDITIONAL INFORMATION
Production:POST https://api.cybersource.com/rbs/v1/subscriptions/follow-ons/{requestId}Test:POST https://apitest.cybersource.test.com/rbs/v1/subscriptions/follow-ons/{requestId} - Verify the response messages to make sure that the request was successful. A 200-level HTTP response code indicates success.See theTransaction Response Codes.
REST Examples: Retrieving Details for Follow on Subscription Creation based on Existing
Transaction
Successful Response
12345678910111213141516171819202122232425262728293031323334353637383940414243{"_links": { "self": { "href": "rbs/v1/subscriptions/follow-ons/7216512479796378604957", "method": "GET" }, "create": { "href": "rbs/v1/subscriptions/follow-ons/7216512479796378604957", "method": "POST" } }, "buyerInformation": { "merchantCustomerId": "1234", "email": "" }, "paymentInstrument": { "card": { "number": "411111XXXXXX1111", "expirationMonth": "11", "expirationYear": "2037", "type": "001" }, "billTo": { "firstName": "John", "lastName": "Doe", "address1": "123 Street", "locality": "Bellevue", "administrativeArea": "AL", "postalCode": "12345", "email": "test@visa.com", "country": "US" } }, "shippingAddress": { "shipTo": { "firstName": "John", "lastName": "Doe", "address1": "123 Street", "locality": "Bellevue", "administrativeArea": "AL", "postalCode": "12345", "country": "US" } }}
Error Response to a Failed Request
12{"status": "NOT_FOUND", "reason": "INVALID_DATA"}