Top up the balance
Adds money to the balance (amount in micro-USD, at least $10 = 10000000). With a saved card (cardId) the charge completes inline and payment is set; otherwise checkoutUrl is a hosted page to open (a new card, or crypto: crypto never completes inline). Refusals: 422 INVALID_INPUT, 402 CARD_DECLINED, 404 NOT_FOUND (the card), 422 UNSUPPORTED (the rail cannot do this).
Headers
Workspace this request operates in — the workspace id (wksp_…) or the organization id, from GET /workspaces. Required with an API key, which carries no workspace (400 WORKSPACE_REQUIRED without it). With an OAuth token it defaults to the workspace the token was issued for. Responds 403 WORKSPACE_FORBIDDEN when the caller is not a current member, rather than falling back to another workspace.
Optional client-generated key. A repeated request with the same key, method and path (by the same caller in the same workspace) replays the original response, with Idempotency-Replayed: true, for 24 hours instead of running again — safe retries. The same key with a different body is refused with 422 IDEMPOTENCY_KEY_REUSED (nothing runs): use a new key for each new request. A 5xx answer is not remembered (a retry runs).