获取代客订单列表
企业可通过接口获取crm代客订单的订单列表信息
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/crm/saleOrder/page?access_token=x
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数:
{
"user_id": "wovvCXcAAAXio3fEwulPCVHqUnRlT5iw",
"owner_ids": [],
"follow_user_ids": [],
"start_time":1653973589,
"end_time":1653993589,
"order_state_list":[],
"field_map":{},
"page_num":1,
"page_size":20
}
参数 | 类型 | 必填 | 说明 | |
---|---|---|---|---|
user_id | string | 否 | 当前用户 | |
owner_ids | string[] | 否 | 负责人ID集 | |
follow_user_ids | string | 否 | 创建人ID集 | |
start_time | long | 否 | 创建开始时间(单位:秒), | |
end_time | long | 否 | 创建结束时间(单位:秒), | |
order_state_list | string[] | 否 | 订单状态 1.待确认、2.待付款、3.待审核、4.待修改、5.已完成、6.已撤销 | |
field_map | map | 否 | 自定义字段筛选map | |
page_num | int | 是 | 当前页 | |
page_size | int | 是 | 当前页大小 |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"total": 4,
"records": [
{
"id": 1531517114528779266,
"order_number": "20220531140588730010",
"contact_id": 1831517114528779266,
"contact_name": "倫|O子~",
"follow_user_id": "wovvCXcAAAXio3fEwulPCVHqUnRlT5iw",
"order_account": 36900,
"discount": null,
"remittance_account": 0,
"account": null,
"order_state": 2,
"company_name": null,
"create_time": 1653973589,
"remark": null,
"update_time": null,
"owner_id": "wovvCXcAAAXio3fEwulPCVHqUnRlT5iw",
"discount_price": null,
"company_id": null,
"goods_name": "哇哇",
"pic_list": [],
"cooper_list": null,
"pre_owner_id": null,
"opportunity_id": null,
"opportunity_name": null,
"field_map": {}
}
]
}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | 返回数据 |
total | long | 总行数 |
records | 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 | 负责人ID |
discount_price | long | 折扣金额 |
company_id | long | 联系人企业id |
goods_name | string | 商品名称 |
pic_list | string[] | 商品图片地址集 |
cooper_list | string[] | 协作人ID |
pre_owner_id | string | 前负责人ID |
opportunity_id | long | 商机id |
opportunity_name | string | 商机名称 |
field_map | map | 自定义字段 map |