For the complete documentation index, see llms.txt. This page is also available as Markdown.

Error format

Swap endpoints share the public API error envelopes. The per-endpoint validation messages are listed on each endpoint page.

Missing / invalid API key

{
  "success": false,
  "message": "Missing api key",
  "statusCode": 0
}

Include the apiKey header in every request. docs.omypayments.com/api/authentication

Validation error (400 Bad Request)

{
  "success": false,
  "message": "Validation error",
  "errors": [
    {
      "field": "amount",
      "messages": ["Invalid value format"]
    }
  ]
}

No permission (403 Forbidden)

The API key does not have the swap permission enabled.

Internal error (500)

Last updated