#### 接口版本: |版本号|制定人|修订日期|说明| |:----|:----|:---- |:----| |1.0 |Karen |2021-11-05 |建立文档| #### 请求URL: - {{HOST}}/api/order/detail #### 请求方式: - POST #### 请求头: |参数名|是否必须|类型|说明| |:---- |:---|:----- |----- | |Content-Type |是 |string |application/json | |Accept |是 |string |application/json | |Authorization|是|string|Bearer {token},`登录`接口获取| |uuid |否 |string |uuid,每个接口都会通过 headers 头返回 | |locale |否 |string |语言,默认 en,更多配置查看文件 `/config/strongshop.php` 中 `langs`| |currency |否 |string |货币,默认 USD,更多配置查看文件 `/config/strongshop.php` 中 `currencies`| #### 请求参数: |参数名|是否必须|类型|说明| |:---- |:---|:----- |----- | |orderId|是|integer|订单id| #### 返回示例: **正确时返回:** ``` { "code": 200, "message": "Success", "data": { "id": 50, "user_id": 22, "order_no": "ST20211104150518924", "currency_code": "USD", "currency_rate": 1, "products_amount": "10.778", "weight_total": 1000, "shipping_fee": "24.000", "handling_fee": "15.000", "tax_fee": "0.000", "discount_amount": "0.000", "used_credits_amount": "0.000",// "order_amount": "49.780",//订单金额 "paid_amount": "0.000",//实际支付金额 "order_status": 10,//订单状态:10 待支付,12 已支付/待发货,13 支付失败,14 支付异常,20 已发货/待收货,22 已收货,24 退货中,26 已退货,30 已完成,40 已取消(会员取消),42 已关闭(管理员关闭) "pay_remark": "", "shipping_option_id": 13, "tracking_no": "", "shipping_remark": "", "payment_option_id": 1, "transaction_id": "", "remark": "111", "first_name": "11", "last_name": "11", "email": "11", "phone": "11", "fax": "11", "country_code": "US", "state_code": "11", "state_other": "11", "city": "11", "address_line_1": "11", "address_line_2": "11", "postal_code": "11", "billing_first_name": "11", "billing_last_name": "11", "billing_email": "11", "billing_phone": "11", "billing_fax": "11", "billing_country_code": "11", "billing_state_code": "11", "billing_state_other": "11", "billing_city": "11", "billing_address_line_1": "11", "billing_address_line_2": "11", "billing_postal_code": "11", "created_at": "2021-11-04 15:05:55", "updated_at": "2021-11-04 15:05:55", "paid_at": null, "received_at": null, "canceled_at": null, "returned_at": null, "shipped_at": null, "country": "United States", "state": null, "currency": "$USD", "order_status_label": "待支付", //订单产品 "order_products": [ { "product_id": 1, "order_id": 50, "sku": "dress100-01-s", "title": "Womens Mini Dress Batwing Boat Neck Long Sleeve Tunic Shift Dress Black-S", "sale_price": "10.778", "qty": 1, "img_cover": "http://demo.strongshop.local/storage/202103/rx0xVDd18IOOT5sxAT7M9QAQUFCczeFJWhAz2p8g_thumb.jpg", "specs": [ { "name": "颜色", "value": "Black" }, { "name": "尺寸", "value": "S" }, { "name": "3333", "value": "1" } ], "subtotal": "10.778" } ], //配送信息 "shipping_option": { "id": 13, "title": "Standard Global Express (6-9 business days)", "code": "kuaidi", "desc": "Ship with DHL,UPS,TNT,or FedEx etc. Delivery time 6-9 business days" }, //支付信息 "payment_option": { "id": 1, "title": "PayPal", "code": "paypal", "desc": "" } } } ``` #### 返回CODE说明: |参数名|说明| |:----- |----- | |200 |成功 | |3001 |字段验证错误 | |5001|服务内部错误| #### 备注: - 更多返回错误代码请看首页的错误代码描述