Create a discount

POST {{baseUrl}}/discounts

Creates a new discount.

If successful, your response includes a copy of the new discount entity.

Request Body

{"description"=>"<string>", "type"=>"<string>", "amount"=>"<string>", "enabled_for_checkout"=>true, "code"=>"<string>", "currency_code"=>"<string>", "recur"=>false, "maximum_recurring_intervals"=>"<integer,null>", "usage_limit"=>"<integer,null>", "restrict_to"=>["<string>"], "expires_at"=>"<dateTime>", "custom_data"=>"<object>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring