Create a promotion code

POST {{baseUrl}}/v1/promotion_codes

A promotion code points to a coupon. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.

Request Body

[{"name"=>"coupon", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"active", "value"=>"<boolean>", "datatype"=>"string"}, {"name"=>"code", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"customer", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[0]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expand[1]", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"expires_at", "value"=>"<unix-time>", "datatype"=>"string"}, {"name"=>"max_redemptions", "value"=>"<integer>", "datatype"=>"string"}, {"name"=>"restrictions[currency_options]", "value"=>"<object>", "datatype"=>"string"}, {"name"=>"restrictions[first_time_transaction]", "value"=>"<boolean>", "datatype"=>"string"}, {"name"=>"restrictions[minimum_amount]", "value"=>"<integer>", "datatype"=>"string"}, {"name"=>"restrictions[minimum_amount_currency]", "value"=>"<string>", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring