Start a deposit
The amount to deposit. Minimum $1.
The workspace to credit on return.
url). The success URL returns to /command?deposit_session={CHECKOUT_SESSION_ID} and the cancel URL to /command?deposit_cancelled=1.
Confirm a deposit
The Stripe Checkout session id returned to the success URL.
The workspace to credit. Must match the workspace the deposit was started for.
Whether Stripe confirms the session was paid.
True if this session was already credited.
The confirmed amount.
The Treasury state after crediting.
Errors
| Status | Condition |
|---|---|
400 | Stripe not connected, amountUsd below $1, or session_id missing. |
403 | The deposit belongs to a different workspace. |
500 | A Stripe error (returned in error). |