获取代客订单详情
企业可通过接口获取crm代客订单的订单详情信息
请求方式: GET(HTTPS)
请求地址: https://open.wshoto.com/openapi/crm/saleOrder/detail?access_token=x
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数:
{
"user_id": "wovvCXcAAAXio3fEwulPCVHqUnRlT5iw",
"id": 1531517114528779266
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
user_id | string | 否 | 创建人 |
id | long | 是 | 订单id |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"order": {
"id": 1531517114528779266,
"order_number": "20220531140588730010",
"contact_id": 1631517114528779266,
"contact_name": "倫|O子~",
"follow_user_id": "wovvCXcAAAXio3fEwulPCVHqUnRlT5iw",
"order_account": 36900,
"discount": 10.00,
"remittance_account": 0,
"account": 36700,
"order_state": 2,
"company_id": null,
"company_name": null,
"create_time": 1653973589,
"remark": "",
"update_time": null,
"owner_id": "wovvCXcAAAXio3fEwulPCVHqUnRlT5iw",
"discount_price": 0,
"goods_name": null,
"pic_list": [],
"cooper_list": [],
"pre_owner_id": null,
"opportunity_id": null,
"opportunity_name": null,
"confirm_time":1653973589,
"field_map": {},
"order_good_list": [
{
"goods_price": 1000,
"goods_content": "",
"pic_urls": ["https://cos-test-1302358358.file.myqcloud.com/app/wpDkH9EAAAU313n90ANS71ehjCBAfH3A/2022/04/da29a83a-59f5-4c17-a2a5-c47f801eb5c6.png"],
"goods_type": 1,
"count": 1,
"goods_name": "哇哇",
"goods_id": "1731517114528779266",
"sku_id": "1631517114528779266"
},
{
"goods_price": 1000,
"goods_content": "自定义商品内容",
"goods_type": 2,
"count": 1,
"goods_name": "自定义商品名称",
"goods_file": []
}
],
"order_contract": []
},
"receipt_list": []
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | 返回数据 |
order | object | 订单基本信息 |
id | long | 订单id |
order_number | string | 订单编号 |
contact_id | long | 联系人ID |
contact_name | string | 联系人名称 |
follow_user_id | string | 跟进人id |
order_account | long | 订单总额 |
discount | double | 折扣 |
remittance_account | long | 回款总额 |
account | long | 订单原价总金额 |
order_state | int | 订单状态 1 待确认,2 待付款3,待审核,4 待修改,5 已完成,6 已撤销 |
company_name | string | 企业名称 |
create_time | long | 创建时间 |
remark | string | 备注 |
update_time | long | 修改时间 |
owner_id | string | 负责人 |
discount_price | long | 折扣金额 |
company_id | long | 联系人企业id |
goods_name | string | 商品名称 |
pic_list | string[] | 商品图片地址集 |
cooper_list | string[] | 协作人 |
pre_owner_id | string | 前负责人ID |
opportunity_id | string | 商机id |
opportunity_name | string | 商机名称 |
field_map | map | 自定义字段 map |
order_good_list | object[] | 订单商品信息 |
id | string | 主键id |
goods_name | string | 商品名称 |
goods_id | string | 商品id |
goods_type | int | 商品类型 |
goods_price | long | 商品价格 |
count | long | 数量 |
opportunity_id | string | 关联赢单商机id |
opportunity_name | string | 关联赢单商机名称 |
pic_urls | string[] | 商城商品的图片地址 |
sku_id | string | 商城商品规格id |
sku_price | long | 商品规格价格 |
select_attrVal | string | 商城商品级别 |
goods_content | string | 自定义商品内容 |
self_map | map | 自定义商品的自定义字段集合 |
goods_file | object[] | 自定义商品附件内容 |
material_id | string | 素材ID |
material_type | int | 素材类型 3 图片 7 文件 |
order_contract | object[] | 订单合同 |
material_id | string | 素材ID |
material_type | int | 素材类型 3 图片 |
receipt_list | object[] | 回款单详情列表 |
id | long | id |
order_id | long | 订单id |
contact_id | string | 联系人id |
receipt_account | long | 汇款金额 |
receipt_time | long | 汇款日期 |
pay_people | string | 打款人 |
receipt_type | string | 回款类型 |
statements_identify | int | 结单标识 0 否 1 是 |
create_time | long | 创建日期 |
approval_state | int | 审批状态 0.待审批,1.审批通过,2.拒绝,3.取消 |
reject_reason | string | 拒绝原因 |
approval_time | long | 审批时间 |
update_time | long | 修改时间 |
business_id | string | 定制凭证ID |
field_map | map | 自定义字段 map |
receipt_contract | object[] | 回款单合同 |
material_id | string | 素材ID |
material_type | int | 素材类型 3 图片 7 文件 |