API reference
Two surfaces with one rule: money is authoritative in the ledger. This page covers the conventions that apply to every operation. Endpoints live in the four sections below and in the generated endpoint index.
Base URLs
| Surface | Production | Sandbox | Reachability |
|---|---|---|---|
| Partner API | https://api.arilator.com | https://indevapi.arilator.com | Public |
| MoR core | Platform-internal host | Platform-internal host | Arilator network only |
| Hosted checkout | https://www.arilator.com/pay/<session-id> | Dev website | Public, one session per link |
Versioning
The API is versioned by date. The current version is 2026-11-01. Pin it with a header; the version actually served is echoed on every response.
Arilator-Version: 2026-11-01
# unknown version → 400
{ "code": "UNSUPPORTED_API_VERSION",
"supported": ["2026-11-01"] }Versions are never removed silently: a breaking change gets a new date, both versions run in parallel, and the removal is announced in the API changelog with a date.
Idempotency
Every POST and PATCH on the MoR surface requires an Idempotency-Key. The same key with the same body replays the stored response; the same key with a different body returns 409. Provider webhooks and the two buyer-driven hosted-checkout calls are exempt — they are authenticated or guarded by session state instead.
Idempotency-Key: 8f14e45f-ea0b-4f2c-9a1e-2b7d0d0b1c33Conventions
- JSON only. No SDK is required; every call is a plain HTTPS request.
- Snake case on partner routes (
vendor_id,store_id). - Amounts carry up to four decimal places; never assume floating-point equality.
- Errors are JSON with a
message; policy refusals add a machine-readablecode. See Errors. - Auth is a partner session token or a store-scoped developer key. See Authentication.
Reference sections
- Pricing — quote a sale, read the published book.
- Checkout & orders — sessions, hosted checkout, confirmation.
- Settlement — reserves, appeals, export.
- Endpoint index — every operation, generated from the OpenAPI document.