Create Order
POST /api/v1/orders
Required: first_name, last_name, email. Optional: address fields, financial totals, items array.
curl -X POST -H "Authorization: Bearer KEY:SECRET"
-H "Content-Type: application/json"
-d '{"first_name": "Jane", "last_name": "Doe", "email": "[email protected]", "subtotal": 99.98, "total": 99.98, "items": [{"product_id": 57, "name": "Leather Wallet", "quantity": 2, "price": 49.99}]}'
https://example.com/api/v1/orders
Update Order
PUT /api/v1/orders/{id}
Updatable: status, ship_tracking, ship_method, financial fields.
Change Status
PUT /api/v1/orders/{id}/status
curl -X PUT -H "Authorization: Bearer KEY:SECRET"
-H "Content-Type: application/json"
-d '{"status": 3}'
https://example.com/api/v1/orders/289/status
A note is automatically added to the order history.