Search…
Reducing the quantity of a subscription
Learn how to reduce the quantity of a subscription with add-ons.
In this scenario, the customer wants to reduce the quantity of their subscription with add-ons.
Use the POST /v1/subscriptons/{subscriptionId}/reduce resource to reduce the quantity of a customer's 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. You'll receive a 202 Accepted response.
cURL
1
curl --location --request POST 'http://{host}/v1/subscriptions/{subscriptionId}/reduce' \
2
--header 'Content-Type: application/json' \
3
--header 'authorization: bearer ***\
4
--data-raw '{
5
"product" : {
6
"id" : "5367865200"
7
},
8
"quantity" : 1,
9
"addOns" : [ {
10
"product" : {
11
"id" : "5400082600"
12
},
13
"quantity" : 1
14
}, {
15
"product" : {
16
"id" : "5400082700"
17
},
18
"quantity" : 1
19
} ]
20
}'
Copied!
You will receive a 202 Accepted response.
Last modified 5mo ago
Copy link