Delete a Promotion Code
DELETE/v2/promotions/:promotionID/codes/:code
Use this endpoint to delete a single promotion code.
Request
Path Parameters
promotionID stringrequired
Specifies the unique identifier of the promotion associated with the codes.
code stringrequired
Specifies the code that you want to delete.
Header Parameters
Authorization Bearerrequired
The Bearer token required to get access to the API.
Responses
- 204
- 401
- 404
No Content
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
detail string
status string
title string
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}
Not Found
- application/json
- Schema
- Example (from schema)
- Example
Schema
detail string
status string
title string
[
null
]
{
"errors": {
"detail": "promotion not found",
"status": 404,
"title": "Not Found"
}
}
Loading...