Create an order
1 min
code examples curl x post "https //api archbee com/v2/orders" \\ h "authorization bearer your token" \\ h "content type application/json" \\ d '{ "items" \[{"productid" 42, "quantity" 2}], "shippingaddress" { "street" "123 main st", "city" "springfield", "state" "il", "zipcode" "62701", "country" "us" } }' import requests response = requests post( "https //api archbee com/v2/orders", headers={ "authorization" "bearer your token", "content type" "application/json" }, json={ "items" \[{"productid" 42, "quantity" 2}], "shippingaddress" { "street" "123 main st", "city" "springfield", "state" "il", "zipcode" "62701", "country" "us" } } ) responses // order created { "id" "880e8400 e29b 41d4 a716 446655440003", "status" "pending", "items" \[ {} ], "subtotal" 159 98, "tax" 12 8, "total" 172 78, "shippingaddress" { "street" "123 main st", "street2" "apt 4b", "city" "springfield", "state" "il", "zipcode" "62701", "country" "us" }, "metadata" "", "tracking" { "carrier" "fedex", "trackingnumber" 794644790132, "estimateddelivery" "2025 07 15", "events" \[ { "timestamp" "", "location" "", "description" "" } ] }, "createdat" "", "updatedat" "" }// bad request — invalid input or missing required fields { "code" "validation error", "message" "the request body contains invalid fields", "details" \[ { "field" "email", "message" "must be a valid email address", "code" "invalid format" } ], "requestid" "" }// unprocessable entity — validation failed { "code" "validation error", "message" "the request body contains invalid fields", "details" \[ { "field" "email", "message" "must be a valid email address", "code" "invalid format" } ], "requestid" "" }