Skip to main content

API errors

Errors come as JSON with a message field, even without the Accept: application/json header. Sending the header is still a good idea.

CodeWhenWhat to do
401no key or an invalid keycheck the Authorization: Bearer … header, create a new key
402deliveries suspended: out of money, reason: balancetop up the balance or switch to the free tariff
403the key lacks the abilitycreate a key with the right abilities
403deliveries suspended: no BeMVP link, reason: no_linkput the link back and press "Check now", or switch to the paid tariff
403no tariff chosen, reason: no_tariffchoose a tariff on the "Tariff" page
404the player is not yours, or the match does not belong to your playerscheck the steam_id or the match id
422validation failed, or Steam rejected the codessee 422
429your hourly limit of Steam code checks is used upretry after Retry-After seconds
503Steam is unavailable, or the shared daily check limit is used upretry after Retry-After seconds
500an error on our sideretry later; if it repeats, write to us

402 and 403 with reason: deliveries suspended​

When deliveries are suspended or no tariff is chosen, the API answers with a machine-readable cause in the reason field:

{
"message": "Deliveries are suspended: the balance does not cover the charges. Top up the balance in the cabinet, and the games collected meanwhile will be delivered.",
"reason": "balance"
}
reasonCodeWhat happened
balance402the balance did not cover a charge
no_link403the BeMVP link is missing from your page, 3 days after the email
no_tariff403no tariff chosen yet

Every method answers this way except two, which always work:

  • DELETE /v1/players/{steam_id}, so you can remove a player who withdrew consent;
  • GET /v1/link-kit, so you can take the link code and put the link back.

A 403 without reason means the key lacks the ability for this method (message: "Invalid ability provided."). The suspension rules: Tariffs and prices.

422: validation failed​

The response lists the fields with errors:

{
"message": "The auth_code or steam_id are not valid. (and 1 more error)",
"errors": {
"auth_code": ["The auth_code or steam_id are not valid."],
"steam_id": ["The auth_code or steam_id are not valid."]
}
}

For PUT /v1/players/{steam_id} the causes are:

  • Wrong format. steam_id is the SteamID64 of an individual account (17 digits), auth_code looks like AAAA-AAAAA-AAAA, last_known_code looks like CSGO-xxxxx-xxxxx-xxxxx-xxxxx-xxxxx. Such requests never reach Steam and do not use the limit.
  • Steam rejected the authentication code or the SteamID: errors in the auth_code and steam_id fields. Usually the player made a typo or has already changed the code in Steam.
  • Steam did not recognise the match code: an error in the last_known_code field. Ask the player for the code of their latest match again.

We remember codes rejected by Steam for 6 hours and reject them again without asking Steam. Sending the same codes again before then is pointless: you need new ones.

429: hourly limit of Steam checks​

Every Steam code check of PUT /v1/players/{steam_id} counts towards your hourly limit:

  • 50 checks an hour on the free tariff;
  • 300 checks an hour on the paid tariff;
  • 30 an hour if Steam often rejects your codes (10 of the last 20 checks).

Above the limit the API answers 429 with a Retry-After header: the number of seconds until you can retry. Reading players and matches does not count.

503: Steam unavailable​

PUT /v1/players/{steam_id} answers 503 with a Retry-After header in two cases:

  • Steam API does not answer. Retry after Retry-After seconds (usually 60).
  • The shared daily limit of new code checks is used up. We keep part of the daily Steam quota for tracking players already connected, so on such a day new codes are checked again after 00:00 UTC. It is not your fault: connected players are tracked as usual, and Retry-After shows the time until midnight UTC.