# Get promo code rewards Gets promo code rewards by its code. Can be used to allow users to choose one of many items as a bonus. The usual case is choosing a DRM if the promo code contains a game as a bonus (type=unit). Endpoint: GET /v2/project/{project_id}/promocode/code/{promocode_code}/rewards Version: 2.0.0 Security: XsollaLoginUserJWT ## Path parameters: - `project_id` (integer, required) Project ID. You can find this parameter in your Publisher Account next to the name of the project. Example: 44056 - `promocode_code` (string, required) Unique case sensitive code. Contains letters and numbers. Example: "SO6rew99j9" ## Response 200 fields (application/json): - `bonus` (array) - `bonus.item` (object) - `bonus.item.sku` (string) Unique item ID. The SKU may contain only lowercase and uppercase Latin alphanumeric characters, periods, dashes, and underscores. Example: "game_01" - `bonus.item.name` (string) Item name. Example: "Game name" - `bonus.item.type` (string) Type of item: virtual_good/virtual_currency/bundle/physical_good/unit. Example: "unit" - `bonus.item.description` (string) Item description. Example: "Game description" - `bonus.item.image_url` (string) Image URL. Example: "https://cdn.xsolla.net/img/misc/images/b79342cdf24f0f8557b63c87e8326e62.png" - `bonus.item.unit_items` (array) If the item has the unit type, it includes all items in the unit. In the most cases the user should choose one of them as a promo code bonus. - `bonus.item.unit_items.type` (string) Type of item: game_key. Example: "game_key" - `bonus.item.unit_items.is_free` (boolean) If true, the item is free. - `bonus.item.unit_items.drm_name` (string) DRM name. Example: "Steam" - `bonus.item.unit_items.drm_sku` (string) Unique DRM ID. The SKU may contain only lowercase and uppercase Latin alphanumeric characters, periods, dashes, and underscores. Example: "steam" - `bonus.quantity` (number) Item quantity. - `discount` (object,null) Percent discount. The price of cart will be decreased using a value calculated by using this percent and then rounded to 2 decimal places. - `discount.percent` (string) Example: "10.00" - `discounted_items` (array,null) List of items that are discounted by a promo code. - `discounted_items.sku` (string, required) Item SKU. - `discounted_items.discount` (object, required) - `discounted_items.discount.percent` (string, required) Percent discount. The price of cart item will be decreased using a value calculated by using this percent and then rounded to 2 decimal places. Example: "10.00" - `is_selectable` (boolean) If true, the user should choose the bonus before redeeming a promo code. ## Response 401 fields (application/json): - `statusCode` (integer) Example: 401 - `errorCode` (integer) Example: 1501 - `errorMessage` (string) Example: "[0401-1501]: Authorization failed: Provide authorization" ## Response 403 fields (application/json): - `statusCode` (integer) Example: 403 - `errorCode` (integer) - `errorMessage` (string) Example: "Authorization header not sent." - `transactionId` (string) Example: "x-x-x-x-transactionId-mock-x-x-x" ## Response 404 fields (application/json): - `statusCode` (integer) Example: 404 - `errorCode` (integer) Example: 4001 - `errorMessage` (string) Example: "[0401-9807]: Enter valid promo code."