Initiate Top up to Student Wallet
this api Initiate Top up to Student Wallet
GRAPHQL
Headers
Fields | Type | Description | Example | O/M | Data Management |
---|---|---|---|---|---|
URL | string | {base_url}/loop-merchant-payments-service | M | ||
GRAPHQL | string | MUTATION | M | ||
content-type | string | JSON | application/json | M | |
x-access-token | string | Session token with validity | token | M | Company admin token |
Request
{
mutation {
topup_member_wallet(
member_id: "ABCD1234",
amount: 100.00,
amount_type: "expense",
refNo: "CREDIT01"
){
_id
approval_status
debit_account
credit_account
amount
amount_type
refNo
success
}
}
}
Success
{"data":{
"topup_member_wallet":{
"_id": "5",
"approval_status": "approved",
"debit_account": "COLLEGE01",
"credit_account": "ABCD1234",
"amount": 100.00,
"amount_type": "expense",
"refNo": "CREDIT01",
"success": true
}}}
Error