API

API errors

Error shapes vary by endpoint. Prefer HTTP status + machine-readable fields when present.


Typical HTTP statuses

StatusMeaning
200Success
202Accepted / processing (native Apple Pay)
400Validation or business rule error
401Missing or invalid credentials
403Not allowed for this profile
404Resource not found
409Idempotency conflict (native Apple Pay)
500Server error

Native Apple Pay error envelope

{
  "error": {
    "code": "session_expired",
    "message": "...",
    "request_id": "..."
  }
}

Map SDK VenPaysError.code values in the app — see the iOS guide.