Guides
Import cost-centers
Use our API dedicated to import cost centers within Lucca Invoices
Description
If you want to create several cost centers through our API, you can use an endpoint made for it. It natively manages potential errors you might meet while making the import. Moreover, it allows you to choose between two solutions if an error is detected :
- skip the process and import no data
- import only the data correct
API call
Success is indicated by a
200
response status code. If so, the response contains a purchaseId
which is the identifier of the created Purchase object.Precisions about the mode
Precisions about the mode
Two modes are possible :
AllOrNothing
: if an error is detected, skip the whole process and import no data.SkipInvalidItems
: if an error is detected, skip only the invalid items and import the valid ones.