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

Customer Orders

Overview

The Customer Orders resource represents inbound demand from customers, capturing individual order lines placed against a product at a fulfilment location. Each record tracks an order line from initial placement through to shipment, including requested and actual ship dates, quantities, values, and current status. This data is used for demand visibility, service level monitoring, and outbound fulfilment planning.

Resource Endpoint

/api/v2/ingest/object/INV_CUSTOMER_ORDERS_OOTB
/api/v2/ingest/object/INV_CUSTOMER_ORDERS_OOTB

Supported Methods

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

Request Headers

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

Properties

Primary Keys

  • order_id (string) - Unique identifier for the customer order. Part of the composite primary key.
  • order_line_id (string) - Unique identifier for the order line within the order. Part of the composite primary key.
  • updated_at (timestamp) - Timestamp of the most recent update to the record. Part of the composite primary key.

Attributes

AttributeData TypeRequiredDescription
order_idstringYesUnique identifier for the customer order
order_line_idstringYesUnique identifier for this line within the customer order
order_datetimestampYesDatetime when the customer order was placed
requested_ship_datetimestampYesDatetime requested by the customer for shipment
expected_ship_datetimestampYesDatetime currently expected for shipment
actual_ship_datetimestampNoActual datetime the order line was shipped
product_idstringYesUnique identifier for the product ordered
location_idstringYesUnique identifier for the fulfilment location
ordered_unitsintegerYesNumber of units ordered by the customer
ordered_valuefloatYesTotal monetary value of the ordered units
updated_attimestampYesTimestamp of the most recent update to this record
statusstringNoCurrent status of the order line (e.g. "open", "shipped", "cancelled")
shipped_unitsintegerNoNumber of units actually shipped
shipped_valuefloatNoTotal monetary value of units actually shipped

Relationships

Outbound References

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

Inbound References

The following resources are referenced by customer_orders:

  • productsproduct_idproducts.product_id
  • locationslocation_idlocations.location_id

JSON Representation

{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "order_id": "ORD-2025-001",
      "order_line_id": "LINE-001",
      "order_date": "2025-01-10 09:00:00",
      "requested_ship_date": "2025-01-17 00:00:00",
      "expected_ship_date": "2025-01-17 00:00:00",
      "actual_ship_date": "2025-01-16 14:30:00",
      "product_id": "PROD-001",
      "location_id": "LOC-001",
      "ordered_units": 10,
      "ordered_value": 249.90,
      "updated_at": "2025-01-16 14:30:00",
      "status": "shipped",
      "shipped_units": 10,
      "shipped_value": 249.90
    }
  ],
  "operationType": "UPSERT"
}
{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "order_id": "ORD-2025-001",
      "order_line_id": "LINE-001",
      "order_date": "2025-01-10 09:00:00",
      "requested_ship_date": "2025-01-17 00:00:00",
      "expected_ship_date": "2025-01-17 00:00:00",
      "actual_ship_date": "2025-01-16 14:30:00",
      "product_id": "PROD-001",
      "location_id": "LOC-001",
      "ordered_units": 10,
      "ordered_value": 249.90,
      "updated_at": "2025-01-16 14:30:00",
      "status": "shipped",
      "shipped_units": 10,
      "shipped_value": 249.90
    }
  ],
  "operationType": "UPSERT"
}

Example Request

curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_CUSTOMER_ORDERS_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "order_id": "ORD-2025-001",
        "order_line_id": "LINE-001",
        "order_date": "2025-01-10 09:00:00",
        "requested_ship_date": "2025-01-17 00:00:00",
        "expected_ship_date": "2025-01-17 00:00:00",
        "actual_ship_date": "2025-01-16 14:30:00",
        "product_id": "PROD-001",
        "location_id": "LOC-001",
        "ordered_units": 10,
        "ordered_value": 249.90,
        "updated_at": "2025-01-16 14:30:00",
        "status": "shipped",
        "shipped_units": 10,
        "shipped_value": 249.90
      }
    ],
    "operationType": "UPSERT"
  }'
curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_CUSTOMER_ORDERS_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "order_id": "ORD-2025-001",
        "order_line_id": "LINE-001",
        "order_date": "2025-01-10 09:00:00",
        "requested_ship_date": "2025-01-17 00:00:00",
        "expected_ship_date": "2025-01-17 00:00:00",
        "actual_ship_date": "2025-01-16 14:30:00",
        "product_id": "PROD-001",
        "location_id": "LOC-001",
        "ordered_units": 10,
        "ordered_value": 249.90,
        "updated_at": "2025-01-16 14:30:00",
        "status": "shipped",
        "shipped_units": 10,
        "shipped_value": 249.90
      }
    ],
    "operationType": "UPSERT"
  }'

Important Notes

  • order_id, order_line_id, and updated_at together form the composite primary key. All three fields must be provided on every record.
  • actual_ship_date, shipped_units, and shipped_value are optional and should be populated once the order line has been dispatched.
  • ordered_value and shipped_value should reflect monetary totals in the relevant currency.
  • All timestamps must be provided in YYYY-MM-DD HH:MM:SS format.
  • 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