Անցնել բովանդակությանը
OneGate փաստաթղթեր
Կառավարման վահանակ
Ուղեցույցներ

Այս էջը հասանելի է միայն անգլերենով։ Կոդը, API դաշտերը և նույնացուցիչները չեն թարգմանվում։

Errors

Every error has the same shape and a request ID for support.

json
{
  "error": {
    "type": "validation_error",
    "code": "invalid_amount",
    "message": "Amount must be a positive integer in the currency's minor unit.",
    "param": "amount",
    "request_id": "req_06GD..."
  }
}

Types

TypeHTTPWhen
authentication_error401Missing, invalid or revoked API key
authorization_error403Key lacks a scope, or role lacks permission
validation_error400Invalid parameters
not_found_error404Object doesn't exist in your organization/environment
conflict_error409State conflict, e.g. an active payment already exists for the order
idempotency_error409Idempotency-Key reused with a different request
payment_error402The payment can't do this (not refundable, not open, …)
provider_error502The provider rejected or failed the request
rate_limit_error429Too many requests
internal_error500Something went wrong on OneGate's side — safe to retry with the same Idempotency-Key

Every response carries OneGate-Request-Id. Include it when contacting support.