Create Promotion Code
Create a new promotion code linked to a coupon.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
account_id
Request
This endpoint expects an object.
coupon_id
ID of the coupon this code applies
code
The promotion code string
active
Whether the code is active
max_redemptions
Maximum number of times this code can be redeemed
expires_at
When this promotion code expires
restrictions
Restrictions on promotion code usage
metadata
Arbitrary metadata
Response
Successful Response
id
coupon_id
code
active
max_redemptions
times_redeemed
expires_at
restrictions
metadata
created_at
updated_at
Errors
422
Unprocessable Entity Error