Skip to main content
PUT
/
v1
/
wallet
/
external
/
priority
Update External Wallet Priority
curl --request PUT \
  --url https://api.example.com/v1/wallet/external/priority \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-key: <x-client-key>' \
  --data '
{
  "wallets": [
    {
      "id": 123,
      "priority": 123
    }
  ]
}
'
{
  "success": true
}
Update the priority order of external wallets for transaction funding. When a transaction is initiated, wallets are checked sequentially in this order until one with sufficient balance is found to fund the entire transaction. Only one wallet funds each transaction — partial funding from multiple wallets is not supported.

Authentication

x-client-key
string
required
Your public API client key
Authorization
string
required
Bearer token for authentication

Request Body

wallets
array
required
Array of wallet priority updates

Response

success
boolean
Whether priority update was successful
{
  "success": true
}
curl -X PUT "https://dev.api.baanx.com/v1/wallet/external/priority" \
  -H "x-client-key: YOUR_CLIENT_KEY" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "wallets": [
      {
        "id": 552,
        "priority": 1
      },
      {
        "id": 551,
        "priority": 2
      }
    ]
  }'

Important Notes

Single-Wallet Funding: Only ONE wallet funds each transaction. The platform checks wallets in priority order and uses the first one with sufficient balance to cover the ENTIRE transaction cost. Partial funding from multiple wallets is NOT supported.
Update All Wallets: You must provide priority values for ALL registered external wallets. Partial updates may result in unexpected behavior.
Unique Priorities: Each wallet must have a unique priority value. Duplicate priorities will cause validation errors.
Transaction Failure: If ALL priority wallets have insufficient balance to cover the full transaction cost, the transaction will fail. Ensure at least one wallet always has adequate funds.