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

Purchase Orders

Overview

The Purchase Orders resource represents outbound procurement orders placed with external suppliers. Each record tracks a single order line for a product at a location, capturing the full order lifecycle from placement through to receipt, including quantities, financial value, and current status.

Resource Endpoint

/api/v2/ingest/object/INV_PURCHASE_ORDERS_OOTB
/api/v2/ingest/object/INV_PURCHASE_ORDERS_OOTB

Supported Methods

MethodReturn TypeDescription
POSTResponseIngest (create/update) Purchase 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_number (string) - Unique identifier for the purchase order line. 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_numberstringYesUnique identifier for the purchase order line
product_idstringYesUnique identifier for the product being ordered
location_idstringYesUnique identifier for the destination location
source_idstringYesIdentifier of the supplier fulfilling this order
ordered_attimestampYesDatetime when the order was placed
order_due_datetimestampYesExpected delivery date for the order
ordered_unitsintegerYesNumber of units ordered
receipted_attimestampNoDatetime when the order was received
receipted_unitsintegerNoNumber of units actually received
order_line_valuefloatYesTotal monetary value of the order line
order_line_statusstringNoCurrent status of the order line (e.g. "open", "in_transit", "received")
updated_attimestampYesTimestamp of the most recent update to this record

Relationships

Outbound References

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

Inbound References

The following resources are referenced by purchase_orders:

  • productsproduct_idproducts.product_id
  • locationslocation_idlocations.location_id

JSON Representation

{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "order_number": "PO-2025-001",
      "product_id": "PROD-001",
      "location_id": "LOC-001",
      "source_id": "SUP-001",
      "ordered_at": "2025-01-10 09:00:00",
      "order_due_date": "2025-01-24 00:00:00",
      "ordered_units": 200,
      "receipted_at": "2025-01-23 14:30:00",
      "receipted_units": 198,
      "order_line_value": 2500.00,
      "order_line_status": "received",
      "updated_at": "2025-01-23 14:30:00"
    }
  ],
  "operationType": "UPSERT"
}
{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "order_number": "PO-2025-001",
      "product_id": "PROD-001",
      "location_id": "LOC-001",
      "source_id": "SUP-001",
      "ordered_at": "2025-01-10 09:00:00",
      "order_due_date": "2025-01-24 00:00:00",
      "ordered_units": 200,
      "receipted_at": "2025-01-23 14:30:00",
      "receipted_units": 198,
      "order_line_value": 2500.00,
      "order_line_status": "received",
      "updated_at": "2025-01-23 14:30:00"
    }
  ],
  "operationType": "UPSERT"
}

Example Request

curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_PURCHASE_ORDERS_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "order_number": "PO-2025-001",
        "product_id": "PROD-001",
        "location_id": "LOC-001",
        "source_id": "SUP-001",
        "ordered_at": "2025-01-10 09:00:00",
        "order_due_date": "2025-01-24 00:00:00",
        "ordered_units": 200,
        "receipted_at": "2025-01-23 14:30:00",
        "receipted_units": 198,
        "order_line_value": 2500.00,
        "order_line_status": "received",
        "updated_at": "2025-01-23 14:30:00"
      }
    ],
    "operationType": "UPSERT"
  }'
curl -X POST \
  'https://service.peak.ai/ingestion-api/api/v2/ingest/object/INV_PURCHASE_ORDERS_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "order_number": "PO-2025-001",
        "product_id": "PROD-001",
        "location_id": "LOC-001",
        "source_id": "SUP-001",
        "ordered_at": "2025-01-10 09:00:00",
        "order_due_date": "2025-01-24 00:00:00",
        "ordered_units": 200,
        "receipted_at": "2025-01-23 14:30:00",
        "receipted_units": 198,
        "order_line_value": 2500.00,
        "order_line_status": "received",
        "updated_at": "2025-01-23 14:30:00"
      }
    ],
    "operationType": "UPSERT"
  }'

Important Notes

  • order_number and updated_at together form the composite primary key. Both fields must be provided on every record.
  • source_id should correspond to a valid supplier_id in the Suppliers resource.
  • receipted_at and receipted_units are optional and should be populated once the goods have been physically received.
  • order_line_value should reflect the total value of the order line in the relevant currency.
  • All timestamps must be provided in YYYY-MM-DD HH:MM:SS format.
  • Records are ingested via UPSERT: subsequent updates to the same order_number and updated_at will overwrite the existing record.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated