Unable to tag orders originating from Amazon

OhiSweets
Shopify Partner
4 0 0

Hi all,

Our company offers fast fulfillment services for DTC brands via an integration with the brand's Shopify store. Most brands also have a 3PL that also integrates with the Shopify store. To prevent double fulfillment issues, when we pull a Shopify order into our system, we tag that order in Shopify with specific tags so that the 3PL will ignore the order. 

This has worked fine except for certain orders that come from Amazon. When Amazon creates an order, it also creates Shopify tags for those orders. When it works correctly, the flow looks like this:

1. Order is created by Amazon and tagged with Amazon's tags

2. We pull the order into our system and tag it

3. The 3PL sees our tag and ignores the order

About 20% of the time, however, we see this:

1. Order is created by Amazon and tagged with Amazon's tags

2. We pull the order into our system but cannot tag it

3. The 3PL sees an order with only Amazon tags and also pulls it in.

Our code attempts to tag these orders multiple times in a short period after being pulled in, so we suspect that Shopify has some how locked the order in a way that prevents it from being tagged further. 

Has anyone experienced a similar problem or might have insight into this issue?

Thank you.

Replies 2 (2)

Anto_S
Shopify Partner
148 4 19

Is it possible your code is running up against Shopify rate limits? https://shopify.dev/api/usage/rate-limits

Examining the return values on the failed tagging might give you some clues.

Automating Commerce at Comstack.co
Email: anto@comstack.co
OhiSweets
Shopify Partner
4 0 0
Thank you for the suggestion. I've looked at it and unfortunately we should
be no where near our rate limits on this issue (we've scaled down order
volume in order to better diagnose the issue).

I will see about the return values though.