# 获取订单 检索指定的订单。 Endpoint: GET /v2/project/{project_id}/order/{order_id} Version: 2.0.0 Security: AuthForCart ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 - `order_id` (string, required) 订单ID。 Example: "656" ## Response 200 fields (application/json): - `content` (object) 订单详细信息。 - `content.is_free` (boolean) 如果为true,则订单是免费的。 - `content.items` (array) 商品列表。 Example: [{"is_free":false,"price":{"amount":"30","amount_without_discount":"30","currency":"USD"},"quantity":1,"sku":"com.xsolla.item_1"}] - `content.items.is_free` (boolean) 如果为true,则该商品为免费。 - `content.items.price` (object) 商品价格。 - `content.items.price.amount` (string) 折扣后的商品价格。 Example: "30" - `content.items.price.amount_without_discount` (string) 商品价格。 Example: "30" - `content.items.price.currency` (string) 商品价格货币。每[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)。 Example: "USD" - `content.items.quantity` (integer) 商品数量。 Example: 1 - `content.items.sku` (string) 唯一商品ID。 SKU只能包含大小写英文字母和数字字符、句点、破折号和下划线。 Example: "some_sku" - `content.price` (object) 订单价格。 - `content.price.amount` (string) 订单折扣价。 Example: "30" - `content.price.amount_without_discount` (string) 订单价格。 Example: "30" - `content.price.currency` (string) 订单价格货币。每三个字母的代码[ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)。 Example: "USD" - `content.virtual_price` (object) 以虚拟货币表示的订单价格。 - `content.virtual_price.currency` (string) 订单中使用的虚拟货币SKU。 Example: "test_vc" - `order_id` (integer) 订单ID。 Example: 1 - `status` (string) 订单状态:new/paid/done/canceled。 Example: "paid" ## Response 404 fields (application/json): - `errorCode` (integer) Example: 9001 - `errorMessage` (string) Example: "[0401-9001]: Order not found" - `statusCode` (integer) Example: 404