Skip to main content
POST
Create discount

Authorizations

Authorization
string
header
required

OAuth2 personal access token from User settings → API tokens

Scopes

discounts:create

Path Parameters

company
string
required

Company sqid

Body

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

Required unless type is bundle, where it is prohibited. Major units on fixed_amount, the percentage on percentage (max 100). Two decimals at most

bundle_quantity
integer

type=bundle only. How many products the buyer gets. Greater than free_quantity

free_quantity
integer

type=bundle only. How many of those are free. Greater than 0

is_active
boolean
default:true

Response

Created discount