Error Codes

Errors use a uniform envelope: { "error": "…", "code": "…" }

HTTPcodeMeaning
400BAD_INPUT / BAD_CHAIN / BAD_AMOUNT / BAD_ADDRESSMalformed request
401API_KEY_REQUIRED / API_KEY_INVALIDMissing or unknown merchant key
401WORKER_UNAUTHORIZEDWorker bearer invalid on /api/internal
402INSUFFICIENT_BUDGET / CAP_EXCEEDEDPrepaid budget too low, or this provision exceeds the key cap (no partial fill)
403SPONSORSHIP_DISABLEDEnable sponsorship on the API key
404NOT_FOUNDUnknown resource (or not yours)
409IDEMPOTENCY_CONFLICTSame key, different parameters
409NOT_PAYABLEIntent is not paid enough to settle
409BALANCE_RESERVEDPending claims already reserve the balance
429RATE_LIMITEDSlow down
503EXECUTOR_NOT_CONFIGURED / PAYOUT_NOT_CONFIGUREDPlatform chain secret missing — contact ops