Dynamically set location on checkout creation

Highlighted
New Member
1 0 0

Hey. We configured online store and the store is integrated with external system. There is a requirement from one client to:

  1. Configure taxes for some locations in Shopify
  2. Customize checkout process and set location_id on checkout creation to calculate taxes properly for selected location. Checkout location should be set based on custom rules defined in external system

Expected flow:

  1. Fetch checkout details using Checkout creation web hook
  2. Fetch configured locations from Shopify ( GET /admin/api/2021-01/locations.json endpoint)
  3. Select a location based on the rules and update checkout location_id

Can we use Checkout API for updating checkout in online stores? I know the API can be used for Sales Channels but I’m not sure we can use it in our case.  Are the any alternatives to set a location dynamically?

0 Likes