Initiate Student to Merchant Transactions
this api Initiate Student to Merchant Transactions
GRAPHQL
Headers
Fields | Type | Description | Example | O/M | Data Management |
---|---|---|---|---|---|
URL | string | {base_url}/graphql/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 | Merchant'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
{
}