On This Page

{#jumplink-list}  
[Markdown](/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-subscriptions/recur-bill-getting-dets-fo-subscriptions.md)  
Filter  
FILTER BY TAG

Retrieving the Details of a Follow-on Subscription Based on an Existing Transaction {#recur_bill_getting_dets_fo_subscriptions}
===============================================================================================================================

This operation enables you to verify the payment instrument, billing, and shipping address information from an existing transaction before creating a new subscription.  
Follow these steps to retrievethe details of a follow-on subscription based on an existing transaction:

1. In the endpoint path, include the request ID of an existing transaction.
2. Send the request to one of these endpoints:  
   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}`
3. Verify the response messages to make sure that the request was successful. A 200-level HTTP response code indicates success. See the [Transaction Response Codes](https://developer.cybersource.com/api/reference/response-codes.md "").
   {#recur_bill_getting_dets_fo_subscriptions_steps_tnh_ttd_t2c}

REST Examples: Retrieving Details for Follow-on Subscription Creation based on Existing Transaction {#recur_bill_get_dets_fo_subscriptions_examples}
====================================================================================================================================================

Successful Response

```
{
  "_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"
    }
  }
}
```

{#recur_bill_get_dets_fo_subscriptions_examples_codeblock_gft_ntd_t2c}  
Error Response

```
{
  "status": "NOT_FOUND",
  "reason": "INVALID_DATA"
}
```

RELATED TO THIS PAGE

