How to have only one call to a CarrierService while having multiple locations

How to have only one call to a CarrierService while having multiple locations

svincent
Shopify Partner
1 0 3

Hello

 

I have a Shopify Shop with three locations, one with no tracked inventory, and two with stock values.
We have a CarrierService app which is a stateless webhook. When triggered, the rates are sent to an api which requests the correct delivery codes, prices, and additional data and send them back to shopify.

 

My main issue is : When I have multiple items in my checkout, it works fine if there's in the same location, but when I have one item from a certain location and another item from another location, the carrier services makes multiple calls to my webhook, one per location, and because my webhook is stateless, I don't want that. Can I configure my shop to somehow have only one request which has all the items of the checkout ? And not one call per location.

 

Also, I have another issue : when an item is in a location which his inventory is not tracked, and another item in a tracked inventory, the "code" variable sent to the shipping_rates becomes the "name".
For example I return "service_name": "livraison à domicile" and "service_code": "LAD_EXP" on my CarrierService Webhook response, but in the order, in the "shipping_lines" object, the "code" variable is set to "livraison à domicile" and this occurs ONLY when there's two items, and one in a location which his inventory is not tracked

 

Here's the response I send to Shopify from my webhook for the second issue:

image.png

Reply 1 (1)

ihor_shiphawk
Shopify Partner
1 0 1

same problem