Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
Hi, I'm using Postman to create a draft order and I'm getting this 406 Not Acceptable error and I don't know why.
I'm using POST with my API Key and Password on those blank spaces: https://__:__@startmapapp.myshopify.com/admin/api/2021-01/draft-orders.json
In the header, I have: Content-Type application/JSON
And my body is:
{
"draft_order": {
"line_items": [
{
"variant_id": 38950531236025,
"quantity": 1
}
]
}
}
Solved! Go to the solution
This is an accepted solution.
Hey @stjelic,
The endpoint URL should use draft_orders.json
with an underscore instead of hyphen 🙂
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
Hey @stjelic,
The endpoint URL should use draft_orders.json
with an underscore instead of hyphen 🙂
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
@_JB Hi, thanks for an answer, thats the solution. Also I needed productID, not just variantID.
User | RANK |
---|---|
6 | |
5 | |
5 | |
5 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022