Re: create orders.json api return list of existing orders.

create orders.json api return list of existing orders.

Sukhayubhava
Visitor
1 0 1

I am trying to create order using orders.json api : 

 
Here is the payload : 
{
    "order": {
        "line_items": [
            {
                "variant_id""47286081093907",
                "quantity""1",
                "properties": []
            }
        ],
        "email""test123@gmail.com",
        "phone""+918930395227",
        "billing_address": {
            "first_name""TEST",
            "last_name""TEST",
            "full_name""TEST TEST",
            "phone""+918930395227",
            "email""test123@gmail.com",
            "address1""Sector 21B",
            "address2""H No 420  Sector 21B",
            "city""Rewari",
            "province""Haryana",
            "country""IN",
            "zip""123401"
        },
        "shipping_address": {
            "first_name""TEST",
            "last_name""TEST",
            "full_name""TEST TEST",
            "phone""+918930395227",
            "email""test123@gmail.com",
            "address1""Sector 21B",
            "address2""H No 420  Sector 21B",
            "city""Rewari",
            "province""Haryana",
            "country""IN",
            "zip""123401"
        },
        "payment_method""paytring",
        "shipping_lines": [
            {
                "title""shopify",
                "code""shopify",
                "price"0
            }
        ],
        "financial_sta2tus""paid",
        "note_attributes": {
            "name""test",
            "value""test2"
        },
        "browser_ip""",
        "checkout_id""gid://shopify/Checkout/9d9dafc4f2bfe7e75a770c5238020338?key=8b9c0be975aed580539b9d631d5ad0f1",
        "processing_method""manual",
        "total_tax"0
    }
}

And in postman i get some html in response : 
    <script type="text/javascript" defer>
        window.location = "https:\/\/accounts.shopify.com\/oauth\/authorize?client_id=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7..........";
    </script>

And in code i get the list of already existing order on my store...

I also pass X-Shopify-Access-Token in header...

This happens only with one of my store, Other stores is working fine with same configurations. and same API...
 
Reply 1 (1)

DaLetourneau
Tourist
7 0 0

Hello Sukhayubhava, 

Did you find a solution to your problem? We have a similar problem with a robot that stopped catching commands and I'm still looking for a solution