The Retrieve Specific Subscription request enables you to retrieve details about one existing subscription.
Request Content
Enter the subscriptionId
into the web service URL, in the format:
services/2/recurring/subscriptions/{subscriptionId}
For example:
services/2/recurring/subscriptions/2111111
networkTransactionInfo
object optional. You can only include the inner element 'originalNetworkTransactionId' (refer to networkTransactionInfo)
Response Details
If successful, the response HTTP status code is 200 OK.
The response contains the retrieved subscription object.
Examples
Request Examples
curl -v -X GET https://sandbox.bluesnap.com/services/2/recurring/subscriptions/8491535 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
Response Examples
{
"nextChargeDate": "2016-08-15",
"quantity": 1,
"trialPeriodDays": 14,
"paymentSource": {"creditCardInfo": {
"billingContactInfo": {
"firstName": "John",
"lastName": "Doe"
},
"creditCard": {
"expirationYear": 2023,
"cardLastFourDigits": 1111,
"cardSubType": "CREDIT",
"cardCategory": "CLASSIC",
"cardType": "VISA",
"expirationMonth": "07"
}
}},
"softDescriptor": "Example descriptor",
"recurringChargeAmount": 29.99,
"chargeFrequency": "MONTHLY",
"vaultedShopperId": 21188039,
"payerInfo": {
"firstName": "John",
"lastName": "Doe"
},
"initialChargeAmount": 100,
"autoRenew": true,
"planId": 2283845,
"currency": "USD",
"subscriptionId": 8491535,
"status": "ACTIVE"
}
Example Descriptions
Above is an example request. Note that no content is required in the request body. You simply need to include the subscription ID in the request URL. The subscription ID is the unique ID sent in the subscriptionId
property in the Create Subscription response.
Back to Top
API Explorer
To test out a call, enter an existing subscription ID (e.g 8491535) in the subscriptionId
field. This will automatically insert the ID into the request URL. Leave the Body Content field empty.