Order-part Optimization
API reference for order-level and order-part-level optimization ingestion
Use this endpoint when you want one optimization per picked part (for example one pick order), while still supporting full-order optimization in the same flow.
Endpoint
postapi.skrym.com/core.OptimizeOrderPart
Modes
core.OptimizeOrderPart supports two modes:
- Order-part scoped: send
orderPartReference. - Order scoped: omit
orderPartReference.
Order-part scoped mode
- The order is resolved/created from
orderReference. - The part is resolved/created from
orderPartReference. - Products are stored for that specific part.
Order scoped mode
- The order is resolved/created from
orderReference. - No order part is created implicitly.
- Products are stored for the whole order.
Important request validation
The endpoint validates input before running optimization:
orderReferenceis required.originCountrymust be a valid ISO country code.destinationCountrymust be a valid ISO country code.
Invalid values return invalid_argument.