cURL
curl --request GET \ --url https://api.example.com/orders/{id}
{ "id": "<string>", "items": [ { "productId": "<string>", "count": 123, "itemPrice": 123 } ], "totalPrice": 123, "status": "<string>", "address": { "province": "<string>", "city": "<string>", "detail": "<string>" }, "createdAt": {} }
200 OK
404 Not Found
{ "code": "ORDER_NOT_FOUND", "message": "没有找到订单", "orderId": "order_123" }
curl -X GET https://api.example.com/orders/order_abc123def456 \
{ "id": "order_abc123def456", "items": [ { "productId": "prod_123456", "count": 2, "itemPrice": 29.99 }, { "productId": "prod_789012", "count": 1, "itemPrice": 49.99 } ], "totalPrice": 109.97, "status": "CREATED", "address": { "province": "California", "city": "San Francisco", "detail": "123 Market St, Suite 400" }, "createdAt": "2026-03-04T10:30:00Z" }