Skip to main content
GET
/
transactions
List transactions
curl --request GET \
  --url http://localhost:3002/api/v1/transactions \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": [
    {
      "id": "trx_123",
      "transaction_code": "TRX-20240101-001",
      "total_amount": 250000,
      "status": "completed",
      "payment_method": "cash",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 20,
    "total": 150,
    "total_pages": 8
  }
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Query Parameters

page
integer
default:1
limit
integer
default:20

Response

200 - application/json

Transactions list

success
boolean
data
object[]
meta
object