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.
| Code | When | What to do |
|---|---|---|
401 | no key or an invalid key | check the Authorization: Bearer … header, create a new key |
402 | deliveries suspended: out of money, reason: balance | top up the balance or switch to the free tariff |
403 | the key lacks the ability | create a key with the right abilities |
403 | deliveries suspended: no BeMVP link, reason: no_link | put the link back and press "Check now", or switch to the paid tariff |
403 | no tariff chosen, reason: no_tariff | choose a tariff on the "Tariff" page |
404 | the player is not yours, or the match does not belong to your players | check the steam_id or the match id |
422 | validation failed, or Steam rejected the codes | see 422 |
429 | your hourly limit of Steam code checks is used up | retry after Retry-After seconds |
503 | Steam is unavailable, or the shared daily check limit is used up | retry after Retry-After seconds |
500 | an error on our side | retry 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"
}
reason | Code | What happened |
|---|---|---|
balance | 402 | the balance did not cover a charge |
no_link | 403 | the BeMVP link is missing from your page, 3 days after the email |
no_tariff | 403 | no 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_idis the SteamID64 of an individual account (17 digits),auth_codelooks likeAAAA-AAAAA-AAAA,last_known_codelooks likeCSGO-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_codeandsteam_idfields. 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_codefield. 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-Afterseconds (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-Aftershows the time until midnight UTC.