This endpoint allows merchants to transfer funds internally from one merchant account to another within the TruBit 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)
}
}