For the complete documentation index, see llms.txt. This page is also available as Markdown.

/inventory

Set available inventory for a SKU

post

Sets the total number of available units Purple Dot uses when exporting pre-orders. Each call sets an absolute count, not a change, so repeating a request produces the same result.

Authorizations
X-Purple-Dot-Access-TokenstringRequired

Your store's private access token. It can also be sent as Authorization: Bearer <token>.

Body
skustringRequired

The SKU whose inventory level is being updated.

Example: LRS221
available_unitsintegerRequired

The number of units of this SKU that are available.

Example: 25
updated_atstring · date-timeOptional

When the level was measured. Defaults to now.

Example: 2024-11-14T16:22:59.432Z
Responses
201

The update was received.

application/json
post/inventory
POST /admin/api/v1/inventory HTTP/1.1
Host: www.purpledotprice.com
X-Purple-Dot-Access-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 77

{
  "sku": "LRS221",
  "available_units": 25,
  "updated_at": "2024-11-14T16:22:59.432Z"
}
{
  "data": {
    "sku": "LRS221",
    "available_units": 25
  }
}

Last updated