Reducing the quantity of a subscription
Learn how to reduce the quantity of a subscription.
In this scenario, the customer has two subscriptions and decided to reduce the subscription product to one.
Use the
POST /v1/subscriptions/{subscriptionId}/reduce
resource to reduce the quantity of a subscription. You need to include the product identifier (id
) and the updated quantity (quantity
). In the following example, the value for the quantity
is 1
. See the reduce resource for more information.cURL
202 OK response
curl --location --request POST 'https://api.digitalriver.com/v1/subscriptions/{subscriptionId}>/reduce' \
--header 'authorization: bearer ***\
...
--data-raw '{
"product" : {
"id" : "5410723500"
},
"quantity" : 1
}'
curl --location --request POST 'https://api.digitalriver.com/v1/subscriptions/{subscriptionId}>/reduce' \
--header 'authorization: bearer ***\
...
--data-raw '{
"product" : {
"id" : "5410723500"
},
"quantity" : 1
}'