Skip to main content
PATCH
Update discount

Authorizations

Authorization
string
header
required

OAuth2 personal access token from User settings → API tokens

Scopes

discounts:update

Path Parameters

company
string
required

Company sqid

discount
string
required

Discount sqid

Body

application/json
name
string
Maximum string length: 255
type
enum<string>
Available options:
fixed_amount,
percentage,
bundle
amount
string
bundle_quantity
integer

Send together with free_quantity; one without the other is refused

free_quantity
integer

Send together with bundle_quantity; one without the other is refused

is_active
boolean

Response

Updated discount