Bulk Upsert Inventory

Updates an inventory item within the Nuport system. The inventory is uniquely mapped by the product and location in which the product resides. Ensure the location and product entities already exist in the system by calling their relevant APIs. This API acts as an "upsert" operation in that it will create new inventory if it does not exist in Nuport's system or it will update the inventory by the provided quantity provided. Note that an array of inventory data will be passed to this API and an array of created/updated inventory data will be returned in the order that they are passed in.

Body Params
inventory
array of objects
required

An array of inventory DTOs to create or update. Inventory will be updated by looking at the unique internal ID of the product and location, i.e. the inventory item is indexed by the ID of the location and the product. This array can only have a maximum size of 100 elements, meaning that the API will only create/update 100 inventory items per API call.

inventory*
Headers
string
required

The API key retrieved from your company settings on the Nuport platform. This should be in every header in order to facilitate proper integration.

Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json