Advances turn accepted offer terms into a merchant financing request. Create an advance after selecting a valid offer, then redirect the merchant to the returned confirmation_url so they can review and authorize the transaction.
Use the advance resource as the source of truth for the financing lifecycle. Retrieve it when reconciling webhook delivery or checking whether it has been confirmed, disbursed, settled, failed, rejected, cancelled, or expired. An unconfirmed advance expires one hour after creation if the merchant does not confirm.
The Advance Object
An advance records the merchant-confirmed financing lifecycle. Monetary values are integer centavos and rates are integer basis points. Create and retrieve responses expose different top-level views of the same advance.
Create response fields
advance_idstring · uuidUnique identifier for the advance. statusstringLifecycle state. The create response status is always created. expires_atstring · date-timeISO 8601 deadline for merchant confirmation. confirmation_urlstring · uriHosted URL the merchant must visit to review and confirm the advance. amountinteger · centavosAggregate face value across all advance lines. fee_amountinteger · centavosAggregate service fee across all advance lines. net_amountinteger · centavosAggregate amount available to the merchant after the fee. fee_bpsinteger · basis pointsAggregate blended fee rate for the advance. fee_schedule_versionstringPricing schedule version that produced the pinned offer terms. disbursal_modestring · enumControls who prepares disbursal. Defaults to ops; use partner when your backend owns preparation after confirmation. metadataobject · nullableOpaque partner JSON echoed in webhooks. Defaults to null when omitted. first_original_disbursal_datestring · dateEarliest line date, formatted as YYYY-MM-DD. last_original_disbursal_datestring · dateLatest line date, formatted as YYYY-MM-DD. disbursalsarray of advance line objectsAdvance lines copied from the accepted offer.
Retrieve response fields
advance_idstring · uuidUnique identifier for the advance. statusstring · enumCurrent lifecycle state: created, confirmed, disbursed, settled, failed, rejected, cancelled, or expired. amountinteger · centavosAggregate face value across all lines. fee_amountinteger · centavosAggregate service fee across all lines. net_amountinteger · centavosAggregate amount available after the fee. partner_refstringYour idempotent reference for this advance. first_original_disbursal_datestring · dateEarliest line date, formatted as YYYY-MM-DD. last_original_disbursal_datestring · dateLatest line date, formatted as YYYY-MM-DD. expires_atstring · date-timeMerchant-confirmation deadline in ISO 8601 format. created_atstring · date-timeISO 8601 timestamp when the advance was created. confirmed_atstring · date-time · nullableConfirmation timestamp. Defaults to null until the merchant confirms. disbursed_atstring · date-time · nullableDisbursal timestamp. Defaults to null until funds are disbursed. settled_atstring · date-time · nullableSettlement timestamp. Defaults to null until the advance is settled. rejection_reasonstring · nullableReason supplied when finance ops rejects the advance. Defaults to null otherwise. disbursal_modestring · enumSelected ops or partner preparation mode. Creation defaults to ops when omitted. metadataobject · nullableOpaque partner JSON echoed in webhooks. Defaults to null when omitted. disbursalsarray of advance line objectsLines copied from the accepted offer.
The retrieve response contains conditional lifecycle fields: confirmed_at, disbursed_at, settled_at, and rejection_reason remain null until applicable. Unlike the create response, it includes partner_ref and created_at; it does not include confirmation_url, aggregate fee_bps, or fee_schedule_version.
Advance line fields
advance_line_idstring · uuidUnique identifier for this advance line. offer_line_idstring · uuidIdentifier of the accepted offer line that produced it. line_numberintegerOne-based position of the line in the advance. partner_refstring · nullableYour unique reference for the underlying disbursal. Forward-billing lines may remain null if the offer was quoted before the partner generated a final line ID. transactionsjson · nullableFree-form partner JSON copied from the originating offer line. amountinteger · centavosFace value of this line. fee_amountinteger · centavosService fee allocated to this line. net_amountinteger · centavosAmount available from this line after its fee. fee_bpsinteger · basis pointsFee rate for this line, distinct from the create response's aggregate blended rate. original_disbursal_datestring · dateOriginal expected disbursal date, formatted as YYYY-MM-DD.
The line fee_bps is the line's fee rate in basis points, distinct from the create response's aggregate blended rate.
{
"advance_id": "00000000-0000-4000-8000-000000000002",
"status": "confirmed",
"amount": 250000,
"fee_amount": 4375,
"net_amount": 245625,
"partner_ref": "ADV-EXAMPLE-001",
"first_original_disbursal_date": "2026-07-15",
"last_original_disbursal_date": "2026-07-15",
"expires_at": "2026-07-12T09:00:00.000Z",
"created_at": "2026-07-12T08:00:00.000Z",
"confirmed_at": "2026-07-12T08:10:00.000Z",
"disbursed_at": null,
"settled_at": null,
"rejection_reason": null,
"disbursal_mode": "partner",
"metadata": null,
"disbursals": [
{
"advance_line_id": "00000000-0000-4000-8000-000000000021",
"offer_line_id": "00000000-0000-4000-8000-000000000011",
"line_number": 1,
"partner_ref": null,
"transactions": [
"txn-001"
],
"amount": 250000,
"fee_amount": 4375,
"net_amount": 245625,
"fee_bps": 175,
"original_disbursal_date": "2026-07-15"
}
]
}Create an Advance
Requires offer_id, partner_merchant_id, partner_ref, and bank details. Optional inputs include display_name, return_url, metadata, and disbursal_mode; the mode defaults to ops. Redirect the merchant to the returned confirmation_url. A repeated partner_ref returns the existing advance, and an Idempotency-Key header additionally protects the request in transit.
The OpenAPI operation ID is createAdvance.
offer_idstring · uuid · requiredOffer ID pinning the terms for this advance. partner_merchant_idstring · requiredPartner-assigned merchant identifier. partner_refstring · requiredPartner-assigned reference for this advance. Repeating it returns the existing advance.
bankobject · requiredDisbursal bank account details.
display_namestring · optionalDisplay name for the merchant. return_urlstring · uri · optionalURL to redirect the merchant to after confirmation. Treat it as a UI hint only — the advance.confirmed webhook is authoritative. disbursal_modestring · enum · optionalops (default) or partner — who prepares the disbursal after confirmation. metadataobject · nullable · optionalOpaque JSON object echoed back in every webhook for this advance.
curl -X POST "https://api-795734133708.asia-east1.run.app/v1/advances" \
-H "Authorization: Bearer $SSC_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: advance-2026-07-17-001' \
--data '{
"offer_id": "00000000-0000-4000-8000-000000000001",
"partner_merchant_id": "merchant_example_001",
"display_name": "Merchant Example",
"bank": {
"bank_code": "BANK_EXAMPLE",
"account_number": "acct_example_1234",
"account_name": "Merchant Example"
},
"partner_ref": "ADV-EXAMPLE-001",
"return_url": "https://partner.example/advances/return",
"disbursal_mode": "partner"
}'Retrieve an Advance
Returns the current advance record. Use it to reconcile webhook delivery, a timed-out cancellation request, or a status transition. A missing identifier returns 404.
The OpenAPI operation ID is getAdvance.
idstring · uuid · required · pathThe advance_id to retrieve.
advance_id='00000000-0000-4000-8000-000000000002'
curl "https://api-795734133708.asia-east1.run.app/v1/advances/$advance_id" \
-H "Authorization: Bearer $SSC_API_KEY"Cancel an Advance
Cancels an advance that the merchant has not yet confirmed and returns the updated record with status cancelled. Once an advance is confirmed it can no longer be cancelled — attempting it fails with 422, since the merchant has already agreed to the terms.
The OpenAPI operation ID is cancelAdvance. Cancellation is a state transition rather than a creation: if the request times out, retrieve the advance and check its status instead of retrying blindly. An advance.cancelled webhook is emitted on success.
idstring · uuid · required · pathThe advance_id to cancel.
advance_id='00000000-0000-4000-8000-000000000002'
curl -X POST "https://api-795734133708.asia-east1.run.app/v1/advances/$advance_id/cancel" \
-H "Authorization: Bearer $SSC_API_KEY"