Errors
The switch returns structured JSON errors with an HTTP status code and a human-readable message.Common responses
400 Bad Request— invalid input401 Unauthorized— missing or invalid token403 Forbidden— application is not allowed to perform the action404 Not Found— resource does not exist409 Conflict— duplicate or ambiguous paytag or transaction state422 Unprocessable Entity— semantically invalid request429 Too Many Requests— rate limit exceeded500 Internal Server Error— unexpected failure
Handling guidance
- Retry only when the error is transient.
- Use idempotency keys for retriable transaction requests.
- Treat
409 Conflictas a signal to resolve the paytag or transaction state first.