wallet

Parameters

Parameter Type Required
wallet_id UUID true

GraphQL

query wallet (
    $wallet_id: UUID!
) {
    wallet (
        wallet_id: $wallet_id
    ) {
        id
        created_date
        currency
        account_number
        routing_code
        swift_bic
        name_on_bank_account
        bank_name
        bank_address1
        bank_address2
        bank_city
        bank_state_province_region
        bank_postal_code
        bank_country
        balance
        available_balance
        organization {
            id
            identifier
        }
        entity {
            id
        }
    }
}
var axios = require('axios');

var data = JSON.stringify({
  query: `query ($wallet_id: UUID!) {
    wallet (wallet_id: $wallet_id) {
      id
      created_date
      organization {
        id
      }
      entity {
        id
      }
      currency
      balance
      available_balance
    }
}`,
  variables: {"wallet_id":"43033d1c-7bf0-4462-a6fe-a74aa1869725"}
});

var config = {
  method: 'post',
  url: 'https://sandbox.external.routefusion.com/graphql',
  headers: {
    'Authorization': 'Bearer <your token>',
    'Content-Type': 'application/json'
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
{
  "data": {
    "wallet": {
      "id": "43033d1c-7bf0-4462-a6fe-a74aa1869725",
      "created_date": "2021-08-19T21:11:01.617Z",
      "organization": {
        "id": "1d315f1e-2455-4cf0-b9a7-cbd43b74e9db"
      },
      "entity": {
        "id": "bec28c73-046b-4366-9e2c-cf043bc2e196"
      },
      "currency": "USD",
      "balance": "0",
      "available_balance": "0"
    }
  }
}