createWalletTransfer
Parameters
| Parameter | Type | Required |
|---|---|---|
| source_amount | String | false |
| destination_amount | String | false |
| source_wallet_id | UUID | true |
| destination_wallet_id | UUID | true |
GraphQL
mutation CreateWalletTransfer(
$destination_amount: String,
$source_amount: String,
$source_wallet_id: UUID,
$destination_wallet_id: UUID
) {
createWalletTransfer(
destination_amount: $destination_amount,
source_amount: $source_amount,
source_wallet_id: $source_wallet_id,
destination_wallet_id: $destination_wallet_id
)
}
query
string
Defaults to {}
``200 200
json
``400 400
NodeShell
xxxxxxxxxx
// mutation createWallet
var axios = require('axios');
var data = JSON.stringify({
query: `mutation ($entity_id: UUID!, $currency: ISO4217!) {
createWallet (entity_id: $entity_id, currency: $currency)
}`,
variables: {"entity_id":"43033d1c-7bf0-4462-a6fe-a74aa1869725", "currency": "MXN"}
});
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);
});