Create Attachments
Create attachments in any supported Accounting software
Query parameters
Set to true to include data from the original Accounting software.
Headers
The connection token
Request body
Example request
{
"file_name": "invoice.pdf",
"file_url": "https://example.com/files/invoice.pdf",
"account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"field_mappings": {
"custom_field_1": "value1",
"custom_field_2": "value2"
}
}Response
Example response
{
"file_name": "invoice.pdf",
"file_url": "https://example.com/files/invoice.pdf",
"account_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"field_mappings": {
"custom_field_1": "value1",
"custom_field_2": "value2"
},
"id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
"remote_id": "attachment_1234",
"remote_data": {
"raw_data": {
"additional_field": "some value"
}
},
"created_at": "2024-06-15T12:00:00Z",
"modified_at": "2024-06-15T12:00:00Z"
}Changes
Changed in 4 of the 18 revisions of this API.16
- ○
added the new optional request property
account_idnew-optional-request-property
- ○
added the new optional request property
field_mappingsnew-optional-request-property
- ○
added the new optional request property
file_namenew-optional-request-property
- ○
added the new optional request property
file_urlnew-optional-request-property
- ○
added the optional property
account_idto the response with the201statusresponse-optional-property-added
- ○
added the optional property
created_atto the response with the201statusresponse-optional-property-added
- ○
added the optional property
field_mappingsto the response with the201statusresponse-optional-property-added
- ○
added the optional property
file_nameto the response with the201statusresponse-optional-property-added
- ○
added the optional property
file_urlto the response with the201statusresponse-optional-property-added
- ○
added the optional property
idto the response with the201statusresponse-optional-property-added
- ○
added the optional property
modified_atto the response with the201statusresponse-optional-property-added
- ○
added the optional property
remote_datato the response with the201statusresponse-optional-property-added
- ○
added the optional property
remote_idto the response with the201statusresponse-optional-property-added
- ○
- ○
the endpoint scheme security
bearerwas removed from the APIapi-security-removed
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
bearerwas added to the APIapi-security-added
This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
bearerwas removed from the APIapi-security-removed
- ○