- Shops API Production serverhttps://mercately.shop/api/v1/orders/web_id
curl -i -X PUT \
https://mercately.shop/api/v1/orders/web_id \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"order": {
"sales_channel": "string",
"notes": "string",
"address": "string",
"city": "string",
"state": "string",
"zip_code": "string",
"delivery_method": "send_order",
"status": "pending",
"shipping_value": 0.1,
"customer_attributes": {
"first_name": "string",
"last_name": "string",
"email": "string",
"phone": "string"
},
"order_items_attributes": [
{
"product_id": "string",
"quantity": 0,
"unit_price": 0.1
}
]
}
}'Response
{ "message": "Órden actualizada con éxito", "order": { "web_id": "4Bs2mKblN3", "status": "success", "subtotal": "60.0", "tax_amount": "0.0", "total": "65.0", "shipping_value": "5.0", "sales_channel": null, "notes": "New notes", "created_at": "2023-06-13T03:31:06.825Z", "archived": false, "customer": { … }, "order_items": [ … ] } }