cURL
curl --request GET \ --url https://api.example.com/api/expenses \ --header 'Authorization: <authorization>' \ --header 'organization-id: <organization-id>'
{ "pagination": { "total": 100, "page": 1, "pageSize": 10 }, "data": [ { "id": 1, "totalAmount": 1000, "currencyCode": "USD", "exchangeRate": 1.2, "paymentAccountId": 1, "referenceNo": "EXP-2024-001", "userId": 1, "paymentDate": "2024-03-20T10:00:00Z", "payeeId": 1, "landedCostAmount": 800, "allocatedCostAmount": 200, "invoicedAmount": 0, "branchId": 1, "createdAt": "2024-03-20T10:00:00Z", "isPublished": true, "unallocatedCostAmount": 200, "localAmount": 1200, "localLandedCostAmount": 960, "localAllocatedCostAmount": 240, "localUnallocatedCostAmount": 240, "billableAmount": 1000, "categories": [ { "id": 1, "amount": 100, "allocatedCostAmount": 50, "expenseAccountId": 1, "description": "Office supplies for Q1", "unallocatedCostAmount": 50, "projectId": 1 } ], "description": "Office supplies and equipment", "publishedAt": "2024-03-20T10:00:00Z" } ] }
Value must be 'Bearer ' where is an API key prefixed with 'bc_' or a JWT token.
"Bearer bc_1234567890abcdef"
Required if Authorization is a JWT token. The organization ID to operate within.
The item list has been successfully retrieved.
Pagination metadata
Show child attributes