Expenses
ŽINYNAS
Get an expense
GET
/expenses/{expense}Autorizacija
bearerAuth AutorizacijaBearer <token>
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
Kelio parametrai
expense*string
The expense ID.
Atsakymo turinys
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/expenses/string"{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "date": "2019-08-24", "total": 0, "currency": "string", "seller": "string", "created_at": 0, "updated_at": 0 }}F-sąskaita / DevelopersKas naujo
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.
Delete an expense DELETE
Deletes the expense and its file. Fires the expense.deleted webhook.