Initiate Student to Student Transactions

this api Initiate Student to Student Transactions


GRAPHQL


Headers

FieldsTypeDescriptionExampleO/MData Management
URLstring{base_url}/graphql/loop-merchant-payments-serviceM
GRAPHQLstringMUTATIONM
content-typestringJSONapplication/jsonM
x-access-tokenstringSession token with validitytokenMMerchant's token

Request

{
  mutation {
    receive_payment(
      member_id: "ABCD1234",
      payer_pin: "0000",
      amount: 100.00,
      amount_type: "expense",
      refNo: "TXN01"
    ){
      _id
      approval_status
      debit_account
      credit_account
      amount
      amount_type
      refNo
      success
    }
  }
}

Success

{
  "_id": "8",
  "approval_status": "approved",
  "debit_account": "ABCD1234",
  "credit_account": "MER01",
  "amount": 100.00,
  "amount_type": "expense",
  "refNo": "TXN01",
  "success": true
}

Error

{
  
}