> For the complete documentation index, see [llms.txt](https://docs.fulfillmenttools.com/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fulfillmenttools.com/documentation/by-pillar/advanced-order-routing/decision-logs/decision-log-endpoints.md).

# Decision log endpoints

## The DecisionLog object

```json
{"openapi":"3.0.1","info":{"title":"fulfillmenttools","version":"VERSIONLESS"},"components":{"schemas":{"DecisionLog":{"allOf":[{"$ref":"#/components/schemas/VersionedResource"}],"properties":{"facilityDecisions":{"items":{"$ref":"#/components/schemas/FacilityDecision"},"type":"array"},"id":{"type":"string"},"latestPickingStartHints":{"description":"This part of the API is in Alpha status. For details, see the <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\" target=\"_blank\">API release lifecycle documentation</a>.<br /><br />In case no LPS could be calculated for this facility, the possible causes will be listed in this array. This property is an alpha property and still under development","type":"object"},"orderSplitDecision":{"$ref":"#/components/schemas/OrderSplitDecision"},"results":{"$ref":"#/components/schemas/RoutingResults"},"routingPlanRef":{"type":"string"},"routingRun":{"type":"number"},"routingStrategyEvaluationResult":{"$ref":"#/components/schemas/RoutingStrategyEvaluationResult"},"statistics":{"$ref":"#/components/schemas/RoutingStatistics"}},"required":["id","routingPlanRef","facilityDecisions","routingRun","statistics","results","created","lastModified","version"],"type":"object","xml":{"name":"DecisionLog"},"title":"DecisionLog","description":"DecisionLog"},"VersionedResource":{"properties":{"created":{"description":"The date this entity was created at the platform. This value is generated by the service.","format":"date-time","type":"string"},"lastModified":{"description":"The date this entity was modified last. This value is generated by the service.","format":"date-time","type":"string"},"version":{"description":"The version of the document to be used in optimistic locking mechanisms.","format":"int64","type":"integer"}},"required":["version"],"type":"object","title":"VersionedResource","description":"VersionedResource"},"FacilityDecision":{"properties":{"availabilities":{"items":{"$ref":"#/components/schemas/AvailabilityDuringRouting"},"type":"array"},"facility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"isBestAvailable":{"type":"boolean"},"isBestRated":{"type":"boolean"},"isBestReassignmentCandidate":{"type":"boolean"},"latestPickingStartInformation":{"$ref":"#/components/schemas/LatestPickingStartForDecisionLog"},"orderFences":{"items":{"$ref":"#/components/schemas/OrderFenceDecision"},"type":"array"},"orderLineItemFences":{"items":{"$ref":"#/components/schemas/OrderLineItemFenceDecisions"},"type":"array"},"orderRatings":{"items":{"$ref":"#/components/schemas/OrderRatingDecision"},"type":"array"},"rank":{"type":"number"},"totalPenalty":{"type":"number"}},"required":["facility","orderFences","orderLineItemFences","orderRatings","orderLineItemRatings","availabilities"],"title":"FacilityDecision","description":"FacilityDecision"},"AvailabilityDuringRouting":{"properties":{"articleTitle":{"type":"string"},"available":{"type":"number"},"availablePostRerouteAdjustment":{"type":"number"},"bundleInformation":{"items":{"$ref":"#/components/schemas/BundleInformation"},"type":"array"},"isBackOrderable":{"default":false,"type":"boolean"},"preOrderDate":{"format":"date-time","type":"string"},"requestedQuantity":{"type":"number"},"rerouteInformation":{"$ref":"#/components/schemas/AvailabilityDuringRerouteStock"},"tenantArticleId":{"type":"string"}},"required":["tenantArticleId","requestedQuantity","available","isBackOrderable"],"title":"AvailabilityDuringRouting","description":"AvailabilityDuringRouting"},"BundleInformation":{"properties":{"customServiceNodeId":{"type":"string"},"requestedQuantity":{"type":"number"}},"required":["customServiceNodeId","requestedQuantity"],"title":"BundleInformation","description":"BundleInformation"},"AvailabilityDuringRerouteStock":{"properties":{"pickedQuantity":{"type":"number"},"rerouteReason":{"$ref":"#/components/schemas/RerouteReason"}},"title":"AvailabilityDuringRerouteStock","description":"AvailabilityDuringRerouteStock"},"RerouteReason":{"enum":["ORDERMODIFIED","PROCESSREROUTE","MANUAL","SHORTPICK","TIMETRIGGERED","STOCKZEROED","ABORTED","RECALCULATION"],"type":"string","title":"RerouteReason","description":"RerouteReason"},"DecisionLogFacilityInfo":{"properties":{"facilityRef":{"type":"string"},"name":{"type":"string"}},"required":["name","facilityRef"],"title":"DecisionLogFacilityInfo","description":"DecisionLogFacilityInfo"},"LatestPickingStartForDecisionLog":{"properties":{"carrierRef":{"type":"string"},"latestPickingStartDate":{"format":"date-time","type":"string"},"lpsCalculationHints":{"description":"@deprecated, use hints","items":{"type":"string"},"type":"array"},"targetTime":{"format":"date-time","type":"string"}},"type":"object","title":"LatestPickingStartForDecisionLog","description":"LatestPickingStartForDecisionLog"},"OrderFenceDecision":{"properties":{"decision":{"$ref":"#/components/schemas/FenceResultStatus"},"details":{"items":{"anyOf":[{"$ref":"#/components/schemas/OrderFenceDecisionDetail"},{"$ref":"#/components/schemas/ToolkitDecisionDetail"},{"$ref":"#/components/schemas/ToolkitComparisonDecisionDetail"}]},"type":"array"},"name":{"type":"string"}},"required":["name","decision","details"],"type":"object","title":"OrderFenceDecision","description":"OrderFenceDecision"},"FenceResultStatus":{"enum":["FAILED","PASSED","REACTIVE_PASSING_POSSIBLE"],"title":"FenceResultStatus","description":"FenceResultStatus"},"OrderFenceDecisionDetail":{"allOf":[{"$ref":"#/components/schemas/BaseDecisionDetail"}],"description":"Order Fence Decision Detail.","properties":{"actualValue":{"type":"string"},"contextReference":{"$ref":"#/components/schemas/ContextReference"},"expectedValue":{"type":"string"},"reactiveErrorReason":{"$ref":"#/components/schemas/ReactiveErrorReason"}},"required":["expectedValue","decisionType"],"title":"OrderFenceDecisionDetail"},"BaseDecisionDetail":{"properties":{"decisionType":{"$ref":"#/components/schemas/DecisionType"}},"required":["decisionType"],"title":"BaseDecisionDetail","description":"BaseDecisionDetail"},"DecisionType":{"enum":["FENCE","TOOLKIT","TOOLKITCOMPARISON","RATING"],"title":"DecisionType","description":"DecisionType"},"ContextReference":{"properties":{"reference":{"type":"string"},"routingDecisionContext":{"$ref":"#/components/schemas/RoutingDecisionContext"}},"required":["reference","routingDecisionContext"],"title":"ContextReference","description":"ContextReference"},"RoutingDecisionContext":{"enum":["LISTING","CARRIER"],"title":"RoutingDecisionContext","description":"RoutingDecisionContext"},"ReactiveErrorReason":{"enum":["BACKORDER_LISTING","PREORDER_LISTING"],"title":"ReactiveErrorReason","description":"ReactiveErrorReason"},"ToolkitDecisionDetail":{"allOf":[{"$ref":"#/components/schemas/BaseDecisionDetail"}],"description":"Toolkit Decision Detail.","properties":{"comparisonOperator":{"$ref":"#/components/schemas/ToolkitRuleComparisonOperatorType"},"description":{"type":"string"},"explanation":{"$ref":"#/components/schemas/ToolkitRuleOperatorResultExplanation"},"leftPredicatesDetail":{"$ref":"#/components/schemas/ToolkitPredicatesDecisionDetail"},"leftSideEvaluation":{"type":"boolean"},"rightPredicatesDetail":{"$ref":"#/components/schemas/ToolkitPredicatesDecisionDetail"},"rightSideEvaluation":{"type":"boolean"}},"required":["decisionType","leftSideEvaluation","description"],"title":"ToolkitDecisionDetail"},"ToolkitRuleComparisonOperatorType":{"description":"The type of the rule operator applied to the results of evaluating the left predicates and the right predicates","enum":["NO_MATCHES","ALL_MATCHES","LEFT_CONTAINS_RIGHT","RIGHT_CONTAINS_LEFT"],"type":"string","xml":{"name":"ToolkitTransformationType"},"title":"ToolkitRuleComparisonOperatorType"},"ToolkitRuleOperatorResultExplanation":{"enum":["SKIPPED","BOTH_CONDITIONS_MET","ONLY_FIRST_CONDITION_MET","ONLY_SECOND_CONDITION_MET","SKIPPED_BECAUSE_OF_ERROR"],"title":"ToolkitRuleOperatorResultExplanation","description":"ToolkitRuleOperatorResultExplanation"},"ToolkitPredicatesDecisionDetail":{"properties":{"connector":{"$ref":"#/components/schemas/ToolkitPredicateConnector"},"predicates":{"items":{"$ref":"#/components/schemas/ToolkitPredicateDecisionDetail"},"type":"array"}},"required":["connector","predicates"],"title":"ToolkitPredicatesDecisionDetail","description":"ToolkitPredicatesDecisionDetail"},"ToolkitPredicateConnector":{"description":"The allowed operators for connecting multiple predicates","enum":["OR","AND"],"type":"string","xml":{"name":"ToolkitPredicateConnector"},"title":"ToolkitPredicateConnector"},"ToolkitPredicateDecisionDetail":{"properties":{"evaluationResult":{"type":"boolean"},"originalValue":{"items":{"type":"string"},"type":"array"},"predicate":{"$ref":"#/components/schemas/ToolkitPredicate"},"transformedValue":{"items":{"type":"string"},"type":"array"}},"required":["originalValue","transformedValue","evaluationResult","predicate"],"title":"ToolkitPredicateDecisionDetail","description":"ToolkitPredicateDecisionDetail"},"ToolkitPredicate":{"description":"The predicate for a Toolkit V2 Fence that defines how conditions are constructed","properties":{"entity":{"$ref":"#/components/schemas/ToolkitAllowedEntities"},"entityOperator":{"$ref":"#/components/schemas/ToolkitEntityOperatorType"},"expectedValue":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"propertyPath":{"minLength":1,"type":"string"},"transformation":{"$ref":"#/components/schemas/ToolkitTransformationType"},"transformationArgs":{"items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"maxItems":100,"type":"array"}},"required":["propertyPath","entityOperator","entity"],"type":"object","xml":{"name":"ToolkitPredicate"},"title":"ToolkitPredicate"},"ToolkitAllowedEntities":{"description":"The entities that can be compared by the toolkit fence or rating\n  * `ORDER`\n  * `FACILITY`\n  * `CARRIERCONNECTION`\n  * `LISTING`\n  * `ORDERING_FACILITY` - left side only\n  * `ORDERING_FACILITY_GROUPS` - left side only","enum":["ORDER","FACILITY","CARRIERCONNECTION","LISTING","ORDERING_FACILITY","ORDERING_FACILITY_GROUPS"],"type":"string","xml":{"name":"ToolkitAllowedEntities"},"title":"ToolkitAllowedEntities"},"ToolkitEntityOperatorType":{"description":"The possible operator types that can be used on given entities","enum":["VALUE_EQUALS","VALUE_NOT_EQUALS","ANY_VALUE_EQUALS","ANY_VALUE_GREATER_EQUALS","ANY_VALUE_GREATER_THAN","ANY_VALUE_LESS_EQUALS","ANY_VALUE_LESS_THAN","ANY_VALUE_CONTAINS","ANY_VALUE_NOT_CONTAINS","EVERY_VALUE_EQUALS","EVERY_VALUE_GREATER_EQUALS","EVERY_VALUE_GREATER_THAN","EVERY_VALUE_LESS_EQUALS","EVERY_VALUE_LESS_THAN","EVERY_VALUE_CONTAINS","EVERY_VALUE_NOT_CONTAINS","NO_VALUE_EQUALS","NO_VALUE_GREATER_EQUALS","NO_VALUE_GREATER_THAN","NO_VALUE_LESS_EQUALS","NO_VALUE_LESS_THAN","NO_VALUE_CONTAINS","NO_VALUE_NOT_CONTAINS","VALUE_CONTAINS","VALUE_NOT_CONTAINS","GREATER_THAN","GREATER_EQUALS","LESS_THAN","LESS_EQUALS"],"type":"string","xml":{"name":"ToolkitEntityOperatorType"},"title":"ToolkitEntityOperatorType"},"ToolkitTransformationType":{"description":"The transformations available to apply on the entity property value before a predicate is evaluated","enum":["SUBSTRING","COUNT","SUM","LAST"],"type":"string","xml":{"name":"ToolkitTransformationType"},"title":"ToolkitTransformationType"},"ToolkitComparisonDecisionDetail":{"allOf":[{"$ref":"#/components/schemas/BaseDecisionDetail"}],"description":"Toolkit Comparison Decision Detail.","properties":{"description":{"type":"string"},"explanation":{"$ref":"#/components/schemas/ToolkitRuleComparePropertiesOperatorResultExplanation"},"predicateConnector":{"$ref":"#/components/schemas/ToolkitPredicateConnector"},"predicates":{"items":{"$ref":"#/components/schemas/ToolKitComparisonDetails"},"type":"array"}},"required":["predicates","predicateConnector","description"],"title":"ToolkitComparisonDecisionDetail"},"ToolkitRuleComparePropertiesOperatorResultExplanation":{"enum":["ALL_PREDICATES_MET","NOT_ALL_PREDICATES_MET","SKIPPED_BECAUSE_OF_ERROR"],"title":"ToolkitRuleComparePropertiesOperatorResultExplanation","description":"ToolkitRuleComparePropertiesOperatorResultExplanation"},"ToolKitComparisonDetails":{"properties":{"evaluationResult":{"type":"boolean"},"leftPart":{"$ref":"#/components/schemas/ToolKitComparisonPart"},"predicate":{"$ref":"#/components/schemas/ToolkitComparisonPredicate"},"rightPart":{"$ref":"#/components/schemas/ToolKitComparisonPart"}},"required":["leftPart","rightPart","evaluationResult","predicate"],"title":"ToolKitComparisonDetails","description":"ToolKitComparisonDetails"},"ToolKitComparisonPart":{"properties":{"originalValue":{"items":{"type":"string"},"type":"array"},"transformedValue":{"items":{"type":"string"},"type":"array"}},"required":["originalValue","transformedValue"],"title":"ToolKitComparisonPart","description":"ToolKitComparisonPart"},"ToolkitComparisonPredicate":{"description":"The predicate for a Toolkit V2 Fence that defines how conditions are constructed","properties":{"entityOperator":{"$ref":"#/components/schemas/ToolkitRuleComparisonOperatorType"},"leftEntity":{"$ref":"#/components/schemas/ToolkitAllowedEntities","description":"The entity that is used for the right side of the comparison - overrides the entity2 property"},"leftPropertyPath":{"minLength":1,"type":"string"},"leftTransformation":{"$ref":"#/components/schemas/ToolkitTransformationType"},"leftTransformationArgs":{"items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"maxItems":100,"type":"array"},"rightEntity":{"$ref":"#/components/schemas/ToolkitAllowedEntities","description":"The entity that is used for the right side of the comparison - overrides the entity1 property"},"rightPropertyPath":{"minLength":1,"type":"string"},"rightTransformation":{"$ref":"#/components/schemas/ToolkitTransformationType"},"rightTransformationArgs":{"items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"maxItems":100,"type":"array"}},"required":["rightPropertyPath","leftPropertyPath","entityOperator","leftEntity","rightEntity"],"type":"object","xml":{"name":"ToolkitComparisonPredicate"},"title":"ToolkitComparisonPredicate"},"OrderLineItemFenceDecisions":{"properties":{"name":{"type":"string"},"orderLineItems":{"items":{"$ref":"#/components/schemas/OrderLineItemFenceDecision"},"type":"array"}},"required":["name","orderLineItems"],"title":"OrderLineItemFenceDecisions","description":"OrderLineItemFenceDecisions"},"OrderLineItemFenceDecision":{"properties":{"articleTitle":{"type":"string"},"decision":{"$ref":"#/components/schemas/FenceResultStatus"},"details":{"items":{"anyOf":[{"$ref":"#/components/schemas/OrderFenceDecisionDetail"},{"$ref":"#/components/schemas/ToolkitDecisionDetail"},{"$ref":"#/components/schemas/ToolkitComparisonDecisionDetail"}]},"type":"array"},"reactiveErrorReason":{"$ref":"#/components/schemas/ReactiveErrorReason"},"tenantArticleId":{"type":"string"}},"required":["tenantArticleId","articleTitle","decision","details"],"type":"object","title":"OrderLineItemFenceDecision","description":"OrderLineItemFenceDecision"},"OrderRatingDecision":{"properties":{"details":{"items":{"anyOf":[{"$ref":"#/components/schemas/ToolkitDecisionDetail"},{"$ref":"#/components/schemas/ToolkitComparisonDecisionDetail"}]},"type":"array"},"maxPenalty":{"type":"number"},"name":{"type":"string"},"normalizedScore":{"type":"number"},"score":{"type":"number"}},"required":["name","normalizedScore","maxPenalty"],"type":"object","title":"OrderRatingDecision","description":"OrderRatingDecision"},"OrderSplitDecision":{"properties":{"reassignment":{"$ref":"#/components/schemas/ReassignmentInformation"},"split":{"$ref":"#/components/schemas/SplitInformation"},"splitType":{"$ref":"#/components/schemas/SplitResultType"}},"required":["splitType"],"title":"OrderSplitDecision","description":"OrderSplitDecision"},"ReassignmentInformation":{"properties":{"reassignedItems":{"items":{"$ref":"#/components/schemas/AssignmentItem"},"type":"array"},"sourceFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"}},"required":["sourceFacility","reassignedItems"],"title":"ReassignmentInformation","description":"ReassignmentInformation"},"AssignmentItem":{"properties":{"articleTitle":{"type":"string"},"quantity":{"type":"number"},"tenantArticleId":{"type":"string"}},"required":["tenantArticleId","quantity"],"title":"AssignmentItem","description":"AssignmentItem"},"SplitInformation":{"properties":{"splitCount":{"type":"number"},"splittedItems":{"items":{"$ref":"#/components/schemas/AssignmentItem"},"type":"array"},"targetFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"targetRoutingPlanRef":{"type":"string"}},"required":["splitCount","targetRoutingPlanRef","splittedItems"],"title":"SplitInformation","description":"SplitInformation"},"SplitResultType":{"enum":["SPLIT","DO_NOT_SPLIT","DO_NOT_SPLIT_USE_BEST_RATED","DO_NOT_SPLIT_BECAUSE_AVAILABILITY_USE_BEST_RATED","DO_NOT_SPLIT_USE_BEST_AVAILABLE","REASSIGN_TO_PARENT","REASSIGN_TO_PARENT_COMPLETELY","FAIL","INVALID_SPLIT","PARK_IN_WAITING_ROOM"],"title":"SplitResultType","description":"SplitResultType"},"RoutingResults":{"properties":{"assignedItems":{"items":{"$ref":"#/components/schemas/AssignmentItem"},"type":"array"},"bestAvailableFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"bestRatedFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"bestReassignmentFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"routingPlanStatus":{"$ref":"#/components/schemas/RoutingPlanStatus"}},"required":["assignedItems"],"title":"RoutingResults","description":"RoutingResults"},"RoutingPlanStatus":{"description":"A routing plan line initially has the status INITIAL. Final state is ROUTED","enum":["IN_PREPARATION","INITIAL","PRIORITIZED","ROUTING","PROPOSED","PLANNED","ROUTED","NOT_ROUTABLE","MANUAL_PLANNED","FAILED","REDUNDANT_REROUTE","FAILED_REROUTE","RETRYABLE","FALLBACK_ROUTING","WAITING","OBSOLETE","CANCELED","LOCKED","PROMISED","REROUTED"],"type":"string","xml":{"name":"RoutingPlanStatus"},"title":"RoutingPlanStatus"},"RoutingStrategyEvaluationResult":{"properties":{"evaluatedConfig":{"$ref":"#/components/schemas/RoutingStrategyNodeConfig"},"evaluatedPath":{"items":{"$ref":"#/components/schemas/RoutingStrategyPathElement"},"type":"array"}},"required":["evaluatedConfig","evaluatedPath"],"type":"object","title":"RoutingStrategyEvaluationResult","description":"RoutingStrategyEvaluationResult"},"RoutingStrategyNodeConfig":{"additionalProperties":false,"properties":{"fallbackFacility":{"$ref":"#/components/schemas/RoutingStrategyFallbackFacilityConfig"},"fences":{"items":{"anyOf":[{"$ref":"#/components/schemas/RoutingStrategyStandardFence"},{"$ref":"#/components/schemas/RoutingStrategyToolkitFence"}],"discriminator":{"propertyName":"type","mapping":{"StandardFence":"#/components/schemas/RoutingStrategyStandardFence","ToolkitFence":"#/components/schemas/RoutingStrategyToolkitFence"}}},"type":"array"},"orderSplit":{"$ref":"#/components/schemas/RoutingStrategyOrderSplitConfig"},"priorityRatings":{"items":{"anyOf":[{"$ref":"#/components/schemas/RoutingStrategyStandardPriorityRating"},{"$ref":"#/components/schemas/RoutingStrategyToolkitPriorityRating"}],"discriminator":{"propertyName":"type","mapping":{"StandardPriorityRating":"#/components/schemas/RoutingStrategyStandardPriorityRating","ToolkitPriorityRating":"#/components/schemas/RoutingStrategyToolkitPriorityRating"}}},"type":"array","description":"This part of the API is in Alpha status. For details, see the <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\" target=\"_blank\">API release lifecycle documentation</a>.<br /><br />"},"ratings":{"items":{"anyOf":[{"$ref":"#/components/schemas/RoutingStrategyStandardRating"},{"$ref":"#/components/schemas/RoutingStrategyToolkitRating"}],"discriminator":{"propertyName":"type","mapping":{"StandardRating":"#/components/schemas/RoutingStrategyStandardRating","ToolkitRating":"#/components/schemas/RoutingStrategyToolkitRating"}}},"type":"array"},"reroute":{"$ref":"#/components/schemas/RoutingStrategyRerouteConfig"}},"required":["fences","ratings"],"type":"object","title":"RoutingStrategyNodeConfig","description":"RoutingStrategyNodeConfig"},"RoutingStrategyFallbackFacilityConfig":{"properties":{"active":{"default":false,"type":"boolean"},"facilityRefs":{"items":{"type":"string"},"maxItems":1,"minItems":1,"type":"array"},"fallbackAfterTime":{"default":"PT0H","description":"Default amount of time in ISO 8601 duration format after which a not routable routingplan is routed to a configured fallback facility.","pattern":"^P(?:(\\d+W)|(\\d+Y)?(\\d+M)?(\\d+D)?(?:T(\\d+H)?(\\d+M)?(\\d+S)?)?)$","type":"string"}},"required":["facilityRefs","active","fallbackAfterTime"],"title":"RoutingStrategyFallbackFacilityConfig","description":"RoutingStrategyFallbackFacilityConfig"},"RoutingStrategyStandardFence":{"additionalProperties":false,"description":"Routing Strategy Fence.","properties":{"active":{"type":"boolean"},"activeMode":{"$ref":"#/components/schemas/FenceMode"},"description":{"type":"string"},"implementation":{"$ref":"#/components/schemas/FenceImplementation"},"name":{"type":"string"},"supportedModes":{"items":{"$ref":"#/components/schemas/FenceMode"},"type":"array"},"type":{"$ref":"#/components/schemas/RoutingStrategyStandardFenceType"}},"required":["active","implementation","type"],"title":"RoutingStrategyFence","type":"object"},"FenceMode":{"enum":["static","reactive"],"type":"string","title":"FenceMode","description":"FenceMode"},"FenceImplementation":{"description":"<i>This part of the API is currently under development. That means that this endpoint, model, etc. can contain breaking changes and/or might not be available at all times in your API instance. It could also disappear without warning. It currently does not fall under our SLA regulations. For details, see our <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\">API lifecycle documentation</a></i>","enum":["FACILITY-BUSINESSTYPE","STOCK-AVAILABILITY","FACILITY-CARRIERAVAILABILITY","FACILITY-COUNTRY","FACILITY-PICKING-TIME-CAPACITY","PRESELECTED-FACILITY","SAMEDAY-POSSIBLE","AVOID-ZERO-STOCK","PACKAGING-POSSIBLE"],"type":"string","xml":{"name":"FenceImplementation"},"title":"FenceImplementation"},"RoutingStrategyStandardFenceType":{"enum":["StandardFence"],"type":"string","title":"RoutingStrategyStandardFenceType","description":"RoutingStrategyStandardFenceType"},"RoutingStrategyToolkitFence":{"additionalProperties":false,"description":"Routing Strategy Toolkit Fence.","properties":{"descriptionLocalized":{"$ref":"#/components/schemas/LocaleString"},"nameLocalized":{"$ref":"#/components/schemas/LocaleString"},"active":{"default":false,"description":"Indicates whether this fence is active or not.","type":"boolean"},"comparisonRule":{"$ref":"#/components/schemas/ToolkitComparisonRule"},"description":{"description":"The description of this fence.","type":"string"},"entity1":{"$ref":"#/components/schemas/ToolkitAllowedEntities","deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"entity2":{"$ref":"#/components/schemas/ToolkitAllowedEntities","deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"name":{"description":"The name of the fence.","type":"string"},"order":{"description":"Order in which this fence is executed","type":"integer"},"referenceId":{"type":"string"},"rule":{"$ref":"#/components/schemas/ToolkitRule"},"type":{"$ref":"#/components/schemas/RoutingStrategyToolkitFenceType"}},"required":["nameLocalized","active","order","type","referenceId"],"title":"RoutingStrategyToolkitFence"},"LocaleString":{"additionalProperties":{"type":"string"},"description":"Provides localized values. The key is the locale, the value is the translation. https://docs.fulfillmenttools.com/documentation/getting-started/authentication-and-authorization/localization","title":"LocaleString","type":"object"},"ToolkitComparisonRule":{"description":"The rule, comparing the left and right path values, that will be evaluated applying a RuleOperator","properties":{"evaluationScope":{"$ref":"#/components/schemas/ToolkitRuleScope"},"predicateConnector":{"$ref":"#/components/schemas/ToolkitPredicateConnector"},"predicates":{"items":{"$ref":"#/components/schemas/ToolkitComparisonPredicate"},"maxItems":100,"minItems":1,"type":"array"}},"required":["predicates","evaluationScope"],"type":"object","xml":{"name":"ToolkitRule"},"title":"ToolkitComparisonRule"},"ToolkitRuleScope":{"enum":["WHOLE_ENTITY","LINE_ITEM"],"type":"string","xml":{"name":"ToolkitRuleScope"},"title":"ToolkitRuleScope","description":"ToolkitRuleScope"},"ToolkitRule":{"description":"The rule, containing the left predicates and the right predicates, that will be evaluated applying a RuleOperator","properties":{"evaluationScope":{"$ref":"#/components/schemas/ToolkitRuleScope"},"leftPart":{"$ref":"#/components/schemas/ToolkitRulePart"},"operator":{"$ref":"#/components/schemas/ToolkitRuleOperatorType"},"rightPart":{"$ref":"#/components/schemas/ToolkitRulePart"}},"required":["operator","leftPart","rightPart","evaluationScope"],"type":"object","xml":{"name":"ToolkitRule"},"title":"ToolkitRule"},"ToolkitRulePart":{"additionalProperties":false,"description":"One half of the rule, containing either the left or right predicates and booleanOperator.","properties":{"predicateConnector":{"$ref":"#/components/schemas/ToolkitPredicateConnector"},"predicates":{"items":{"$ref":"#/components/schemas/ToolkitPredicate"},"maxItems":100,"minItems":1,"type":"array"}},"required":["predicates"],"type":"object","xml":{"name":"ToolkitRulePart"},"title":"ToolkitRulePart"},"ToolkitRuleOperatorType":{"description":"The type of the rule operator applied to the results of evaluating the left predicates and the right predicates","enum":["EQUALS"],"type":"string","xml":{"name":"ToolkitTransformationType"},"title":"ToolkitRuleOperatorType"},"RoutingStrategyToolkitFenceType":{"enum":["ToolkitFence"],"type":"string","title":"RoutingStrategyToolkitFenceType","description":"RoutingStrategyToolkitFenceType"},"RoutingStrategyOrderSplitConfig":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"activeForSameday":{"type":"boolean"},"maxSplitCount":{"type":"integer"},"shouldUseWaitingRoomForPreBackOrderItems":{"type":"boolean"}},"required":["active","maxSplitCount","activeForSameday","shouldUseWaitingRoomForPreBackOrderItems"],"type":"object","title":"RoutingStrategyOrderSplitConfig","description":"RoutingStrategyOrderSplitConfig"},"RoutingStrategyStandardPriorityRating":{"additionalProperties":false,"description":"A rating is used to rate a set of possible facilities against each other during routing of orders, ordered by priority.","properties":{"active":{"type":"boolean"},"configuration":{"$ref":"#/components/schemas/AbstractRatingConfiguration"},"description":{"type":"string"},"implementation":{"$ref":"#/components/schemas/RatingImplementation"},"name":{"type":"string"},"priority":{"minimum":0,"type":"number"},"type":{"$ref":"#/components/schemas/RoutingStrategyStandardPriorityRatingType"}},"required":["active","priority","type","implementation"],"title":"RoutingStrategyStandardPriorityRating","type":"object"},"AbstractRatingConfiguration":{"description":"Base configuration for ratings. See documentation for details.","properties":{"type":{"$ref":"#/components/schemas/RatingConfigurationType"}},"title":"AbstractRatingConfiguration","type":"object","xml":{"name":"AbstractRatingConfiguration"}},"RatingConfigurationType":{"description":"This part of the API is in Beta status. For details, see the <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\" target=\"_blank\">API release lifecycle documentation</a>.<br /><br />Identifies the rating configuration variant and determines which properties are applicable.","enum":["COST_COMPONENTS"],"type":"string","xml":{"name":"RatingConfigurationType"},"title":"RatingConfigurationType"},"RatingImplementation":{"description":"This part of the API is in Beta status. For details, see the <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\" target=\"_blank\">API release lifecycle documentation</a>.<br /><br />Discriminator identifying a rating variant.","enum":["STOCK-BALANCING","GEO-DISTANCE","TURNOVER","STOCK-AVAILABILITY","WORKLOAD-BALANCING","MATCHING-BUSINESSTYPE","PREFER-STORE","PREFER-WAREHOUSE","ZONE","EXPIRY-DATE","CAPACITY","DELIVERY-COSTS","DELIVERY-TIME","COST-COMPONENTS","NUMBER-OF-DELIVERIES"],"type":"string","xml":{"name":"RatingImplementation"},"title":"RatingImplementation"},"RoutingStrategyStandardPriorityRatingType":{"description":"Discriminator identifying a rating as a routing strategy standard rating, ordered by priority.","enum":["StandardPriorityRating"],"type":"string","title":"RoutingStrategyStandardPriorityRatingType"},"RoutingStrategyToolkitPriorityRating":{"additionalProperties":false,"description":"Routing Strategy Toolkit Rating, ordered by priority.","properties":{"nameLocalized":{"$ref":"#/components/schemas/LocaleString"},"descriptionLocalized":{"$ref":"#/components/schemas/LocaleString"},"active":{"type":"boolean"},"comparisonRule":{"$ref":"#/components/schemas/ToolkitComparisonRule"},"description":{"description":"The description of this rating","type":"string"},"entity1":{"allOf":[{"$ref":"#/components/schemas/ToolkitAllowedEntities"}],"deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"entity2":{"allOf":[{"$ref":"#/components/schemas/ToolkitAllowedEntities"}],"deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"name":{"description":"The name of the rating","type":"string"},"priority":{"description":"The priority of this rating","type":"integer"},"referenceId":{"type":"string"},"rule":{"$ref":"#/components/schemas/ToolkitRule"},"type":{"$ref":"#/components/schemas/RoutingStrategyToolkitPriorityRatingType"}},"required":["active","priority","referenceId","nameLocalized","type"],"title":"RoutingStrategyToolkitPriorityRating","type":"object"},"RoutingStrategyToolkitPriorityRatingType":{"description":"Discriminator identifying a rating as a routing strategy toolkit rating, ordered by priority.","enum":["ToolkitPriorityRating"],"type":"string","title":"RoutingStrategyToolkitPriorityRatingType"},"RoutingStrategyStandardRating":{"additionalProperties":false,"description":"A rating is used to rate a set of possible facilities against each other during routing of orders.","properties":{"active":{"type":"boolean"},"configuration":{"$ref":"#/components/schemas/AbstractRatingConfiguration"},"description":{"type":"string"},"implementation":{"$ref":"#/components/schemas/RatingImplementation"},"maxPenalty":{"minimum":0,"type":"number"},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/RoutingStrategyStandardRatingType"}},"required":["active","maxPenalty","type","implementation"],"title":"RoutingStrategyStandardRating","type":"object"},"RoutingStrategyStandardRatingType":{"description":"Discriminator identifying a rating as a routing strategy standard rating.","enum":["StandardRating"],"type":"string","title":"RoutingStrategyStandardRatingType"},"RoutingStrategyToolkitRating":{"additionalProperties":false,"description":"Routing Strategy Toolkit Rating.","properties":{"nameLocalized":{"$ref":"#/components/schemas/LocaleString"},"descriptionLocalized":{"$ref":"#/components/schemas/LocaleString"},"active":{"default":false,"description":"Indicates whether this rating is active or not","type":"boolean"},"comparisonRule":{"$ref":"#/components/schemas/ToolkitComparisonRule"},"description":{"description":"The description of this rating","type":"string"},"entity1":{"allOf":[{"$ref":"#/components/schemas/ToolkitAllowedEntities"}],"deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"entity2":{"allOf":[{"$ref":"#/components/schemas/ToolkitAllowedEntities"}],"deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"maxPenalty":{"description":"The maximum penalty this rating can have","type":"integer"},"name":{"description":"The name of the rating","type":"string"},"referenceId":{"type":"string"},"rule":{"$ref":"#/components/schemas/ToolkitRule"},"type":{"$ref":"#/components/schemas/RoutingStrategyToolkitRatingType"}},"required":["active","maxPenalty","referenceId","nameLocalized","type"],"title":"RoutingStrategyToolkitRating","type":"object"},"RoutingStrategyToolkitRatingType":{"description":"Discriminator identifying a rating as a routing strategy toolkit rating.","enum":["ToolkitRating"],"type":"string","title":"RoutingStrategyToolkitRatingType"},"RoutingStrategyRerouteConfig":{"additionalProperties":false,"properties":{"clickAndCollect":{"$ref":"#/components/schemas/RoutingStrategyFacilityRerouteConfig"},"manualReroute":{"type":"boolean"},"rerouteZeroPicksOnly":{"default":false,"description":"Specifies whether only pick jobs with zero items picked are eligible for rerouting.","type":"boolean"},"shipFromStore":{"$ref":"#/components/schemas/RoutingStrategyFacilityRerouteConfig"}},"type":"object","title":"RoutingStrategyRerouteConfig","description":"RoutingStrategyRerouteConfig"},"RoutingStrategyFacilityRerouteConfig":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"rerouteType":{"$ref":"#/components/schemas/RoutingStrategyRerouteType"}},"required":["rerouteType"],"type":"object","title":"RoutingStrategyFacilityRerouteConfig","description":"RoutingStrategyFacilityRerouteConfig"},"RoutingStrategyRerouteType":{"description":"The type of reroute to apply to the order\n  * `REROUTE`- the complete routing plan is rerouted.\n  * `ORDERSPLIT`- the order is splitted. The split line items will be moved to a new routing plan and rerouted.","enum":["REROUTE","ORDERSPLIT"],"type":"string","title":"RoutingStrategyRerouteType"},"RoutingStrategyPathElement":{"properties":{"nameLocalized":{"$ref":"#/components/schemas/LocaleString"},"evaluationResult":{"$ref":"#/components/schemas/RoutingStrategyEvaluationResultType"},"ref":{"type":"string"},"type":{"$ref":"#/components/schemas/RoutingStrategyPathElementType"}},"required":["type","ref","evaluationResult","nameLocalized"],"type":"object","title":"RoutingStrategyPathElement","description":"RoutingStrategyPathElement"},"RoutingStrategyEvaluationResultType":{"enum":["NODE_INACTIVE","NODE_ACTIVE","CONDITION_INACTIVE","CONDITION_FALSE","CONDITION_TRUE"],"type":"string","title":"RoutingStrategyEvaluationResultType","description":"RoutingStrategyEvaluationResultType"},"RoutingStrategyPathElementType":{"enum":["CONDITION","NODE"],"type":"string","title":"RoutingStrategyPathElementType","description":"RoutingStrategyPathElementType"},"RoutingStatistics":{"properties":{"durationMs":{"type":"number"},"fenceStatistics":{"items":{"$ref":"#/components/schemas/FenceStatistic"},"type":"array"},"ratingStatistics":{"items":{"$ref":"#/components/schemas/RatingStatistic"},"type":"array"}},"required":["fenceStatistics","ratingStatistics","lineItemFenceStatistics"],"title":"RoutingStatistics","description":"RoutingStatistics"},"FenceStatistic":{"properties":{"durationMs":{"description":"Duration in Milliseconds","type":"number"},"name":{"type":"string"},"passedAmount":{"type":"number"},"passedPercentage":{"type":"number"},"rejectedAmount":{"type":"number"}},"required":["name","rejectedAmount","passedAmount","passedPercentage","durationMs"],"title":"FenceStatistic","description":"FenceStatistic"},"RatingStatistic":{"properties":{"durationMs":{"description":"Duration in Milliseconds","type":"number"},"maxPenalty":{"type":"number"},"maxScore":{"type":"number"},"minScore":{"type":"number"},"name":{"type":"string"}},"required":["name","maxPenalty","durationMs"],"title":"RatingStatistic","description":"RatingStatistic"}}}}
```

## List routing plan decision log

> Retrieves in-depth information about the standard routing process

```json
{"openapi":"3.0.1","info":{"title":"fulfillmenttools","version":"VERSIONLESS"},"tags":[{"description":"Endpoints to get information out of the brain of our Distributed Order Management System (DOMS).","name":"Routing Plans (DOMS)"}],"servers":[{"url":"https://{tenant}.api.fulfillmenttools.com","variables":{"tenant":{"default":"your-tenant-name"}}}],"security":[{"BearerToken":[]}],"components":{"securitySchemes":{"BearerToken":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"DecisionLog":{"allOf":[{"$ref":"#/components/schemas/VersionedResource"}],"properties":{"facilityDecisions":{"items":{"$ref":"#/components/schemas/FacilityDecision"},"type":"array"},"id":{"type":"string"},"latestPickingStartHints":{"description":"This part of the API is in Alpha status. For details, see the <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\" target=\"_blank\">API release lifecycle documentation</a>.<br /><br />In case no LPS could be calculated for this facility, the possible causes will be listed in this array. This property is an alpha property and still under development","type":"object"},"orderSplitDecision":{"$ref":"#/components/schemas/OrderSplitDecision"},"results":{"$ref":"#/components/schemas/RoutingResults"},"routingPlanRef":{"type":"string"},"routingRun":{"type":"number"},"routingStrategyEvaluationResult":{"$ref":"#/components/schemas/RoutingStrategyEvaluationResult"},"statistics":{"$ref":"#/components/schemas/RoutingStatistics"}},"required":["id","routingPlanRef","facilityDecisions","routingRun","statistics","results","created","lastModified","version"],"type":"object","xml":{"name":"DecisionLog"},"title":"DecisionLog","description":"DecisionLog"},"VersionedResource":{"properties":{"created":{"description":"The date this entity was created at the platform. This value is generated by the service.","format":"date-time","type":"string"},"lastModified":{"description":"The date this entity was modified last. This value is generated by the service.","format":"date-time","type":"string"},"version":{"description":"The version of the document to be used in optimistic locking mechanisms.","format":"int64","type":"integer"}},"required":["version"],"type":"object","title":"VersionedResource","description":"VersionedResource"},"FacilityDecision":{"properties":{"availabilities":{"items":{"$ref":"#/components/schemas/AvailabilityDuringRouting"},"type":"array"},"facility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"isBestAvailable":{"type":"boolean"},"isBestRated":{"type":"boolean"},"isBestReassignmentCandidate":{"type":"boolean"},"latestPickingStartInformation":{"$ref":"#/components/schemas/LatestPickingStartForDecisionLog"},"orderFences":{"items":{"$ref":"#/components/schemas/OrderFenceDecision"},"type":"array"},"orderLineItemFences":{"items":{"$ref":"#/components/schemas/OrderLineItemFenceDecisions"},"type":"array"},"orderRatings":{"items":{"$ref":"#/components/schemas/OrderRatingDecision"},"type":"array"},"rank":{"type":"number"},"totalPenalty":{"type":"number"}},"required":["facility","orderFences","orderLineItemFences","orderRatings","orderLineItemRatings","availabilities"],"title":"FacilityDecision","description":"FacilityDecision"},"AvailabilityDuringRouting":{"properties":{"articleTitle":{"type":"string"},"available":{"type":"number"},"availablePostRerouteAdjustment":{"type":"number"},"bundleInformation":{"items":{"$ref":"#/components/schemas/BundleInformation"},"type":"array"},"isBackOrderable":{"default":false,"type":"boolean"},"preOrderDate":{"format":"date-time","type":"string"},"requestedQuantity":{"type":"number"},"rerouteInformation":{"$ref":"#/components/schemas/AvailabilityDuringRerouteStock"},"tenantArticleId":{"type":"string"}},"required":["tenantArticleId","requestedQuantity","available","isBackOrderable"],"title":"AvailabilityDuringRouting","description":"AvailabilityDuringRouting"},"BundleInformation":{"properties":{"customServiceNodeId":{"type":"string"},"requestedQuantity":{"type":"number"}},"required":["customServiceNodeId","requestedQuantity"],"title":"BundleInformation","description":"BundleInformation"},"AvailabilityDuringRerouteStock":{"properties":{"pickedQuantity":{"type":"number"},"rerouteReason":{"$ref":"#/components/schemas/RerouteReason"}},"title":"AvailabilityDuringRerouteStock","description":"AvailabilityDuringRerouteStock"},"RerouteReason":{"enum":["ORDERMODIFIED","PROCESSREROUTE","MANUAL","SHORTPICK","TIMETRIGGERED","STOCKZEROED","ABORTED","RECALCULATION"],"type":"string","title":"RerouteReason","description":"RerouteReason"},"DecisionLogFacilityInfo":{"properties":{"facilityRef":{"type":"string"},"name":{"type":"string"}},"required":["name","facilityRef"],"title":"DecisionLogFacilityInfo","description":"DecisionLogFacilityInfo"},"LatestPickingStartForDecisionLog":{"properties":{"carrierRef":{"type":"string"},"latestPickingStartDate":{"format":"date-time","type":"string"},"lpsCalculationHints":{"description":"@deprecated, use hints","items":{"type":"string"},"type":"array"},"targetTime":{"format":"date-time","type":"string"}},"type":"object","title":"LatestPickingStartForDecisionLog","description":"LatestPickingStartForDecisionLog"},"OrderFenceDecision":{"properties":{"decision":{"$ref":"#/components/schemas/FenceResultStatus"},"details":{"items":{"anyOf":[{"$ref":"#/components/schemas/OrderFenceDecisionDetail"},{"$ref":"#/components/schemas/ToolkitDecisionDetail"},{"$ref":"#/components/schemas/ToolkitComparisonDecisionDetail"}]},"type":"array"},"name":{"type":"string"}},"required":["name","decision","details"],"type":"object","title":"OrderFenceDecision","description":"OrderFenceDecision"},"FenceResultStatus":{"enum":["FAILED","PASSED","REACTIVE_PASSING_POSSIBLE"],"title":"FenceResultStatus","description":"FenceResultStatus"},"OrderFenceDecisionDetail":{"allOf":[{"$ref":"#/components/schemas/BaseDecisionDetail"}],"description":"Order Fence Decision Detail.","properties":{"actualValue":{"type":"string"},"contextReference":{"$ref":"#/components/schemas/ContextReference"},"expectedValue":{"type":"string"},"reactiveErrorReason":{"$ref":"#/components/schemas/ReactiveErrorReason"}},"required":["expectedValue","decisionType"],"title":"OrderFenceDecisionDetail"},"BaseDecisionDetail":{"properties":{"decisionType":{"$ref":"#/components/schemas/DecisionType"}},"required":["decisionType"],"title":"BaseDecisionDetail","description":"BaseDecisionDetail"},"DecisionType":{"enum":["FENCE","TOOLKIT","TOOLKITCOMPARISON","RATING"],"title":"DecisionType","description":"DecisionType"},"ContextReference":{"properties":{"reference":{"type":"string"},"routingDecisionContext":{"$ref":"#/components/schemas/RoutingDecisionContext"}},"required":["reference","routingDecisionContext"],"title":"ContextReference","description":"ContextReference"},"RoutingDecisionContext":{"enum":["LISTING","CARRIER"],"title":"RoutingDecisionContext","description":"RoutingDecisionContext"},"ReactiveErrorReason":{"enum":["BACKORDER_LISTING","PREORDER_LISTING"],"title":"ReactiveErrorReason","description":"ReactiveErrorReason"},"ToolkitDecisionDetail":{"allOf":[{"$ref":"#/components/schemas/BaseDecisionDetail"}],"description":"Toolkit Decision Detail.","properties":{"comparisonOperator":{"$ref":"#/components/schemas/ToolkitRuleComparisonOperatorType"},"description":{"type":"string"},"explanation":{"$ref":"#/components/schemas/ToolkitRuleOperatorResultExplanation"},"leftPredicatesDetail":{"$ref":"#/components/schemas/ToolkitPredicatesDecisionDetail"},"leftSideEvaluation":{"type":"boolean"},"rightPredicatesDetail":{"$ref":"#/components/schemas/ToolkitPredicatesDecisionDetail"},"rightSideEvaluation":{"type":"boolean"}},"required":["decisionType","leftSideEvaluation","description"],"title":"ToolkitDecisionDetail"},"ToolkitRuleComparisonOperatorType":{"description":"The type of the rule operator applied to the results of evaluating the left predicates and the right predicates","enum":["NO_MATCHES","ALL_MATCHES","LEFT_CONTAINS_RIGHT","RIGHT_CONTAINS_LEFT"],"type":"string","xml":{"name":"ToolkitTransformationType"},"title":"ToolkitRuleComparisonOperatorType"},"ToolkitRuleOperatorResultExplanation":{"enum":["SKIPPED","BOTH_CONDITIONS_MET","ONLY_FIRST_CONDITION_MET","ONLY_SECOND_CONDITION_MET","SKIPPED_BECAUSE_OF_ERROR"],"title":"ToolkitRuleOperatorResultExplanation","description":"ToolkitRuleOperatorResultExplanation"},"ToolkitPredicatesDecisionDetail":{"properties":{"connector":{"$ref":"#/components/schemas/ToolkitPredicateConnector"},"predicates":{"items":{"$ref":"#/components/schemas/ToolkitPredicateDecisionDetail"},"type":"array"}},"required":["connector","predicates"],"title":"ToolkitPredicatesDecisionDetail","description":"ToolkitPredicatesDecisionDetail"},"ToolkitPredicateConnector":{"description":"The allowed operators for connecting multiple predicates","enum":["OR","AND"],"type":"string","xml":{"name":"ToolkitPredicateConnector"},"title":"ToolkitPredicateConnector"},"ToolkitPredicateDecisionDetail":{"properties":{"evaluationResult":{"type":"boolean"},"originalValue":{"items":{"type":"string"},"type":"array"},"predicate":{"$ref":"#/components/schemas/ToolkitPredicate"},"transformedValue":{"items":{"type":"string"},"type":"array"}},"required":["originalValue","transformedValue","evaluationResult","predicate"],"title":"ToolkitPredicateDecisionDetail","description":"ToolkitPredicateDecisionDetail"},"ToolkitPredicate":{"description":"The predicate for a Toolkit V2 Fence that defines how conditions are constructed","properties":{"entity":{"$ref":"#/components/schemas/ToolkitAllowedEntities"},"entityOperator":{"$ref":"#/components/schemas/ToolkitEntityOperatorType"},"expectedValue":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"propertyPath":{"minLength":1,"type":"string"},"transformation":{"$ref":"#/components/schemas/ToolkitTransformationType"},"transformationArgs":{"items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"maxItems":100,"type":"array"}},"required":["propertyPath","entityOperator","entity"],"type":"object","xml":{"name":"ToolkitPredicate"},"title":"ToolkitPredicate"},"ToolkitAllowedEntities":{"description":"The entities that can be compared by the toolkit fence or rating\n  * `ORDER`\n  * `FACILITY`\n  * `CARRIERCONNECTION`\n  * `LISTING`\n  * `ORDERING_FACILITY` - left side only\n  * `ORDERING_FACILITY_GROUPS` - left side only","enum":["ORDER","FACILITY","CARRIERCONNECTION","LISTING","ORDERING_FACILITY","ORDERING_FACILITY_GROUPS"],"type":"string","xml":{"name":"ToolkitAllowedEntities"},"title":"ToolkitAllowedEntities"},"ToolkitEntityOperatorType":{"description":"The possible operator types that can be used on given entities","enum":["VALUE_EQUALS","VALUE_NOT_EQUALS","ANY_VALUE_EQUALS","ANY_VALUE_GREATER_EQUALS","ANY_VALUE_GREATER_THAN","ANY_VALUE_LESS_EQUALS","ANY_VALUE_LESS_THAN","ANY_VALUE_CONTAINS","ANY_VALUE_NOT_CONTAINS","EVERY_VALUE_EQUALS","EVERY_VALUE_GREATER_EQUALS","EVERY_VALUE_GREATER_THAN","EVERY_VALUE_LESS_EQUALS","EVERY_VALUE_LESS_THAN","EVERY_VALUE_CONTAINS","EVERY_VALUE_NOT_CONTAINS","NO_VALUE_EQUALS","NO_VALUE_GREATER_EQUALS","NO_VALUE_GREATER_THAN","NO_VALUE_LESS_EQUALS","NO_VALUE_LESS_THAN","NO_VALUE_CONTAINS","NO_VALUE_NOT_CONTAINS","VALUE_CONTAINS","VALUE_NOT_CONTAINS","GREATER_THAN","GREATER_EQUALS","LESS_THAN","LESS_EQUALS"],"type":"string","xml":{"name":"ToolkitEntityOperatorType"},"title":"ToolkitEntityOperatorType"},"ToolkitTransformationType":{"description":"The transformations available to apply on the entity property value before a predicate is evaluated","enum":["SUBSTRING","COUNT","SUM","LAST"],"type":"string","xml":{"name":"ToolkitTransformationType"},"title":"ToolkitTransformationType"},"ToolkitComparisonDecisionDetail":{"allOf":[{"$ref":"#/components/schemas/BaseDecisionDetail"}],"description":"Toolkit Comparison Decision Detail.","properties":{"description":{"type":"string"},"explanation":{"$ref":"#/components/schemas/ToolkitRuleComparePropertiesOperatorResultExplanation"},"predicateConnector":{"$ref":"#/components/schemas/ToolkitPredicateConnector"},"predicates":{"items":{"$ref":"#/components/schemas/ToolKitComparisonDetails"},"type":"array"}},"required":["predicates","predicateConnector","description"],"title":"ToolkitComparisonDecisionDetail"},"ToolkitRuleComparePropertiesOperatorResultExplanation":{"enum":["ALL_PREDICATES_MET","NOT_ALL_PREDICATES_MET","SKIPPED_BECAUSE_OF_ERROR"],"title":"ToolkitRuleComparePropertiesOperatorResultExplanation","description":"ToolkitRuleComparePropertiesOperatorResultExplanation"},"ToolKitComparisonDetails":{"properties":{"evaluationResult":{"type":"boolean"},"leftPart":{"$ref":"#/components/schemas/ToolKitComparisonPart"},"predicate":{"$ref":"#/components/schemas/ToolkitComparisonPredicate"},"rightPart":{"$ref":"#/components/schemas/ToolKitComparisonPart"}},"required":["leftPart","rightPart","evaluationResult","predicate"],"title":"ToolKitComparisonDetails","description":"ToolKitComparisonDetails"},"ToolKitComparisonPart":{"properties":{"originalValue":{"items":{"type":"string"},"type":"array"},"transformedValue":{"items":{"type":"string"},"type":"array"}},"required":["originalValue","transformedValue"],"title":"ToolKitComparisonPart","description":"ToolKitComparisonPart"},"ToolkitComparisonPredicate":{"description":"The predicate for a Toolkit V2 Fence that defines how conditions are constructed","properties":{"entityOperator":{"$ref":"#/components/schemas/ToolkitRuleComparisonOperatorType"},"leftEntity":{"$ref":"#/components/schemas/ToolkitAllowedEntities","description":"The entity that is used for the right side of the comparison - overrides the entity2 property"},"leftPropertyPath":{"minLength":1,"type":"string"},"leftTransformation":{"$ref":"#/components/schemas/ToolkitTransformationType"},"leftTransformationArgs":{"items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"maxItems":100,"type":"array"},"rightEntity":{"$ref":"#/components/schemas/ToolkitAllowedEntities","description":"The entity that is used for the right side of the comparison - overrides the entity1 property"},"rightPropertyPath":{"minLength":1,"type":"string"},"rightTransformation":{"$ref":"#/components/schemas/ToolkitTransformationType"},"rightTransformationArgs":{"items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"maxItems":100,"type":"array"}},"required":["rightPropertyPath","leftPropertyPath","entityOperator","leftEntity","rightEntity"],"type":"object","xml":{"name":"ToolkitComparisonPredicate"},"title":"ToolkitComparisonPredicate"},"OrderLineItemFenceDecisions":{"properties":{"name":{"type":"string"},"orderLineItems":{"items":{"$ref":"#/components/schemas/OrderLineItemFenceDecision"},"type":"array"}},"required":["name","orderLineItems"],"title":"OrderLineItemFenceDecisions","description":"OrderLineItemFenceDecisions"},"OrderLineItemFenceDecision":{"properties":{"articleTitle":{"type":"string"},"decision":{"$ref":"#/components/schemas/FenceResultStatus"},"details":{"items":{"anyOf":[{"$ref":"#/components/schemas/OrderFenceDecisionDetail"},{"$ref":"#/components/schemas/ToolkitDecisionDetail"},{"$ref":"#/components/schemas/ToolkitComparisonDecisionDetail"}]},"type":"array"},"reactiveErrorReason":{"$ref":"#/components/schemas/ReactiveErrorReason"},"tenantArticleId":{"type":"string"}},"required":["tenantArticleId","articleTitle","decision","details"],"type":"object","title":"OrderLineItemFenceDecision","description":"OrderLineItemFenceDecision"},"OrderRatingDecision":{"properties":{"details":{"items":{"anyOf":[{"$ref":"#/components/schemas/ToolkitDecisionDetail"},{"$ref":"#/components/schemas/ToolkitComparisonDecisionDetail"}]},"type":"array"},"maxPenalty":{"type":"number"},"name":{"type":"string"},"normalizedScore":{"type":"number"},"score":{"type":"number"}},"required":["name","normalizedScore","maxPenalty"],"type":"object","title":"OrderRatingDecision","description":"OrderRatingDecision"},"OrderSplitDecision":{"properties":{"reassignment":{"$ref":"#/components/schemas/ReassignmentInformation"},"split":{"$ref":"#/components/schemas/SplitInformation"},"splitType":{"$ref":"#/components/schemas/SplitResultType"}},"required":["splitType"],"title":"OrderSplitDecision","description":"OrderSplitDecision"},"ReassignmentInformation":{"properties":{"reassignedItems":{"items":{"$ref":"#/components/schemas/AssignmentItem"},"type":"array"},"sourceFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"}},"required":["sourceFacility","reassignedItems"],"title":"ReassignmentInformation","description":"ReassignmentInformation"},"AssignmentItem":{"properties":{"articleTitle":{"type":"string"},"quantity":{"type":"number"},"tenantArticleId":{"type":"string"}},"required":["tenantArticleId","quantity"],"title":"AssignmentItem","description":"AssignmentItem"},"SplitInformation":{"properties":{"splitCount":{"type":"number"},"splittedItems":{"items":{"$ref":"#/components/schemas/AssignmentItem"},"type":"array"},"targetFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"targetRoutingPlanRef":{"type":"string"}},"required":["splitCount","targetRoutingPlanRef","splittedItems"],"title":"SplitInformation","description":"SplitInformation"},"SplitResultType":{"enum":["SPLIT","DO_NOT_SPLIT","DO_NOT_SPLIT_USE_BEST_RATED","DO_NOT_SPLIT_BECAUSE_AVAILABILITY_USE_BEST_RATED","DO_NOT_SPLIT_USE_BEST_AVAILABLE","REASSIGN_TO_PARENT","REASSIGN_TO_PARENT_COMPLETELY","FAIL","INVALID_SPLIT","PARK_IN_WAITING_ROOM"],"title":"SplitResultType","description":"SplitResultType"},"RoutingResults":{"properties":{"assignedItems":{"items":{"$ref":"#/components/schemas/AssignmentItem"},"type":"array"},"bestAvailableFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"bestRatedFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"bestReassignmentFacility":{"$ref":"#/components/schemas/DecisionLogFacilityInfo"},"routingPlanStatus":{"$ref":"#/components/schemas/RoutingPlanStatus"}},"required":["assignedItems"],"title":"RoutingResults","description":"RoutingResults"},"RoutingPlanStatus":{"description":"A routing plan line initially has the status INITIAL. Final state is ROUTED","enum":["IN_PREPARATION","INITIAL","PRIORITIZED","ROUTING","PROPOSED","PLANNED","ROUTED","NOT_ROUTABLE","MANUAL_PLANNED","FAILED","REDUNDANT_REROUTE","FAILED_REROUTE","RETRYABLE","FALLBACK_ROUTING","WAITING","OBSOLETE","CANCELED","LOCKED","PROMISED","REROUTED"],"type":"string","xml":{"name":"RoutingPlanStatus"},"title":"RoutingPlanStatus"},"RoutingStrategyEvaluationResult":{"properties":{"evaluatedConfig":{"$ref":"#/components/schemas/RoutingStrategyNodeConfig"},"evaluatedPath":{"items":{"$ref":"#/components/schemas/RoutingStrategyPathElement"},"type":"array"}},"required":["evaluatedConfig","evaluatedPath"],"type":"object","title":"RoutingStrategyEvaluationResult","description":"RoutingStrategyEvaluationResult"},"RoutingStrategyNodeConfig":{"additionalProperties":false,"properties":{"fallbackFacility":{"$ref":"#/components/schemas/RoutingStrategyFallbackFacilityConfig"},"fences":{"items":{"anyOf":[{"$ref":"#/components/schemas/RoutingStrategyStandardFence"},{"$ref":"#/components/schemas/RoutingStrategyToolkitFence"}],"discriminator":{"propertyName":"type","mapping":{"StandardFence":"#/components/schemas/RoutingStrategyStandardFence","ToolkitFence":"#/components/schemas/RoutingStrategyToolkitFence"}}},"type":"array"},"orderSplit":{"$ref":"#/components/schemas/RoutingStrategyOrderSplitConfig"},"priorityRatings":{"items":{"anyOf":[{"$ref":"#/components/schemas/RoutingStrategyStandardPriorityRating"},{"$ref":"#/components/schemas/RoutingStrategyToolkitPriorityRating"}],"discriminator":{"propertyName":"type","mapping":{"StandardPriorityRating":"#/components/schemas/RoutingStrategyStandardPriorityRating","ToolkitPriorityRating":"#/components/schemas/RoutingStrategyToolkitPriorityRating"}}},"type":"array","description":"This part of the API is in Alpha status. For details, see the <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\" target=\"_blank\">API release lifecycle documentation</a>.<br /><br />"},"ratings":{"items":{"anyOf":[{"$ref":"#/components/schemas/RoutingStrategyStandardRating"},{"$ref":"#/components/schemas/RoutingStrategyToolkitRating"}],"discriminator":{"propertyName":"type","mapping":{"StandardRating":"#/components/schemas/RoutingStrategyStandardRating","ToolkitRating":"#/components/schemas/RoutingStrategyToolkitRating"}}},"type":"array"},"reroute":{"$ref":"#/components/schemas/RoutingStrategyRerouteConfig"}},"required":["fences","ratings"],"type":"object","title":"RoutingStrategyNodeConfig","description":"RoutingStrategyNodeConfig"},"RoutingStrategyFallbackFacilityConfig":{"properties":{"active":{"default":false,"type":"boolean"},"facilityRefs":{"items":{"type":"string"},"maxItems":1,"minItems":1,"type":"array"},"fallbackAfterTime":{"default":"PT0H","description":"Default amount of time in ISO 8601 duration format after which a not routable routingplan is routed to a configured fallback facility.","pattern":"^P(?:(\\d+W)|(\\d+Y)?(\\d+M)?(\\d+D)?(?:T(\\d+H)?(\\d+M)?(\\d+S)?)?)$","type":"string"}},"required":["facilityRefs","active","fallbackAfterTime"],"title":"RoutingStrategyFallbackFacilityConfig","description":"RoutingStrategyFallbackFacilityConfig"},"RoutingStrategyStandardFence":{"additionalProperties":false,"description":"Routing Strategy Fence.","properties":{"active":{"type":"boolean"},"activeMode":{"$ref":"#/components/schemas/FenceMode"},"description":{"type":"string"},"implementation":{"$ref":"#/components/schemas/FenceImplementation"},"name":{"type":"string"},"supportedModes":{"items":{"$ref":"#/components/schemas/FenceMode"},"type":"array"},"type":{"$ref":"#/components/schemas/RoutingStrategyStandardFenceType"}},"required":["active","implementation","type"],"title":"RoutingStrategyFence","type":"object"},"FenceMode":{"enum":["static","reactive"],"type":"string","title":"FenceMode","description":"FenceMode"},"FenceImplementation":{"description":"<i>This part of the API is currently under development. That means that this endpoint, model, etc. can contain breaking changes and/or might not be available at all times in your API instance. It could also disappear without warning. It currently does not fall under our SLA regulations. For details, see our <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\">API lifecycle documentation</a></i>","enum":["FACILITY-BUSINESSTYPE","STOCK-AVAILABILITY","FACILITY-CARRIERAVAILABILITY","FACILITY-COUNTRY","FACILITY-PICKING-TIME-CAPACITY","PRESELECTED-FACILITY","SAMEDAY-POSSIBLE","AVOID-ZERO-STOCK","PACKAGING-POSSIBLE"],"type":"string","xml":{"name":"FenceImplementation"},"title":"FenceImplementation"},"RoutingStrategyStandardFenceType":{"enum":["StandardFence"],"type":"string","title":"RoutingStrategyStandardFenceType","description":"RoutingStrategyStandardFenceType"},"RoutingStrategyToolkitFence":{"additionalProperties":false,"description":"Routing Strategy Toolkit Fence.","properties":{"descriptionLocalized":{"$ref":"#/components/schemas/LocaleString"},"nameLocalized":{"$ref":"#/components/schemas/LocaleString"},"active":{"default":false,"description":"Indicates whether this fence is active or not.","type":"boolean"},"comparisonRule":{"$ref":"#/components/schemas/ToolkitComparisonRule"},"description":{"description":"The description of this fence.","type":"string"},"entity1":{"$ref":"#/components/schemas/ToolkitAllowedEntities","deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"entity2":{"$ref":"#/components/schemas/ToolkitAllowedEntities","deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"name":{"description":"The name of the fence.","type":"string"},"order":{"description":"Order in which this fence is executed","type":"integer"},"referenceId":{"type":"string"},"rule":{"$ref":"#/components/schemas/ToolkitRule"},"type":{"$ref":"#/components/schemas/RoutingStrategyToolkitFenceType"}},"required":["nameLocalized","active","order","type","referenceId"],"title":"RoutingStrategyToolkitFence"},"LocaleString":{"additionalProperties":{"type":"string"},"description":"Provides localized values. The key is the locale, the value is the translation. https://docs.fulfillmenttools.com/documentation/getting-started/authentication-and-authorization/localization","title":"LocaleString","type":"object"},"ToolkitComparisonRule":{"description":"The rule, comparing the left and right path values, that will be evaluated applying a RuleOperator","properties":{"evaluationScope":{"$ref":"#/components/schemas/ToolkitRuleScope"},"predicateConnector":{"$ref":"#/components/schemas/ToolkitPredicateConnector"},"predicates":{"items":{"$ref":"#/components/schemas/ToolkitComparisonPredicate"},"maxItems":100,"minItems":1,"type":"array"}},"required":["predicates","evaluationScope"],"type":"object","xml":{"name":"ToolkitRule"},"title":"ToolkitComparisonRule"},"ToolkitRuleScope":{"enum":["WHOLE_ENTITY","LINE_ITEM"],"type":"string","xml":{"name":"ToolkitRuleScope"},"title":"ToolkitRuleScope","description":"ToolkitRuleScope"},"ToolkitRule":{"description":"The rule, containing the left predicates and the right predicates, that will be evaluated applying a RuleOperator","properties":{"evaluationScope":{"$ref":"#/components/schemas/ToolkitRuleScope"},"leftPart":{"$ref":"#/components/schemas/ToolkitRulePart"},"operator":{"$ref":"#/components/schemas/ToolkitRuleOperatorType"},"rightPart":{"$ref":"#/components/schemas/ToolkitRulePart"}},"required":["operator","leftPart","rightPart","evaluationScope"],"type":"object","xml":{"name":"ToolkitRule"},"title":"ToolkitRule"},"ToolkitRulePart":{"additionalProperties":false,"description":"One half of the rule, containing either the left or right predicates and booleanOperator.","properties":{"predicateConnector":{"$ref":"#/components/schemas/ToolkitPredicateConnector"},"predicates":{"items":{"$ref":"#/components/schemas/ToolkitPredicate"},"maxItems":100,"minItems":1,"type":"array"}},"required":["predicates"],"type":"object","xml":{"name":"ToolkitRulePart"},"title":"ToolkitRulePart"},"ToolkitRuleOperatorType":{"description":"The type of the rule operator applied to the results of evaluating the left predicates and the right predicates","enum":["EQUALS"],"type":"string","xml":{"name":"ToolkitTransformationType"},"title":"ToolkitRuleOperatorType"},"RoutingStrategyToolkitFenceType":{"enum":["ToolkitFence"],"type":"string","title":"RoutingStrategyToolkitFenceType","description":"RoutingStrategyToolkitFenceType"},"RoutingStrategyOrderSplitConfig":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"activeForSameday":{"type":"boolean"},"maxSplitCount":{"type":"integer"},"shouldUseWaitingRoomForPreBackOrderItems":{"type":"boolean"}},"required":["active","maxSplitCount","activeForSameday","shouldUseWaitingRoomForPreBackOrderItems"],"type":"object","title":"RoutingStrategyOrderSplitConfig","description":"RoutingStrategyOrderSplitConfig"},"RoutingStrategyStandardPriorityRating":{"additionalProperties":false,"description":"A rating is used to rate a set of possible facilities against each other during routing of orders, ordered by priority.","properties":{"active":{"type":"boolean"},"configuration":{"$ref":"#/components/schemas/AbstractRatingConfiguration"},"description":{"type":"string"},"implementation":{"$ref":"#/components/schemas/RatingImplementation"},"name":{"type":"string"},"priority":{"minimum":0,"type":"number"},"type":{"$ref":"#/components/schemas/RoutingStrategyStandardPriorityRatingType"}},"required":["active","priority","type","implementation"],"title":"RoutingStrategyStandardPriorityRating","type":"object"},"AbstractRatingConfiguration":{"description":"Base configuration for ratings. See documentation for details.","properties":{"type":{"$ref":"#/components/schemas/RatingConfigurationType"}},"title":"AbstractRatingConfiguration","type":"object","xml":{"name":"AbstractRatingConfiguration"}},"RatingConfigurationType":{"description":"This part of the API is in Beta status. For details, see the <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\" target=\"_blank\">API release lifecycle documentation</a>.<br /><br />Identifies the rating configuration variant and determines which properties are applicable.","enum":["COST_COMPONENTS"],"type":"string","xml":{"name":"RatingConfigurationType"},"title":"RatingConfigurationType"},"RatingImplementation":{"description":"This part of the API is in Beta status. For details, see the <a href=\"https://docs.fulfillmenttools.com/documentation/apis/api-versioning-and-lifecycle#lifecycle-overview\" target=\"_blank\">API release lifecycle documentation</a>.<br /><br />Discriminator identifying a rating variant.","enum":["STOCK-BALANCING","GEO-DISTANCE","TURNOVER","STOCK-AVAILABILITY","WORKLOAD-BALANCING","MATCHING-BUSINESSTYPE","PREFER-STORE","PREFER-WAREHOUSE","ZONE","EXPIRY-DATE","CAPACITY","DELIVERY-COSTS","DELIVERY-TIME","COST-COMPONENTS","NUMBER-OF-DELIVERIES"],"type":"string","xml":{"name":"RatingImplementation"},"title":"RatingImplementation"},"RoutingStrategyStandardPriorityRatingType":{"description":"Discriminator identifying a rating as a routing strategy standard rating, ordered by priority.","enum":["StandardPriorityRating"],"type":"string","title":"RoutingStrategyStandardPriorityRatingType"},"RoutingStrategyToolkitPriorityRating":{"additionalProperties":false,"description":"Routing Strategy Toolkit Rating, ordered by priority.","properties":{"nameLocalized":{"$ref":"#/components/schemas/LocaleString"},"descriptionLocalized":{"$ref":"#/components/schemas/LocaleString"},"active":{"type":"boolean"},"comparisonRule":{"$ref":"#/components/schemas/ToolkitComparisonRule"},"description":{"description":"The description of this rating","type":"string"},"entity1":{"allOf":[{"$ref":"#/components/schemas/ToolkitAllowedEntities"}],"deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"entity2":{"allOf":[{"$ref":"#/components/schemas/ToolkitAllowedEntities"}],"deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"name":{"description":"The name of the rating","type":"string"},"priority":{"description":"The priority of this rating","type":"integer"},"referenceId":{"type":"string"},"rule":{"$ref":"#/components/schemas/ToolkitRule"},"type":{"$ref":"#/components/schemas/RoutingStrategyToolkitPriorityRatingType"}},"required":["active","priority","referenceId","nameLocalized","type"],"title":"RoutingStrategyToolkitPriorityRating","type":"object"},"RoutingStrategyToolkitPriorityRatingType":{"description":"Discriminator identifying a rating as a routing strategy toolkit rating, ordered by priority.","enum":["ToolkitPriorityRating"],"type":"string","title":"RoutingStrategyToolkitPriorityRatingType"},"RoutingStrategyStandardRating":{"additionalProperties":false,"description":"A rating is used to rate a set of possible facilities against each other during routing of orders.","properties":{"active":{"type":"boolean"},"configuration":{"$ref":"#/components/schemas/AbstractRatingConfiguration"},"description":{"type":"string"},"implementation":{"$ref":"#/components/schemas/RatingImplementation"},"maxPenalty":{"minimum":0,"type":"number"},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/RoutingStrategyStandardRatingType"}},"required":["active","maxPenalty","type","implementation"],"title":"RoutingStrategyStandardRating","type":"object"},"RoutingStrategyStandardRatingType":{"description":"Discriminator identifying a rating as a routing strategy standard rating.","enum":["StandardRating"],"type":"string","title":"RoutingStrategyStandardRatingType"},"RoutingStrategyToolkitRating":{"additionalProperties":false,"description":"Routing Strategy Toolkit Rating.","properties":{"nameLocalized":{"$ref":"#/components/schemas/LocaleString"},"descriptionLocalized":{"$ref":"#/components/schemas/LocaleString"},"active":{"default":false,"description":"Indicates whether this rating is active or not","type":"boolean"},"comparisonRule":{"$ref":"#/components/schemas/ToolkitComparisonRule"},"description":{"description":"The description of this rating","type":"string"},"entity1":{"allOf":[{"$ref":"#/components/schemas/ToolkitAllowedEntities"}],"deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"entity2":{"allOf":[{"$ref":"#/components/schemas/ToolkitAllowedEntities"}],"deprecated":true,"description":"This field is obsolete, was replaced by the entity fields at predicate level."},"maxPenalty":{"description":"The maximum penalty this rating can have","type":"integer"},"name":{"description":"The name of the rating","type":"string"},"referenceId":{"type":"string"},"rule":{"$ref":"#/components/schemas/ToolkitRule"},"type":{"$ref":"#/components/schemas/RoutingStrategyToolkitRatingType"}},"required":["active","maxPenalty","referenceId","nameLocalized","type"],"title":"RoutingStrategyToolkitRating","type":"object"},"RoutingStrategyToolkitRatingType":{"description":"Discriminator identifying a rating as a routing strategy toolkit rating.","enum":["ToolkitRating"],"type":"string","title":"RoutingStrategyToolkitRatingType"},"RoutingStrategyRerouteConfig":{"additionalProperties":false,"properties":{"clickAndCollect":{"$ref":"#/components/schemas/RoutingStrategyFacilityRerouteConfig"},"manualReroute":{"type":"boolean"},"rerouteZeroPicksOnly":{"default":false,"description":"Specifies whether only pick jobs with zero items picked are eligible for rerouting.","type":"boolean"},"shipFromStore":{"$ref":"#/components/schemas/RoutingStrategyFacilityRerouteConfig"}},"type":"object","title":"RoutingStrategyRerouteConfig","description":"RoutingStrategyRerouteConfig"},"RoutingStrategyFacilityRerouteConfig":{"additionalProperties":false,"properties":{"active":{"type":"boolean"},"rerouteType":{"$ref":"#/components/schemas/RoutingStrategyRerouteType"}},"required":["rerouteType"],"type":"object","title":"RoutingStrategyFacilityRerouteConfig","description":"RoutingStrategyFacilityRerouteConfig"},"RoutingStrategyRerouteType":{"description":"The type of reroute to apply to the order\n  * `REROUTE`- the complete routing plan is rerouted.\n  * `ORDERSPLIT`- the order is splitted. The split line items will be moved to a new routing plan and rerouted.","enum":["REROUTE","ORDERSPLIT"],"type":"string","title":"RoutingStrategyRerouteType"},"RoutingStrategyPathElement":{"properties":{"nameLocalized":{"$ref":"#/components/schemas/LocaleString"},"evaluationResult":{"$ref":"#/components/schemas/RoutingStrategyEvaluationResultType"},"ref":{"type":"string"},"type":{"$ref":"#/components/schemas/RoutingStrategyPathElementType"}},"required":["type","ref","evaluationResult","nameLocalized"],"type":"object","title":"RoutingStrategyPathElement","description":"RoutingStrategyPathElement"},"RoutingStrategyEvaluationResultType":{"enum":["NODE_INACTIVE","NODE_ACTIVE","CONDITION_INACTIVE","CONDITION_FALSE","CONDITION_TRUE"],"type":"string","title":"RoutingStrategyEvaluationResultType","description":"RoutingStrategyEvaluationResultType"},"RoutingStrategyPathElementType":{"enum":["CONDITION","NODE"],"type":"string","title":"RoutingStrategyPathElementType","description":"RoutingStrategyPathElementType"},"RoutingStatistics":{"properties":{"durationMs":{"type":"number"},"fenceStatistics":{"items":{"$ref":"#/components/schemas/FenceStatistic"},"type":"array"},"ratingStatistics":{"items":{"$ref":"#/components/schemas/RatingStatistic"},"type":"array"}},"required":["fenceStatistics","ratingStatistics","lineItemFenceStatistics"],"title":"RoutingStatistics","description":"RoutingStatistics"},"FenceStatistic":{"properties":{"durationMs":{"description":"Duration in Milliseconds","type":"number"},"name":{"type":"string"},"passedAmount":{"type":"number"},"passedPercentage":{"type":"number"},"rejectedAmount":{"type":"number"}},"required":["name","rejectedAmount","passedAmount","passedPercentage","durationMs"],"title":"FenceStatistic","description":"FenceStatistic"},"RatingStatistic":{"properties":{"durationMs":{"description":"Duration in Milliseconds","type":"number"},"maxPenalty":{"type":"number"},"maxScore":{"type":"number"},"minScore":{"type":"number"},"name":{"type":"string"}},"required":["name","maxPenalty","durationMs"],"title":"RatingStatistic","description":"RatingStatistic"},"ApiError":{"items":{"$ref":"#/components/schemas/ErrorInner"},"type":"array","xml":{"name":"ApiError"},"title":"ApiError","description":"ApiError"},"ErrorInner":{"properties":{"description":{"type":"string"},"requestVersion":{"description":"The version provided within an invalid request.","format":"int64","type":"integer"},"summary":{"type":"string"},"version":{"format":"int64","type":"integer"}},"required":["summary"],"type":"object","title":"ErrorInner","description":"ErrorInner"}}},"paths":{"/api/routingplans/{routingplanId}/decisionlogs/{routingRun}":{"get":{"description":"Retrieves in-depth information about the standard routing process","operationId":"getDecisionlog","parameters":[{"description":"ID of the routing plan you want to get it's decision log","in":"path","name":"routingplanId","required":true,"schema":{"type":"string"}},{"description":"ID of the decision log you want to get","in":"path","name":"routingRun","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionLog"}}},"description":"Decision log was found."},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Your user is not allowed to operate against this API instance"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Your user, although recognized, is not authorized to use this endpoint"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}},"description":"Decision log not found"}},"summary":"List routing plan decision log","tags":["Routing Plans (DOMS)"]}}}}
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.fulfillmenttools.com/documentation/by-pillar/advanced-order-routing/decision-logs/decision-log-endpoints.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
