Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Getting Started >

Validation Errors on multiple inserts

Started by Barry Denson -   in Getting Started

If I post some records and one has a validation error, is the whole transaction rejected or do the good records get posted and errors returned for the bad ones?
Hi Barry,

For creating multiple items, we recommend you use the summarised error function.

You can read about it in Requests and Responses under Creating many resources.

https://developer.xero.com/documentation/api/requests-and-responses
 

Jenks Guo (Xero Staff)