Add subscription discount

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Add a subscription discount using discount as template. Only discount argument is mandatory the rest of the arguments can be used to override the settings on the discount.

Errors

The operation can generate the following errors beside the generic HTTP error codes described here.

Error code HTTP codeDescription
12404Subscription not found
83404Discount not found
11400Duplicate subscription discount handle given
85 400 Multiple discounts not allowed. Can be changed in discount settings
Path Params
string
required

Subscription handle

Body Params

Discounts to attach to subscription. A maximum of 100 discounts is allowed.

string
required
length ≥ 1
^[a-zA-Z0-9_\.\-@]*$

Per subscription unique handle for the subscription discount.

string
required
length ≥ 1
^[a-zA-Z0-9_\.\-@]*$

Discount for subscription discount

string

Optional name overriding discount name

string

Optional description overriding discount description

int32
≥ 1

Optional overriding fixed amount from discount, either amount or percentage should be provided

int32
1 to 100

Optional percentage overriding percentage from discount, either amount or percentage should be provided

apply_to
array of strings, unique
length between 1 and 2147483647

Optional overriding discount settings

apply_to
int32
≥ 1

Optional overriding discount settings

string
enum

Optional overriding discount settings

Allowed:
int32
≥ 1

Optional overriding discount settings

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json