When I call in postman with body like below
{
"order": {
"line_items": [
{
"variant_id": 45350427099363,
"quantity": 1,
"price": 20,
"title": "Testing 321",
"name": ""
}
],
"customer": {
"first_name": "tin",
"last_name": "lo",
"email": "[email protected]"
},
"billing_address": {
"first_name": "tin",
"last_name": "lo",
"address1": "39b ",
"phone": "53079023",
"city": "sham sh",
"country": "hong ",
"province": "",
"zip": "0000"
},
"shipping_address": {
"first_name": "tin",
"last_name": "lo",
"address1": "39b ",
"phone": "53079023",
"city": "sham sh",
"country": "hong ",
"province": "",
"zip": "0000"
},
"email": "[email protected]",
"financial_status": "paid"
}
}
The response always 200 with the body is list orders insteads of 201 Created and my body
And here is the log from my code
data: '{"order":{"line_items":[{"variant_id":45350427099363,"quantity":1,"price":20,"title":"Testing 321","name":""}],"customer":{"first_name":"tin","last_name":"lo","email":"[email protected]"},"billing_address":{"first_name":"tin","last_name":"lo","address1":"39b ","phone":"53079023","city":"sham sh","country":"hong ","province":"","zip":"0000"},"shipping_address":{"first_name":"tin","last_name":"lo","address1":"39b ","phone":"53079023","city":"sham sh","country":"hong ","province":"","zip":"0000"},"email":"[email protected]","financial_status":"paid"}}'
It’s missing the id and did not create new order
I’ve tried to create a new order in my client’s store, when i tested in my own store with same scope , it’s still created
pls help me to fix this