Once a merchant confirms an advance, someone has to prepare the disbursal — the transfer record that actually pays the merchant their net proceeds. Some partners want Shopsuey Capital to handle that end to end; others already run a payout pipeline and want the transfer to flow through it. The disbursal_mode field on POST /v1/advances lets you choose per advance, so you can even run both models side by side while migrating.
There are two modes. If you do nothing, you get ops.
Ops-managed Disbursal
Omit disbursal_mode or set it to "ops". After the merchant confirms, Shopsuey Ops prepares and executes the disbursal — your backend does not call any disbursal endpoint. Watch for advance.confirmed and later advance.disbursed webhooks to keep the merchant's status current in your product.
Choose this mode if you want the smallest possible integration: create offers and advances, redirect for confirmation, consume webhooks, done.
{
"offer_id": "00000000-0000-4000-8000-000000000001",
"partner_merchant_id": "merchant_example_001",
"bank": {
"bank_code": "BANK_EXAMPLE",
"account_number": "acct_example_1234",
"account_name": "Merchant Example"
},
"partner_ref": "ADV-EXAMPLE-001",
"disbursal_mode": "ops"
}Partner-managed Disbursal
Set disbursal_mode to "partner" when your own system sends the funds. After you receive the advance.confirmed webhook, call POST /v1/advances/:id/disbursal. That creates the pending disbursal record on our side; your existing transfer operation then moves the money.
Two guardrails to know:
- The call is idempotent — if a pending disbursal already exists, it is returned as-is, so retries are safe.
- The advance must already be
confirmed— that happens when the merchant, not the partner, confirms the advance through the hosted confirmation flow, which flips the status and fires theadvance.confirmedwebhook — and the advance must actually be partner-managed. Calling before the merchant confirms fails with422 invalid_status; calling on an ops-managed advance fails with422 invalid_disbursal_mode. See Errors and retries.
advance_id='00000000-0000-4000-8000-000000000002'
curl -X POST "https://api-795734133708.asia-east1.run.app/v1/advances/$advance_id/disbursal" \
-H "Authorization: Bearer $SSC_API_KEY"Whichever mode you choose, the advance resource remains the source of truth for lifecycle status, and the full endpoint contract lives in the Disbursals reference.