Allows you to create one or more manual journals
PUT {{baseUrl}}/ManualJournals?summarizeErrors=false
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
summarizeErrors | boolean | If false return 200 OK and mix of successfully created objects and any with validation errors |
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":"45dfa608-0fcb-4f30-a377-c82cd348569c","Status":"OK","ProviderName":"Provider Name Example","DateTimeUTC":"/Date(1552595972952)/","ManualJournals":[{"Date":"/Date(1552521600000+0000)/","Status":"DRAFT","LineAmountTypes":"NoTax","UpdatedDateUTC":"/Date(1552595972920+0000)/","ManualJournalID":"d312dd5e-a53e-46d1-9d51-c569ef4570b7","Narration":"Foo bar","JournalLines":[{"Description":"Hello there","TaxType":"NONE","LineAmount":100.0,"AccountCode":"400","Tracking":[],"AccountID":"c4f29c22-28c2-4a13-9eab-ecbbd641ffdf","IsBlank":false},{"Description":"Goodbye","TaxType":"NONE","LineAmount":-100.0,"AccountCode":"400","Tracking":[{"Name":"Simpsons","Option":"Bart","TrackingCategoryID":"6a68adde-f210-4465-b0a9-0d8cc6f50762","TrackingOptionID":"dc54c220-0140-495a-b925-3246adc0075f"}],"AccountID":"c4f29c22-28c2-4a13-9eab-ecbbd641ffdf","IsBlank":false}],"ShowOnCashBasisReports":true,"Warnings":[{"Message":"Account code '476' has been removed as it does not match a recognised account."}],"ValidationErrors":[{"Message":"The total debits (100.00) must equal total credits (-10.00)"}]}]}