Attachments
TheAccountingAttachment
object is used to represent a company's attachments.The AccountingAttachment object
Properties
id
StringRequired
remote_id
StringOptional
The third-party API ID of the matching object.
file_name
StringOptional
The attachment's name.
file_url
StringOptional
The attachment's url.
remote_was_deleted
BooleanRequired
Indicates whether or not this object has been deleted on the third-party.
The AccountingAttachment object
JSON
{"id": "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id": "1018270","file_name": "invoice.png","file_url": "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png","remote_was_deleted": true}
GET
/attachments
Returns a list of AccountingAttachment
objects.
Header Parameters
Authorization
StringRequired
Token-based authentication with required prefix "Bearer"
X-Account-Token
StringRequired
Token identifying the end user.
Query & Path Parameters
created_after
StringOptional
If provided, will only return objects created after this datetime.
created_before
StringOptional
If provided, will only return objects created before this datetime.
cursor
StringOptional
The pagination cursor value.
include_deleted_data
BooleanOptional
Whether to include data that was deleted in the third-party service.
include_remote_data
BooleanOptional
Whether to include the original data Merge fetched from the third-party to produce these models.
modified_after
StringOptional
If provided, will only return objects modified after this datetime.
modified_before
StringOptional
If provided, will only return objects modified before this datetime.
page_size
IntegerOptional
Number of results to return per page.
remote_id
StringOptional
The API provider's ID for the given object.
Response
JSON
{"next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw","previous": "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ","results": [{"id": "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id": "1018270","file_name": "invoice.png","file_url": "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png","remote_was_deleted": true}]}
Field support by platform

Xero
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
file_url
Stringfile_name
Stringremote_id
String
Sage Business Cloud Accounting
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
file_name
Stringremote_id
String
Quickbooks Online
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
file_url
Stringfile_name
Stringremote_id
StringHint: Use the /linked-accounts endpoint to pull platform support information.
GET
/attachments/{id}
Returns an AccountingAttachment
object with the given id
.
Header Parameters
Authorization
StringRequired
Token-based authentication with required prefix "Bearer"
X-Account-Token
StringRequired
Token identifying the end user.
Query & Path Parameters
id
StringRequired
include_remote_data
BooleanOptional
Whether to include the original data Merge fetched from the third-party to produce these models.
Response
JSON
{"id": "ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id": "1018270","file_name": "invoice.png","file_url": "https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png","remote_was_deleted": true}
Field support by platform

Xero
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
file_url
Stringfile_name
Stringremote_id
String
Sage Business Cloud Accounting
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
file_name
Stringremote_id
String
Quickbooks Online
Merge supports Passthrough Requests to this platform's API
Supported Response Fields
file_url
Stringfile_name
Stringremote_id
StringHint: Use the /linked-accounts endpoint to pull platform support information.