Transfer Pending Funds
This endpoint allows merchants to transfer funds internally from one merchant account to another within the VelaFi system. It enables seamless movement of balance for operational or accounting purposes.
Endpoint Information
Request Header:
X-BH-TOKEN: ******
Request Header:
Content-Type: application/json
Request Method: POST
Request Path:
/v2/merchant/transfer
Authorization Required: Yes
Request Parameters
The request body must include the following fields:
{
"clientId": "test01", // (string: custom client-defined ID for tracking) required
"fromMerchantId": 434, // (number: ID of the sender merchant) required
"toMerchantId": 5, // (number: ID of the recipient merchant) required
"fiat": "MXN", // (string: Name of the fiat currency (e.g., "MXN","ARS")) required
"paymentId": 17, // (number: Payment ID (e.g., 17,18)) required
"fiatAmount": 10 // (decimal: amount to transfer) required
}
Response Structure
The response will return the following fields:
{
"code": 200,
"msg": "SUCCESS",
"data": {
"clientId": "test01", // (string: client-defined ID for the transaction)
"fromId": 521006138624569344, // (number: Funding Records ID)
"toId": 521006138641346560, // (number: Funding Records ID)
"fiat": "MXN", // (string: token used in transfer)
"fiatAmount": "10", // (string: transferred amount)
"totalFiatAmount": "12", // (string: total transferred amount)
"fee": "2", // (string: transferred fee amount)
"createTime": 1746694343261 // (number: timestamp of transaction creation in milliseconds)
}
}
Example Request (MXN)
{
"clientId": "test-mxn",
"fromMerchantId": 434,
"toMerchantId": 5,
"fiat": "MXN",
"paymentId": 17,
"fiatAmount": 10
}
Example Response (MXN)
{
"code": 200,
"msg": "SUCCESS",
"data": {
"clientId": "test-mxn",
"fromId": 521006138624569344,
"toId": 521006138641346560,
"fiat": "MXN",
"fiatAmount": "10",
"totalFiatAmount": "12",
"fee": "2",
"createTime": 1746694343261
}
}
Example Request (ARS)
{
"clientId": "test-ars",
"fromMerchantId": 434,
"toMerchantId": 5,
"fiat": "ARS",
"paymentId": 18,
"fiatAmount": 10
}
Example Response (ARS)
{
"code": 200,
"msg": "SUCCESS",
"data": {
"clientId": "test-ars",
"fromId": 521006138624569345,
"toId": 521006138641346561,
"fiat": "ARS",
"fiatAmount": "10",
"totalFiatAmount": "12",
"fee": "2",
"createTime": 1746694343261
}
}
Notes
Ensure that all provided IDs (merchantId, paymentId) are valid and active.
The
clientId
can be used by clients to trace or de-duplicate requests.This operation is only valid for merchant accounts with sufficient balance.
Supported fiat currency are:
MXN
(Mexican Peso): usepaymentId = 17
ARS
(Argentine Peso): usepaymentId = 18
Last updated