Attachments
Upload attachment
Upload attachment
post/accounting/attachments/{reference_type}/{reference_id}
Path parameters
reference_type'invoice' | 'bill' | 'expense' | 'expense-report' | 'quote' required
The reference type of the document.
reference_idstring required
A unique identifier for an object.
Example:12345
The reference id of the object to retrieve.
Query parameters
rawboolean
Include raw response. Mostly used for debugging purposes
Headers
x-apideck-metadatastring json required
Metadata to attach to the attachment file (JSON string)
x-apideck-consumer-idstring required
ID of the consumer which you want to get or push data from
x-apideck-app-idstring required
The ID of your Unify application
x-apideck-service-idstring
Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
content-typestring required
The content-type of the file being uploaded
Response
Attachments
Example response
{
"status_code": 200,
"status": "OK",
"service": "google-drive",
"resource": "files",
"operation": "add",
"data": {
"id": "12345"
}
}