406 Not Acceptable when trying to create draft order

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
            }
        ]
    }
}

Hey @stjelic ,

The endpoint URL should use draft_orders.json with an underscore instead of hyphen :slightly_smiling_face:

@_JB Hi, thanks for an answer, thats the solution. Also I needed productID, not just variantID.