> For the complete documentation index, see [llms.txt](https://docs.hotwax.co/documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hotwax.co/documents/integrate-with-hotwax/components/order-routing/models.md). Agents can also search and read this documentation through its [MCP server](https://docs.hotwax.co/documents/~gitbook/mcp).

# Models

## The orderRoutingGroup object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRoutingGroup":{"title":"Order Routing Group","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingGroup"},"routingGroupId":{"type":"string"},"productStoreId":{"type":"string"},"groupName":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"jobName":{"type":"string"},"description":{"type":"string"},"createdByUserId":{"type":"string"},"createdByUser":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastModifiedDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The orderRoutingGroup.PK object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRoutingGroup.PK":{"title":"Order Routing Group","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingGroup.PK"},"routingGroupId":{"type":"string"}}}}}}
```

## The orderRoutingGroup.default object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRoutingGroup.default":{"title":"Order Routing Group (Master: default)","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingGroup"},"routingGroupId":{"type":"string"},"productStoreId":{"type":"string"},"groupName":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"jobName":{"type":"string"},"description":{"type":"string"},"createdByUserId":{"type":"string"},"createdByUser":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastModifiedDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"},"routings":{"type":"array","items":{"$ref":"#/components/schemas/orderRouting"}}}},"orderRouting":{"title":"Order Routing","type":"object","properties":{"_entity":{"type":"string","default":"orderRouting"},"orderRoutingId":{"type":"string"},"routingGroupId":{"type":"string"},"statusId":{"type":"string"},"routingName":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"description":{"type":"string"},"createdByUser":{"type":"string"},"createdByUserId":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The orderRouting object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRouting":{"title":"Order Routing","type":"object","properties":{"_entity":{"type":"string","default":"orderRouting"},"orderRoutingId":{"type":"string"},"routingGroupId":{"type":"string"},"statusId":{"type":"string"},"routingName":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"description":{"type":"string"},"createdByUser":{"type":"string"},"createdByUserId":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The orderRoutingGroup.default.PK object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRoutingGroup.default.PK":{"title":"Order Routing Group (Master: default)","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingGroup.PK"},"routingGroupId":{"type":"string"}}}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.scheduleNowOrderRoutingGroup.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.scheduleNowOrderRoutingGroup.Out":{"type":"object","properties":{"jobRunId":{"type":"string"}}}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.runOrderRoutingGroup.In object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.runOrderRoutingGroup.In":{"type":"object","properties":{"routingGroupId":{"type":"string"},"orderRoutingId":{"type":"string"},"routingRuleId":{"type":"string"},"productStoreId":{"type":"string"},"orderId":{"type":"string"},"shipGroupSeqId":{"type":"string"},"changeReasonEnumId":{"type":"string"},"testDriveSessionId":{"type":"string","description":"For test drive mode, if the productStore has brokering disabled (enableBrokering is set to \"N\") and a valid testDriveSessionId is provided, the brokering group will be executed."}},"required":["routingGroupId","productStoreId"]}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.runOrderRoutingGroup.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.runOrderRoutingGroup.Out":{"type":"object","properties":{"attemptedItemCount":{"type":"integer","format":"int64"},"brokeredItemCount":{"type":"integer","format":"int64"}}}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.getOrderRoutingGroupSchedule.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.getOrderRoutingGroupSchedule.Out":{"type":"object","properties":{"schedule":{"type":"object","properties":{"jobName":{"type":"string"},"description":{"type":"string"},"serviceName":{"type":"string"},"transactionTimeout":{"type":"integer","format":"int64"},"topic":{"type":"string"},"localOnly":{"type":"string"},"cronExpression":{"type":"string"},"fromDate":{"type":"string","format":"date-time"},"thruDate":{"type":"string","format":"date-time"},"repeatCount":{"type":"integer","format":"int64"},"paused":{"type":"string"},"expireLockTime":{"type":"integer","format":"int64"},"minRetryTime":{"type":"integer","format":"int64"},"priority":{"type":"integer","format":"int64"},"parentJobName":{"type":"string"},"jobTypeEnumId":{"type":"string"},"permissionGroupId":{"type":"string"},"instanceOfProductId":{"type":"string"},"productStoreId":{"type":"string"},"shopId":{"type":"string"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.storeOrderRoutingGroupSchedule.In object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.storeOrderRoutingGroupSchedule.In":{"type":"object","properties":{"routingGroupId":{"type":"string"},"transactionTimeout":{"type":"integer","format":"int64"},"topic":{"type":"string"},"localOnly":{"type":"string"},"cronExpression":{"type":"string"},"fromDate":{"type":"string","format":"date-time"},"thruDate":{"type":"string","format":"date-time"},"repeatCount":{"type":"integer","format":"int64"},"paused":{"type":"string"},"expireLockTime":{"type":"integer","format":"int64"},"minRetryTime":{"type":"integer","format":"int64"},"priority":{"type":"integer","format":"int64"},"parentJobName":{"type":"string"},"jobTypeEnumId":{"type":"string"},"permissionGroupId":{"type":"string"},"instanceOfProductId":{"type":"string"},"productStoreId":{"type":"string"},"shopId":{"type":"string"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}},"required":["routingGroupId"]}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.storeOrderRoutingGroupSchedule.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.storeOrderRoutingGroupSchedule.Out":{"type":"object","properties":{"jobName":{"type":"string"}}}}}}
```

## The co.hotwax.order.routing.CommonServices.cloneOrderRoutingGroup.In object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.CommonServices.cloneOrderRoutingGroup.In":{"type":"object","properties":{"routingGroupId":{"type":"string"},"newGroupName":{"type":"string"},"sequenceNum":{"type":"string","description":"Order routing group sequence. By default, it will be added as the last one."},"copyOrderRoutings":{"type":"boolean","description":"Parameter to check if the Order routing needs to be cloned.","default":"true"},"copyOrderRoutingRules":{"type":"boolean","description":"Parameter to check if the Order routing rule needs to be cloned, works only if copyOrderRoutings set to true.","default":"true"}},"required":["routingGroupId"]}}}}
```

## The co.hotwax.order.routing.CommonServices.cloneOrderRoutingGroup.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.CommonServices.cloneOrderRoutingGroup.Out":{"type":"object","properties":{"newRoutingGroupId":{"type":"string"}},"required":["newRoutingGroupId"]}}}}
```

## The routingRuns object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"routingRuns":{"title":"Order Routing Run","type":"object","properties":{"_entity":{"type":"string","default":"routingRuns"},"routingRunId":{"type":"string"},"orderRoutingId":{"type":"string"},"routingGroupId":{"type":"string"},"routingBatchId":{"type":"string"},"productStoreId":{"type":"string"},"createdByUser":{"type":"string"},"createdByUserId":{"type":"string"},"hasError":{"type":"string"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"routingResult":{"type":"string"},"orderItemCount":{"type":"number","format":"int64"},"brokeredItemCount":{"type":"number","format":"int64"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The orderRoutingGroup.raw object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRoutingGroup.raw":{"title":"Order Routing Group (Master: raw)","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingGroup"},"routingGroupId":{"type":"string"},"productStoreId":{"type":"string"},"groupName":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"jobName":{"type":"string"},"description":{"type":"string"},"createdByUserId":{"type":"string"},"createdByUser":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastModifiedDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"},"routings":{"type":"array","items":{"$ref":"#/components/schemas/orderRouting"}},"schedule":{"$ref":"#/components/schemas/moqui.service.job.ServiceJob"}}},"orderRouting":{"title":"Order Routing","type":"object","properties":{"_entity":{"type":"string","default":"orderRouting"},"orderRoutingId":{"type":"string"},"routingGroupId":{"type":"string"},"statusId":{"type":"string"},"routingName":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"description":{"type":"string"},"createdByUser":{"type":"string"},"createdByUserId":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}},"moqui.service.job.ServiceJob":{"title":"Service Job","type":"object","properties":{"_entity":{"type":"string","default":"moqui.service.job.ServiceJob"},"jobName":{"type":"string"},"description":{"type":"string"},"serviceName":{"type":"string"},"transactionTimeout":{"type":"number","format":"int64"},"topic":{"type":"string"},"localOnly":{"type":"string"},"cronExpression":{"type":"string"},"fromDate":{"type":"string","format":"date-time"},"thruDate":{"type":"string","format":"date-time"},"repeatCount":{"type":"number","format":"int64"},"paused":{"type":"string"},"expireLockTime":{"type":"number","format":"int64"},"minRetryTime":{"type":"number","format":"int64"},"priority":{"type":"number","format":"int64"},"parentJobName":{"type":"string"},"jobTypeEnumId":{"type":"string"},"permissionGroupId":{"type":"string"},"instanceOfProductId":{"type":"string"},"productStoreId":{"type":"string"},"shopId":{"type":"string"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The moqui.service.job.ServiceJob object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"moqui.service.job.ServiceJob":{"title":"Service Job","type":"object","properties":{"_entity":{"type":"string","default":"moqui.service.job.ServiceJob"},"jobName":{"type":"string"},"description":{"type":"string"},"serviceName":{"type":"string"},"transactionTimeout":{"type":"number","format":"int64"},"topic":{"type":"string"},"localOnly":{"type":"string"},"cronExpression":{"type":"string"},"fromDate":{"type":"string","format":"date-time"},"thruDate":{"type":"string","format":"date-time"},"repeatCount":{"type":"number","format":"int64"},"paused":{"type":"string"},"expireLockTime":{"type":"number","format":"int64"},"minRetryTime":{"type":"number","format":"int64"},"priority":{"type":"number","format":"int64"},"parentJobName":{"type":"string"},"jobTypeEnumId":{"type":"string"},"permissionGroupId":{"type":"string"},"instanceOfProductId":{"type":"string"},"productStoreId":{"type":"string"},"shopId":{"type":"string"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The orderRouting.PK object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRouting.PK":{"title":"Order Routing","type":"object","properties":{"_entity":{"type":"string","default":"orderRouting.PK"},"orderRoutingId":{"type":"string"}}}}}}
```

## The orderRouting.default object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRouting.default":{"title":"Order Routing (Master: default)","type":"object","properties":{"_entity":{"type":"string","default":"orderRouting"},"orderRoutingId":{"type":"string"},"routingGroupId":{"type":"string"},"statusId":{"type":"string"},"routingName":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"description":{"type":"string"},"createdByUser":{"type":"string"},"createdByUserId":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"},"orderFilters":{"type":"array","items":{"$ref":"#/components/schemas/routingOrderFilter"}},"rules":{"type":"array","items":{"$ref":"#/components/schemas/orderRoutingRule"}}}},"routingOrderFilter":{"title":"Order Filter Condition","type":"object","properties":{"_entity":{"type":"string","default":"routingOrderFilter"},"orderRoutingId":{"type":"string"},"conditionSeqId":{"type":"string"},"conditionTypeEnumId":{"type":"string"},"fieldName":{"type":"string"},"operator":{"type":"string"},"fieldValue":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}},"orderRoutingRule":{"title":"Order Routing Rule","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingRule"},"routingRuleId":{"type":"string"},"orderRoutingId":{"type":"string"},"ruleName":{"type":"string"},"statusId":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"assignmentEnumId":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"createdByUser":{"type":"string"},"createdByUserId":{"type":"string"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The routingOrderFilter object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"routingOrderFilter":{"title":"Order Filter Condition","type":"object","properties":{"_entity":{"type":"string","default":"routingOrderFilter"},"orderRoutingId":{"type":"string"},"conditionSeqId":{"type":"string"},"conditionTypeEnumId":{"type":"string"},"fieldName":{"type":"string"},"operator":{"type":"string"},"fieldValue":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The enums object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"enums":{"title":"Enumeration","type":"object","properties":{"_entity":{"type":"string","default":"enums"},"enumId":{"type":"string"},"enumTypeId":{"type":"string"},"parentEnumId":{"type":"string"},"enumCode":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"description":{"type":"string"},"optionValue":{"type":"string"},"optionIndicator":{"type":"string"},"relatedEnumId":{"type":"string"},"relatedEnumTypeId":{"type":"string"},"statusFlowId":{"type":"string"},"enumName":{"type":"string"},"primaryEnumerationGroupId":{"type":"string"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The orderRoutingRule object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRoutingRule":{"title":"Order Routing Rule","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingRule"},"routingRuleId":{"type":"string"},"orderRoutingId":{"type":"string"},"ruleName":{"type":"string"},"statusId":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"assignmentEnumId":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"createdByUser":{"type":"string"},"createdByUserId":{"type":"string"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The orderRouting.default.PK object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRouting.default.PK":{"title":"Order Routing (Master: default)","type":"object","properties":{"_entity":{"type":"string","default":"orderRouting.PK"},"orderRoutingId":{"type":"string"}}}}}}
```

## The routingOrderFilter.PK object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"routingOrderFilter.PK":{"title":"Order Filter Condition","type":"object","properties":{"_entity":{"type":"string","default":"routingOrderFilter.PK"},"orderRoutingId":{"type":"string"},"conditionSeqId":{"type":"string"}}}}}}
```

## The co.hotwax.order.routing.CommonServices.cloneOrderRouting.In object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.CommonServices.cloneOrderRouting.In":{"type":"object","properties":{"orderRoutingId":{"type":"string"},"newRoutingGroupId":{"type":"string"},"copyOrderRoutingRules":{"type":"boolean","description":"Parameter to check if the Order routing rule needs to be cloned.","default":"true"},"newRoutingName":{"type":"string"},"sequenceNum":{"type":"string","description":"Order routing group sequence. By default, it will be added as the last one."}},"required":["orderRoutingId","newRoutingGroupId"]}}}}
```

## The co.hotwax.order.routing.CommonServices.cloneOrderRouting.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.CommonServices.cloneOrderRouting.Out":{"type":"object","properties":{"newOrderRoutingId":{"type":"string"}},"required":["newOrderRoutingId"]}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.getOrderFilterSql.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.getOrderFilterSql.Out":{"type":"object","properties":{"statusId":{"type":"string"},"sql":{"type":"string"}}}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.getRoutingOrderCount.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.getRoutingOrderCount.Out":{"type":"object","properties":{"orderItemCount":{"type":"integer","format":"int64"}}}}}}
```

## The orderRoutingRule.PK object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRoutingRule.PK":{"title":"Order Routing Rule","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingRule.PK"},"routingRuleId":{"type":"string"}}}}}}
```

## The orderRoutingRule.default object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRoutingRule.default":{"title":"Order Routing Rule (Master: default)","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingRule"},"routingRuleId":{"type":"string"},"orderRoutingId":{"type":"string"},"ruleName":{"type":"string"},"statusId":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"assignmentEnumId":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"createdByUser":{"type":"string"},"createdByUserId":{"type":"string"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"},"inventoryFilters":{"type":"array","items":{"$ref":"#/components/schemas/routingRuleInvCondition"}},"actions":{"type":"array","items":{"$ref":"#/components/schemas/routingRuleAction"}},"assignment":{"$ref":"#/components/schemas/enums"}}},"routingRuleInvCondition":{"title":"Order Routing Rule Inv Cond","type":"object","properties":{"_entity":{"type":"string","default":"routingRuleInvCondition"},"routingRuleId":{"type":"string"},"conditionSeqId":{"type":"string"},"conditionTypeEnumId":{"type":"string"},"fieldName":{"type":"string"},"operator":{"type":"string"},"fieldValue":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}},"routingRuleAction":{"title":"Order Routing Rule Action","type":"object","properties":{"_entity":{"type":"string","default":"routingRuleAction"},"routingRuleId":{"type":"string"},"actionSeqId":{"type":"string"},"actionTypeEnumId":{"type":"string"},"actionValue":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}},"enums":{"title":"Enumeration","type":"object","properties":{"_entity":{"type":"string","default":"enums"},"enumId":{"type":"string"},"enumTypeId":{"type":"string"},"parentEnumId":{"type":"string"},"enumCode":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"description":{"type":"string"},"optionValue":{"type":"string"},"optionIndicator":{"type":"string"},"relatedEnumId":{"type":"string"},"relatedEnumTypeId":{"type":"string"},"statusFlowId":{"type":"string"},"enumName":{"type":"string"},"primaryEnumerationGroupId":{"type":"string"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The routingRuleInvCondition object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"routingRuleInvCondition":{"title":"Order Routing Rule Inv Cond","type":"object","properties":{"_entity":{"type":"string","default":"routingRuleInvCondition"},"routingRuleId":{"type":"string"},"conditionSeqId":{"type":"string"},"conditionTypeEnumId":{"type":"string"},"fieldName":{"type":"string"},"operator":{"type":"string"},"fieldValue":{"type":"string"},"sequenceNum":{"type":"number","format":"int64"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The routingRuleAction object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"routingRuleAction":{"title":"Order Routing Rule Action","type":"object","properties":{"_entity":{"type":"string","default":"routingRuleAction"},"routingRuleId":{"type":"string"},"actionSeqId":{"type":"string"},"actionTypeEnumId":{"type":"string"},"actionValue":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastUpdatedStamp":{"type":"string","format":"date-time"},"createdStamp":{"type":"string","format":"date-time"}}}}}}
```

## The orderRoutingRule.default.PK object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"orderRoutingRule.default.PK":{"title":"Order Routing Rule (Master: default)","type":"object","properties":{"_entity":{"type":"string","default":"orderRoutingRule.PK"},"routingRuleId":{"type":"string"}}}}}}
```

## The routingRuleInvCondition.PK object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"routingRuleInvCondition.PK":{"title":"Order Routing Rule Inv Cond","type":"object","properties":{"_entity":{"type":"string","default":"routingRuleInvCondition.PK"},"routingRuleId":{"type":"string"},"conditionSeqId":{"type":"string"}}}}}}
```

## The routingRuleAction.PK object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"routingRuleAction.PK":{"title":"Order Routing Rule Action","type":"object","properties":{"_entity":{"type":"string","default":"routingRuleAction.PK"},"routingRuleId":{"type":"string"},"actionSeqId":{"type":"string"}}}}}}
```

## The co.hotwax.order.routing.CommonServices.cloneOrderRoutingRule.In object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.CommonServices.cloneOrderRoutingRule.In":{"type":"object","properties":{"routingRuleId":{"type":"string"},"newOrderRoutingId":{"type":"string"},"newRuleName":{"type":"string"},"sequenceNum":{"type":"string","description":"Order routing group sequence. By default, it will be added as the last one."}},"required":["routingRuleId","newOrderRoutingId"]}}}}
```

## The co.hotwax.order.routing.CommonServices.cloneOrderRoutingRule.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.CommonServices.cloneOrderRoutingRule.Out":{"type":"object","properties":{"newRoutingRuleId":{"type":"string"}},"required":["newRoutingRuleId"]}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.getOrderRoutingRuleSql.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.getOrderRoutingRuleSql.Out":{"type":"object","properties":{"statusId":{"type":"string"},"sql":{"type":"string"}}}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.rejectOrderItems.In object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.rejectOrderItems.In":{"type":"object","properties":{"orderId":{"type":"string"},"notify":{"type":"boolean","description":"If set to true, an email notification will be sent on rejection, provided it is configured.","default":"false"},"items":{"type":"array","items":{"type":"object","description":"A map containing details of the items to be rejected or moved.","properties":{"facilityId":{"type":"string","description":"The facility ID of the order item's ship group."},"shipmentMethodTypeId":{"type":"string","description":"The shipment method of the order item's ship group."},"quantity":{"type":"string","description":"The quantity of the order item to be rejected. Defaults to 1.","default":"1"},"orderItemSeqId":{"type":"string","description":"The sequence ID of the order item."},"toFacilityId":{"type":"string","description":"The destination facility ID where the item will be moved after rejection."},"recordVariance":{"type":"string","description":"Set to true if a variance record needs to be created."},"rejectReason":{"type":"string","description":"The reason for rejecting the item."}}}}},"required":["orderId","items"]}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.rejectOrderItems.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.rejectOrderItems.Out":{"type":"object","properties":{"rejectedItemsList":{"type":"array","items":{"type":"object","properties":{"orderId":{"type":"string"},"orderItemSeqId":{"type":"string"},"shipGroupSeqId":{"type":"string"},"shipmentMethodTypeId":{"type":"string"},"quantity":{"type":"string"}}}}}}}}}
```

## The co.hotwax.order.routing.OrderRoutingServices.getRecentRoutingHistory.Out object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.order.routing.OrderRoutingServices.getRecentRoutingHistory.Out":{"type":"object","properties":{"routingHistoryList":{"type":"array","items":{"type":"string"}}}}}}}
```

## The co.hotwax.product.catalog.category.ProductStoreCatalogAndCategoryRollUp object

```json
{"openapi":"3.1.1","info":{"title":"Commerce order routing REST API","version":"4.0.0"},"components":{"schemas":{"co.hotwax.product.catalog.category.ProductStoreCatalogAndCategoryRollUp":{"title":"Product Store Catalog And Category Roll Up","type":"object","properties":{"_entity":{"type":"string","default":"co.hotwax.product.catalog.category.ProductStoreCatalogAndCategoryRollUp"},"productStoreId":{"type":"string"},"prodCatalogId":{"type":"string"},"fromDate":{"type":"string","format":"date-time"},"thruDate":{"type":"string","format":"date-time"},"prodCatalogCategoryTypeId":{"type":"string"},"pccFromDate":{"type":"string","format":"date-time"},"pccThruDate":{"type":"string","format":"date-time"},"productCategoryId":{"type":"string"},"parentProductCategoryId":{"type":"string"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hotwax.co/documents/integrate-with-hotwax/components/order-routing/models.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
