Xsolla-logo

Verify promotion codeClient-side

get/v2/project/{project_id}/promotion/code/{code}/verify

Determines if the code is a promo code or coupon code and if the user can apply it.

SecurityXsollaLoginUserJWT
Request
path Parameters
project_id
required
integer

Project ID. You can find this parameter in your Publisher Account next to the name of the project.

Example: 44056
code
required
string [ 1 .. 128 ] characters

Unique case-sensitive code. Contains letters and numbers.

Example: WINTER2021
Responses
200

Information about the code.

401

Authentication not passed or wrong.

403

Authorization header not sent.

404

Code not found. Make sure the code value is correct.

422

Invalid code promotion.

Request samples
Response samples
application/json
{
  • "type": "coupon",
  • "code": "WINTER2023",
  • "rewards": {
    }
}