Dokumentacijav1
Expenses

Replace the expense file

POST/expenses/{expense}/file

Replaces only the stored file; every other field is kept. Fires the expense.updated webhook.

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.

Užklausos turinys

multipart/form-data

TypeScript tipai

Naudokite request body tipą TypeScript kode.

Multipart body of POST /expenses/{expense}/file.

Atsakymo turinys

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/expenses/string/file" \  -F file="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