API conventions

A few conventions apply everywhere in the API. They exist to remove ambiguity — especially around money, where a misplaced decimal point is not a rounding error but a real loss.

Amounts

All monetary amounts are integer centavos. One peso is 100 centavos, so ₱2,500.50 travels as 250050. There are no floats and no decimal strings anywhere in the API.

Why integers? Floating-point numbers cannot represent most decimal fractions exactly, and the tiny drift they introduce compounds across fees, splits, and reconciliation. Integer centavos make every amount exact and every sum verifiable. Do your own arithmetic in integers too, and only format to pesos at the display layer.

Basis Points

Rates are integer basis points (bps). One basis point is 0.01%, so 100 bps = 1% and 175 means 1.75%. A ₱2,500.00 disbursal quoted at 175 bps carries a fee of ₱43.75.

The same reasoning as amounts applies: an integer rate is exact, comparable, and safe to store. Offer and advance responses carry both per-line rates (fee_bps on each line) and a blended aggregate rate — see the blended rate for how the two relate.

Timestamps and Dates

Two distinct shapes, used deliberately:

  • Calendar dates use YYYY-MM-DD (for example original_disbursal_date). These are business dates without a time component.
  • Instants use ISO 8601 with timezone (for example expires_at, created_at, occurred_at), always UTC: 2026-07-13T08:00:00.000Z.

Request and Response JSON

Every request and response body is JSON with snake_case field names. Two rules keep integrations stable:

  • Requests are strict. Unknown fields in a request body are rejected with 400, which catches typos (partner_reff) before they silently do the wrong thing.
  • Responses are additive. New response fields and webhook event types may appear within /v1 — ignore what you do not use, and unknown additions will never break you. See Versioning.

Treat every identifier (offer_id, advance_id, partner_ref) as an opaque string and preserve it exactly.

Idempotency

Networks fail mid-request, and "did that create go through?" should never be a scary question. The API gives you two complementary tools.

The Idempotency-Key header works on any /v1 write. Pick a unique key per logical operation (a UUID or your own reference) and send it with the request. If the call succeeds, retrying with the same key replays the original response instead of repeating the work. If you reuse a key with a different request body, you get 409 idempotency_conflict; if the first attempt is still in flight, you get 409 idempotency_in_progress — wait briefly and retry.

partner_ref replay is built into advance creation independently of the header: creating an advance with a partner_ref you have already used returns the existing advance. Keep that reference stable for one logical advance and never reuse it for a different merchant or offer.

Preparing a partner-managed disbursal is also naturally idempotent — it returns the existing pending disbursal if one was already created. Cancellation is a state transition rather than a creation, so when a cancel request times out, retrieve the advance and check its status instead of assuming the outcome.