Order routing is the process of determining the location that's used to fulfill each cart line item. The Order Routing Location Rule API allows developers to provide their own ranking of location, for each item, during order routing. > Beta: > Location rules is a new feature that's only available by request. Reach out to [Shopify Plus Support](https://help.shopify.com/en/support/plus) to know more about your eligibility and the requirements for the beta program. ## Extension targets The Order Routing Location Rule API exposes the following [targets](/docs/apps/build/app-extensions/configure-app-extensions#targets): | Target | Output type | Description | | ------ | ----------- | ----------- | | `purchase.order-routing-location-rule.run` | [FunctionRunResult](#functionrunresult) | Outputs the list of ranked locations | ## Input The `RunInput` object is the complete schema that your function can receive as [input](/docs/apps/build/functions/input-output#input). For a list of fields that the Order Routing Location Rule API's `Input` object accepts, refer to [Input](/docs/api/functions/reference/order-routing-location-rule/graphql/input). ### Example The following example shows an input query: