walletFundingInstructions
Parameters
| Parameter |
Type |
Required |
| wallet_id |
UUID |
true |
GraphQL
query walletFundingInstructions (
$wallet_id: UUID!
) {
walletFundingInstructions (
wallet_id: $wallet_id
) {
type
message
amount
currency
bank_name
bank_address1
bank_address2
bank_city
bank_state_province_region
bank_postal_code
bank_country
account_number
routing_code
swift_bic
account_holder_name
account_holder_address1
account_holder_address2
account_holder_city
account_holder_state_province_region
account_holder_postal_code
account_holder_country
reference
}
}
var axios = require('axios');
var data = JSON.stringify({
query: `query ($wallet_id: UUID!) {
walletFundingInstructions (wallet_id: $wallet_id) {
type
currency
bank_name
bank_address1
bank_city
bank_state_province_region
bank_postal_code
bank_country
account_number
routing_code
swift_bic
}
}`,
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": {
"walletFundingInstructions": {
"type": "wire",
"currency": "AUD",
"bank_name": "Credit Suisse AG",
"bank_address1": "Paradeplatz 8",
"bank_city": "Zurich",
"bank_state_province_region": null,
"bank_postal_code": "8070",
"bank_country": "CH",
"account_number": "CH4204825048336582009",
"routing_code": "",
"swift_bic": "CRESCHZZ80A",
"account_holder_name": "Routefusion"
}
}
}