Developer docs
Errors
JSON error bodies with stable HTTP status codes.
Shape
JSON
{
"error": "Human-readable message",
"details": [] // optional; present on validation failures
}Status codes
- 400 — invalid body (Zod validation). Check
details. - 401 — missing/invalid/revoked Bearer key, or merchant profile missing.
- 404 — escrow
referencenot found for this key. - 409 — state conflict (e.g. deliver while not
funded; release before seller accepted). - 429 — rate limited. Honor
Retry-Afterandretry_after_seconds. - 5xx — server or payment-provider failure. Safe to retry
initiatewith the samereference.
Retry guidance
initiate— always retry with the samereference(idempotent).deliver— safe to retry; returnsalready_delivered: trueif set.release— safe to retry; returnsalready_released: trueif done.