invoices partial update

PATCH {{baseUrl}}/invoices/:id

Updates an Invoice object with the given id.

Request Body

{"model"=>{"contact"=>"3fa85f64-5717-4562-b3fc-2c963f66afa6", "type"=>"ACCOUNTS_PAYABLE", "issue_date"=>"2023-10-01T00:00:00", "due_date"=>"2023-10-31T00:00:00", "line_items"=>[{"id"=>"025fjlc6-6000-430a-848e-aafacbadf4fe", "remote_id"=>"8765432", "unit_price"=>10, "quantity"=>2, "total_amount"=>20}]}}

HEADERS

KeyDatatypeRequiredDescription
X-Account-Tokenstring
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"errors":[{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"ut labore ad laborum elit"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"ut"}}],"model":{"id":"9871b4a9-f5d2-4f3b-a66b-dfedbed42c46","remote_id":"990110","created_at":"2021-09-15T00:00:00Z","modified_at":"2021-10-16T00:00:00Z","type":"ACCOUNTS_RECEIVABLE","contact":"022a2bef-57e5-4def-8ed2-7c41bd9a5ed8","number":"AIQ12546","issue_date":"2020-03-31T00:00:00Z","due_date":"2020-04-15T00:00:00Z","paid_on_date":"2020-04-01T00:00:00Z","memo":"Weekly Payment","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","currency":"USD","exchange_rate":"2.9","total_discount":57825525.089488566,"sub_total":100,"status":"DRAFT","total_tax_amount":5,"total_amount":105,"balance":105,"remote_updated_at":"2020-04-01T00:00:00Z","tracking_categories":["7dc5ca17-d311-44cd-9ce0-333080367a18","6aa0700c-48e1-4c4a-8162-02e6a582df05","8c933d61-8f5b-4360-ac0c-c9dc87bee763"],"payments":["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],"applied_payments":["9017594e-dc33-4113-a5d2-b0f928e34fdd"],"line_items":[{"id":"ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id":"8765432","created_at":"2021-09-15T00:00:00Z","modified_at":"2021-10-16T00:00:00Z","description":"Pickleball lessons","unit_price":50,"quantity":1,"total_amount":50,"currency":"USD","exchange_rate":"2.9","item":"5b3c1341-a20f-4e51-b72c-f3830a16c97b","account":"cd0f32d4-a493-11ec-b909-0242ac120002","tax_rate":"65148a61-1fdd-26f2-15e5-49f961e98972","tracking_category":"urn:uuid:35763272-c771-4d05-325d-573980dde527","tracking_categories":["c391f191-18d8-4d1a-8594-237c5adb4fcd","ea7cc1cd-e1f1-35dd-c803-5e5664050c99"],"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"}},"remote_fields":[{"remote_field_class":{"id":"esse et","display_name":"id dolore non Excepteur","remote_key_name":"ex eu Exce","description":"nostrud culpa","is_custom":true,"is_required":false,"field_type":"list","field_format":"list","field_choices":["in ut","adipisicing"],"item_schema":{"item_type":"string","item_format":"datetime","item_choices":["dolor consequat","officia quis deserunt in"]}},"value":{"incididunt_":{}}},{"remote_field_class":{"id":"quis amet","display_name":"fugiat ali","remote_key_name":"consectetur dolore reprehenderit fugiat t","description":"commodo tempor","is_custom":false,"is_required":false,"field_type":"datetime","field_format":"date","field_choices":["aliquip in in consectetur enim","quis dolor proident"],"item_schema":{"item_type":"string","item_format":"list","item_choices":["quis ut","in occaecat veniam"]}},"value":{"aliquip_ea8":{}}}]},{"id":"ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id":"8765432","created_at":"2021-09-15T00:00:00Z","modified_at":"2021-10-16T00:00:00Z","description":"Pickleball lessons","unit_price":50,"quantity":1,"total_amount":50,"currency":"USD","exchange_rate":"2.9","item":"5b3c1341-a20f-4e51-b72c-f3830a16c97b","account":"cd0f32d4-a493-11ec-b909-0242ac120002","tax_rate":"urn:uuid:ab81be3b-a0bd-b4ed-1617-0933295b6ad8","tracking_category":"96fec34c-a029-62cd-95c9-920d630e27ff","tracking_categories":["b2d49a37-1857-47da-8109-aa206518e95b","urn:uuid:5f1cdec0-e2b9-2804-ee8c-a44707b449b0"],"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"}},"remote_fields":[{"remote_field_class":{"id":"velit labore","display_name":"ad","remote_key_name":"labore est","description":"quis laborum ut in","is_custom":false,"is_required":false,"field_type":"string","field_format":"date","field_choices":["incididunt","exercitation anim voluptate"],"item_schema":{"item_type":"list","item_format":"list","item_choices":["quis eiusmod sed","in proident"]}},"value":{"cillum_c":{},"exercitation_d":{}}},{"remote_field_class":{"id":"commodo Ut pariatur aliqu","display_name":"velit","remote_key_name":"mini","description":"in et eiusmod esse","is_custom":false,"is_required":false,"field_type":"date","field_format":"number","field_choices":["veniam reprehenderit elit aliquip Excepteur","cupidatat pariatur eiusmod"],"item_schema":{"item_type":"string","item_format":"number","item_choices":["consequat nisi ipsum","magna sunt ut"]}},"value":{"deserunt_0e":{},"ipsumb1":{},"Lorem8":{}}}]}],"inclusive_of_tax":true,"remote_was_deleted":false,"accounting_period":"7dc5ca17-d311-44cd-9ce0-333080367a18","purchase_orders":["e7378d8f-3992-4c2a-8417-ebdc4f2bfeb7","dd70ca2f-b120-46fa-889a-9604037f45fd","889b281d-739c-4759-95b8-0aedb3947131"],"field_mappings":{"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},"remote_data":[{"path":"/actions","data":["Varies by platform"]}],"remote_fields":[{"remote_field_class":{"id":"ut anim dolore amet","display_name":"ad","remote_key_name":"laboris elit enim","description":"in","is_custom":true,"is_required":false,"field_type":"bool","field_format":"number","field_choices":["voluptate exercitation","labore officia sed sit enim"],"item_schema":{"item_type":"number","item_format":"string","item_choices":["cillum est","elit in aliqua adipisicing"]}},"value":{"quis_c":{},"consequat_5c4":{}}},{"remote_field_class":{"id":"nulla labore officia Duis","display_name":"in veniam ut","remote_key_name":"voluptate commodo ea magna","description":"occaecat","is_custom":false,"is_required":false,"field_type":"number","field_format":"date","field_choices":["reprehend","id ex elit"],"item_schema":{"item_type":"date","item_format":"list","item_choices":["sed dolore nostrud","elit ullamco ut commodo"]}},"value":{"ad_a26":{}}}]},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"in dolore quis ex nostrud"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"aute ea do id"}}],"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":"www.exampleintegration.com/api/v1/exampleapi"}},{"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":"www.exampleintegration.com/api/v1/exampleapi"}}]}