Set a cycle discount
PATCH
/v1/subscriptions/{id}/cycles/discount
Sets a discount that applies to a single cycle only, overriding the subscription discount on that charge. The other cycles keep the normal discount.
Omit cycle_index to apply it to the next cycle. The discount replaces the
subscription's, it does not add to it — and a percentage applies to the products of that
cycle, already including any product changes it has.
Use DELETE on this same path to remove the cycle discount and return it
to the subscription discount.
Authorizations
bearerAuth
Bearer token of the merchant obtained via POST /oauth2/token using the
merchant's credentials (not the app's). See
Authentication.
Type
HTTP (bearer)
Parameters
Path Parameters
id*
Subscription identifier.
Type
Requiredinteger
Example
10Request Body
application/json
JSON "discount": 40, "discount_type": "nominal"
{
}
Responses
Cycle discount set.
application/json
JSON "data": { "cycle_index": 4, "discount": 15, "discount_type": "percent" }
{
}
PATCH
/v1/subscriptions/{id}/cycles/discount