Get Order
Fetch complete order with header and line items by order number from Prophet 21.
Operation
Section titled “Operation”getFullOrder
Resource
Section titled “Resource”order
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Order Number | string | Yes | - | P21 order number to look up |
| Order Header Path | string | No | /odataservice/odata/view/datalytics_view_combined_order_header | Endpoint path for order header |
| Order Items Path | string | No | /odataservice/odata/view/datalytics_view_combined_order_line | Endpoint path for order line items |
Response
Section titled “Response”Success
Section titled “Success”{ "order_no": "12345", "customer_id": "CUST001", "order_date": "2024-01-15", "items": [ { "line_no": 1, "item_id": "PROD001", "quantity": 100 } ]}Error Handling
Section titled “Error Handling”- Order Number Required: Order number must be provided
- Order Not Found: Returns empty object if order doesn’t exist