Allows you to update a specified manual journal
POST {{baseUrl}}/ManualJournals/:ManualJournalID
Request Body
{"ManualJournals"=>[{"Narration"=>"<string>", "JournalLines"=>[{"LineAmount"=>"<double>", "AccountCode"=>"<string>", "AccountID"=>"<uuid>", "Description"=>"<string>", "TaxType"=>"<string>", "Tracking"=>[{"TrackingCategoryID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "TrackingOptionID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Option"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Options"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"TrackingCategoryID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "TrackingOptionID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Option"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Options"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "IsBlank"=>"<boolean>"}, {"LineAmount"=>"<double>", "AccountCode"=>"<string>", "AccountID"=>"<uuid>", "Description"=>"<string>", "TaxType"=>"<string>", "Tracking"=>[{"TrackingCategoryID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "TrackingOptionID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Option"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Options"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"TrackingCategoryID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "TrackingOptionID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Option"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Options"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "IsBlank"=>"<boolean>"}], "Date"=>"<string>", "LineAmountTypes"=>"<string>", "Status"=>"<string>", "Url"=>"<string>", "ShowOnCashBasisReports"=>"<boolean>", "ManualJournalID"=>"<uuid>", "StatusAttributeString"=>"<string>", "Warnings"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}], "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}], "Attachments"=>[{"AttachmentID"=>"<uuid>", "FileName"=>"<string>", "Url"=>"<string>", "MimeType"=>"<string>", "ContentLength"=>"<integer>", "IncludeOnline"=>"<boolean>"}, {"AttachmentID"=>"<uuid>", "FileName"=>"<string>", "Url"=>"<string>", "MimeType"=>"<string>", "ContentLength"=>"<integer>", "IncludeOnline"=>"<boolean>"}]}, {"Narration"=>"<string>", "JournalLines"=>[{"LineAmount"=>"<double>", "AccountCode"=>"<string>", "AccountID"=>"<uuid>", "Description"=>"<string>", "TaxType"=>"<string>", "Tracking"=>[{"TrackingCategoryID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "TrackingOptionID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Option"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Options"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"TrackingCategoryID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "TrackingOptionID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Option"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Options"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "IsBlank"=>"<boolean>"}, {"LineAmount"=>"<double>", "AccountCode"=>"<string>", "AccountID"=>"<uuid>", "Description"=>"<string>", "TaxType"=>"<string>", "Tracking"=>[{"TrackingCategoryID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "TrackingOptionID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Option"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Options"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"TrackingCategoryID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "TrackingOptionID"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Option"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "Options"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}], "IsBlank"=>"<boolean>"}], "Date"=>"<string>", "LineAmountTypes"=>"<string>", "Status"=>"<string>", "Url"=>"<string>", "ShowOnCashBasisReports"=>"<boolean>", "ManualJournalID"=>"<uuid>", "StatusAttributeString"=>"<string>", "Warnings"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}], "ValidationErrors"=>[{"Message"=>"<string>"}, {"Message"=>"<string>"}], "Attachments"=>[{"AttachmentID"=>"<uuid>", "FileName"=>"<string>", "Url"=>"<string>", "MimeType"=>"<string>", "ContentLength"=>"<integer>", "IncludeOnline"=>"<boolean>"}, {"AttachmentID"=>"<uuid>", "FileName"=>"<string>", "Url"=>"<string>", "MimeType"=>"<string>", "ContentLength"=>"<integer>", "IncludeOnline"=>"<boolean>"}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
xero-tenant-id | string | (Required) Xero identifier for Tenant | |
Content-Type | string |
RESPONSES
status: OK
{"Id":"b694559c-686c-4047-b657-661ba6c0dd1f","Status":"OK","ProviderName":"Provider Name Example","DateTimeUTC":"/Date(1552357736850)/","ManualJournals":[{"Date":"/Date(1552262400000+0000)/","Status":"DRAFT","LineAmountTypes":"NoTax","UpdatedDateUTC":"/Date(1552357736820+0000)/","ManualJournalID":"07eac261-78ef-47a0-a0eb-a57b74137877","Narration":"Hello Xero","JournalLines":[{"Description":"Hello there","TaxType":"NONE","TaxAmount":0.0,"LineAmount":100.0,"AccountCode":"400","Tracking":[],"AccountID":"c4f29c22-28c2-4a13-9eab-ecbbd641ffdf","IsBlank":false},{"Description":"Goodbye","TaxType":"NONE","TaxAmount":0.0,"LineAmount":-100.0,"AccountCode":"400","Tracking":[],"AccountID":"c4f29c22-28c2-4a13-9eab-ecbbd641ffdf","IsBlank":false}],"ShowOnCashBasisReports":true,"HasAttachments":false,"Attachments":[]}]}