CreatePromotionCode
POST/v1/promotions/create-code¶ Description
Endpoint to create a promotion code for the specified promotion.
¶ Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| context | ThirdPartyRequestContext | Context of this request | Y |
| promotion_id | string | The UUID of the promotion for which to create a code | Y |
| request_id | string | A unique request identifier | Y |
| external_user_id | string | Identifier for the 3P user | Y |
¶ Response Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| promotion_code | PromotionCode | The created promotion code | Y |
¶ Errors
| HTTP status | Code | Message |
|---|---|---|
| 404 | ERROR_CODE_PROMOTION_NOT_FOUND | The promotion was not found |
| 403 | ERROR_CODE_OPERATION_BLOCKED | Promotion code creation blocked for the user |