Using the Expired Card Optimizer
Learn how to use the Expired Card Optimizer (ECO) for a third-party subscription engine renewal orders.
Renewing subscriptions that do not use the Digital River subscription engine
curl --location --request POST 'https://api.digitalriver.com/v1/shoppers/me/carts/active' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {Your_Authorization}' \
--data-raw '{
"cart": {
"ipAddress": "{{BrowserIP}}",
"lineItems": {
"lineItem": [
{
"quantity": 2,
"product": {
"id": "{{productId}}"
}
"billingOptimization": {
"subscriptionId": "{{SubscriptionId}}",
"segmentId": "{{SubscriptionId}}"+"{{segmentCount}}",
"renewalAttemptNumber": 3
}
"subscriptionInfo": {
"autoRenewal": true,
"terms": "I agree to have the client charge all my future bills on this card",
"freeTrial": false,
"startTime": "2020-08-01T00:00:00.000Z",
"endTime": "2021-08-01T00:00:00.000Z",
"billingAgreementId": "{{BillingAgreementID}}"
}
}
]
},
"chargeType": "merchant_initiated"
}
}'Parameter
Definition
Last updated