Disbursals represent the transfer preparation step after a merchant confirms an advance. You use this resource only for advances created with disbursal_mode: "partner", where your system—not Shopsuey Ops—is responsible for preparing the merchant payout.
Wait until the advance reaches confirmed, then create its disbursal. The operation is safe to retry and returns the existing pending record when preparation has already occurred.
The Disbursal Object
A prepared partner-managed disbursal exposes the transfer record identifiers and current state defined by the generated API contract.
disbursal_idstring · uuidUnique identifier for the prepared disbursal. disbursal_numberintegerSequential human-readable number assigned by Shopsuey Capital. advance_idstring · uuidIdentifier of the confirmed advance that owns this disbursal. statusstringCurrent transfer state: pending, completed, or failed. A newly prepared disbursal is always pending.
{
"disbursal_id": "00000000-0000-4000-8000-000000000003",
"disbursal_number": 1024,
"advance_id": "00000000-0000-4000-8000-000000000002",
"status": "pending"
}Create a Disbursal
Creates or returns the pending disbursal for an advance that is already confirmed and was created with disbursal_mode: "partner". The endpoint returns 422 invalid_status if the advance is unconfirmed and 422 invalid_disbursal_mode if Shopsuey Ops owns preparation. Preparation itself does not transition the advance or emit an immediate webhook.
The OpenAPI operation ID is prepareAdvanceDisbursal.
idstring · uuid · required · pathThe advance_id to prepare a disbursal for.
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"