Error envelope
request_id— include this when contacting supporterror.code— machine-readable; safe to switch onerror.message— human-readable; do not parse
HTTP status codes
422 — business rule codes
These represent rules the request violated, not syntax errors.Retrying
Use
idempotency_key on sendPayoutRequest so a retry after a network error does not accidentally create a duplicate transaction.