Skip to main content
POST
Create promo code

Authorizations

X-API-Key
string
header
required

Preferred authentication method. Pass the API key in the X-API-Key HTTP request header. The user account must have api_status enabled.

Body

application/json
code
string
required

Alphanumeric promo code (unique, max 100 characters).

affiliate_id
integer
required

Affiliate to attribute traffic to.

offer_id
integer
required

Offer to link the promo code to.

status
enum<string>

Promo code status. Defaults to active when omitted.

Available options:
active,
inactive
start_date
string<date>

Validity start date in Y-m-d format.

end_date
string<date>

Validity end date in Y-m-d format.

description
string

Optional promo code description.

Response

Created promo code.

status
string
Example:

"success"

code
integer
Example:

200

name
string
Example:

"OK"

message
string
info
object