Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

An access token from the OAuth flow (eo_at_...). It lasts one hour; refresh it with the refresh token. See Authentication.

Headers

Idempotency-Key
string

A unique key (up to 255 printable ASCII characters). The same key from your app within 24 hours answers the first result again, with Idempotent-Replayed: true, instead of creating twice.

Maximum string length: 255

Path Parameters

id
string<uuid>
required

The product's ID.

Body

application/json
delta
integer
required

The amount to add; negative to take away. Not 0.

Required range: -1000000000 <= x <= 1000000000
variant_id
string<uuid>

One of the product's variants. Leave it out to adjust the product's own stock.

Response

The stock after the adjustment.

inventory
object
required