attachments create

POST {{baseUrl}}/attachments

Creates an AccountingAttachment object with the given values.

Request Params

KeyDatatypeRequiredDescription
is_debug_modebooleanWhether to include debug fields (such as log file links) in the response.
run_asyncbooleanWhether or not third-party updates should be run asynchronously.

Request Body

{"model"=>{"file_name"=>"invoice.png", "file_url"=>"https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png", "company"=>"595c8f97-2ac4-45b7-b000-41bdf43240b5"}}

HEADERS

KeyDatatypeRequiredDescription
X-Account-Tokenstring(Required) Token identifying the end user.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"errors":[{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"veniam minim fugiat"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"consectetur officia et"}}],"model":{"id":"ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id":"1018270","remote_data":[{"path":"ut fugiat exercitation amet","data":{"quisa_b":{}}},{"path":"Excepteur dolore sed","data":{"irure27":{},"deserunt04":{},"dolor1d":{},"ullamco6f_":{},"nostruda":{}}}],"file_name":"invoice.png","file_url":"https://merge-brand.s3.amazonaws.com/20210315/rect-logo-270x80%402x.png","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","remote_was_deleted":false,"field_mappings":{"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}}},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"laboris eu enim"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"sint reprehenderit ut consectetur aliquip"}}],"logs":[{"dashboard_view":"https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832","log_id":"99433219-8017-4acd-bb3c-ceb23d663832","log_summary":{"method":"POST","status_code":200,"url":"https://harvest.greenhouse.io/v1/candidates/"}},{"dashboard_view":"https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832","log_id":"99433219-8017-4acd-bb3c-ceb23d663832","log_summary":{"method":"POST","status_code":200,"url":"https://harvest.greenhouse.io/v1/candidates/"}}]}