Update a discount
PATCH {{baseUrl}}/discounts/:discount_id
Updates a discount using its ID.
If successful, your response includes a copy of the updated discount entity.
Request Body
{"status"=>"active", "description"=>"<string>", "enabled_for_checkout"=>true, "code"=>"<string>", "type"=>"<string>", "amount"=>"<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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |