Initiate Top up to Student Wallet

this api Initiate Top up to Student Wallet


GRAPHQL


Headers

FieldsTypeDescriptionExampleO/MData Management
URLstring{base_url}/loop-merchant-payments-serviceM
GRAPHQLstringMUTATIONM
content-typestringJSONapplication/jsonM
x-access-tokenstringSession token with validitytokenMCompany 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