Fetch list of transactions for a given date

this api Fetch list of transactions for a given date


GRAPHQL


Headers

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