v1

latestOpenAPI 3.0.32026-07-2632131.4 MB
Expenses (only available for accounting add-on users)

Add attachments to expense

Adds one or more attachments to an existing expense without replacing previously added ones.

Accepts up to 10 attachments per request. Each attachment requires: url, urlThumbnail, extension, and fileName.

post/expenses-api/expenses/{id}/attachments

Path parameters

idstring required
Example:67890123-e89b-12d3-a456-426614174000

Expense ID (UUID)

Request body

Example request

{
  "attachments": [
    {
      "url": "https://cdn.filepicker.io/api/file/bBnKEk8TlmJAUHcLApRx",
      "urlThumbnail": "https://cdn.filepicker.io/api/file/bBnKEk8TlmJAUHcLApRx",
      "extension": "pdf",
      "fileName": "receipt.pdf"
    }
  ]
}

Response

Attachments successfully added to expense