Admin API
cURL
curl --request PATCH \ --url https://api.juo.io/admin/v1/subscriptions/{subscriptionId}/discounts/{discountId} \ --header 'Content-Type: application/json' \ --header 'X-Juo-Admin-Api-Key: <api-key>' \ --header 'X-Tenant-ID: <x-tenant-id>' \ --data '{ "target": { "type": "shipping" }, "value": { "amount": 123, "type": "fixed-amount", "appliesOnEachItem": true }, "recurringCycleLimit": null }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "resource": "subscription-discount", "title": null, "target": { "type": "shipping" }, "value": { "amount": 123, "type": "fixed-amount", "appliesOnEachItem": true }, "recurringCycleLimit": null }
Used to update a subscription discount.
Show child attributes
x >= 1
subscription-discount
1