Parameters
| Parameter |
Type |
Required |
| transfer_id |
UUID |
true |
GraphQL
query transfer (
$transfer_id: UUID!
) {
transfer (
transfer_id: $transfer_id
) {
id
state
source_amount
source_currency
destination_amount
destination_currency
purpose_of_payment
fee
rate
reference
created_date
expected_delivery_date
user {
id
identifier
email
first_name
last_name
admin
}
wallet {
id
}
beneficiary {
id
type
email
phone
tax_number
first_name
last_name
address1
address2
city
state_province_region
postal_code
country
contact_first_name
contact_last_name
business_name
name_on_bank_account
swift_bic
account_number
routing_code
currency
bank_name
branch_name
bank_address1
bank_address2
bank_city
bank_state_province_region
bank_postal_code
bank_country
}
entity {
id
type
business_name
first_name
last_name
state
email
phone
address1
address2
city
state_province_region
postal_code
country
}
funding_instructions {
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 transfer ($transfer_id: UUID!) {
transfer (transfer_id: $transfer_id) {
id
state
user {
id
}
beneficiary {
id
}
entity {
id
}
wallet {
id
}
fee
source_amount
source_currency
destination_amount
destination_currency
purpose_of_payment
rate
reference
created_date
error
}
}`,
variables: {"transfer_id":""}
});
var config = {
method: 'post',
url: 'https://sandbox.external.routefusion.com/graphql',
headers: {
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
{
"data": {
"transfer": {
"id": "a8ab283d-cceb-40ec-bae3-6ba56489238b",
"state": "processing",
"source_amount": "100",
"source_currency": "USD",
"destination_amount": "1879.07",
"destination_currency": "MXN",
"purpose_of_payment": "treasury",
"fee": "0.00",
"rate": "18.790731445",
"reference": "treasury",
"created_date": "2024-08-01T21:18:37.126Z",
"expected_delivery_date": "2024-08-01T21:18:42.264Z",
"user": {
"id": "40e0000f-cd03-4111-97cc-18ab3bd54d4c",
"identifier": "michael@routefusion.com",
"email": "michael@routefusion.com",
"first_name": "Michael",
"last_name": "Cramer",
"admin": true
},
"wallet": {
"id": "44d279ef-d7ba-4831-a008-2a83535d7ef7"
},
"beneficiary": {
"id": "b4566679-9d90-4ca8-b91d-31e5a67949bf",
"type": "business",
"email": "johnny3@cool.com",
"phone": "",
"tax_number": "BNM840515VB1",
"first_name": null,
"last_name": null,
"address1": "",
"address2": "",
"city": "",
"state_province_region": null,
"postal_code": null,
"country": "MX",
"contact_first_name": "Johnny",
"contact_last_name": "Cool",
"business_name": "Johnny Cool 3",
"name_on_bank_account": "Johnny Cool 3",
"swift_bic": null,
"account_number": "032180000118359719",
"routing_code": "",
"currency": "MXN",
"bank_name": "Banamex",
"branch_name": "",
"bank_address1": "127 20 de Noviembre",
"bank_address2": "",
"bank_city": "Ciudad de México",
"bank_state_province_region": "Ciudad de México",
"bank_postal_code": "06090",
"bank_country": "MX"
},
"entity": {
"id": "0196d8f4-6f80-447a-952c-4e0fd08efbfc",
"type": "business",
"business_name": "Johnny Cool Inc",
"first_name": null,
"last_name": null,
"state": "verified",
"email": "test@test.com",
"phone": "+16035484187",
"address1": "987 Main Street",
"address2": "",
"city": "Buda",
"state_province_region": "TX",
"postal_code": "78610",
"country": "US"
},
"funding_instructions": {
"type": "local",
"message": "Add the reference to the wire under \"reference\", \"comment\", \"notes\" or a similar field",
"amount": null,
"currency": "USD",
"bank_name": "BBVA MEXICO SA",
"bank_address1": "PASEO DE LA REFORMA NO. 510 COL. JUÁREZ",
"bank_address2": null,
"bank_city": null,
"bank_state_province_region": "CIUDAD DE MÉXICO",
"bank_postal_code": "06600",
"bank_country": "MX",
"account_number": "012180001186314417",
"routing_code": null,
"swift_bic": "BCMRMXMMPYM",
"account_holder_name": "MEXIPAGOS SA DE CV",
"account_holder_address1": "AV INSURGENTES SUR 540 203",
"account_holder_address2": "ROMA SUR",
"account_holder_city": "CUAUHTEMOC",
"account_holder_state_province_region": "ESTADO DE MEXICO",
"account_holder_postal_code": null,
"account_holder_country": "MX",
"reference": "Johnny Cool Inc"
}
}
}
}