Sourcing options endpoint
Overview
The Sourcing Options endpoint is designed to evaluate possible fulfillment options for a potential order. When a request is made, the order is processed by the routing engine to determine the best sourcing options.
This process includes:
Returning the top results as defined in the request
The endpoint supports Routing Strategies, enabling evaluation based on different criteria, i.e.:
Cost-focused: Returns the most cost-effective option(s)
Speed-focused: Returns the fastest delivery route(s)
Weighted approach: Balances cost and delivery time
Because the full routing engine is used, response times may be longer than other shop endpoints – especially for complex routing scenarios.
Key characteristics
Use Case: Primarily used toward the end of the customer journey (e.g., during checkout) to determine the best supplier options for a specific order.
Nature of the Request:
Simulation only: The request does not create a routing plan or any operational entity in the platform.
What-if evaluation: Allows assessment of sourcing strategies without committing to execution.
Integration with orders: The selected sourcing option can be passed into the real order creation process to maintain consistency between the simulated decision and the actual routing execution.
Request
The request structure is identical to the Order Create request, allowing to include all routing-relevant information. This also includes custom properties such as tags
and customAttributes
.
Additionally, a resourceInvestment
parameter (value between 0
and 1
) must be specified. This parameter controls how much time and computational resources the routing engine should spend optimizing the decision:
Lower values (e.g., 0.1) → Faster response, less optimization
Higher values (e.g., 0.9) → Longer response time, more thorough optimization
The number of desired sourcing options can also be defined in the request by setting the requestedResultCount
. If this value is set to 1, only the best sourcing option based on the ratings will be returned. If the value is set to 3, for example, the second and third best sourcing options will also be included in the response.
Response
Each sourcing option includes:
Identification & metadata Unique IDs for the sourcing run and options, enabling traceability and consistent reference in subsequent order submissions.
Commercial information Total costs, detailed cost breakdown (transport, packaging, penalties), sales prices, and discounts considered in the decision. All monetary values respect the defined currency rules.
Inventory & Source details Which facilities or suppliers can fulfill the order, what quantity is available, and the pricing conditions per article.
Routing & logistics information The full sourcing path with all nodes (facilities, suppliers, customer), transfers between them, carriers used, and calculated packaging configurations. This includes associated costs for transport and packaging.
Delivery commitments Estimated delivery dates and the time limits by which an order must be placed to guarantee those delivery promises.
Optimization & Ratings Any penalties applied based on rating rules (e.g., geo distance, transport costs, delivery time etc.), influencing the ranking of sourcing options.
Last updated