List expenses
/expensesReturns the business's expenses, newest first, 50 per page. Use ?page= to paginate; the page size cannot
be changed.
Autorizacija
bearerAuth Business token created in the app under Settings, Integrations, API. The token is scoped to exactly one business, has no expiry and is shown only once. Send it as Authorization: Bearer <token> together with Accept: application/json.
Vieta: header
Užklausos parametrai
Page number, starting at 1. The page size is fixed at 50.
1Atsakymo turinys
application/json
application/json
application/json
curl -X GET "https://example.com/expenses"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "date": "2019-08-24", "total": 0, "currency": "string", "seller": "string", "created_at": 0, "updated_at": 0 } ], "meta": { "current_page": 1, "from": 1, "last_page": 1, "path": "string", "per_page": 0, "to": 1, "total": 0 }}invoice.deleted Webhook
Sent when a finalized invoice is deleted. The payload contains only the id of the deleted invoice. Each event is attempted up to 3 times: the first delivery, then retries after 10 s and 100 s; only a 2xx response counts as success. The request times out after 10 seconds.
Create an expense POST
Creates an expense from a multipart/form-data body. file is required and must have one of the extensions jpeg, jpg, bmp, gif, pdf, png, tiff, xlsx, xls, doc, docx or odf. vat, invoice_number and the file are stored but not returned; fetch the file with the download endpoint. Fires the expense.created webhook.