Retrieve subscriptions
Last updated
Last updated
Get all subscriptions by shopper id or external reference Id
/v1/subscriptions
Shopper Id or External Reference Id
Basic authorization (dispatch Key and Secret) or Full access token
curl -L \
--url 'https://api.digitalriver.com/v1/subscriptions?Shopper+Id=text' \
--header 'token: text'
{
"subscriptions": [
{
"id": "text",
"billingAgreementId": "text",
"externalReferenceId": "text",
"creationDate": "2025-02-21T18:22:38.034Z",
"activationDate": "2025-02-21T18:22:38.034Z",
"nextRenewalDate": "2025-02-21T18:22:38.034Z",
"nextBillingDate": "2025-02-21T18:22:38.034Z",
"expirationDate": "2025-02-21T18:22:38.034Z",
"graceDate": "2025-02-21T18:22:38.034Z",
"cancellationDate": "2025-02-21T18:22:38.034Z",
"currentQuantity": 1,
"renewalQuantity": 1,
"autoRenewal": true,
"locale": "text",
"state": {
"Subscribed": "text",
"PendingActivation": "text",
"Cancelled": "text",
"FreeTrial": "text",
"PendingRenewal": "text"
},
"duration": 1,
"frequency": 1,
"currentBillingCycleNumber": 1,
"totalNumberOfBillingCycle": 1,
"siteId": "text",
"shopper": {
"id": "text",
"externalReferenceId": "text"
},
"renewalPrice": {
"unitPrice": 1,
"locked": true,
"currency": "text"
},
"term": {
"termUnit": "text",
"termLength": 1
},
"product": {
"id": "text",
"externalReferenceId": "text",
"displayName": "text",
"sku": "text"
},
"shipToAddress": {
"id": "text",
"firstName": "text",
"lastName": "text",
"companyName": "text",
"line1": "text",
"line2": "text",
"line3": "text",
"city": "text",
"postalCode": "text",
"countrySubdivision": "text",
"country": "text",
"countryName": "text",
"phoneNumber": "text",
"emailAddress": "text",
"countyName": "text"
},
"paymentOption": {
"nickName": "text",
"id": "text",
"isDefault": "text",
"type": "text",
"sourceId": "text",
"creditCard": {
"expirationMonth": "text",
"expirationYear": "text",
"displayableNumber": "text",
"type": "text",
"displayName": "text",
"brand": "text",
"lastFourDigits": "text"
},
"sourceClientSecret": "text",
"address": {
"id": "text",
"firstName": "text",
"lastName": "text",
"companyName": "text",
"line1": "text",
"line2": "text",
"line3": "text",
"city": "text",
"postalCode": "text",
"countrySubdivision": "text",
"country": "text",
"countryName": "text",
"phoneNumber": "text",
"emailAddress": "text",
"countyName": "text"
}
},
"addOns": [
{
"product": {
"id": "text",
"externalReferenceId": "text",
"displayName": "text",
"sku": "text"
},
"quantity": 1,
"proratedUnitPrice": 1,
"renewalPrice": {
"unitPrice": 1,
"locked": true,
"currency": "text"
}
}
]
}
]
}
OK
Get subscription details by subscription Id
/v1/subscriptions/{subId}
Subscription Id
Basic authorization (dispatch Key and Secret) or Full access token
curl -L \
--url 'https://api.digitalriver.com/v1/subscriptions/{subId}' \
--header 'token: text'
{
"id": "text",
"billingAgreementId": "text",
"externalReferenceId": "text",
"creationDate": "2025-02-21T18:22:38.034Z",
"activationDate": "2025-02-21T18:22:38.034Z",
"nextRenewalDate": "2025-02-21T18:22:38.034Z",
"nextBillingDate": "2025-02-21T18:22:38.034Z",
"expirationDate": "2025-02-21T18:22:38.034Z",
"graceDate": "2025-02-21T18:22:38.034Z",
"cancellationDate": "2025-02-21T18:22:38.034Z",
"currentQuantity": 1,
"renewalQuantity": 1,
"autoRenewal": true,
"locale": "text",
"state": {
"Subscribed": "text",
"PendingActivation": "text",
"Cancelled": "text",
"FreeTrial": "text",
"PendingRenewal": "text"
},
"duration": 1,
"frequency": 1,
"currentBillingCycleNumber": 1,
"totalNumberOfBillingCycle": 1,
"siteId": "text",
"shopper": {
"id": "text",
"externalReferenceId": "text"
},
"renewalPrice": {
"unitPrice": 1,
"locked": true,
"currency": "text"
},
"term": {
"termUnit": "text",
"termLength": 1
},
"product": {
"id": "text",
"externalReferenceId": "text",
"displayName": "text",
"sku": "text"
},
"shipToAddress": {
"id": "text",
"firstName": "text",
"lastName": "text",
"companyName": "text",
"line1": "text",
"line2": "text",
"line3": "text",
"city": "text",
"postalCode": "text",
"countrySubdivision": "text",
"country": "text",
"countryName": "text",
"phoneNumber": "text",
"emailAddress": "text",
"countyName": "text"
},
"paymentOption": {
"nickName": "text",
"id": "text",
"isDefault": "text",
"type": "text",
"sourceId": "text",
"creditCard": {
"expirationMonth": "text",
"expirationYear": "text",
"displayableNumber": "text",
"type": "text",
"displayName": "text",
"brand": "text",
"lastFourDigits": "text"
},
"sourceClientSecret": "text",
"address": {
"id": "text",
"firstName": "text",
"lastName": "text",
"companyName": "text",
"line1": "text",
"line2": "text",
"line3": "text",
"city": "text",
"postalCode": "text",
"countrySubdivision": "text",
"country": "text",
"countryName": "text",
"phoneNumber": "text",
"emailAddress": "text",
"countyName": "text"
}
},
"addOns": [
{
"product": {
"id": "text",
"externalReferenceId": "text",
"displayName": "text",
"sku": "text"
},
"quantity": 1,
"proratedUnitPrice": 1,
"renewalPrice": {
"unitPrice": 1,
"locked": true,
"currency": "text"
}
}
]
}
OK