POST
/
promo
/
verify
curl --request POST \
  --url https://api.steamgold.dev/v1/promo/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "<string>"
}'
{
  "code": 123,
  "type": "commission",
  "discount": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Описание промокода
code
string
required

Промокод для проверки

Response

200
application/json
promo response
code
integer
required

HTTP-код ответа

type
enum<string>

Тип скидки у промокода

Available options:
commission
discount
number

Размер скидки у промокода