Skip to main content

Definition

Stock corresponds to the actual quantity available for a given SKU. It can include several warehouse stock values as well, if applicable.
  • Stock should always be sent as the absolute value at a given time, which corresponds to the total quantity available.
  • Stock not sent to Neteven remains unchanged in the Neteven User Interface, unless there is another stock entry point used (manual change in the UI, file import, etc).
  • Stock visible on Marketplace depends on publication rule configuration done within the Neteven user interface: a quantity sent via the API is not necessarily the one visible on the Marketplace site.
  • Neteven has an internal stock management mechanism to decrement available stock pushed to multiple Marketplaces based on pending orders. You should know this and take it into account when designing your stock update connection to Neteven.

Endpoints

Update stock

Endpoint definition

Stock updates rules of thumb:
  • You cannot create new SKU’s with this endpoint. Stock updates only work on already existing SKU’s.
  • Only send stock updates on products which changed since last iteration: avoid sending unnecessary items.
  • Parse the body of the response: errors are included and should be fixed before re-submitting.
  • Trust the API response: if it says “OK”, then you don’t need to retrieve stock to check if it matches what you sent.
example:

Endpoint specific errors

Response HTTP Header code : 400 Cause: Duplicated SKU in request body
The SKU ‘{sku}’ is listed more than once in your payload. Please remove duplicates before resubmitting.
Actionable : Ensure every SKU is only included once per payload.
Response HTTP Header code : 207 Cause: Partial error management possible. If at least one of the SKU’s submitted is not recognized, the request will return a HTTP 207 code, while listing the items which could not be processed in the response body:
  • item code 404: the SKU submitted does not exist on your account.
Actionable : Fix the item select logic on your side to only include those already created in Neteven.
This error is most likely due to a erroneous integration: do NOT push SKU’s which do not yet exist on your Neteven account. Create them first before trying to update their prices.
Sub status messages (data.items[].status):
{
“message”: “Sku {sku} does not exist”,
“code”: 404,
“title”: “Not Found
}

Retrieve item stock

Endpoint definition

Example:

Endpoint specific errors

There is no error returned by this view (it will always return a HTTP 200 status code).

If no item in our system match the submitted query parameter filtering criteria, the response body will simply be an empty list.

API reference

more information on parameters, responses and content in the API Reference