Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi
I want to tick This is a physical product as soon as the product changes the status from draft to active using Admin API if possible
Solved! Go to the solution
This is an accepted solution.
HI @gary07 👋 I'm not entirely sure how to do this but let's figure it out together! Note that the requiresShipping field applies specifically to inventoryItems on variants. My best guess is that you'll want to:
I haven't tested any of this and am not entirely sure it'll work so let me know how it goes!
Hi there,
You can use Admin API to check product status first.
Use the GET request to fetch product details and check the current status and requires_shipping field:
GET /admin/api/2023-10/products/{product_id}.json
Update Product: If the product’s status is "draft," you can change it to "active" and set requires_shipping to true in one PUT request:
PUT /admin/api/2023-10/products/{product_id}.json
{
"product": {
"id": {product_id},
"status": "active",
"requires_shipping": true
}
}
Automate on Status Change: You could run this script regularly or use a webhook that triggers when a product is updated to automate the process.
Hope this helps.
Best,
Daniel
I want to use Flow to do it and the option you have mention I can not see on Send Admin API request option
This is an accepted solution.
HI @gary07 👋 I'm not entirely sure how to do this but let's figure it out together! Note that the requiresShipping field applies specifically to inventoryItems on variants. My best guess is that you'll want to:
I haven't tested any of this and am not entirely sure it'll work so let me know how it goes!
Hi
inventoryitemUpdate mutation was giving errors so I have tried
productVariantUpdate and that worked
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024