Refund deposits
Return the funds back to the original sender
Refund deposit by ID
const bodyJSON = {
variables: {
id: "6053d4e0e3bc655e0598a742",
input: {
amount: 10,
reason: "sent by mistake",
},
},
query: `
mutation ($id: ID!, $input: RefundDepositInput!) {
refundDeposit(id: $id, input: $input) {
success code message
}
}`,
};mutation($id: ID!, $input: RefundDepositInput!) {
refundDeposit(id: $id, input: $input) {
success
code
message
}
}{
"id": "6053d4e0e3bc655e0598a742",
"input": {
"amount": 10,
"reason": "sent by mistake"
}
}{
"data": {
"refundDeposit": {
"success": true,
"code": "REFUND_SENT",
"message": "Refund initiated successfully"
}
}
}Last updated
Was this helpful?