Skip to main content
POST
Create a discount code

Authorizations

api_access_token
string
header
required

This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.

Path Parameters

account_id
integer
required

The numeric ID of the account

Body

application/json
discount_code
object
required

Response

201 - application/json

Created

id
integer
name
string
code
string
discount_type
string

e.g. percentage or fixed

value
number
active
boolean
valid_until
string<date> | null
created_at
string<date-time>
updated_at
string<date-time>