Openapi
Return expense claims for a scope: the caller's own, everything, awaiting the caller's approval, or ready to reimburse.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidemployeeId?stringuuidfrom?stringdatelimit*integer1 <= value <= 10050offset*integer0 <= value <= 90071992547409910q?stringlength <= 200scope*string"mine""mine""all""to-approve""to-reimburse"status?string"draft""submitted""approved""rejected""reimbursed"to?stringdateReturns expense claims.
application/jsondata*array<>pagination*curl -X GET 'https://app.localhost/api/v1/organizations/123/expenses?employeeId=123e4567-e89b-12d3-a456-426614174000&from=example&limit=1&offset=1&q=example&scope=mine&status=example&to=example'{ "data": [ { "amount": 0, "amountBase": 0, "billable": true, "canDecide": true, "canEdit": true, "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0", "categoryName": "string", "createdAt": "string", "currency": "string", "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "customerName": "string", "decidedAt": "string", "decisionNote": "string", "description": "string", "distanceKm": 0, "employee": { "displayName": "string", "employeeId": "b0e78c8f-8c8b-4410-8293-9239e39d9e17", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b" }, "exchangeRate": 0, "extractionConfidence": 0, "flags": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "limit_exceeded", "message": "string", "relatedExpenseId": "fd4449ef-cf4d-4e2e-906d-5258b8281510", "resolvedAt": "string" } ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "kind": "company", "merchant": "string", "mileageRate": 0, "paymentMethod": "company_card", "perDiemDays": 0, "receiptFileName": "string", "receiptStatus": "attached", "reimbursedAt": "string", "reimbursementReference": "string", "roundTrip": true, "routeFrom": "string", "routeTo": "string", "source": "manual", "spentOn": "2019-08-24", "status": "draft", "submittedAt": "string", "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8", "taskTitle": "string", "tripId": "ab93ac19-a7bf-4885-87b6-6dcba80ee2d5", "tripName": "string", "vatAmount": 0, "vatRate": 0 } ], "pagination": { "hasMore": true, "limit": 1, "offset": 0, "total": 0, "totalIsEstimate": true }}