App reviews, troubleshooting, and recommendations
Hi All!
I'm successfully performing a GET of all products via the Admin API. But when I try to create a product, I keep getting BAD REQUEST... and I don't know why. What am I missing?
Here's what I'm trying:
JSON
{"product":{"body_html":"<strong>Good snowboard!</strong>","product_type":"Snowboard","status":"draft","title":"Burton Custom Freestyle 151","vendor":"Burton"}}
HEADER
-H "Method: POST" -H "Content-Type: application/json" -H "X-Shopify-Access-Token: REMOVEDFORSECURITY"
URL
https://REMOVEDFORSECURITY.myshopify.com/admin/api/2024-01/products.json
cURL Sent:
-H "Method: POST" -H "Content-Type: application/json" -H "X-Shopify-Access-Token: REMOVEDFORSECURITY" -d {"product":{"body_html":"B<strong>Good snowboard!</strong>","product_type":"Snowboard","status":"draft","title":"Burton Custom Freestyle 151","vendor":"Burton"}} -D $responseHeader
Response:
Bad Request
Make sure your JSON is well-formed and escaped, see this stackoverflow article for more info.
Dropshipping, 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, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024