I am trying to create an Order using the Admin REST API. The API is returning the 200 status code instead of 201, and also not creating an order in the Shopify store, and not getting any error.
I am using this Shopify API docs https://shopify.dev/docs/api/admin-rest/2023-07/resources/order#post-orders
Can someone please help to root cause the issue? Is there any issue with the Shopify Admin Order Rest API?
Below is the request body:
{
"order": {
"line_items": [{
"title": "EatSmart Precision GetFit Body Fat Scale",
"price": 64.89,
"quantity": 1
}],
"shipping_address": {
"address1": "110 Cedar St",
"address2": "Apt 12",
"city": "Austin",
"country": "USA",
"first_name": "Testing FN",
"last_name": "Testing LN",
"province": "Texas",
"zip": "78727",
"name": "Customer Name",
"country_code": "USA",
"province_code": "TX"
},
"transactions": [{
"kind": "sale",
"status": "success",
"amount": 64.89
}],
"currency": "USD"
}
}
Below is the response I am getting:
{
"orders": []
}
