arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Refund deposits

Return the funds back to the original sender

hashtag
Refund deposit by ID

const bodyJSON = {
  variables: {
mutation($id: ID!, $input: RefundDepositInput
{ 
  "id": "6053d4e0e3bc655e0598a742",
  "input": { 
    "amount": 10, 
    "reason": "sent by mistake"
  }
}
{
  "data": {
    "refundDeposit": {
      "success": true,
      "code": "REFUND_SENT",
      "message": "Refund initiated successfully"
    }
  }
}
id: "6053d4e0e3bc655e0598a742",
input: {
amount: 10,
reason: "sent by mistake",
},
},
query: `
mutation ($id: ID!, $input: RefundDepositInput!) {
refundDeposit(id: $id, input: $input) {
success code message
}
}`,
};
!
)
{
refundDeposit(id: $id, input: $input) {
success
code
message
}
}