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

Locations

Overview

The Locations resource represents physical or logical nodes in the supply chain network, such as distribution centres, retail stores, and factories. Each location record captures the site's identity, geographic context, and its functional role within the inventory management system.

Resource Endpoint

/api/v2/ingest/object/INV_LOCATIONS_OOTB
/api/v2/ingest/object/INV_LOCATIONS_OOTB

Supported Methods

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

Request Headers

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

Properties

Primary Keys

  • location_id (string) - Unique identifier for the location. Used as the primary key for deduplication and UPSERT operations.
  • updated_at (timestamp) - Timestamp of the most recent update to the record. Combined with location_id to form the composite primary key.

Attributes

AttributeData TypeRequiredDescription
location_idstringYesUnique identifier for the location
location_namestringNoHuman-readable name of the location (e.g. "Central Warehouse")
countrystringNoCountry in which the location resides
is_storebooleanYesIndicates whether the location is a retail store
is_dcbooleanYesIndicates whether the location is a distribution centre
is_factorybooleanYesIndicates whether the location is a manufacturing facility
updated_attimestampYesTimestamp of the most recent update to this record

Relationships

Outbound References

The locations resource does not reference any other resource as a foreign key.

Inbound References

The following resources reference locations via location_id:

  • stocklocation_idlocations.location_id
  • pricinglocation_idlocations.location_id
  • order_parameterslocation_idlocations.location_id
  • purchase_orderslocation_idlocations.location_id
  • transferslocation_idlocations.location_id
  • manufacturing_orderslocation_idlocations.location_id
  • production_lineslocation_idlocations.location_id
  • sku_calendarlocation_idlocations.location_id
  • saleslocation_idlocations.location_id
  • customer_orderslocation_idlocations.location_id
  • location_extralocation_idlocations.location_id

JSON Representation

{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "location_id": "LOC-001",
      "location_name": "Central Warehouse",
      "country": "United Kingdom",
      "is_store": false,
      "is_dc": true,
      "is_factory": false,
      "updated_at": "2025-01-15 08:00:00"
    }
  ],
  "operationType": "UPSERT"
}
{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "location_id": "LOC-001",
      "location_name": "Central Warehouse",
      "country": "United Kingdom",
      "is_store": false,
      "is_dc": true,
      "is_factory": false,
      "updated_at": "2025-01-15 08:00:00"
    }
  ],
  "operationType": "UPSERT"
}

Example Request

curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_LOCATIONS_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "location_id": "LOC-001",
        "location_name": "Central Warehouse",
        "country": "United Kingdom",
        "is_store": false,
        "is_dc": true,
        "is_factory": false,
        "updated_at": "2025-01-15 08:00:00"
      }
    ],
    "operationType": "UPSERT"
  }'
curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_LOCATIONS_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "location_id": "LOC-001",
        "location_name": "Central Warehouse",
        "country": "United Kingdom",
        "is_store": false,
        "is_dc": true,
        "is_factory": false,
        "updated_at": "2025-01-15 08:00:00"
      }
    ],
    "operationType": "UPSERT"
  }'

Important Notes

  • location_id and updated_at together form the composite primary key. Both fields must be provided on every record.
  • The boolean flags is_store, is_dc, and is_factory are all required. A location may have more than one flag set to true if it serves multiple roles.
  • Timestamps must be provided in YYYY-MM-DD HH:MM:SS format.
  • 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