Skip to main content

Amounts

Every amount in the API is a decimal string in the currency’s smallest unit. Never floats, never Number(). Format and parse with @matocard/core:

Quotes

Top-ups, settlements and cash-outs each need a fresh quote id:
  • A quote is valid for 60 seconds.
  • The pair picks the currency, and with it the Xendit account:
  • An expired quote answers 400 quote expired, ask for a new one; a quote for the wrong route, 400 unknown quote.

Rounding

Errors

Errors are { "error": "…" } with a 4xx status, and the message is safe to show to the user. A 500 is something went wrong and is logged on the server.