v1

latestOpenAPI 3.0.02026-07-24126202516.7 KB
Sub-wallets

Fund transfers

Fund transfers between a wallet account and its sub-wallet as well as between any sub-wallets that belong to the same wallet account. The source and destination accounts must be active and use the same currency.

patch/sub_wallets/transfer

Request body

sourcestring required

Account ID or sub-wallet ID from which fund is to be debited

destinationstring required

Account ID or sub-wallet ID that will receive the fund

amountinteger required

amount in cents that will be transfered

Example request

{
  "source": "31b9e5ec-06d3-41e7-bc3b-a2c18890add6",
  "destination": "3eb78280-b8b6-013a-c1b7-5e50adfe91ad",
  "amount": 1000
}

Response

OK

Example response

{
  "transactions": {
    "type": "fund_transfer",
    "type_method": "misc",
    "state": "successful",
    "account_id": "d9418820-b8b5-013a-09ed-5e50adfe91ad",
    "currency": "AUD",
    "debit_credit": "debit",
    "marketplace": {
      "uuid": "513677b8-be51-49e8-8603-d116b31a5ee9"
    },
    "related": {
      "transactions": [
        {
          "account_type": "sub_wallet_account"
        }
      ]
    },
    "links": {
      "self": "/sub_wallets/transfer"
    }
  }
}