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

Location

Overview

The location resource represents physical locations in the B2C pricing application. This resource stores location information including geographic details and hierarchies.

Resource Endpoint

/api/v2/ingest/object/{prefix}LOCATION{suffix}
/api/v2/ingest/object/{prefix}LOCATION{suffix}

Supported Methods

MethodReturn TypeDescription
POSTResponseIngest (create/update) location 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

Attributes

AttributeData TypeRequiredDescription
location_idstringYesUnique location identifier (Primary Key)
countrystringNoCountry where the location is situated
namestringNoDisplay name of the location
regionstringNoRegional classification or zone
created_atdatetimeNoTimestamp when the record was created

Relationships

Outbound References

This resource has relationships to:

  • product_pricing_daily - Locations can have daily pricing data
  • purchase_order - Locations can have purchase orders
  • sale - Locations can have sales transactions
  • stock - Locations can have stock levels
  • tax - Locations can have tax rates

Inbound References

None

JSON Representation

{
  "solutionName": "QP_OOTB",
  "data": [
    {
      "location_id": "LOC-UK-001",
      "country": "United Kingdom",
      "name": "London Distribution Center",
      "region": "South East",
      "created_at": "2025-01-15T08:00:00Z"
    }
  ],
  "operationType": "UPSERT"
}
{
  "solutionName": "QP_OOTB",
  "data": [
    {
      "location_id": "LOC-UK-001",
      "country": "United Kingdom",
      "name": "London Distribution Center",
      "region": "South East",
      "created_at": "2025-01-15T08:00:00Z"
    }
  ],
  "operationType": "UPSERT"
}

Example Request

curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/QP_LOCATION_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "QP_OOTB",
    "data": [
      {
        "location_id": "LOC-UK-001",
        "country": "United Kingdom",
        "name": "London Distribution Center",
        "region": "South East",
        "created_at": "2025-01-15T08:00:00Z"
      }
    ],
    "operationType": "UPSERT"
  }'
curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/QP_LOCATION_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "QP_OOTB",
    "data": [
      {
        "location_id": "LOC-UK-001",
        "country": "United Kingdom",
        "name": "London Distribution Center",
        "region": "South East",
        "created_at": "2025-01-15T08:00:00Z"
      }
    ],
    "operationType": "UPSERT"
  }'

Important Notes

  • Primary Key: This resource uses location_id as the primary key
  • Geographic Hierarchy: Supports multi-level geographic organization (country, region)
  • Central Entity: Location is referenced by many other B2C entities (pricing, sales, stock, tax)
  • Custom Attributes: Additional custom attributes can be added using the /LOCATION/add-attribute endpoint
  • Data Validation: All attributes are validated according to their defined data types

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated