I’m trying to create a workflow that updates my customers to tax exempt, but it’s not working. My triggers for the update are working (I have it set for when a customer enables a new account and they have a certain tag)… but the code for the api request keeps being rejected. Can anyone tell me what is wrong with it?
Topic summary
A user encountered an error when attempting to use Shopify Flow to automatically set customers as tax exempt based on specific triggers (new account creation with a certain tag). The API request in their workflow was being rejected.
Issue identified:
The workflow’s API request included unnecessary address variables in the input parameters, causing the rejection.
Solution provided:
- Remove all address-related variables from the input
- Keep only the customer
idandtaxExemptfields - This approach updates only the tax exemption status without modifying or deleting existing address information
Additional context:
Customer address updates through Shopify Flow require special access permissions for protected customer data, making it inadvisable to include address fields in this type of workflow.
Resolution:
The issue was resolved after the user removed the address variables from their API request input.
Hi @xMollyTx
Remove address variables in the input. only keep the id and taxExempt.
Hope this helps.
Will that not edit their profile and delete their address on file also? I do need that for shipping purposes.
No. remove the address from input variables means not update the address information. only update the taxExempt.
Plus, I think you can not update customer address using shopify flow.
https://shopify.dev/docs/apps/launch/protected-customer-data. From this documation, it says we need to request access to update customer basic informations
I see! I thought I was supposed to add the new code not replace - that worked. Thanks!
