文档
测试

订单详情

POST
/api/orderdetail

接口描述

订单详情获取

请求头

参数名
类型
描述
必填
content-type
string
application/x-www-form-urlencoded
必填

请求参数

参数名
类型
描述
必填
token
string
登录后获取到的token
必填
id
int
订单ID
必填

响应参数

参数名
类型
描述
必填
code
int
0-成功 1-失败
必填
msg
string
提示信息
必填
data
array
必填
data
array
返回查询结果信息
必填

说明 / 示例

```json { "code": 0, "msg": "查询成功", "data": { "invoice": [{ "id": "4", "user_id": "2", "business_id": "93512", "title": "", "type": "2", "recurring": "0", "parent_id": null, "summary": "", "number": "", "poso_number": "", "customer": "1", "phone": "18683372752", "address": "china sichuan", "receiving_name": "李四", "receiving_telephone": "18683372752", "receiving_address": "china sichuan", "sale_order_name": "销售单名BBB", "sale_order_id": "XSYZYF202109271858238680", "files": "65,64,42,40,71", "date": "2021-09-27", "discount": "0", "payment_due": null, "expire_on": "0000-00-00", "due_limit": null, "footer_note": "", "sub_total": "3.00", "grand_total": "3.00", "convert_total": "0.00", "status": "0", "reject_reason": null, "client_action_date": null, "is_sent": "0", "is_completed": "0", "sent_date": null, "recurring_start": null, "recurring_end": null, "frequency": null, "next_payment": null, "frequency_count": "0", "is_view": null, "view_date": null, "auto_send": "0", "send_myself": null, "created_at": "2021-09-02 21:38:05" }], "products": [{ "id": "2", "user_id": "2", "business_id": "93512", "quantity": "0", "name": "大米", "slug": null, "price": "3.00", "details": null, "is_sell": "1", "is_buy": "0", "income_category": "0", "expense_category": "0", "created_at": null }], "total_tax": { "id": null, "invoice_id": null, "tax_id": null, "rate": null, "total": null }, "asign_taxs": [], "gsts": [], "customers": [{ "id": "8", "user_id": "2", "business_id": "93512", "name": "活动1", "email": "", "phone": "18566532253", "thumb": null, "address": "客户的地1", "country": "0", "currency": "", "cus_number": "", "vat_code": "", "city": "", "postal_code": "", "address1": "", "address2": "", "procurement_budget": "100000", "planned_procurement": "橱柜", "receiving_name": "姓名", "receiving_telephone": "18425410002", "receiving_address": "收货地址信息", "programme_url": "http:\/\/www.aaa.com", "remark": "叽叽叽叽解决", "status": "1", "created_at": null }, { "id": "5", "user_id": "2", "business_id": "93512", "name": "活动", "email": "", "phone": "18566532254", "thumb": null, "address": "客户的地址", "country": "0", "currency": "", "cus_number": "", "vat_code": "", "city": "", "postal_code": "", "address1": "", "address2": "", "procurement_budget": "100000", "planned_procurement": "橱柜", "receiving_name": "姓名", "receiving_telephone": "18425410002", "receiving_address": "收货地址信息", "programme_url": "http:\/\/www.aaa.com", "remark": "叽叽叽叽解决", "status": "1", "created_at": null }], "files": [{ "id": "71", "user_id": "2", "invoice_id": null, "name": "20210927185742000000.docx", "url": ".\/uploads\/files\/20210927185742000000.docx", "filetype": "docx", "date": "2021-09-27 00:00:00" }, { "id": "65", "user_id": "2", "invoice_id": null, "name": "20210927183557000000.png", "url": "uploads\/medium\/20210927183557000000.png", "filetype": "png", "date": "2021-09-27 00:00:00" }, { "id": "64", "user_id": "2", "invoice_id": null, "name": "20210927182041000000.jpg", "url": "uploads\/medium\/20210927182041000000.jpg", "filetype": "jpg", "date": "2021-09-27 00:00:00" }], "file_ids": "71,65,64,42,40", "total": 2 } } ```