Docs
  • Purple Dot Overview
  • Getting Started
  • Shopify app integration
    • Installing our Shopify App
  • Platform Integration with Shopify
    • Connect to Shopify
    • Integrate Purple Dot with your Storefront
      • Integrate into Shopify Themes built with Liquid
        • Minimum Theme Requirements
      • Integrate into Shopify Headless Storefronts
        • Integrate into Shopify Hydrogen Storefronts
    • Configure Shipping Rates
    • Test the Platform Integration
    • Pre-order Tracking
    • Migrating from our Shopify App
  • Platform Integration with Salesforce
    • Integrate Purple Dot with Salesforce
      • Upgrading to 2024-08-29
  • Platform Integration With Other Platforms
    • Integrate into Another Platform
  • Platform Integration References
    • Public API
      • /waitlists
      • /availability
      • /products/preorder-state
      • /variants/preorder-state
      • /pre-orders
    • Private API
      • /waitlists
      • /pre-orders
      • /pre-orders/count
      • /pre-orders/count-units/sku/:sku
      • /inventory
      • /fulfillment-orders
      • /fulfillment-orders/:id(uuid)
      • /fulfillment
Powered by GitBook
On this page
  1. Platform Integration References
  2. Private API

/inventory

Previous/pre-orders/count-units/sku/:skuNext/fulfillment-orders

Last updated 10 months ago

Update the available inventory used by Purple Dot for exporting pre-orders.

Request:

  • sku - The SKU for which inventory level is being updated

  • available_units - The number of units of the SKU available

The request indicates the total number of units available, not the change since the last call, and is therefore idempotent.

Response:

  • 201 Created - Indicating the update has been received

  • sku - The SKU for which the inventory level was updated

  • available_units - The new number of units available

Examples:

curl --request POST \
     --url 'https://www.purpledotprice.com/admin/api/v1/inventory' \
     --header 'Content-Type: application/json'
     --header 'X-Purple-Dot-Access-Token: <access_token>'
     --data '{"sku": "foo", "available_units": 1}'
{
  "data": {
    "sku": "foo",
    "available_units": 1
  }
}
POST /inventory