Retrieve Transaction History

GET /stats/transaction-history/

Use the GET /stats/transaction-history/ endpoint to retrieve the transaction history, including detailed records of past transactions.


Parameters

This endpoint does not require any parameters. Simply call the endpoint to fetch the transaction history.


Responses

200 OK

Description: The transaction history was successfully retrieved.

Example Response:

[
  {
    "transaction_id": "TX12345",
    "date": "2024-11-15T14:25:00Z",
    "amount": 150.75,
    "status": "completed",
    "description": "Payment for service request #7890"
  },
  {
    "transaction_id": "TX12346",
    "date": "2024-11-14T09:10:00Z",
    "amount": 80.50,
    "status": "failed",
    "description": "Payment for service request #7889"
  }
]

Last updated