UiPath Documentation
industry-department-solutions
latest
false
  • Overview
  • API Resources

Supply Chain & Retail Solutions API guide

Manufacturing Orders

Overview

The Manufacturing Orders resource represents production work orders that govern the internal manufacture of products at factory locations. Each record tracks a single manufacturing order through its full lifecycle, from the initial planned quantities and scheduled dates through to actual production start and end times, units produced, and current status.

Resource Endpoint

/api/v2/ingest/object/INV_MANUFACTURING_ORDERS_OOTB
/api/v2/ingest/object/INV_MANUFACTURING_ORDERS_OOTB

Supported Methods

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

  • product_id (string) - Unique identifier for the product being manufactured. Part of the composite primary key.
  • location_id (string) - Unique identifier for the factory location. Part of the composite primary key.
  • order_number (string) - Unique identifier for the manufacturing 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
product_idstringYesUnique identifier for the product being manufactured
location_idstringYesUnique identifier for the factory or production site
order_numberstringYesUnique identifier for this manufacturing order
source_idstringYesIdentifier of the production line or internal source initiating the order
ordered_attimestampYesDatetime when the manufacturing order was created
ordered_unitsintegerYesNumber of units planned for production
expected_start_datetimestampYesPlanned datetime for production to begin
actual_start_datetimestampNoActual datetime production commenced
expected_end_datetimestampYesPlanned datetime for production to be completed
actual_end_datetimestampNoActual datetime production was completed
produced_unitsintegerNoNumber of units actually produced
statusstringNoCurrent status of the manufacturing order (e.g. "scheduled", "in_progress", "completed")
updated_attimestampYesTimestamp of the most recent update to this record

Relationships

Outbound References

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

Inbound References

The following resources are referenced by manufacturing_orders:

  • productsproduct_idproducts.product_id
  • locationslocation_idlocations.location_id

JSON Representation

{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "order_number": "MO-2025-001",
      "product_id": "PROD-001",
      "location_id": "LOC-001",
      "source_id": "LINE-001",
      "ordered_at": "2025-01-05 08:00:00",
      "ordered_units": 500,
      "expected_start_date": "2025-01-10 06:00:00",
      "actual_start_date": "2025-01-10 06:30:00",
      "expected_end_date": "2025-01-12 18:00:00",
      "actual_end_date": "2025-01-12 17:45:00",
      "produced_units": 498,
      "status": "completed",
      "updated_at": "2025-01-12 18:00:00"
    }
  ],
  "operationType": "UPSERT"
}
{
  "solutionName": "INV_OOTB",
  "data": [
    {
      "order_number": "MO-2025-001",
      "product_id": "PROD-001",
      "location_id": "LOC-001",
      "source_id": "LINE-001",
      "ordered_at": "2025-01-05 08:00:00",
      "ordered_units": 500,
      "expected_start_date": "2025-01-10 06:00:00",
      "actual_start_date": "2025-01-10 06:30:00",
      "expected_end_date": "2025-01-12 18:00:00",
      "actual_end_date": "2025-01-12 17:45:00",
      "produced_units": 498,
      "status": "completed",
      "updated_at": "2025-01-12 18:00:00"
    }
  ],
  "operationType": "UPSERT"
}

Example Request

curl -X POST \
  'https://ingestion.peak.ai/api/v2/objects/INV_MANUFACTURING_ORDERS_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "order_number": "MO-2025-001",
        "product_id": "PROD-001",
        "location_id": "LOC-001",
        "source_id": "LINE-001",
        "ordered_at": "2025-01-05 08:00:00",
        "ordered_units": 500,
        "expected_start_date": "2025-01-10 06:00:00",
        "actual_start_date": "2025-01-10 06:30:00",
        "expected_end_date": "2025-01-12 18:00:00",
        "actual_end_date": "2025-01-12 17:45:00",
        "produced_units": 498,
        "status": "completed",
        "updated_at": "2025-01-12 18:00:00"
      }
    ],
    "operationType": "UPSERT"
  }'
curl -X POST \
  'https://ingestion.peak.ai/api/v2/objects/INV_MANUFACTURING_ORDERS_OOTB' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "solutionName": "INV_OOTB",
    "data": [
      {
        "order_number": "MO-2025-001",
        "product_id": "PROD-001",
        "location_id": "LOC-001",
        "source_id": "LINE-001",
        "ordered_at": "2025-01-05 08:00:00",
        "ordered_units": 500,
        "expected_start_date": "2025-01-10 06:00:00",
        "actual_start_date": "2025-01-10 06:30:00",
        "expected_end_date": "2025-01-12 18:00:00",
        "actual_end_date": "2025-01-12 17:45:00",
        "produced_units": 498,
        "status": "completed",
        "updated_at": "2025-01-12 18:00:00"
      }
    ],
    "operationType": "UPSERT"
  }'

Important Notes

  • product_id, location_id, order_number, and updated_at together form the composite primary key. All four fields must be provided on every record.
  • expected_start_date and expected_end_date are required planned dates; their actual_ counterparts are optional and should be populated as production progresses.
  • produced_units and actual_start_date/actual_end_date should be updated incrementally as the order progresses.
  • The location_id for a manufacturing order should reference a location where is_factory is set to true.
  • All timestamps must be provided in YYYY-MM-DD HH:MM:SS format.

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated