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

/planned_inventory

Sync planned inventory

post

Reports inbound stock by SKU so Purple Dot creates and updates Waitlists to match. Returns the affected Waitlists.

Authorizations
X-Purple-Dot-Access-TokenstringRequired

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

Body
Responses
200

The affected Waitlists.

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

{
  "items": [
    {
      "id": {
        "sku": "ZTEST"
      },
      "source_uri": "po://PO-10234",
      "labels": [
        "purchase-order"
      ],
      "quantity_expected": 120,
      "quantity_arrived": 0,
      "date_expected": "2025-03-10",
      "inventory_location": {
        "type": "name",
        "name": "Main Warehouse"
      }
    }
  ]
}
{
  "meta": {
    "result": "success"
  },
  "data": {
    "waitlists": [
      {
        "id": "a2aecc56-ce64-49da-8ce6-099e664d85fd",
        "created_at": "2023-10-27T14:44:09.726Z",
        "updated_at": "2023-11-02T09:12:41.203Z",
        "earliest_ship_date": "2023-11-25T05:00:00.000Z",
        "latest_ship_date": "2023-12-10T04:59:59.999Z",
        "state": "Live",
        "launch_date": "2023-10-27T00:00:00.000Z",
        "scheduled_pause_date": "2023-11-20T00:00:00.000Z",
        "labels": [
          "holiday"
        ],
        "availability": {
          "product": {
            "product_id": "7257265143861",
            "buy_size": 10,
            "committed": 3,
            "available": 7
          },
          "variants": [
            {
              "variant_id": "42662551519285",
              "sku": "ZTEST",
              "buy_size": 10,
              "committed": 3,
              "available": 7
            }
          ]
        }
      }
    ]
  }
}

Last updated