Query withdrawals
Retrieving all your withdrawals
const bodyJSON = {
variables: {
input: {
},
},
query: `
query ($input: WithdrawalQueryInput!) {
withdrawals(input: $input) {
id
recipient {
firstName lastName
}
}
}`,
};
Retrieving some of your withdrawals
const bodyJSON = {
variables: {
input: {
statuses: "CONFIRMED",
maxCreatedAt: "2020-01-29",
},
},
query: `
query ($input: WithdrawalQueryInput!) {
withdrawals(input: $input) {
id createdAt
}
}`,
};
Retrieving a single withdrawal
const bodyJSON = {
variables:{
input: "5b04c62ec0bf606bf216ae21",
},
query: `
query ($input: ID) {
withdrawal(id: $input) {
status createdAt amount
}
}`,
};
Last updated
Was this helpful?