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
Request
- Base URLhttps://open-api.guesty.com/v1
- URLhttps://open-api.guesty.com/v1/expenses-api/expenses/{id}/attachments
- AuthAPI key in header authorization
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
Changes
No recorded changes to this operation across all 2 revisions of this API.