Sales Orders for Order Hub REST Endpoints

Order Management/Sales Orders for Order Hub
The Sales Orders for Order Hub resource gets, creates, and updates sales orders in Oracle Order Management Cloud. A sales order captures order header details, such as customer, items ordered, and pricing.

Here are the differences in REST API compared to the Order Import web service:
- To extend the processing logic to set the default values and to validate and transform the order during order creation and submission through REST API, create an order management extension. The Sales Orders for Order Hub resource doesn't support the pre-transformation, product transformation, and post-transformation rules.
- The Sales Orders for Order Hub resource also doesn't support automatic creation of customer, address, or contact information while creating an order. The resource also doesn't handle any cross-referencing of the primary and reference data.


Common error handling:
- 404 Not Found: Ensure that the correct parameter is used in the URL; for example, for linesUniqID, use the hash-generated key. Additionally, this error can occur if the user that is used while invoking the GET and Updating the order doesn't have business unit data security granted.
- 500 Internal Server Error: Ensure that the EFF deployment is completed successfully or there are no errors encountered while deploying the flexfield.
- 504 Gateway Timeout: The Order request may still be processed after the gateway time out; however, ensure that there are no validation failures that the order runs into while processing. You may need to run GET action to validate that the order is created.
Apply hold
Method: post
Path: /fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub/action/applyHold
Create sales orders
Method: post
Path: /fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub
Delete one sales order
Method: delete
Path: /fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub/{OrderKey}
Get all sales orders
Method: get
Path: /fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub
Get one sales order
Method: get
Path: /fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub/{OrderKey}
Release hold
Method: post
Path: /fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub/action/releaseHold
Split fulfillment lines
Method: post
Path: /fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub/action/splitFulfillmentLine
Update one sales order
Method: patch
Path: /fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub/{OrderKey}
Update scheduling attributes
Method: post
Path: /fscmRestApi/resources/11.13.18.05/salesOrdersForOrderHub/action/updateSchedulingAttribute