Upsert an item

Creates the item if it does not exist, otherwise updates item metadata and upserts stock at the supplied locationId (or the item's default location).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Resource id.

Body Params

Upsert an item and its stock. available cannot be negative unless allowOversell is true.

uuid
number
Defaults to 0
boolean
Defaults to false
boolean
Defaults to false
uuid

Defaults to the supplier's default location.

uuid | null

Which location's stock to upsert. Defaults to defaultLocationId.

Headers
string
enum
required

Context entity type. Required on all stock-service endpoints.

Allowed:
uuid
required

Supplier (or retailer) id for the context. Required on all stock-service endpoints.

Responses

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