Delete Promotion Codes
Delete a promotion code
DELETE
https://api.moltin.com/v2/promotions/:id/codes/:code
This endpoint allows you to delete a single promotion code
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the promotion associated with the codes |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token to grant access to the API |
Delete multiple promotion codes
DELETE
https://api.moltin.com/v2/promotions/:id/codes
This endpoint allows you to delete one or more promotion codes
Path Parameters
Name | Type | Description |
---|---|---|
id | string | ID of the promotion associated with the codes |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The bearer token to grant access to the API |
Request Body
Name | Type | Description |
---|---|---|
codes[].code | object | the code you want to delete |
codes[] | array | an array of codes |
type | string |
|
Last updated