Skip to main content
POST
Claim Pending Funds
Use this endpoint to initiate a withdrawal from a merchant’s Pending Fund account. Specify the merchant, fiat currency, amount, and the target payment method ID (obtainable from GET /v2/payments). VelaFi returns a txId you can use to track the withdrawal through the Funding Records endpoint. A fee may apply depending on the withdrawal channel.
All requests must include the X-BH-TOKEN header and Content-Type: application/json. Currently supported currencies are MXN and ARS.

Endpoint

POST https://api.velafi.com/v2/merchant/claimfunds

Request Parameters

number
required
The ID of the merchant making the withdrawal.
string
required
Fiat currency to withdraw. Currently supported: MXN, ARS.
number
required
Amount to withdraw in the specified fiat currency.
number
required
ID of the user’s registered payment method to receive the funds. Obtain via GET /v2/payments.
string
Your own unique identifier for this withdrawal, used for idempotency and tracking.

Response Fields

number
HTTP-style response code. 200 indicates success.
string
Human-readable status message, e.g. SUCCESS.
object

Example

cURL
Response
Always supply a unique clientId per withdrawal request. If a duplicate clientId is detected, the API returns the original transaction instead of creating a new one.