Errors, limits and retries
Status codes, error bodies, idempotency, rate limits and support identifiers.
Status codes
| Status | Meaning | What to do |
|---|---|---|
200 | Success. | |
204 | Success, nothing to return (no account, no balance, end of the transaction list, no transaction that day). | Not an error. |
206 | Transactions returned, but the bank consent is no longer active: data is not refreshed. | Renew the consent (see Reading bank data). |
400 | Invalid request: missing required field, wrong format, business rule. | Fix the request; do not retry as is. |
401 | Missing or expired bearer, or no right on this endpoint or bank account. | Refresh the token once and retry once. If it fails again, it is an access right: do not retry. |
409 | A request with the same Idempotency-Key is still running. | Wait a few seconds and retry with the same key. |
500 | Unexpected error. | Retry later with the same Idempotency-Key; contact support with the correlation id if it persists. |
503 | Rate limit exceeded. | Wait for the next minute. |
Error bodies
| Case | Body |
|---|---|
| Missing or invalid field | A validation problem: {"title": "One or more validation errors occurred.", "status": 400, "errors": {"<field>": ["<message>"]}} |
| Business error | {"StatusCode": 400, "Message": "..."} |
| Unexpected error | {"StatusCode": 500, "Message": "Internal Server Error"} or a problem object (application/problem+json) |
401 | Usually empty. On /auth, a short text: Invalid credentials, License expired!, Invalid refresh token. |
Rely on the status code, not on the message text: messages may change.
Idempotency: retry payments safely
Send an Idempotency-Key header on every POST that creates something (payments, bulk payments, payment requests, invitations, consent renewals):
Idempotency-Key: 3f2b8c1e-6a0d-4f4e-9a57-2a1c9d4b7e10
- Use a new UUID per operation, and the same one when you retry that operation.
- For 24 hours, a retry with the same key returns the first successful response, without executing the operation again.
- While the first call is still running, a retry gets
409. - A failed call (any non-2xx) is not stored: retrying with the same key runs it again.
- Keys are scoped to your ClientKey: another client using the same value never collides with you.
- The header is optional, but without it a retried payment can be created twice.
Rate limit
240 requests per minute per IP address, in fixed one-minute windows. Above that, calls get 503 until the next minute starts. To stay well below it, page transactions with pageSize=200 and use sequence to fetch only new ones, instead of re-reading the full history.
Correlation and support identifiers
X-Correlation-ID: every response carries this header. Send your own value in the request to follow a call through your logs and ours; otherwise mybanx generates one.executionId: many responses include it in the body.
When you contact support ([email protected]), give the correlation id, the endpoint, and the time of the call.
Updated 1 day ago
Did this page help you?
