What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Order Create API: Unable to add address

Order Create API: Unable to add address

akshaysaundane
Visitor
1 0 0

Hi,

 

Unable to add Billing And Shiping Address using Create Order endpoint https://shopify.dev/api/admin-rest/2021-10/resources/order#[post]/admin/api/2021-10/orders.json

 

Here is my request

https://{{subdomain}}.myshopify.com/admin/api/2021-10/orders.json

Body:

{
    "order": {
        "customer": {
            "id"5555329663049
        },
        "billing_address": {
            "first_name""TEST 1",
             "name""",
            "address1""Sample Address",
            "address2""",
            "city""Nashik",
            "zip""422002",
            "last_name""TEST"
        },
        "shipping_address": {
            "first_name""TEST 1",
             "name"" ",
            "address1""",
            "address2""",
            "city""Nashik",
            "last_name""TEST"
        },
        "line_items": [
            {
                "product_id"6651132051529,
                "variant_id"39573538144329,
                "quantity"5
            }
        ]
    }
}
 
Could you please share the solutions to this issue?
Replies 0 (0)