Amounts and currencies

Amounts are decimal strings with the exact precision of their currency. Never numbers.

{ "amount": "1500.50", "currency": "PEN" }
  • An amount is a string of digits with, if needed, a decimal point: "100", "100.5", "100.50".
  • No sign, no thousands separators, no scientific notation.
  • No more decimal places than the currency has.
  • The API always responds with exactly the currency's decimal places: you send "100.5" in PEN and receive "100.50".
  • An amount sent as a number (100.5) is rejected with 400 invalid_body.

Never use floating point

0.1 + 0.2 isn't 0.3 in floating point. Store amounts as strings or in a decimal type (BigDecimal, decimal.Decimal, NUMERIC), or as integers in minor units.

Currencies

CodeDecimalsCurrency
BRL2Brazilian real
PEN2Peruvian sol
VES2Venezuelan bolívar
USD2US dollar
MXN2Mexican peso
COP2Colombian peso
EUR2Euro
USDT6Tether
USDC6USD Coin

A currency being in this table doesn't mean you can collect or pay out in it: capabilities tells you what's available to you.

Exchange rates

When a payout converts from one currency to another, the quote tells you everything before you pay:

  • source.principal: what gets converted.
  • source.platform_fee: the platform fee.
  • source.tenant_markup: your own markup, if you have one; it's credited to your earnings (earnings).
  • source.total: what's debited from your balance (principal + platform_fee + tenant_markup).
  • destination.amount: what the beneficiary receives.
  • rate: destination units per source unit, with markups included.

Dates

All dates are in RFC 3339 and UTC: 2026-10-18T14:00:20Z. The number of fractional-second digits can vary.

Identifiers

Every resource has an opaque id with a prefix that tells you what it is: pout_ a payout, pin_ a credited pay-in, fa_ a funding account, ben_ a beneficiary, cus_ a customer, quo_ a quote, evt_ an event. Don't interpret what comes after the prefix.

Sur cette page