Accounting
Creates one or more items
Changed onput/Items
Request
- Base URLhttps://api.xero.com/api.xro/2.0
- URLhttps://api.xero.com/api.xro/2.0/Items
- AuthOAuth 2Authorization code: https://login.xero.com/identity/connect/authorizeToken URL: https://identity.xero.com/connect/token scopes: accounting.settings
Query parameters
summarizeErrorsboolean
If false return 200 OK and mix of successfully created objects and any with validation errors
unitdpinteger
e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
Headers
Idempotency-Keystring
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
Request body
Example request
{
"Items": [
{
"UpdatedDateUTC": "/Date(1573755038314)/"
}
]
}Response
Success - return response of type Items array with newly created Item
Example response
{
"Items": [
{
"UpdatedDateUTC": "/Date(1573755038314)/"
}
]
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info