TruBit Business
🇺🇸 EN 2025/05/08
🇺🇸 EN 2025/05/08
  • 📖 Guides
    • A Gentle Introduction
    • Step-by-Step Guide
    • Creating TruBit Account
    • Creating API Key
      • Safely Store Your API Key
      • Configure Whitelisted IPs
      • Enable API Access
      • Create API Token
    • Sandbox
    • Creating Your Merchant
    • Creating Payment Method
    • Payment Method ID
    • Currencies
    • Pair
    • Creating Webhook Listener
    • Fiat to Crypto (On-Ramp)
    • Crypto to Fiat (Off-Ramp)
    • Fiat to Fiat (Global Payment)
  • 📗 API Reference
    • Basic Configuration
      • API Endpoint
      • Get List of Countries
      • Get List of Fiat Currencies
      • Get List of Crypto Currencies
      • Get Fiat/Crypto Pairs
      • Get Crypto/Fiat Pairs
      • Get Fiat/Fiat Pairs
      • Get Fiat/Crypto Payment Methods
      • Get Crypto/Fiat Payment Methods
      • Get Fiat/Fiat Payment Methods
    • Account
      • Get Account Details
      • Get Crypto Assets Balance
      • Get Crypto Deposit Address
    • Merchant
      • Add Merchant
      • Get a List of Merchants
      • Get a List of Merchant Accounts
      • Retrieve Pending Fund
      • Claim Pending Fund
      • Get Transfer Pending Funds Fee
      • Transfer Pending Funds
      • Retrieve Funding Records
    • Quote
      • Get User Quote for Crypto/Fiat
      • Get User Quote for Fiat/Fiat
    • Payment Method
      • Get Payment Templates
      • Add Payment Method
      • Get Payment Method
      • Delete Payment Method
      • Set Refund Account
    • Order
      • Create a Fiat to Crypto Order
      • Create a Crypto to Fiat Order
      • Create a Fiat to Fiat Order
      • Confirm a Specific Order
      • Retrieve a Specific Order
      • Retrieve a List of Orders
      • Upload Invoice Documents For a Specific Order
    • Webhooks
      • Create Webhook Endpoints
      • Get Webhook Endpoints
      • Update a Webhook
      • Delete a Webhook
      • Fiat/Crypto Order Message Push
      • Fiat/Fiat Order Message Push
      • Funding Records Message Push
  • 🛠️ Error Reference
    • Error and Warning Dictionary
  • 🪄Changelog
    • 🕕Changelog
Powered by GitBook
On this page
  1. 📗 API Reference
  2. Merchant

Transfer Pending Funds

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)
    }
}

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): use paymentId = 17

    • ARS (Argentine Peso): use paymentId = 18

PreviousGet Transfer Pending Funds FeeNextRetrieve Funding Records

Last updated 4 days ago