Skip to content
EvePayDocs

API v1Developer documentation

Errors

What each non-2xx response means, and what to do about it.

The ones you will see while integrating

Code What happened What to do
400 The Idempotency-Key header is missing. Send it. It is mandatory on every charge.
400 The urlRetorno does not belong to your site. It has to be on your registered domain or a subdomain of it, and start with https. If you changed domain, update it in Settings.
401 The key does not work. It is copied wrong, or you rotated it and the old one is still in your configuration.
403 You tried to change account configuration with the key. The registered site, the return page and the notice endpoint are changed in the portal, with your session. The key is for charging and reading.
404 That charge does not exist, or is not your merchant's. We do not tell the two apart on purpose: saying which would reveal whether that id belongs to someone. Check that you created it.
409 You have not registered your site or your return page. They are configured once in the portal, under Settings. Without that you cannot charge, because the buyer would have no way back.
409 Your merchant is not approved yet. EvePay still has to approve it. Write to us.
409 That Idempotency-Key was already used with another body. Two different orders are sharing a key. Use one per order, stable across retries.
429 You are going too fast, or have too many charges at once. Wait the seconds in Retry-After and retry with the same Idempotency-Key. Do not take any fixed limit as given: the header is what rules.
503 The gateway did not answer. It is not a fault in your request. It comes with Retry-After: retry with the same Idempotency-Key and nothing is duplicated.

The difference between 503 and 400 is deliberate. A 503 and a 429 tell you «try again»; a 400, «something in your request is wrong and retrying will not help». Telling them apart stops your system from retrying in a loop against an error that will never fix itself.

How they arrive

Validation errors carry the per-field detail, so you know which one to fix without guessing:

{
  "statusCode": 400,
  "message": {
    "formErrors": [],
    "fieldErrors": {
      "urlRetorno": [
        "Debe ser una dirección https completa, por ejemplo https://tutienda.co/gracias"
      ]
    }
  }
}

An approved payment that never reached you

If the buyer says they paid and your system never found out, the notice did not arrive or was lost. Query GET /v1/pagos/:id: that is the real state. If it is aprobado, the bank charged and you have to ship; what failed was the delivery of the notice. Whether the money is already in your account is a different question with its own state: the two states.