Allows you to create a single manual journal

POST {{baseUrl}}/ManualJournals?summarizeErrors=false

Request Params

KeyDatatypeRequiredDescription
summarizeErrorsbooleanIf 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

KeyDatatypeRequiredDescription
xero-tenant-idstring(Required) Xero identifier for Tenant
Content-Typestring

RESPONSES

status: OK

{&quot;Id&quot;:&quot;45dfa608-0fcb-4f30-a377-c82cd348569c&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1552595972952)/&quot;,&quot;ManualJournals&quot;:[{&quot;Date&quot;:&quot;/Date(1552521600000+0000)/&quot;,&quot;Status&quot;:&quot;DRAFT&quot;,&quot;LineAmountTypes&quot;:&quot;NoTax&quot;,&quot;UpdatedDateUTC&quot;:&quot;/Date(1552595972920+0000)/&quot;,&quot;ManualJournalID&quot;:&quot;d312dd5e-a53e-46d1-9d51-c569ef4570b7&quot;,&quot;Narration&quot;:&quot;Foo bar&quot;,&quot;JournalLines&quot;:[{&quot;Description&quot;:&quot;Hello there&quot;,&quot;TaxType&quot;:&quot;NONE&quot;,&quot;LineAmount&quot;:100.0,&quot;AccountCode&quot;:&quot;400&quot;,&quot;Tracking&quot;:[],&quot;AccountID&quot;:&quot;c4f29c22-28c2-4a13-9eab-ecbbd641ffdf&quot;,&quot;IsBlank&quot;:false},{&quot;Description&quot;:&quot;Goodbye&quot;,&quot;TaxType&quot;:&quot;NONE&quot;,&quot;LineAmount&quot;:-100.0,&quot;AccountCode&quot;:&quot;400&quot;,&quot;Tracking&quot;:[{&quot;Name&quot;:&quot;Simpsons&quot;,&quot;Option&quot;:&quot;Bart&quot;,&quot;TrackingCategoryID&quot;:&quot;6a68adde-f210-4465-b0a9-0d8cc6f50762&quot;,&quot;TrackingOptionID&quot;:&quot;dc54c220-0140-495a-b925-3246adc0075f&quot;}],&quot;AccountID&quot;:&quot;c4f29c22-28c2-4a13-9eab-ecbbd641ffdf&quot;,&quot;IsBlank&quot;:false}],&quot;ShowOnCashBasisReports&quot;:true,&quot;Warnings&quot;:[{&quot;Message&quot;:&quot;Account code &#39;476&#39; has been removed as it does not match a recognised account.&quot;}],&quot;ValidationErrors&quot;:[{&quot;Message&quot;:&quot;The total debits (100.00) must equal total credits (-10.00)&quot;}]}]}