The advance flow

Every advance moves through the same four steps: your backend quotes the merchant's pending disbursals, turns the quote into an advance, the merchant confirms on a hosted page, and the funds are prepared for transfer. This guide walks the whole lifecycle; the Offers, Advances, and Disbursals references cover every field.

  1. 1

    Create an offer

  2. 2

    Create an advance

  3. 3

    Merchant confirms

  4. 4

    Prepare or hand off the disbursal

The advance flow as a sequence: the API returns an offer_id for the quote and a confirmation_url for the advance, the partner redirects the merchant to confirm, then the disbursal is prepared in the selected mode. Signed webhooks report each lifecycle change.

Create an Offer

POST /v1/offers quotes one short-lived blended offer. An offer can cover one or several pending disbursals with different disbursal dates — send a disbursals array where each line has a unique partner_ref, an integer-centavo amount, and its own original_disbursal_date. This matters because a merchant often has multiple payouts in flight; one offer advances them all in a single confirmed transaction.

POST /v1/offers

The response returns the offer_id you need for the next step, per-line fees, and the blended totals. Offers expire ten minutes after creation — quote when the merchant is looking, and request a fresh offer if the underlying disbursals change.

The Blended Rate

Each disbursal line is priced individually: the fee rate depends on how many days remain until the line's original_disbursal_date (the sooner your payout would have arrived anyway, the cheaper the advance). The table shows illustrative sample rates only — actual rates are set per partner in your partner agreement and may differ from these examples.

Days until original disbursal (sample)Sample fee rate
0–1100 bps (1.00%)
2150 bps (1.50%)
3200 bps (2.00%)
4250 bps (2.50%)
5–30300 bps (3.00%)

Each line's fee is amount × fee_bps / 10,000, rounded to the nearest centavo. The offer's aggregate fee_bps is the blended rate: the total fee divided by the total amount, expressed in basis points.

A worked example with two lines, using small round numbers so you can check the math yourself. Total amount ₱200,000.00, total fee ₱4,500.00, net proceeds ₱195,500.00. The blended rate is 450000 × 10000 / 20000000 = 225 bps (2.25%) — the blend is weighted by amount, so with two equal-sized lines it lands exactly halfway between the two line rates. The response reports both views: fee_bps on each line and the blended fee_bps on the offer, plus the fee_schedule_version that produced them.

LineAmountDays outRateFee
1₱100,000.00 (10000000)2150 bps₱1,500.00 (150000)
2₱100,000.00 (10000000)5300 bps₱3,000.00 (300000)

Create an Advance

POST /v1/advances converts the offer into a financing request before the offer expires. Send the offer_id, your partner_merchant_id and stable partner_ref, the merchant's bank details for the payout, and optionally a display_name, return_url, metadata, and the disbursal_mode.

POST /v1/advances

The response returns the advance_id, the terms pinned from the offer, and the confirmation_url the merchant must visit. The advance itself expires one hour after creation if the merchant does not confirm. An advance.created webhook is emitted immediately.

Merchant Confirmation

Redirect the merchant's browser to confirmation_url. It opens a hosted Shopsuey Capital page where the merchant reviews the quoted terms and confirms — or declines. The link is single-use and short-lived, so redirect promptly after creating the advance.

If you provided a return_url, the merchant is sent back to you afterwards. Treat that return strictly as a user-interface hint: the authoritative outcome is the advance.confirmed (or advance.cancelled) webhook, and GET /v1/advances/:id is always available to reconcile.

Choose Who Prepares the Disbursal

After confirmation, someone has to prepare the actual transfer. The disbursal_mode you set at creation decides who:

  • ops (the default) — Shopsuey Ops prepares the disbursal; you just consume webhooks.
  • partner — your backend calls POST /v1/advances/:id/disbursal once the advance is confirmed. Calling it earlier fails with 422.

Disbursal responsibility explains the trade-off and shows the preparation call in each language.