Create Promotion codes
When a promotion expires, the promotion codes attached to that promotion will automatically become invalid, though they are not deleted. Should you re-enable the expired promotion, the promotion codes attached to that promotion will be completely deleted.
Create Promotion Codes
POST
https://api.moltin.com/v2/promotions/:id/codes
Path Parameters
Name | Type | Description |
---|---|---|
id | string | The unique promotion identifier |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to grant access to the API |
Request Body
Name | Type | Description |
---|---|---|
type | string |
|
codes | array | An array of objects |
codes[].code | string | A string to use as a code for the promotion |
codes[].uses | integer | Number of times code can be used |
codes[].user | string | A string that can used to identify a user |
Last updated