Docs · Resources

Errors

Canonical catalog of error codes returned across the miaPOS API surface. Stable identifiers, human messages, suggested actions.

AudienceDeveloper
DifficultyBasic
Updated2026-05-30

Error envelope

Every error response uses the same shape:

{
  "error": {
    "code":      "INVALID_SIGNATURE",
    "message":   "Callback signature did not match the published public key.",
    "requestId": "req_01HZP2K7..."
  }
}

Match on code (stable across versions). message is for human display; requestId is for support tickets.

Catalog

CodeHTTPMeaning
INVALID_TOKEN401Access token missing or malformed.
TOKEN_EXPIRED401Refresh via POST /token/refresh.
INVALID_AMOUNT400Amount not a positive decimal or exceeds merchant limit.
INVALID_CURRENCY400Currency not enabled for this merchant.
UNKNOWN_PAYMENT404No payment with that id, or wrong merchant.
PAYMENT_ALREADY_COMPLETED409Operation not allowed in current state.
INVALID_SIGNATURE400Callback signature mismatch — refetch public key.
MERCHANT_DISABLED403Merchant account suspended.
TERMINAL_INACTIVE403Terminal not activated or revoked.
RATE_LIMITED429Backoff and retry — see Retry-After.
RAIL_UNAVAILABLE503Underlying instant-payment rail down. Retry with backoff.