DocsAdvanced FeaturesPartner Withdraw Flow

Partner-Provided Withdraw Flow

In partner-provided withdraw mode, the partner handles the crypto leg and confirms settlement to Settle, which then executes the fiat payout.

Withdraw Lifecycle

1

Partner creates withdraw order

Partner submits a withdraw order with settlementMode = "partner". Settle returns a settlementId.

2

User sends crypto to partner

The user transfers crypto directly to the partner-controlled address.

3

Partner confirms settlement

Partner calls the confirm-settlement endpoint with the crypto transaction hash.

4

Settle executes fiat payout

Settle processes the fiat payout to the user's bank account in ARS.

5

Order completed

The order is marked as completed once fiat has been sent.

To activate partner-provided settlement for withdrawals, add the settlementMode field to the withdraw creation request:

POST/api/orders/withdraws

Additional Field

settlementMode (string, "partner")

Note: The response will include a settlementId and confirmSettlementUrl that you will need to confirm the crypto settlement.

Confirm Settlement

After the partner receives the crypto from the user, call this endpoint to confirm settlement. The request must include the HMAC signature headers for verification.

POST/api/orders/withdraws/{orderId}/confirm-settlement

Headers

Content-Type: application/jsonX-Timestamp: unix-timestampX-Signature: HMAC_SHA256(secret, timestamp + rawBody)

Request Body Fields

settlementId, cryptoTxHash, confirmedAt (ISO 8601)

Status Transitions

Partner-provided withdraw orders progress through the following statuses:

StatusDescription
AwaitingPartnerSettlementOrder created, waiting for partner to confirm crypto receipt.
SettlementConfirmedPartner has confirmed crypto settlement via the confirm endpoint.
CompletedFiat has been delivered. Order is finalized.

Next Steps