UiPath Documentation
industry-department-solutions
latest
false
  • Overview
    • Introduction
    • Getting Started
    • API Guide
    • Customizations
    • Data Onboarding Checklist
  • API Resources
UiPath logo, featuring letters U and I in white

Supply Chain & Retail Solutions API guide

Last updated Apr 16, 2026

Stock

Overview

The Stock resource represents daily on-hand inventory levels for a given product at a given location. Each record captures the quantity of available stock on a specific date, enabling time-series analysis of inventory positions across the supply chain network.

Resource Endpoint

/api/v2/ingest/object/INV_STOCK_OOTB
/api/v2/ingest/object/INV_STOCK_OOTB

Supported Methods

MethodReturn TypeDescription
POSTResponseIngest (create/update) Stock records via UPSERT operation

Request Headers

HeaderRequiredDescription
AuthorizationYesYour Personal Access Token (PAT) from platform.peak.ai
Content-TypeYesMust be application/json

Properties

Primary Keys

  • product_id (string) - Unique identifier for the product. Part of the composite primary key.
  • location_id (string) - Unique identifier for the location. Part of the composite primary key.
  • day_date (date) - The calendar date for which the stock level is recorded. Part of the composite primary key.

Attributes

AttributeData TypeRequiredDescription
product_idstringYesUnique identifier for the product
location_idstringYesUnique identifier for the location
day_datedateYesThe date of the stock snapshot, in YYYY-MM-DD format
available_stockintegerYesQuantity of the product available at the location on the given date

Relationships

Outbound References

The stock resource does not reference any downstream resources as foreign keys.

Inbound References

The following resources are referenced by stock:

  • productsproduct_idproducts.product_id
  • locationslocation_idlocations.location_id

JSON Representation

{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "product_id": "PROD-001",
      "location_id": "LOC-001",
      "day_date": "2025-01-15",
      "available_stock": 500
    }
  ],
  "operationType": "UPSERT"
}
{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "product_id": "PROD-001",
      "location_id": "LOC-001",
      "day_date": "2025-01-15",
      "available_stock": 500
    }
  ],
  "operationType": "UPSERT"
}

Example Request

curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_STOCK_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "product_id": "PROD-001",
        "location_id": "LOC-001",
        "day_date": "2025-01-15",
        "available_stock": 500
      }
    ],
    "operationType": "UPSERT"
  }'
curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_STOCK_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "product_id": "PROD-001",
        "location_id": "LOC-001",
        "day_date": "2025-01-15",
        "available_stock": 500
      }
    ],
    "operationType": "UPSERT"
  }'

Important Notes

  • product_id, location_id, and day_date together form the composite primary key. All three fields must be provided on every record.
  • day_date must be in YYYY-MM-DD format.
  • available_stock must be a non-negative integer. A value of 0 is valid and indicates no stock on hand.
  • product_id must correspond to an existing record in the Products resource.
  • location_id must correspond to an existing record in the Locations resource.
  • Records are ingested via UPSERT: an existing record with matching primary keys will be updated; otherwise a new record is inserted.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated