Pincode based inventory allocation on checkout

Hi Everyone,

I have a requirement to assign orders to specific inventory locations automatically during checkout based on certain conditions (for example: customer pincode, city, or nearest warehouse).

Currently, I understand that Shopify assigns fulfillment locations based on inventory availability and location priority. However, I would like to know:

  1. Is there any native way in Shopify to configure rules for assigning orders to specific locations during checkout?

  2. Can we control or override the fulfillment location selection dynamically based on customer address (like pincode or region)?

  3. Are there any built-in features, Shopify Functions, or APIs that support this use case without using third-party apps?

  4. If not natively supported, what is the recommended approach from Shopify (Flow, Functions, or Fulfillment Orders API)?

My goal is to route orders to the nearest or predefined warehouse automatically.

Please let me know the best possible solution or recommended architecture for this requirement.

Thanks in advance!