Creates a list of promo codes with items and adds them to Backpack of the specified user. To get items created using this method, the user copies the promo code from Backpack and enters it on the gaming platform or in the game.
X-HOST-ID required | string <uuid> A unique header issued by Xsolla. To obtain it, please contact the integration team at integration@xsolla.com or your Customer Success Manager at csm@xsolla.com. Provide them with the project ID and merchant ID. Keep X-HOST-ID confidential, as it is part of the authentication key. |
A JSON object containing promo codes information.
Promo codes were successfully created.
Bad request.
Internal server error.
[- {
- "item_sku": "string",
- "item_name": "string",
- "image_url": "string",
- "description": "string",
- "promo_code": "string",
- "game_name": "string",
- "game_image_url": "string",
- "external_game_id": "string"
}
]
[- {
- "item_id": "4d8cd62e-a579-4dae-af8c-3172f96f8f7c",
- "description": "string",
- "image_url": "string",
- "item_sku": "string",
- "game_name": "string",
- "external_game_id": "string",
- "item_type": "promo_code",
- "created_at": "string",
- "item_status": "string",
- "item_name": "string",
- "project_id": 0,
- "merchant_id": 0
}
]