Fetch list of transactions for a given date
this api Fetch list of transactions for a given date
GRAPHQL
Headers
Fields | Type | Description | Example | O/M | Data Management |
---|---|---|---|---|---|
URL | string | {base_url}/graphql/loop-merchant-payments-service | M | ||
GRAPHQL | string | QUERY | M | ||
content-type | string | JSON | application/json | M | |
x-access-token | string | Session token with validity | token | M | Merchant's token |
Request
{
query {
get_transaction_by_date(date: "04-06-2020") {
transactions {
_id
approval_status
debit_account
credit_account
amount
amount_type
refNo
initiated_ts
details {
student_id
student_name
}
}
}
}
}
Success
"transactions": [
{
"_id": "5ed8b9990c0f1fc2769301a4",
"approval_status": "internally_approved",
"debit_account": "5e69deba5cef29842defb0ee",
"credit_account": "5ebe33d8d717d70ca1a6d312",
"amount": 30,
"amount_type": "expense",
"refNo": "5e69deba5cef29842defb0ee-1591261585095",
"initiated_ts": 1591261593181,
"details": {
"student_id": "1004",
"student_name": "Abhishek Dixit"
}
},
{
"_id": "5ed8b9a10c0f1f59899301a5",
"approval_status": "internally_approved",
"debit_account": "5e69deba5cef29842defb0ee",
"credit_account": "5ebe33d8d717d70ca1a6d312",
"amount": 20,
"amount_type": "expense",
"refNo": "5e69deba5cef29842defb0ee-1591261592982",
"initiated_ts": 1591261601149,
"details": {
"student_id": "1004",
"student_name": "Abhishek Dixit"
}
}
]
Error