@Brave
2016-03-26T04:39:36.000000Z
字数 86010
阅读 7198
@(车护宝)
接口说明:访问接口需要提供指定的账号与密码,用于验证使用者身份信息。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| code | code码 | 客户端申请的CODE码 | string | 是 | 无 |
| api_key | API KEY | 客户端申请的API KEY | string | 是 | 无 |
请求实例:
POST /v1/token HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"code":"third_party","api_key":"third_party_api_key"}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","token": "6292abd23cabc078391c5a7be72f30b25fc5526d","exipiry_time": 1431938772}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| token | 身份令牌 | string | 32 |
| exipiry_time | 过期时间,时间戳 | integer | 10 |
接口说明:客户端提交手机号码到服务器, 服务器则向该手机号码发送一条带4位数字的手机验证码,有效期为10分钟。10分钟内不断请求接口,都只会返回一个相同的手机验证码。请限制1分钟内只允许发送一次手机验证码。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| mobile | 手机号码 | 用户注册的可用手机号码 | string(11) | 是 | 无 |
请求实例:
POST /v1/mobile_verification_code HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"mobile":"18615788190"}
返回结果:
{"error_msg":"","error_code":0,"status":1,"verification_code":1245}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| verification_code | 验证码 | integer | 4 |
接口说明:客户端提交手机号码与短信验证码到服务器。验证手机号码是否有效。该接口主要是在用户未注册的情况下提交订单时使用。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| verification_code | 验证码 | 手机短信验证码 | integer(4) | 是 | 无 |
| mobile | 手机号码 | 用户注册的可用手机号码 | string(11) | 是 | 无 |
请求实例:
PUT /v1/verification HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"verification_code":"58971","mobile":"18615788190"}
返回结果:
{"error_msg":"","error_code":0,"status":1}
接口说明:手机号码注册接口,客户端填写手机号码、密码等基本信息,如果注册成功,则返回账号的基本信息。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| mobile | 手机号码 | 用户注册的可用手机号码 | integer(11) | 是 | 无 |
| password | 密码 | 密码长度至少6位以上 | string(6~12) | 是 | 无 |
| verification_code | 验证码 | 手机短信验证码 | integer(4) | 是 | 无 |
| realname | 真实用户名 | 真实用户名 | integer(4) | 否 | 无 |
| file_key:avatar | 头像文件 | 头像文件文件名称是avatar | string(-) | 否 | 无 |
请求实例:
POST /v1/account HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4Content-Disposition: form-data; name="mobile"18615788190Content-Disposition: form-data; name="password"passwordContent-Disposition: form-data; name="verification_code"verification_codeContent-Disposition: form-data; name="realname"realnameContent-Disposition: form-data; name="avatar"; filename="IMG_1544.JPG"
返回结果:
{"error_msg":"","error_code":0,"status":1,"username":"demo","mobile":"15898784512","realname":"demo@chehubao.com","avatar":"http://www.weipei.cc/avatar/demo.png","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
接口说明:修改用户头像时,使用该接口
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| file_key:avatar | 头像文件 | 头像文件文件名称是avatar | string(200) | 是 | 无 |
请求实例:
POST /v1/avatar HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4Content-Disposition: form-data; name="access_token"3e16cdaa0061ee89106b9112890a419397b46f32Content-Disposition: form-data; name="avatar"; filename="IMG_1544.JPG"
返回结果:
{"error_msg":"","error_code":0,"status":1,"username":"demo","mobile":"15898784512","realname":"demo@chehubao.com","avatar":"http://www.weipei.cc/avatar/demo.png","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
接口说明:APP升级检查接口,用户点击检查更新按钮,调用该接口检测该APP是否有升级信息。如果发现更新资源,系统会返回该APP的下载地址。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| client_version | 版本号 | 客户端APP已有的版本号,默认版本号是1 | integer(1) | 是 | 1 |
| model | 手机类型 | 手机设备类型: 0-andriod 1-ios | integer(1) | 是 | 0 |
请求实例:
POST /v1/upgrade HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"client_version":1,"model":0}
返回结果:
{"error_msg":"","error_code":0,"status":1,"latest":2,"upgrade_log":"增加第三方登陆","download_url":"http://www.weipei.cc/statics/v2.0.apk","upgrade":1}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| latest | 最新版ID | integer | - |
| upgrade_log | 升级日志 | string | - |
| download_url | 下载地址 | string | - |
| upgrade | 升级状态 | 1-升级 2 - 强制升级 | 1 |
接口说明:用户在未登陆时,如果忘记密码,可以通过该接口进行密码找回。
处理流程:
1. APP调用24.检查用户是否存在
2. 调用2.发送手机验证码
2. 如果验证通过,调用7.找回密码
3. 完成密码重置
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| mobile | 手机号码 | 手机号码 | string(11) | 是 | 无 |
| verification_code | 手机验证码 | 手机验证码 | integer(4) | 是 | 无 |
| password | 密码字符 | 重置的密码 | string(6-30) | 是 | 无 |
请求实例:
PUT /v1/password HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"mobile":"18715789343","verification_code":1234,"password":"password"}
返回结果:
{"error_msg":"","error_code":0,"status":1,}
接口说明:客户端提交手机号码/用户名到服务器。服务器返回该账号的基础信息。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 身份令牌 | 配件商/修理厂的身份信息 | string(32) | 是 | 无 |
请求实例:
GET /v1/account_information?access_token=555b2fd1fd99a5fa70ff1c203c673d68e040894b HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","account_id": 5,"username": "186****8190","mobile": "18615788190","realname": "程会勇,维修厂","avatar": "http://i.weipei.cc/Uploads/pictures/avatar/3f9a3755c8fb5.jpg","uuid": "0f8a3d218ac46a64641805fa8ea4d2eb","account_extra": {"account_role": 2,"name": "车护宝","contact": "程会勇","contact_number": "18615788190","contact_mobile": "18615788190","address": "成都市高新区环球中心","image": "http://i.weipei.cc//Uploads/avatar/20150602/556dd1764dd96.jpg","province": 23,"city": 385,"district": 0,"district_name": "未知","province_name": "四川省","city_name": "成都市"}}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| account_id | 用户编号 | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| account_extra | 账号附加信息 | - | - |
| account_role | 账号角色,1-配件商 2-修理厂 | integer | - |
| name | 修理厂或者配件商名称 | string | - |
| contact | 修理厂或者配件商联系人 | string | - |
| contact_number | 修理厂或者配件商联系电话 | string | - |
| mobile | 修理厂或者配件商手机号 | string | - |
| address | 修理厂或者配件商详细地址 | string | - |
| image | 修理厂或者配件商图片 | string | - |
| province | 省份编号 | integer | - |
| city | 城市编号 | integer | - |
| district | 地区编号 | integer | - |
| district_name | 地区名称 | string | - |
| province_name | 省份编号 | string | - |
| city_name | 城市编号 | string | - |
接口说明:用户修改密码的一种方式。用户在登陆状态下,调用该接口修改密码。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| origin_password | 密码字符 | 原始的密码 | string(6-30) | 是 | 无 |
| password | 密码字符 | 新设置的密码 | string(6-30) | 是 | 无 |
请求实例:
PUT /v1/account_password HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"access_token":"555b2fd1fd99a5fa70ff1c203c673d68e040894b","origin_password":"123456","password":"123456@a"}
返回结果:
{"error_msg":"","error_code":0,"status":1,"username":"demo","mobile":"15898784512","realname":"demo@chehubao.com","avatar":"http://www.weipei.cc/avatar/demo.png","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
接口说明:用户需要修改现有的手机号码,需要提交新的手机号码到服务器
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| account | 账号 | 可以是手机号码/用户名 | string(-) | 是 | 无 |
| password | 密码 | 登陆密码 | string(6~12) | 是 | 无 |
请求实例:
POST /v1/login HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"account":"21","password":"123456@a"}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","account_id": 5,"username": "186****8190","mobile": "18615788190","realname": "程会勇,维修厂","avatar": "http://i.weipei.cc/Uploads/pictures/avatar/3f9a3755c8fb5.jpg","uuid": "0f8a3d218ac46a64641805fa8ea4d2eb","account_extra": {"name": "车护宝","contact": "程会勇","contact_number": "18615788190","contact_mobile": "18615788190","address": "成都市高新区环球中心","image": "http://i.weipei.cc//Uploads/avatar/20150602/556dd1764dd96.jpg","province": 23,"city": 385,"district": 0,"district_name": "未知","province_name": "四川省","city_name": "成都市"},"third_token": "GsouLBOxwQLYn6OgW+exnF2BLW7I5KqIxlUWqko/s8TuoS1CKeLd17w0bwWxaEZTMVyGVXwK5bU8hFfzxbl+IPmpaS0Xcjwxc7yMP+G2TpAVpU+EXYfltSDAhSfRyXx8","access_token": "YjJkNmUyY2VjYjQ1OTk0MjdkZDNmZWJiOTU3ZTQ4YWQ=","refresh_token": "MzUyMTc0OTcxZGE1NTIyOGI1NDkyNDA1ODk1Yzg4ZmI=","expiry_time": 1448437148}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| username | 用户名 | string | - |
| mobile | 手机号码 | string | 11 |
| realname | 真实姓名 | string | - |
| access_token | 身份授权Token | string | 32 |
| refresh_token | 身份刷新Token | string | 32 |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| expiry_time | 过期时间 | integer | 10 |
| rongyuntong | 荣运通账号身份信息 | string | - |
| account_role | 账号角色,1-配件商 2-修理厂 | integer | - |
| name | 修理厂或者配件商名称 | string | - |
| contact | 修理厂或者配件商联系人 | string | - |
| contact_number | 修理厂或者配件商联系电话 | string | - |
| mobile | 修理厂或者配件商手机号 | string | - |
| address | 修理厂或者配件商详细地址 | string | - |
| image | 修理厂或者配件商图片 | string | - |
| province | 省份编号 | integer | - |
| city | 城市编号 | integer | - |
| district | 地区编号 | integer | - |
| district_name | 地区名称 | string | - |
| province_name | 省份编号 | string | - |
| city_name | 城市编号 | string | - |
接口说明:门店人员收藏某些配件商
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| accessory_shop_id | 配件商编号 | 系统返回的配件商ID | integer(11) | 是 | 无 |
请求实例:
POST /v1/favorites HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"access_token":"3e16cdaa0061ee89106b9112890a419397b46f32","accessory_shop_id":1}
返回结果:
{"error_msg":"","error_code":0,"status":1,}
接口说明:门店人员收藏某些配件商
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| accessory_shop | 配件商名称 | 配件商名称搜索关键词 | string | 否 | 无 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 100 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
GET /v1/favorites?access_token=3e16cdaa0061ee89106b9112890a419397b46f12&limit=100&offset=0 HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"error_msg":"","error_code":0,"status":1,"total":100,"returned": 10,"accessory_shops":[{"accessory_shop_id":1,"accessory_shop_name":"配件商名称","accessory_shop_image":"配件商LOGO","accessory_shop_address":"配件商详细地址","accessory_shop_brands":[{"brand_name":"飞夺罗"}],"realname_authentication":1,"weipei_authentication":1,}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| total | 总记录数量 | integer | - |
| returned | 当前返回记录integer integer | - | |
| accessory_shops | 配件商列表 | string | - |
| accessory_shop_idinteger商编号 | integer | - | |
| accessory_shop_name | 配件商名称 | integer | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| accessory_shop_brands | 配件商主营品牌列表 | - | - |
| brand_name | 配件商主营品牌名称 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
接口说明:通过省市区/车型品牌,车系等信息查询配件商信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| city_id | 城市编号 | 系统返回的城市ID | integer | 否 | 无 |
| automobile_brand | 品牌 | 系统返回的车型品牌ID | integer | 否 | 无 |
| title | 配件商名称 | 配件商名称 | string | 否 | 无 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 100 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
http://api.weipei.cc/v1/accessory_shops?city_id=1&title=对方答复&automobile_brand=1&limit=100&offset=0
返回结果:
{"error_msg":"","error_code":0,"status":1,"total":100,"returned": 10,"accessory_shops":[{"accessory_shop_id":1,"accessory_shop_name":"配件商名称","accessory_shop_image":"配件商LOGO","accessory_shop_address":"配件商详细地址","accessory_shop_brands":[{"brand_id":12,"brand_name":"飞夺罗"}],"realname_authentication":1,"weipei_authentication":1,}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| total | 总记录数量 | integer | - |
| returned | 当前返回记录数量 | integer | - |
| accessory_shops | 配件商列表 | string | - |
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | integer | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| accessory_shop_brands | 配件商主营品牌列表 | - | - |
| brand_id | 品牌编号 | integer | - |
| brand_name | 配件商主营品牌名称 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
接口说明:获取配件商基本信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| accessory_shop_id | 配件商编号 | 系统返回的配件商ID | integer | 是 | 无 |
| access_token | 服务商账户Token | 服务商账户授权Token | string | 否 | 无 |
请求实例:
GET /v1/accessory-shop/information?accessory_shop_id=1&access_token=YTA5NDg5ZjgxYWUxMmVmYzRjZTVjN2Y3Zjk1NDY3NmI= HTTP/1.1Host: api.weipei.ccAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9
返回结果:
{"error_msg":"","error_code":0,"status":1,"accessory_shop_id":1,"accessory_shop_name":"配件商名称","accessory_shop_image":"配件商LOGO","accessory_shop_original_image": null,"accessory_shop_address":"配件商详细地址","accessory_shop_brands":[{"brand_name":"飞夺罗"}],"realname_authentication":1,"weipei_authentication":1,"contact":"联系人","contact_number":"联系电话","favorites_status": 1,"total_quotation_sheets": 2,"total_shipped_orders": 0,"accounts":[{"account_id": 1,"username":"demo","mobile":"15898784512","realname":"demo@chehubao.com","avatar":"http://www.weipei.cc/avatar/demo.png","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e","third_token":"hdkxudhh4j3bvtys7tkota7dj7f48os4k"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| accessory_shop_image | 配件商缩略图 | string | - |
| accessory_shop_original_image | 配件商原始图 | string | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| accessory_shop_brands | 配件商主营品牌列表 | - | - |
| brand_name | 配件商主营品牌名称 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| contact | 联系人 | string | - |
| contact_number | 联系电话 | string | - |
| favorites_status | 收藏状态 0-未收藏过 1-已收藏 | integer | - |
| total_quotation_sheets | 配件商总共报价单 | integer | - |
| total_shipped_orders | 配件商总共已发货采购单 | integer | - |
| accounts | 账号信息 | - | - |
| account_id | 账号ID | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| third_token | 第三方通信token | string | - |
接口说明:服务商发布一条询价信息,图片附件请使用27.上传图片接口上传之后,拿到图片地址,然后进行参数提交。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 服务商账户Token | 服务商账户授权Token | string | 是 | 无 |
| automobile_brand | 品牌编号 | 系统返回的品牌ID | integer | 是 | 无 |
| automobile_series | 车系编号 | 系统返回的车系ID | integer | 是 | 无 |
| automobile_model | 车型编号 | 系统返回的车型ID | integer | 是 | 无 |
| appearance_image_id | 车型外观图片 | 车型外观图片系统编号 | integer | 否 | 无 |
| year | 年款 | 自定义车型年款 | string | 否 | 无 |
| volume | 排量 | 自定义车型排量 | string | 否 | 无 |
| vin_image_id | VIN图 | VIN图系统编号 | integer | 否 | 无 |
| notes | 备注 | 备注信息 | string | 否 | 无 |
| accessory_item | 配件条目编号 | 正常情况是填写配件类目ID, 如果不是ID, 请传入配件名称 | string | 否 | 无 |
| accessory_item_image | 配件图片 | 配件附件ID,请先走上传图片接口 | integer | 否 | 无 |
| accessory_shop_ids | 配件商ID | 修理厂指定哪些配件商,多个请用逗号分隔,例如:2,4,5 | string | 否 | 无 |
请求实例:
POST /v1/motor-repair-shop/inquiry-sheet HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"3e16cdaa0061ee89106b9112890a419397b46f21","automobile_brand":5,"automobile_series":434,"automobile_model":2456,"year":2013,"volume":"4.6","appearance_image_id":"","vin_image_id":"","notes":"备注","accessories":[{"accessory_item":"2","accessory_item_image":""}]}
返回结果:
{"error_msg":"","error_code":0,"status":1,"inquiry_sheet_id":1}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| inquiry_sheet_id | 询价单编号 | integer | - |
接口说明:配件商或者修理厂通过省市区/车型品牌,车系等信息查询配件商信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| title | 配件类目名称 | 配件类目名称 | string | 否 | 无 |
| parent | 父类编号 | 0显示所有父类配件 | integer | 否 | 0 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 100 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
GET /v1/accessories-items?title="default"&parent=0&limit=100&offset=0 HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total": 6,"returned": 6,"accessory_items": [{"accessory_item_id": 1,"accessory_item_name": "车胎","accessory_sub_items": [{"accessory_item_id": 3,"accessory_item_name": "左轮胎"},{"accessory_item_id": 4,"accessory_item_name": "右轮胎"}]},{"accessory_item_id": 2,"accessory_item_name": "疝气灯","accessory_sub_items": [{"accessory_item_id": 5,"accessory_item_name": "前灯"},{"accessory_item_id": 6,"accessory_item_name": "后灯"}]}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| total | 总记录数量 | integer | - |
| returned | 当前返回记录数量 | integer | - |
| accessory_items | 配件列表 | - | - |
| accessory_parent | 配件父类名称 | string | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_item_name | 配件名称 | string | - |
接口说明:修理厂获取询价单基础信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 服务商账户Token | 服务商账户授权Token | string | 是 | 无 |
| inquiry_sheet_id | 询价单编号 | 系统返回的询价单ID | integer | 是 | 无 |
请求实例:
http://api.weipei.cc/v1/motor-repair-shop/inquiry-sheet-detail?access_token=3e16cdaa0061ee89106b9112890a419397b46f31&inquiry_sheet_id=1
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","inquiry_sheet": {"inquiry_sheet_id": 1,"inquiry_sheet_no": "558103eae2e9e","automobile_brand_name": "宝马","automobile_series_name": "威赛帝(进口)","automobile_model_name": "2013款 2013款 2.0T 2.0T 手自一体 手自一体 GT 320i 风尚设计套装","automobile_brand_id": 5,"automobile_series_id": 567,"automobile_model_id": 2145,"year": "2013款","volume": "13.0","notes": "notes","appearance": null,"appearance_id": 0,"vin_id": 0,"vin": null,"status": 2,"status_string": "已报价","created_at": "2015-06-17 13:21:46","exipiry_time": 1434604906,"server_time": 1434544578,"updated_at": "2015-06-17 13:21:46","total_quoted": 1,"inquiry_sheet_accessoires": [{"inquiry_sheet_accessory_item_id": 1,"accessory_item_id": 2,"accessory_item_name": null,"accessory_item_original_name": null,"accessory_item_image_id": null,"min_price": 0,"max_price": 0}],"accessory_shops": [{"quotation_sheet_id": 1,"accessory_shop_id": 1,"accessory_shop_name": "成都伟望美国汽车配件","lowest_price": 1}],"dist_count": 36,"read_count": 0,"read_list": []}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| inquiry_sheet_id | 询价单系统编号 | integer | - |
| inquiry_sheet_no | 询价单编号 | string | - |
| automobile_brand_name | 车型品牌 | string | - |
| automobile_series_name | 车系名称 | string | - |
| automobile_model_name | 车型名称 | string | - |
| automobile_brand_id | 品牌编号 | integer | - |
| automobile_series_id | 车系integer integer | - | |
| automobile_model_id | 车型编号 | integer | - |
| year | 自定义车型年款 | string | - |
| volume | 自定义车型排量 | string | - |
| notes | 配件名称 | string | - |
| appearance | 车型外观图 | string | - |
| appearance_id | 车型外观编号 | integer | - |
| vin_id | vin图编号 | integer | - |
| vin | vin图 | string | - |
| status | 状态, 0待处理 2已报价 3未报价 4已结束 | integer | - |
| status_string | 状态说明 | string | - |
| created_at | 创建时间 | string | - |
| exipiry_time | 过期时间 | integer | 10 |
| server_time | 服务器当前时间戳 | integer | 10 |
| updated_at | 更新时间 | string | - |
| total_quoted | 总报价数 | integer | - |
| inquiry_sheet_accessoires | 求购配件列表 | Map | - |
| inquiry_sheet_accessory_item_id | 询价配件编号 | integer | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_item_name | 配件名称 | string | - |
| accessory_item_original_name | 配件原始图 | string | - |
| accessory_item_image_id | 配件图片编号 | integer | - |
| min_price | 该车型配件最小报价 | double | - |
| max_price | 该车型配件最大报价 | double | - |
| accessory_shops | 配件商报价列表 | Map | - |
| quotation_sheet_id | 报价单编号 | integer | - |
| accessory_shop_id | 配件商系统编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| lowest_price | 最低价格 | float | - |
| dist_count | 询价消息分发总数 | integer | - |
| read_count | 询价消息已读总数 | integer | - |
| read_list | 询价消息已读的用户 | Map | - |
接口说明:配件商提交报价
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 配件商账户Token | 配件商账户授权Token | string | 是 | 无 |
| inquiry_sheet_id | 询价单编号 | 系统返回询价ID | integer | 是 | - |
| inquiry_sheet_accessory_item_id | 询价配件编号 | 询价配件编号 | integer | 是 | 无 |
| accessory_item_id | 配件编号 | 系统返回的配件编号 | integer | 是 | 无 |
| inquiry_sheet_accessory_items | 配件条目 | 配件条目 | - | - | - |
| price | 价格 | 报价价格,支持两位小数 | float | 是 | 无 |
| accessory_level | 配件级别 | 配件级别 | integer | 是 | 无 |
| accessory_quality_gurantee_period | 质保期 | 配件质保期 | integer | 是 | 无 |
| accessory_arrival | 到达情况 | 到达情况 | integer | 是 | 无 |
| accessory_brand | 品牌描述 | 品牌描述 | string | 是 | 无 |
| accessory_unit | 单位 | 单位 | string | 是 | 无 |
| notes | 备注 | 备注 | string | 是 | 无 |
请求实例:
POST /v1/accessory-shop/quotation-sheet HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"NTNjNTVhMmVjMTkwOTNiY2M1Zjk5MTcyZTdhYjVkNTg=","inquiry_sheet_id":1,"quotation_sheet_items":[{"inquiry_sheet_accessory_item_id":2,"inquiry_sheet_accessory_items": [{"price":1,"accessory_level":1,"accessory_quality_gurantee_period":1,"accessory_arrival":1,"accessory_brand":"描述","accessory_unit":"件","notes":"备注"},{"price":1,"accessory_level":2,"accessory_quality_gurantee_period":2,"accessory_arrival":2,"accessory_brand":"描述","accessory_unit":"件","notes":"备注"}]}]}
返回结果:
{"error_msg":"","error_code":0,"status":1,"quotation_sheet_id":1}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| quotation_sheet_id | 报价单 | integer | - |
接口说明:修理厂的所有询价列表信息汇总。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 维修厂账户Token | 维修厂账户授权Token | string | 是 | 无 |
| unexpired | 未过期标识 | 1=>未过期 0=>全部 | integer | 否 | 0 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 50 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
http://api.weipei.cc/v1/motor-repair-shop/inquiry-sheet-lists?access_token=3e16cdaa0061ee89106b9112890a419397b4613s&limit=100&offset=0
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total": 1,"returned": 1,"inquiry_sheet_lists": [{"inquiry_sheet_id": 1,"inquiry_sheet_no": "558103eae2e9e","automobile_brand_name": "宝马","automobile_series_name": "威赛帝(进口)","automobile_model_name": "2013款 2013款 2.0T 2.0T 手自一体 手自一体 GT 320i 风尚设计套装","automobile_brand_id": 5,"notes": "notes","appearance": null,"appearance_id": 0,"vin_id": 0,"vin": null,"status": 2,"status_string": "已报价","created_at": "2015-06-17 13:21:46","exipiry_time": 1434604906,"server_time": 1434544928,"updated_at": "2015-06-17 13:21:46","total_quoted": 1,"inquiry_sheet_accessoires": [{"inquiry_sheet_accessory_item_id": 1,"accessory_item_id": 2,"accessory_item_name": null,"accessory_item_original_name": null,"accessory_item_image_id": null}],"motor_repair_shop": {"motor_repair_shop_id": 3,"motor_repair_shop_address": "成都市天府新区1187","motor_repair_shop_name": "成都四核保养修理厂","motor_repair_shop_contact": "程先生","realname_authentication": 0,"weipei_authentication": 0,"motor_repair_shop_thumbnail_image": false,"motor_repair_shop_original_image": false,"total_inquiry_sheets": 6,"total_shipped_orders": 0,"accounts": {"account_id": 1,"username": "186****8190","mobile": "18615788190","realname": "realname","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/avatar.jpg","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e"}}}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| total | 总记录数量 | integer | - |
| returned | 当前返回记录数量 | integer | - |
| inquiry_sheet_id | 询价单系统编号 | integer | - |
| inquiry_sheet_no | 询价单编号 | string | - |
| automobile_brand_name | 车型品牌 | string | - |
| automobile_series_name | 车系名称 | string | - |
| automobile_model_name | 车型名称 | string | - |
| notes | 配件名称 | string | - |
| appearance | 车型外观图 | string | - |
| vin | vin图 | integer | - |
| status | 状态, 0待处理 2已报价 3未报价 4已结束 | integer | - |
| status_string | 状态说明 | string | - |
| created_at | 创建时间 | string | - |
| total_quoted | 总报价数 | integer | - |
| motor_repair_shop_id | 维修厂编号 | integer | - |
| motor_repair_shop_address | 维修厂详细地址 | string | - |
| motor_repair_shop_name | 维修厂名称 | string | - |
| motor_repair_shop_contact | 维修厂联系人 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| motor_repair_shop_thumbnail_image | 维修厂缩略图 | string | - |
| motor_repair_shop_original_image | 维修厂原始图 | string | - |
| total_inquiry_sheets | 维修厂总共询价单 | integer | - |
| total_shipped_orders | 维修厂已发货的采购单 | integer | - |
| accounts | 账号信息 | - | - |
| account_id | 账号ID | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| exipiry_time | 过期时间 | integer | 10 |
| inquiry_sheet_accessoires | 询价单条目信息 | - | - |
| inquiry_sheet_accessory_item_id | 询价单配件条目ID | integer | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_item_name | 配件名称 | string | - |
| accessory_item_image | 配件图片 | string | - |
接口说明:配件商查看自己的报价情况。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 配件商账户Token | 配件商账户授权Token | string | 是 | 无 |
| unexpired | 过期标示 | 1=>未过期 0=>全部 | integer | 否 | 0 |
| quoted | 报价状态 | 1=>已报价 2=>未报价 0=>全部 | integer | 否 | 0 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 50 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
http://api.weipei.cc/v1/accessory-shop/quotation-sheet-lists?access_token=3e16cdaa0061ee89106b9112890a419397b4622s&limit=100&offset=0&refresh_token=3e16cdaa0061ee89106b9112890a419397b46f32
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","quotation_sheet_lists": [{"quotation_sheet_id": 1,"quotation_sheet_no": "558104bbe8a9c","inquiry_sheet_id": 1,"automobile_brand_name": "宝马","automobile_series_name": "威赛帝(进口)","automobile_model_name": "2013款 2013款 2.0T 2.0T 手自一体 手自一体 GT 320i 风尚设计套装","notes": "notes","appearance": null,"vin": null,"status": 2,"status_string": "已报价","created_at": "2015-06-17 13:21:46","exipiry_time": 1434604906,"total_quoted": 1,"server_time": 1434545475,"lowest_price": 1,"current_accessory_shop_is_quoted": true,"inquiry_sheet_accessoires": [{"quotation_sheet_id": 1,"inquiry_sheet_accessory_item_id": 1,"quotation_sheet_accessory_item_id": 1,"accessory_item_name": "前保险杠电眼","accessory_item_image": null,"accessory_item_original_image": null,"accessory_level": 1,"accessory_quality_gurantee_period": 1,"accessory_arrival": 1,"price": 1,"accessory_brand": "","accessory_unit": "","notes": "备注"}],"motor_repair_shop": {"motor_repair_shop_id": 3,"motor_repair_shop_address": "成都市天府新区1187","motor_repair_shop_name": "成都四核保养修理厂","motor_repair_shop_contact": "程先生","realname_authentication": 0,"weipei_authentication": 0,"motor_repair_shop_thumbnail_image": false,"motor_repair_shop_original_image": false,"total_inquiry_sheets": 6,"total_shipped_orders": 0,"accounts": {"account_id": 1,"username": "186****8190","mobile": "18615788190","realname": "realname","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/avatar.jpg","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e"}}}],"total": 1,"returned": 1}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| total | 总记录数量 | integer | - |
| returned | 当前返回记录数量 | integer | - |
| inquiry_sheets | 我的询价列表 | - | - |
| quotation_sheet_id | 报价单编号 | integer | - |
| inquiry_sheet_id | 询价单编号 | integer | - |
| automobile_brand_name | 车型品牌 | string | - |
| automobile_series_name | 车系名称 | string | - |
| automobile_model_name | 车型名称 | string | - |
| notes | 配件名称 | string | - |
| appearance | 车型外观图 | string | - |
| vin | vin图 | integer | - |
| status | 状态, 0待处理 2已报价 3未报价 4已结束 | integer | - |
| status_string | 状态说明 | string | - |
| created_at | 创建时间 | string | - |
| total_quoted | 总报价数 | integer | - |
| exipiry_time | 过期时间 | integer | 10 |
| server_time | 服务器时间 | integer | 10 |
| lowest_price | 最低价总和 | float | - |
| curent_accessory_shop_is_quoted | 当前登录配件商是否已经报过价,true是 false否 | boolean | - |
| quotation_sheet_items | 报价单配件条目 | - | - |
| quotation_sheet_accessory_item_id | 报价配件编号 | integer | - |
| price | 配件价格 | float | - |
| accessory_level | 配件等级 | string | - |
| accessory_quality_gurantee_period | 质保期 | string | - |
| accessory_arrival | 配件到达情况 | string | - |
| accessory_brand | 品牌描述 | string | - |
| accessory_unit | 单位 | string | - |
| notes | 备注 | string | - |
| motor_repair_shop_id | 维修厂编号 | integer | - |
| motor_repair_shop_address | 维修厂详细地址 | string | - |
| motor_repair_shop_name | 维修厂名称 | string | - |
| motor_repair_shop_contact | 维修厂联系人 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| motor_repair_shop_thumbnail_image | 维修厂缩略图 | string | - |
| motor_repair_shop_original_image | 维修厂原始图 | string | - |
| total_inquiry_sheets | 维修厂总共询价单 | integer | - |
| total_shipped_orders | 维修厂已发货的采购单 | integer | - |
| accounts | 账号信息 | - | - |
| account_id | 账号ID | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
接口说明:修理厂创建采购单
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 修理厂账户Token | 修理厂账户授权Token | string | 是 | 无 |
| quotation_sheet_id | 报价单编号 | 系统返回的报价单ID | integer | 是 | - |
| consignee | 收货人 | 收货人姓名 | string | 是 | - |
| mobile | 联系电话 | 收货人联系电话 | string | 是 | - |
| address | 收货地址 | 收货人收货地址 | string | 是 | - |
| pirce | 价格 | 报价价格,支持两位小数 | float | 是 | 无 |
| way | 货运方式 | 货运方式 | string | 是 | 无 |
| order_accessory_items | 采购单配件 | 采购单配件 | - | - | - |
| quotation_sheet_accessory_item_id | 报价配件编号 | 系统返回的报价配件ID | integer | 是 | - |
| number | 数量 | 采购配件数量 | integer | 是 | - |
| shipping_method | 发货方式 | 1微配直送 2其他物流 | integer | 是 | 2 |
请求实例:
POST /v1/purchase-order HTTP/1.1Host: api.weipei.ccAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"YzM1ZmMyM2QxOGQ2NmE3ZDEyMWY5MTE0Njk2ZGQ5MDU=","quotation_sheet_id":1,"consignee":"描述","mobile":"件","address":"备注","pirce":"90.2","way":1,"shipping_method":1,"order_accessory_items":[{"quotation_sheet_accessory_item_id":1,"number":12}]}
返回结果:
{"error_msg":"","error_code":0,"status":1,"order_id":1,"order_no":"20160304152534532696"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| order_id | 采购单系统编号 | integer | - |
| order_no | 采购单号 | string | 20 |
接口说明: 获取采购单单基础信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 维修厂账户Token | 维修厂账户授权Token | string | 是 | 无 |
| order_id | 采购单编号 | 采购单系统编号 | integer | 是 | 无 |
请求实例:
http://api.weipei.cc/v1/motor-repair-shop/purchase-order-detail?access_token=3e16cdaa0061ee89106b9112890a419397b46f1s&order_id=68
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","purchase_order": {"order_id": 68,"order_no": "20160308125000581156","type":0,"order_status_string": "待发货","order_status": 1,"order_price": 0.01,"order_invoice": false,"order_original_invoice": false,"created_at": "2015-10-14 10:22:36","shippment_time": "2015-10-14 10:22:36","inquiry_sheet_id": 148,"automobile_brand_name": "昌河","automobile_series_name": "福瑞达","automobile_model_name": "2014 1.8","trading_way":"online","trading_no":"2015101410144165472534","refund_no":"2015101317450260179422","is_suspended":false,},"order_receipt": {"consignee": "车护宝维修厂","mobile": "18615788190","address": "成都市高新区环球中心","way": "任意"},"accessory_shop": {"accessory_shop_id": 476,"accessory_shop_name": "金顺达汽车电器有限公司","accessory_shop_image": null,"accessory_shop_original_image": null,"accessory_shop_address": "双流县金恒德汽配城1期20栋373号","accessory_shop_brands": [{"brand_id": 75,"brand_name": "奇瑞"}],"realname_authentication": 0,"weipei_authentication": 0,"contact": "齐鹏飞","contact_number": "13340967117","province": 23,"city": 385,"favorites_status": 0,"total_quotation_sheets": 4,"total_shipped_orders": 2,"accounts": {"account_id": 8563,"username": "159****9864","mobile": "15928039864","realname": "会勇配件商","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/7a6d987ef6dbb.jpg","uuid": "66ee21098d854d6acbb6fce447ed28bf"}},"purchase_order_accessories": [{"accessory_item_id": 80,"accessory_item_name": "前大灯喷水嘴","accessory_items": [{"accessory_item_name": "前大灯喷水嘴","number": 1,"accessory_item_image": null,"accessory_item_original_image": null,"accessory_level": 6,"accessory_quality_gurantee_period": 9,"accessory_arrival": 11,"price": 0.01,"accessory_brand": "","accessory_unit": "","notes": "","accessory_total_price": 0.01}]}],"timeline": [{"order_status": 0,"order_status_string": "待支付","trading_way": "","created_at": "2015-10-15 15:32:41"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| purchase_order | 采购单基本信息 | - | - |
| order_id | 采购单id | integer | - |
| order_no | 采购单编号 | string | - |
| type | 采购单采购方式 0-系统流程 1-雪种活动 | integer | 1 |
| order_status_string | 采购单状态 | string | - |
| order_status | 采购单状态编码 | integer | - |
| order_price | 采购单总价 | duobule | - |
| order_invoice | 发货单照片 | string | - |
| order_original_invoice | 发货单原始照片 | string | - |
| created_at | 采购时间 | string | - |
| shippment_time | 发货时间 | string | - |
| inquiry_sheet_id | 询价单编号 | integer | - |
| automobile_brand_name | 品牌 | string | - |
| automobile_series_name | 车系 | string | - |
| automobile_model_name | 车型 | string | - |
| trading_way | 支付方式 | online线上支付 offline线下支付 | 7 |
| trading_no | 交易单号 | 支付成功后的交易号 | 32 |
| refund_no | 退款单号 | 退款成功后的单号 | 32 |
| is_suspended | 交易是否暂停 | true交易暂停 false交易正常 | 5 |
| order_receipt | 收货人基本信息 | - | - |
| consignee | 收货人 | string | - |
| mobile | 联系电话 | integer | - |
| address | 地址 | string | - |
| way | 送货方式 | string | - |
| accessory_shop | 配件商基本信息 | - | - |
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| accessory_shop_image | 配件商缩略图 | string | - |
| accessory_shop_original_image | 配件商原始图 | string | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| accessory_shop_brands | 配件商主营品牌列表 | - | - |
| brand_name | 配件商主营品牌名称 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| contact | 联系人 | string | - |
| contact_number | 联系电话 | string | - |
| favorites_status | 收藏状态 0-未收藏过 1-已收藏 | integer | - |
| total_quotation_sheets | 配件商总共报价单 | integer | - |
| total_shipped_orders | 配件商总共已发货采购单 | integer | - |
| accounts | 账号信息 | - | - |
| account_id | 账号ID | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| third_token | 第三方通信token | string | - |
| purchase_order_accessories | 采购配件条目 | - | - |
| accessory_item_name | 配件名称 | string | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_items | 采购配件列表 | - | - |
| accessory_item_name | 配件名称 | string | - |
| number | 配件数量 | integer | - |
| accessory_item_image | 配件缩略图 | string | - |
| accessory_item_original_image | 配件原始图 | string | - |
| accessory_level | 配件等级 | string | - |
| accessory_quality_gurantee_period | 质保期 | string | - |
| accessory_arrival | 配件到达情况 | string | - |
| price | 配件价格 | float | - |
| accessory_brand | 品牌描述 | string | - |
| accessory_unit | 单位 | string | - |
| notes | 备注 | string | - |
| accessory_total_price | 配件总价 | dobule | - |
| order_status | 采购单状态 | integer | 1 |
| order_status_string | 采购单状态值 | string | - |
| trading_way | 支付方式 | string | - |
| created_at | 时间 | string | - |
接口说明 :输入用户名/手机号码
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| account | 账号信息 | 用户名/手机号码 | string | 是 | - |
请求实例:
PUT /v1/user HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"account":"1861467783"}
返回结果:
{"error_msg":"","error_code":0,"status":1,}
接口说明:根据系统返回的refresh_token进行免密码登陆。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| refresh_token | 刷新Token | 系统返回的refresh_token | string(32) | 是 | 无 |
请求实例:
POST /v1/token_login HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"refresh_token":"8216cdaa0061ee89106b9112890a419397b46f36"}
返回结果:
{"error_msg":"","error_code":0,"status":1,"username":"demo","mobile":"15898784512","email":"demo@chehubao.com","avatar":"http://www.weipei.cc/avatar/demo.png","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e""access_token":"8116cdaa0061ee89106b9112890a419397b46f36","refresh_token":"8e16cdaa0061ee89106b9112890a419397b46f23","expiry_time":1423798678,"rongyuntong":"8e16cdaa0061ee89106b9112890a419397b46f36"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| username | 用户名 | string | - |
| mobile | 手机号码 | string | 11 |
| 邮箱 | string | - | |
| access_token | 身份授权Token | string | 32 |
| refresh_token | 身份刷新Token | string | 32 |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| expiry_time | 过期时间 | integer | 10 |
| rongyuntong | 荣运通账号身份信息 | string | - |
接口说明:门店人员取消收藏某些配件商
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| accessory_shop_id | 配件商编号 | 系统返回的配件商ID | integer(11) | 是 | 无 |
请求实例:
POST /v1/unfavorite HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"3e16cdaa0061ee89106b9112890a419397b46f32","accessory_shop_id":1}
返回结果:
{"error_msg":"","error_code":0,"status":1,}
接口说明:图片上传接口
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 服务商账户Token | 服务商账户授权Token | string | 是 | 无 |
| filename key:image | 图片名称 | 图片文件路径 | string | 是 | 无 |
请求实例:
POST /v1/upload-request HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"3e16cdaa0061ee89106b9112890a419397b46f21,"image":"file"}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","image_id": 5,"thumbnail_image": "http://img.dev.weipei.cc/Uploads/pictures/assets/e4e0efb241e87.jpg","original_image": "http://img.dev.weipei.cc/Uploads/pictures/assets/2f3675aa23917e12df07099363861cad.jpg"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| image_id | 图片编号 | integer | - |
| thumbnail_image | 缩略图 | string | - |
| original_image | 原始图 | string | - |
接口说明:修理厂查询已经报价的询价单详细信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 服务商账户Token | 服务商账户授权Token | string | 是 | 无 |
| quotation_sheet_id | 报价单编号 | 系统返回的报价单编号 | integer | 是 | 无 |
请求实例:
http://api.weipei.cc/v1/motor-repair-shop/quotation-sheet-detail?access_token=3e16cdaa0061ee89106b9112890a419397b46f31"ation_sheet_id=1
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","inquiry_sheet": {"inquiry_sheet_id": 1,"inquiry_sheet_no": "558103eae2e9e","automobile_brand_name": "宝马","automobile_series_name": "威赛帝(进口)","automobile_model_name": "2013款 2013款 2.0T 2.0T 手自一体 手自一体 GT 320i 风尚设计套装","automobile_brand_id": 5,"notes": "notes","appearance": null,"appearance_id": 0,"vin_id": 0,"vin": null,"status": 2,"status_string": "已报价","created_at": "2015-06-17 13:21:46","exipiry_time": 1434604906,"server_time": 1434546320,"updated_at": "2015-06-17 13:21:46","total_quoted": 1},"accessory_shop": {"accessory_shop_id": 1,"accessory_shop_name": "成都伟望美国汽车配件","accessory_shop_image": null,"accessory_shop_address": "红牌楼三九汽配城B-203号","accessory_shop_brands": [{"brand_id": 5,"brand_name": "宝马"},{"brand_id": 5,"brand_name": "宝马"}],"realname_authentication": 1,"weipei_authentication": 0,"contact": "莫伟","contact_number": "18328388566","favorites_status": 1,"total_quotation_sheets": 2,"total_shipped_orders": 0,"accounts": {"account_id": 2,"username": "159****9864","mobile": "15928039864","realname": "维修厂","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/avatar.jpg","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e"}},"inquiry_sheet_accessoires": [{"inquiry_sheet_accessory_item_id": 1,"accessory_item_id": 2,"accessory_item_name": null,"accessory_item_original_name": null,"accessory_item_image_id": null,"quotation_sheet_items": [{"quotation_sheet_id": 1,"inquiry_sheet_accessory_item_id": 1,"quotation_sheet_accessory_item_id": 1,"accessory_item_name": "前保险杠电眼","accessory_item_image": null,"accessory_item_original_image": null,"accessory_level": 1,"accessory_quality_gurantee_period": 1,"accessory_arrival": 1,"price": 1,"accessory_brand": "","accessory_unit": "","notes": "备注"}]}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| inquiry_sheet | 询价单 | - | - |
| inquiry_sheet_id | 询价单系统编号 | integer | - |
| inquiry_sheet_no | 询价单编号 | string | - |
| automobile_brand_name | 车型品牌 | string | - |
| automobile_series_name | 车系名称 | string | - |
| automobile_model_name | 车型名称 | string | - |
| notes | 配件名称 | string | - |
| appearance | 车型外观图 | string | - |
| vin | vin图 | integer | - |
| status | 状态, 0待处理 2已报价 3未报价 4已结束 | integer | - |
| status_string | 状态说明 | string | - |
| created_at | 创建时间 | string | - |
| exipiry_time | 过期时间 | integer | 10 |
| server_time | 服务器当前时间戳 | integer | 10 |
| updated_at | 更新时间 | string | - |
| accessory_shop | 配件商 | - | - |
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | integer | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| accessory_shop_brands | 配件商主营品牌列表 | - | - |
| brand_name | 配件商主营品牌名称 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| motor_repair_shop_thumbnail_image | 维修厂缩略图 | string | - |
| motor_repair_shop_original_image | 维修厂原始图 | string | - |
| total_inquiry_sheets | 维修厂总共询价单 | integer | - |
| total_shipped_orders | 维修厂已发货的采购单 | integer | - |
| contact | 联系人 | string | - |
| contact_number | 联系电话 | string | - |
| favorites_status | 收藏状态 0-未收藏过 1-已收藏 | integer | - |
| total_quotation_sheets | 配件商总共报价单 | integer | - |
| total_shipped_orders | 配件商总共已发货采购单 | integer | - |
| accounts | 账号信息 | - | - |
| account_id | 账号ID | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| third_token | 第三方通信token | string | - |
| inquiry_sheet_accessoires | 询价单条目信息 | - | - |
| inquiry_sheet_accessory_item_id | 询价单配件条目ID | integer | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_item_name | 配件名称 | string | - |
| accessory_item_image | 配件图片 | string | - |
| quotation_sheet_items | 报价单配件条目 | - | - |
| quotation_sheet_accessory_item_id | 报价配件编号 | integer | - |
| price | 配件价格 | float | - |
| accessory_level | 配件等级 | string | - |
| accessory_quality_gurantee_period | 质保期 | string | - |
| accessory_arrival | 配件到达情况 | string | - |
| brand_description | 品牌描述 | string | - |
| unit | 单位 | string | - |
| notes | 备注 | string | - |
接口说明:修理厂查询已经报价的询价单信息。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 配件商账户Token | 配件商账户授权Token | string | 是 | 无 |
| inquiry_sheet_id | 询价单编号 | 系统返回的询价单编号 | integer | 是 | 无 |
请求实例:
http://api.weipei.cc/v1/accessory-shop/quotation-sheet-detail?access_token=8e16cdaa0061ee89106b9112890a419397b46f1d&inquiry_sheet_id=1
返回结果:
{"error_msg":"","error_code":0,"status":1,"inquiry_sheet": {"inquiry_sheet_id": 1,"inquiry_sheet_no": "5571657446a4c","automobile_brand_name": "宝马","automobile_series_name": "菱麒","automobile_model_name": "丰田 2008款 2013款 2007款 2012款 2011款 2009款 1.6 1.8 2.0 手动 自动 无级 卡罗拉","automobile_brand_id": 5,"notes": "","appearance": null,"vin": null,"status": 2,"status_string": "已报价","created_at": "2015-06-05 17:01:40","exipiry_time": 1433581300,"server_time": 1433673952,"updated_at": "2015-06-05 17:01:40","total_quoted": 7,},"motor_repair_shop": {"motor_repair_shop_id":12,"motor_repair_shop_address":"修理厂详细地址","motor_repair_shop_name":"修理厂名称","motor_repair_shop_contact":"联系电话","realname_authentication":"实名认证, 1=已通过认证 0-未通过认证","weipei_authentication":"微配认证 1=已通过认证 0-未通过认证","motor_repair_shop_thumbnail_image": false,"motor_repair_shop_original_image": false,"total_inquiry_sheets": 6,"total_shipped_orders": 0,"accounts":[{"account_id": 1,"username":"demo","mobile":"15898784512","realname":"demo@chehubao.com","avatar":"http://www.weipei.cc/avatar/demo.png","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e","third_token":"hdkxudhh4j3bvtys7tkota7dj7f48os4k"}]},"inquiry_sheet_accessoires": [{"inquiry_sheet_accessory_item_id": 1,"accessory_item_id": 2,"accessory_item_name": "前刹车片","accessory_item_image": null,"quotation_sheet_items": [{"inquiry_sheet_accessory_item_id": 2,"quotation_sheet_accessory_item_id": 1,"accessories_item_name": "前刹车片","accessories_item_image": null,"accessory_level": 1,"accessory_quality_gurantee_period": 1,"accessory_arrival": 1,"price": 1,"accessory_brand": "描2述","accessory_unit": "2件","notes": "备2注"}]}],"quotation_sheet_id": 1,"is_quoted":false,"curent_accessory_shop_is_quoted":1}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| inquiry_sheet | 询价单 | - | - |
| inquiry_sheet_id | 询价单系统编号 | integer | - |
| inquiry_sheet_no | 询价单编号 | string | - |
| automobile_brand_name | 车型品牌 | string | - |
| automobile_series_name | 车系名称 | string | - |
| automobile_model_name | 车型名称 | string | - |
| automobile_brand_id | 品牌编号 | integer | - |
| notes | 配件名称 | string | - |
| appearance | 车型外观图 | string | - |
| vin | vin图 | integer | - |
| status | 状态, 0待处理 2已报价 4已结束 | integer | - |
| status_string | 状态说明 | string | - |
| created_at | 创建时间 | string | - |
| exipiry_time | 过期时间 | integer | 10 |
| server_time | 服务器当前时间戳 | integer | 10 |
| updated_at | 更新时间 | string | - |
| total_quoted | 总共报价 | integer | - |
| motor_repair_shop_id | 维修厂编号 | integer | - |
| motor_repair_shop_address | 维修厂详细地址 | string | - |
| motor_repair_shop_name | 维修厂名称 | string | - |
| motor_repair_shop_contact | 维修厂联系人 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| motor_repair_shop_thumbnail_image | 维修厂缩略图 | string | - |
| motor_repair_shop_original_image | 维修厂原始图 | string | - |
| total_inquiry_sheets | 维修厂总共询价单 | integer | - |
| total_shipped_orders | 维修厂已发货的采购单 | integer | - |
| accounts | 账号信息 | - | - |
| account_id | 账号ID | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| third_token | 第三方通信token | string | - |
| inquiry_sheet_accessoires | 询价单条目信息 | - | - |
| inquiry_sheet_accessory_item_id | 询价单配件条目ID | integer | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_item_name | 配件名称 | string | - |
| accessory_item_image | 配件图片 | string | - |
| quotation_sheet_items | 报价单配件条目 | - | - |
| quotation_sheet_accessory_item_id | 报价配件编号 | integer | - |
| price | 配件价格 | float | - |
| accessory_level | 配件等级 | string | - |
| accessory_quality_gurantee_period | 质保期 | string | - |
| accessory_arrival | 配件到达情况 | string | - |
| accessory_brand | 品牌描述 | string | - |
| accessory_unit | 单位 | string | - |
| notes | 备注 | string | - |
| quotation_sheet_id | 报价单编号 | integer | - |
| is_quoted | 询价单是否已经报过价格,true是 false否 | boolean | - |
| curent_accessory_shop_is_quoted | 当前登录配件商是否已经报过价,true是 false否 | boolean | - |
接口说明:配件商修改自己的报价单
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| quotation_sheet_id | 报价单系统编号 | 报价单系统编号 | integer | 是 | 无 |
| access_token | 配件商账户Token | 配件商账户授权Token | string | 是 | 无 |
| inquiry_sheet_id | 询价单编号 | 系统返回询价ID | integer | 是 | - |
| quotation_sheet_items | 报价条目 | 报价条目 | - | - | - |
| quotation_sheet_accessory_item_id | 已报价配件编号 | 已报价配件编号 | integer | 是 | 无 |
| inquiry_sheet_accessory_item_id | 询价配件编号 | 询价配件编号 | integer | 是 | 无 |
| accessory_item_id | 配件编号 | 系统返回的配件编号 | integer | 是 | 无 |
| inquiry_sheet_accessory_items | 配件条目 | 配件条目 | - | - | - |
| price | 价格 | 报价价格,支持两位小数 | float | 是 | 无 |
| accessory_level | 配件级别 | 配件级别 | integer | 是 | 无 |
| accessory_quality_gurantee_period | 质保期 | 配件质保期 | integer | 是 | 无 |
| accessory_arrival | 到达情况 | 到达情况 | integer | 是 | 无 |
| accessory_brand | 品牌描述 | 品牌描述 | string | 是 | 无 |
| accessory_unit | 单位 | 单位 | string | 是 | 无 |
| notes | 备注 | 备注 | string | 是 | 无 |
请求实例:
PUT /v1/accessory-shop/quotation-sheet HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"quotation_sheet_id":1,"access_token":"NTNjNTVhMmVjMTkwOTNiY2M1Zjk5MTcyZTdhYjVkNTg=","inquiry_sheet_id":1,"quotation_sheet_items":[{"inquiry_sheet_accessory_item_id":1,"inquiry_sheet_accessory_items": [{"quotation_sheet_accessory_item_id":1,"price":1,"accessory_level":1,"accessory_quality_gurantee_period":1,"accessory_arrival":1,"accessory_brand":"描述","accessory_unit":"件","notes":"备注"},{"quotation_sheet_accessory_item_id":2,"price":1,"accessory_level":2,"accessory_quality_gurantee_period":2,"accessory_arrival":2,"accessory_brand":"描述","accessory_unit":"件","notes":"备注"}]}]}
返回结果:
{"error_msg":"","error_code":0,"status":1,"quotation_sheet_id":1}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| quotation_sheet_id | 报价单 | integer | - |
接口说明:服务商发布一条询价信息,图片附件请使用27.上传图片接口上传之后,拿到图片地址,然后进行参数提交。_如果需要删除已询的配件,请将参数inquiry_sheet_accessory_item_id直接删除则可_
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| inquiry_sheet_id | 询价单系统编号 | 询价单系统编号 | integer | 是 | 无 |
| access_token | 服务商账户Token | 服务商账户授权Token | string | 是 | 无 |
| automobile_brand | 品牌编号 | 系统返回的品牌ID | integer | 是 | 无 |
| automobile_series | 车系编号 | 系统返回的车系ID | integer | 是 | 无 |
| automobile_model | 车型编号 | 系统返回的车型ID | integer | 是 | 无 |
| appearance_image_id | 车型外观图片 | 车型外观图片系统编号 | integer | 否 | 无 |
| vin_image_id | VIN图 | VIN图系统编号 | integer | 否 | 无 |
| notes | 备注 | 备注信息 | string | 否 | 无 |
| accessory_item | 配件条目编号 | 正常情况是填写配件类目ID, 如果不是ID, 请传入配件名称 | string | 否 | 无 |
| inquiry_sheet_accessory_item_id | 已询价的配件系统编号 | 已询价的配件系统编号 | integer | 否 | 无 |
| accessory_item_image | 配件图片 | 配件附件ID,请先走上传图片接口 | integer | 否 | 无 |
| accessory_shop_ids | 配件商ID | 修理厂指定哪些配件商,多个请用逗号分隔,例如:2,4,5 | string | 否 | 无 |
请求实例:
PUT /v1/motor-repair-shop/inquiry-sheet HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"inquiry_sheet_id":1,"access_token":"YzM1ZmMyM2QxOGQ2NmE3ZDEyMWY5MTE0Njk2ZGQ5MDU=","automobile_brand":5,"automobile_series":35,"automobile_model":345,"appearance_image_id":"","vin_image_id":"","notes":"notes","accessories":[{"inquiry_sheet_accessory_item_id":1,"accessory_item":"1","accessory_item_image":""}],"accessory_shop_ids":"2"}
返回结果:
{"error_msg":"","error_code":0,"status":1,"inquiry_sheet_id":1}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| inquiry_sheet_id | 询价单编号 | integer | - |
接口说明:修理厂取消询价信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 修理厂授权token | 修理厂授权token | sring | 是 | 无 |
| inquiry_sheet | 询价单编号 | 系统返回的询价单编号 | integer | 是 | 无 |
请求实例:
PUT /v1/motor-repair-shop/inquiry-sheet-end HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"YjBmNjk1MzJhNzQ2YTU3ZmViODVhMzc5OTdhMWQwM2E=","inquiry_sheet_id":1}
返回结果:
{"error_msg":"","error_code":0,"status":1,}
接口说明: 修理厂查询采购单
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 服务商账户Token | 服务商账户授权Token | string | 是 | 无 |
| status | 采购单状态 | 0-待支付 1-待发货 2-已发货 3-已关闭 4交易完毕 5全部 6-退款中 | integer | 否 | 5 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 100 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
http://api.weipei.cc/v1/motor-repair-shop/purchase-order-lists?access_token=ZTA1MDQwYmQyNWYwY2ViNzBjMjEyMGJkZTBhNWQ5NTQ=&limit=100&offset=0&status=3
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total_pay":1,"total_paid":1,"total_delivered":1,"total": 9,"returned": 9,"purchase_order_list": [{"purchase_order": {"order_id": 21,"order_no": "55fce95f3e167","order_status_string": "待支付","order_status": 0,"order_price": 0.01,"order_invoice": false,"order_original_invoice": false,"created_at": "2015-09-19 12:49:35","shippment_time": "2015-09-19 12:49:35","inquiry_sheet_id": 110,"automobile_brand_name": "奥迪","automobile_series_name": "A3","automobile_model_name": "2014款 1.4 TFSI 双离合 35TFSI 豪华型","trading_way":"online","trading_no":"2015101410144165472534","refund_no":"2015101317450260179422","is_suspended":false,},"order_receipt": {"consignee": "车护宝维修厂","mobile": "18615788190","address": "成都市高新区环球中心","way": "任意"},"accessory_shop": {"accessory_shop_id": 1361,"accessory_shop_name": "金佰利汽配","accessory_shop_image": "http://img.dev.weipei.cc//Uploads/avatar/20150720/55acd9ce64d35.jpg","accessory_shop_original_image": "http://img.dev.weipei.cc//Uploads/avatar/20150720/55acd9ce64d35.jpg","accessory_shop_address": "九峰汽配","accessory_shop_brands": [{"brand_id": 104,"brand_name": "云雀"}],"realname_authentication": 0,"weipei_authentication": 0,"contact": "张杰","contact_number": "15881103770","province": 23,"city": 385,"favorites_status": 1,"total_quotation_sheets": 8,"total_shipped_orders": 0,"accounts": {"account_id": 8563,"username": "159****9864","mobile": "15928039864","realname": "会勇配件商","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/7a6d987ef6dbb.jpg","uuid": "66ee21098d854d6acbb6fce447ed28bf"}},"purchase_order_accessories": [{"accessory_item_id": 6,"accessory_item_name": "前保险杠骨架","accessory_items": [{"accessory_item_name": "前保险杠骨架","number": 5,"accessory_item_image": null,"accessory_item_original_image": null,"accessory_level": 4,"accessory_quality_gurantee_period": 7,"accessory_arrival": 10,"price": 3269,"accessory_brand": "","accessory_unit": "","notes": "你们还在继续增加……在线指导书、一个人是从什么时候可以捏捏我想起来不及吃惊吃惊不要把门给面子,","accessory_total_price": 16345}]}]}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| total_pay | 待支付总数 | integer | - |
| total_paid | 待发货总数 | integer | - |
| total_delivered | 已发货总数 | integer | - |
| total | 总记录 | integer | - |
| returned | 当前返回记录 | integer | - |
| purchase_order_list | 采购单列表 | - | - |
| purchase_order | 采购单基本信息 | - | - |
| order_id | 采购单id | integer | - |
| order_no | 采购单编号 | string | - |
| order_status_string | 采购单状态 | string | - |
| order_status | 采购单状态编码 | integer | - |
| order_price | 采购单总价 | duobule | - |
| order_invoice | 发货单照片 | string | - |
| created_at | 采购时间 | string | - |
| shippment_time | 发货时间 | string | - |
| inquiry_sheet_id | 询价单编号 | integer | - |
| automobile_brand_name | 品牌 | string | - |
| automobile_series_name | 车系 | string | - |
| automobile_model_name | 车型 | string | - |
| trading_way | 支付方式 | online线上支付 offline线下支付 | 7 |
| trading_no | 交易单号 | 支付成功后的交易号 | 32 |
| refund_no | 退款单号 | 退款成功后的单号 | 32 |
| is_suspended | 交易是否暂停 | true交易暂停 false交易正常 | 5 |
| order_receipt | 收货人基本信息 | - | - |
| consignee | 收货人 | string | - |
| mobile | 联系电话 | integer | - |
| address | 地址 | string | - |
| way | 送货方式 | string | - |
| purchase_order_accessories | 采购配件条目 | - | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_items | 采购配件列表 | - | - |
| accessory_item_name | 配件名称 | string | - |
| number | 配件数量 | integer | - |
| price | 配件价格 | float | - |
| accessory_level | 配件等级 | string | - |
| accessory_quality_gurantee_period | 质保期 | string | - |
| accessory_arrival | 配件到达情况 | string | - |
| brand_description | 品牌描述 | string | - |
| unit | 单位 | string | - |
| notes | 备注 | string | - |
| accessory_total_price | 配件总价 | dobule | - |
接口说明: 配件商查询采购单
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 配件商账户Token | 配件商账户授权Token | string | 是 | 无 |
| status | 采购单状态 | 0-待支付 1-待发货 2-已发货 3-已关闭 4交易完毕 5全部 6-退款中 | integer | 否 | 5 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 100 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
GET http://api.weipei.cc/v1/accessory-shop/purchase-order-lists?access_token=ZDZjYzMyYTBlZTc4MzRiNTE5NzNiOGNlMzIxMzRlMDk=&limit=100&offset=0&status=5
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total_pay":1,"total_paid":1,"total_delivered":1,"total": 8,"returned": 8,"purchase_order_list": [{"purchase_order": {"order_id": 61,"order_no": "561cbde189f4d","order_status_string": "已关闭","order_status": 3,"order_price": 0.01,"order_invoice": false,"order_original_invoice": false,"created_at": "2015-10-13 16:16:33","shippment_time": "2015-10-13 16:16:33","inquiry_sheet_id": 145,"automobile_brand_name": "大众","automobile_series_name": "Tiguan(进口)","automobile_model_name": "2015 1.3","trading_way":"online","trading_no":"2015101410144165472534","refund_no":"2015101317450260179422","is_suspended":false,},"order_receipt": {"consignee": "车护宝维修厂","mobile": "18615788190","address": "成都市高新区环球中心","way": "任意"},"motor_repair_shop": {"motor_repair_shop_id": 5,"motor_repair_shop_address": "成都市高新区环球中心","motor_repair_shop_name": "车护宝维修厂","motor_repair_shop_contact": "程会勇","province": 23,"city": 385,"realname_authentication": 0,"weipei_authentication": 0,"motor_repair_shop_thumbnail_image": "http://img.dev.weipei.cc/Uploads/avatar/20150919/as1442645909.JPG","motor_repair_shop_original_image": "http://img.dev.weipei.cc/Uploads/avatar/20150919/1442645909.JPG","total_inquiry_sheets": 54,"total_shipped_orders": 6,"bd_users": "brave","accounts": {"account_id": 8589,"username": "186****8190","mobile": "18615788190","realname": "程会勇","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/6c244a2dd89bb.jpg","uuid": "d4c4a248f0fe36fbe43811bd5179f5d2"}},"purchase_order_accessories": [{"accessory_item_id": 65,"accessory_item_name": "中网亮条","accessory_items": [{"accessory_item_name": "中网亮条","number": 1,"accessory_item_image": null,"accessory_item_original_image": null,"accessory_level": 4,"accessory_quality_gurantee_period": 7,"accessory_arrival": 10,"price": 0.01,"accessory_brand": "","accessory_unit": "","notes": "","accessory_total_price": 0.01}]}]}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| total_pay | 待支付总数 | integer | - |
| total_paid | 待发货总数 | integer | - |
| total_delivered | 已发货总数 | integer | - |
| total | 总记录 | integer | - |
| returned | 当前返回记录 | integer | - |
| purchase_order_list | 采购单列表 | - | - |
| purchase_order | 采购单基本信息 | - | - |
| order_id | 采购单id | integer | - |
| order_no | 采购单编号 | string | - |
| order_status_string | 采购单状态 | string | - |
| order_status | 采购单状态编码 | integer | - |
| order_price | 采购单总价 | duobule | - |
| order_invoice | 发货单照片 | string | - |
| created_at | 采购时间 | string | - |
| shippment_time | 发货时间 | string | - |
| inquiry_sheet_id | 询价单编号 | integer | - |
| automobile_brand_name | 品牌 | string | - |
| automobile_series_name | 车系 | string | - |
| automobile_model_name | 车型 | string | - |
| trading_way | 支付方式 | online线上支付 offline线下支付 | 7 |
| trading_no | 交易单号 | 支付成功后的交易号 | 32 |
| refund_no | 退款单号 | 退款成功后的单号 | 32 |
| is_suspended | 交易是否暂停 | true交易暂停 false交易正常 | 5 |
| order_receipt | 收货人基本信息 | - | - |
| consignee | 收货人 | string | - |
| mobile | 联系电话 | integer | - |
| address | 地址 | string | - |
| way | 送货方式 | string | - |
| purchase_order_accessories | 采购配件条目 | - | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_items | 采购配件列表 | - | - |
| accessory_item_name | 配件名称 | string | - |
| number | 配件数量 | integer | - |
| price | 配件价格 | float | - |
| accessory_level | 配件等级 | string | - |
| accessory_quality_gurantee_period | 质保期 | string | - |
| accessory_arrival | 配件到达情况 | string | - |
| brand_description | 品牌描述 | string | - |
| unit | 单位 | string | - |
| notes | 备注 | string | - |
| accessory_total_price | 配件总价 | dobule | - |
接口说明:维修厂或者配件商关闭采购单,微配2.1版本增加管理员可以通过管理后台进行关闭采购单。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| order_id | 采购单编号 | 系统返回的采购单ID | integereger | 是 | 无 |
| administrator | BD管理员 | 仅适用后台操作 | integer | 是 | 无 |
请求实例:
PUT /v1/purchase-order-end HTTP/1.1Host: api.weipei.ccAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"ZGNmNDIyNTMyYjk5OGFjMzMwY2JkZGU2YzcwOTcwODE=","order_id":"520323","administrator":19,}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","purchase_order": {"order_id": 520323,"order_no": "55816e7c2bc96","order_status_string": "待发货","order_status": 0,"order_price": 12,"order_invoice": "http://img.dev.weipei.cc/Uploads/pictures/assets/226bdccde7e8e.jpg","order_original_invoice": "http://img.dev.weipei.cc/Uploads/pictures/assets/d8374b826684470aba9486e9bdd159ed.jpg","created_at": "2015-06-17 20:56:28","shippment_time": "2015-06-17 20:56:28","inquiry_sheet_id": 1,"automobile_brand_name": "宝马","automobile_series_name": "威赛帝(进口)","automobile_model_name": "2013款 2013款 2.0T 2.0T 手自一体 手自一体 GT 320i 风尚设计套装"}}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| purchase_order | 采购单基本信息 | - | - |
| order_id | 采购单id | integereger | - |
| order_no | 采购单编号 | string | - |
| order_status_string | 采购单状态 | string | - |
| order_status | 采购单状态编码 | integereger | - |
| order_price | 采购单总价 | duobule | - |
| order_invoice | 发货单照片 | string | - |
| order_original_invoice | 发货单原始照片 | string | - |
| created_at | 采购时间 | string | - |
| shippment_time | 发货时间 | string | - |
| inquiry_sheet_id | 询价单编号 | integereger | - |
| automobile_brand_name | 品牌 | string | - |
| automobile_series_name | 车系 | string | - |
| automobile_model_name | 车型 | string | - |
接口说明:用户注册成功后,使用邀请码功能添加身份角色(配件商或者修理厂)
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| invite_code | 邀请码 | 系统生成的邀请码 | integer | 是 | 无 |
请求实例:
PUT /v1/invitation/code HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"3e16cdaa0061ee89106b9112890a419397b46f32","invite_code":1345}
返回结果:
{"error_msg":"","error_code":0,"status":1,"username":"demo","mobile":"15898784512","realname":"demo@chehubao.com","avatar":"http://www.weipei.cc/avatar/demo.png","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e","access_token":"8116cdaa0061ee89106b9112890a419397b46f36","refresh_token":"8e16cdaa0061ee89106b9112890a419397b46f23","expiry_time":1423798678,"rongyuntong":"8e16cdaa0061ee89106b9112890a419397b46f36","account_extra":[{"account_role":1,"id":13,"name":"龙泉驿汽配城","contact":"联系人","contact_number":"联系电话","mobile":"18765346793","address":"龙泉驿花都区1号","image":"img.weipei.cc/Uploads/images/image.png"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| username | 用户名 | string | - |
| mobile | 手机号码 | string | 11 |
| realname | 真实姓名 | string | - |
| access_token | 身份授权Token | string | 32 |
| refresh_token | 身份刷新Token | string | 32 |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| expiry_time | 过期时间 | integer | 10 |
| rongyuntong | 荣运通账号身份信息 | string | - |
| account_extra | 账号附加信息 | - | - |
| account_role | 账号角色,1-配件商 2-修理厂 | integer | - |
| id | 修理厂或者配件商编号 | integer | - |
| name | 修理厂或者配件商名称 | string | - |
| contact | 修理厂或者配件商联系人 | string | - |
| contact_number | 修理厂或者配件商联系电话 | string | - |
| mobile | 修理厂或者配件商手机号 | string | - |
| address | 修理厂或者配件商详细地址 | string | - |
| image | 修理厂或者配件商图片 | string | - |
接口说明:通过该接口可以修改用户的姓名
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| realname | 用户姓名 | 用户姓名 | string | 是 | 无 |
请求实例:
PUT /v1/realname HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"3e16cdaa0061ee89106b9112890a419397b46f32","realname":13456}
返回结果:
{"error_msg":"","error_code":0,"status":1,"username":"demo","mobile":"15898784512","realname":"demo@chehubao.com","avatar":"http://www.weipei.cc/avatar/demo.png","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e","access_token":"8116cdaa0061ee89106b9112890a419397b46f36","refresh_token":"8e16cdaa0061ee89106b9112890a419397b46f23","expiry_time":1423798678,"rongyuntong":"8e16cdaa0061ee89106b9112890a419397b46f36"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| username | 用户名 | string | - |
| mobile | 手机号码 | string | 11 |
| realname | 真实姓名 | string | - |
| access_token | 身份授权Token | string | 32 |
| refresh_token | 身份刷新Token | string | 32 |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| expiry_time | 过期时间 | integer | 10 |
| rongyuntong | 荣运通账号身份信息 | string | - |
接口说明:获取汽车所有品牌名称接口。
请求实例:
GET /v1/auto-brands HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9
返回结果:
{"error_msg":"","error_code":0,"status":1,"brands":[{"brand_id":1,"brand_name":"奥迪","brand_first_letter":"A"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| brand_id | 品牌ID | integer | - |
| brand_name | 汽车品牌名称 | String | 20 |
| brand_first_letter | 汽车品牌名称首字母 | String | 2 |
接口说明:根据品牌ID获取品牌的所有车系。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| brand_id | 品牌ID | 接口返回的品牌ID | integer(-) | 是 | 无 |
请求实例:
GET /v1/auto-series?brand_id=1 HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9
返回结果:
{"error_msg":"","error_code":0,"status":1,"automakers":[{"automaker":"东风本田","autoseries":[{"auto_series_id":1,"auto_series_name":"奥迪A3"}]}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| automakers | 所有的品牌厂商列表 | - | - |
| automaker | 品牌厂商名称 | string | 50 |
| autoseries | 品牌厂商车系列表 | - | - |
| auto_series_id | 车系ID | integer | - |
| auto_series_name | 车系名称 | String | 100 |
接口说明:根据车系ID获取车型。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| auto_series_id | 车系ID | 接口返回的车系ID | String(integer) | 是 | 无 |
请求实例:
GET /v1/auto-models?auto_series_id=1 HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9
返回结果:
{"error_msg":"","error_code":0,"status":1,"car_models":[{"auto_model_id": 21863,"auto_model_name": "2.2 手动 ","auto_model_year": "2009款 "}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| motorcycle_types | 所有车型列表 | - | - |
| auto_model_id | 车型ID | integer | - |
| auto_model_name | 车型名称 | String | 100 |
| auto_model_year | 车型年款 | String | 6 |
接口说明:获取所有的省份信息
请求实例:
GET /v1/provinces HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9
返回结果:
{"error_msg":"","error_code":0,"status":1,"provinces":[{"province_id":1,"province_name":"四川省"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| provinces | 省份信息列表 | - | - |
| province_id | 省份ID | integer | - |
| province_name | 省份名称 | String | - |
接口说明:通过省份ID获取所有的城市信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| province_id | 省份ID | 省份ID | integer(11) | 是 | 无 |
请求实例:
GET /v1/cities HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"error_msg":"","error_code":0,"status":1,"cities":[{"city_id":1,"city_name":"成都市"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| cities | 城市列表 | - | - |
| city_id | 城市ID | integer | - |
| city_name | 城市名称 | String | - |
接口说明:创建报价单时选择的配件基础属性值
请求实例:
GET /v1/accessories/attributes HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"error_msg":"","error_code":0,"status":1,"attributes":[{"attribute_name":"级别","attribute_id":1,"attribute_sub":[{"attribute_id":4,"attribute_name":"原厂件"}]}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| attributes | 属性列表 | - | - |
| attribute_name | 属性名称 | string | - |
| attribute_id | 属性编号 | integer | - |
| attribute_sub | 属性子分类 | - | - |
接口说明:配件商进行采购单发货,调用接口27.上传图片接口,上传发货单照片,进行发货操作。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 配件商账户Token | 配件商账户授权Token | string | 是 | 无 |
| order_id | 采购单编号 | 系统返回的采购单编号 | integereger | 是 | 无 |
| invoince | 发货单照片编号 | 系统返回的发货单照片编号 | integereger | 是 | 无 |
请求实例:
POST /v1/accessory-shop/shipments HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"MmI3MTBhNGEyZTM0YjVmOTY5MjFmYzljNzI4NDI5MTA=","order_id":1,"invoince":13,}
返回结果:
{"error_msg":"","error_code":0,"status":1,"order_id":1}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| order_id | 采购单id | integer | - |
接口说明:在测试环境使用该接口生成一个配件商的邀请码,可以添加多个
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| accessory_shop_id | 配件商系统编号 | 配件商系统编号 | integer | 是 | 无 |
| bd | BD人员系统编号 | BD人员系统编号 | integer | 是 | 无 |
请求实例:
POST /v1/accessory-shop/invitation HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"accessory_shop_id":"1","bd":15}
返回结果:
{"error_msg":"","error_code":0,"status":1}
接口说明:在测试环境使用该接口生成一个修理厂的邀请码,可以添加多个
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| motor_repair_shop_id | 修理厂系统编号 | 修理厂系统编号 | integer | 是 | 无 |
| bd | BD人员系统编号 | BD人员系统编号 | integer | 是 | 无 |
请求实例:
POST /v1/motor-repair-shop/invitation HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"motor_repair_shop_id":"1","bd":10}
返回结果:
{"error_msg":"","error_code":0,"status":1}
接口说明: 配件商看到自己的采购单详情页面
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 配件商账户Token | 配件商账户授权Token | string | 是 | 无 |
| order_id | 采购单编号 | 系统返回的采购单ID | integer | 是 | - |
请求实例:
GET /v1/accessory-shop/purchase-order-detail?access_token=3e16cdaa0061ee89106b9112890a419397b46f1s&order_id=1 HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","purchase_order": {"order_id": 1,"order_no": "55816e7c2bc96","order_status_string": "待发货","order_status": 0,"order_price": 12,"order_invoice": "http://img.dev.weipei.cc/Uploads/pictures/assets/226bdccde7e8e.jpg","order_original_invoice": "http://img.dev.weipei.cc/Uploads/pictures/assets/d8374b826684470aba9486e9bdd159ed.jpg","created_at": "2015-06-17 20:56:28","shippment_time": "2015-06-17 20:56:28","inquiry_sheet_id": 1,"automobile_brand_name": "宝马","automobile_series_name": "威赛帝(进口)","automobile_model_name": "2013款 2013款 2.0T 2.0T 手自一体 手自一体 GT 320i 风尚设计套装"},"order_receipt": {"consignee": "收货人","mobile": "18615788190","address": "阶段","way": "1"},"motor_repair_shop": {"motor_repair_shop_id": 3,"motor_repair_shop_address": "成都市天府新区1187","motor_repair_shop_name": "成都四核保养修理厂","motor_repair_shop_contact": "程先生","realname_authentication": 0,"weipei_authentication": 0,"motor_repair_shop_thumbnail_image": false,"motor_repair_shop_original_image": false,"total_inquiry_sheets": 6,"total_shipped_orders": 0,"accounts": {"account_id": 1,"username": "186****8190","mobile": "18615788190","realname": "realname","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/avatar.jpg","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e"}},"purchase_order_accessories": [{"accessory_item_name": "前保险杠电眼","accessory_item_id": 2,"accessory_items": [{"accessory_item_name": "前保险杠电眼","number": 12,"accessory_item_image": null,"accessory_item_original_image": null,"accessory_level": 1,"accessory_quality_gurantee_period": 1,"accessory_arrival": 1,"price": 1,"accessory_brand": "","accessory_unit": "","notes": "备注","accessory_total_price": 12}]}],"timeline": [{"order_status": 0,"order_status_string": "待支付","trading_way": "","created_at": "2015-10-15 15:32:41"}}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| purchase_order | 采购单基本信息 | - | - |
| order_id | 采购单id | integer | - |
| order_no | 采购单编号 | string | - |
| order_status_string | 采购单状态 | string | - |
| order_status | 采购单状态编码 | integer | - |
| order_price | 采购单总价 | duobule | - |
| order_invoice | 发货单照片 | string | - |
| order_original_invoice | 发货单原始照片 | string | - |
| created_at | 采购时间 | string | - |
| shippment_time | 发货时间 | string | - |
| inquiry_sheet_id | 询价单编号 | integer | - |
| automobile_brand_name | 品牌 | string | - |
| automobile_series_name | 车系 | string | - |
| automobile_model_name | 车型 | string | - |
| order_receipt | 收货人基本信息 | - | - |
| consignee | 收货人 | string | - |
| mobile | 联系电话 | integer | - |
| address | 地址 | string | - |
| way | 送货方式 | string | - |
| motor_repair_shop_id | 维修厂编号 | integer | - |
| motor_repair_shop_address | 维修厂详细地址 | string | - |
| motor_repair_shop_name | 维修厂名称 | string | - |
| motor_repair_shop_contact | 维修厂联系人 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| motor_repair_shop_thumbnail_image | 维修厂缩略图 | string | - |
| motor_repair_shop_original_image | 维修厂原始图 | string | - |
| total_inquiry_sheets | 维修厂总共询价单 | integer | - |
| total_shipped_orders | 维修厂已发货的采购单 | integer | - |
| accounts | 账号信息 | - | - |
| account_id | 账号ID | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| purchase_order_accessories | 采购配件条目 | - | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_items | 采购配件列表 | - | - |
| accessory_item_name | 配件名称 | string | - |
| number | 配件数量 | integer | - |
| price | 配件价格 | float | - |
| accessory_level | 配件等级 | string | - |
| accessory_quality_gurantee_period | 质保期 | string | - |
| accessory_arrival | 配件到达情况 | string | - |
| brand_description | 品牌描述 | string | - |
| unit | 单位 | string | - |
| notes | 备注 | string | - |
| accessory_total_price | 配件总价 | dobule | - |
| order_status | 采购单状态 | integer | 1 |
| order_status_string | 采购单状态值 | string | - |
| trading_way | 支付方式 | string | - |
| created_at | 时间 | string | - |
接口说明:获取维修厂基本信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| motor_repair_shop_id | 维修厂编号 | 系统返回的维修厂ID | integer | 是 | 无 |
请求实例:
GET /v1/motor-repair-shop/information?motor_repair_shop_id=3 HTTP/1.1Host: api.weipei.ccAuthorization: e40e175c83b0af7e2ba3a1a4df08c0fdbddecf47
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","motor_repair_shop_id": 3,"motor_repair_shop_address": "成都市天府新区1187","motor_repair_shop_name": "成都四核保养修理厂","motor_repair_shop_contact": "程先生","realname_authentication": 0,"weipei_authentication": 0,"motor_repair_shop_thumbnail_image": false,"motor_repair_shop_original_image": false,"total_inquiry_sheets": 6,"total_shipped_orders": 0,"accounts": [{"account_id": 1,"username": "186****8190","mobile": "18615788190","realname": "realname","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/3d470f82bbe9e.jpg","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| motor_repair_shop_id | 维修厂编号 | integer | - |
| motor_repair_shop_address | 维修厂详细地址 | string | - |
| motor_repair_shop_name | 维修厂名称 | string | - |
| motor_repair_shop_contact | 维修厂联系人 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| motor_repair_shop_thumbnail_image | 维修厂缩略图 | string | - |
| motor_repair_shop_original_image | 维修厂原始图 | string | - |
| total_inquiry_sheets | 维修厂总共询价单 | integer | - |
| total_shipped_orders | 维修厂已发货的采购单 | integer | - |
| accounts | 账号信息 | - | - |
| account_id | 账号ID | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
接口说明:根据账户编号获取基本信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| account_id | 账号编号 | 账号编号 | integer | 是 | 无 |
请求实例:
GET /v1/account/assets?account_id=2 HTTP/1.1Host: api.weipei.comAuthorization: e40e175c83b0af7e2ba3a1a4df08c0fdbddecf47
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","account_id": 2,"username": "159****9864","mobile": "15928039864","realname": "维修厂","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/avatar.jpg","uuid": "93fa0c295fa84983fe5f2c8ed1d5b51e"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| account_id | 账户编号 | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | - |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
接口说明:用户取消绑定自己的邀请码
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
请求实例:
PUT /v1/invitation-code-cancellation HTTP/1.1Host: api.weipei.ccAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"MmVhNDBlNDFhMzA0NjExYjFjNDc5NzBjODZjNzY0NDM="}
返回结果:
{"error_msg":"","error_code":0,"status":1}
接口说明:通过该接口可以筛选所有的配件商、维修厂基本信息。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| servicer | 服务商类型 | 1=>配件商 2=>维修厂 | integer | 是 | 1 |
| province | 省份 | 省份编号 | integer | 否 | 无 |
| city | 城市 | 城市编号 | integer | 否 | 无 |
| district | 区县 | 区县编号 | integer | 否 | 无 |
| keyword | 关键词 | 可以搜索名称、联系人、联系电话、联系电话 | string | 否 | 无 |
| limit | 限制数量 | 默认10条 | integer | 否 | 10 |
| offset | 偏移量 | 默认0 | integer | 否 | 0 |
请求实例:
GET /v1/servicers?servicer=1 HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total": 7,"returned": 7,"accessory_shops": [{"accessory_shop_id": 1,"accessory_shop_address": "红牌楼三九汽配城B-203号","accessory_shop_name": "成都伟望美国汽车配件","contact": "莫伟","province": 23,"city": 385,"contact_number": "18328388566","realname_authentication": 1,"weipei_authentication": 0}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| contact | 联系人 | string | - |
| province | 省份编号 | integer | - |
| city | 城市编号 | integer | - |
| province_name | 省份名称 | string | - |
| city_name | 城市名称 | string | - |
| contact_number | 联系电话 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
接口说明:通过该接口可以查询所有的配件商、维修厂基本信息。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| servicer | 服务商类型 | 1=>配件商 2=>维修厂 | integer | 是 | 1 |
| id | 服务商编号 | 配件商或者维修厂编号 | integer | 是 | 无 |
请求实例:
GET /v1/servicer/profile?servicer=1&id=1 HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","accessory_shops": {"accessory_shop_id": 1,"accessory_shop_address": "红牌楼三九汽配城B-203号","accessory_shop_name": "成都伟望美国汽车配件","contact": "莫伟","province": 23,"city": 385,"district": 385,"district_name":"","province_name": "四川省","city_name": "成都市","contact_number": "18328388566","realname_authentication": 1,"weipei_authentication": 0},"accessory_shop_brands": [{"brand_id": 5,"brand_name": "宝马"}],"level":"一级","valid_invitation_code": [],"accounts": [{"account_id": 5,"username": "159****9864","mobile": "15928039864","realname": "realname","avatar": "http://img.dev.weipei.cc/Uploads/pictures/avatar/avatar.jpg","uuid": "75df7bb106d9de6c5e50188918486968"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| contact | 联系人 | string | - |
| province | 省份编号 | integer | - |
| city | 城市编号 | integer | - |
| district | 区县编号 | integer | - |
| district_name | 区县名称 | string | - |
| province_name | 省份名称 | string | - |
| city_name | 城市名称 | string | - |
| contact_number | 联系电话 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| accessory_shop_brands | 配件商主营品牌列表 | - | - |
| brand_name | 配件商主营品牌名称 | string | - |
| level | 维修厂等级 | string | - |
| valid_invitation_code | 可用的邀请码 | string | - |
| accounts | 账号信息 | - | - |
| account_id | 账号ID | integer | - |
| username | 用户名 | string | - |
| mobile | 手机号码 | integer | 11 |
| realname | 真实姓名 | string | - |
| avatar | 头像 | string | - |
| uuid | 账号唯一编码 | string | 32 |
| third_token | 第三方通信token | string | - |
接口说明:添加配件商信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| title | 名称 | 配件商名称 | string | 是 | 无 |
| contact | 联系人 | 配件商主要联系人 | string | 是 | 无 |
| mobile | 联系电话 | 配件商主要联系电话号码 | string | 是 | 无 |
| province | 省份 | 省份编号 | integer | 否 | 无 |
| city | 城市 | 城市编号 | integer | 否 | 无 |
| address | 详细地址 | 配件商详细地址 | string | 否 | 无 |
| full_range_service | 是否服务全车系 | 0否 1是 | integer | 否 | 无 |
| brand_ids | 品牌 | 品牌编号 | string | 否 | 无 |
请求实例:
POST /v1/accessory-shop/profile HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"title": "成都汽修厂","contact": "程会勇","mobile":"18718902133","province":23,"city":385,"address":"成都市高新区环球中心","full_range_service":1,"brand_ids":"2,5"}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total": 7,"returned": 7,"accessory_shops": [{"accessory_shop_id": 1,"accessory_shop_address": "红牌楼三九汽配城B-203号","accessory_shop_name": "成都伟望美国汽车配件","contact": "莫伟","province": 23,"city": 385,"contact_number": "18328388566","realname_authentication": 1,"weipei_authentication": 0}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| contact | 联系人 | string | - |
| province | 省份编号 | integer | - |
| city | 城市编号 | integer | - |
| province_name | 省份名称 | string | - |
| city_name | 城市名称 | string | - |
| contact_number | 联系电话 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
接口说明:更新配件商信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| accessory_shop_id | 编号 | 配件商编号 | integer | 是 | 无 |
| title | 名称 | 配件商名称 | string | 是 | 无 |
| contact | 联系人 | 配件商主要联系人 | string | 是 | 无 |
| mobile | 联系电话 | 配件商主要联系电话号码 | string | 是 | 无 |
| province | 省份 | 省份编号 | integer | 否 | 无 |
| city | 城市 | 城市编号 | integer | 否 | 无 |
| district | 区县 | 区县编号 | integer | 否 | 无 |
| address | 详细地址 | 配件商详细地址 | string | 否 | 无 |
| full_range_service | 是否服务全车系 | 0否 1是 | integer | 否 | 无 |
| brand_ids | 品牌 | 品牌编号 | string | 否 | 无 |
请求实例:
PUT /v1/accessory-shop/profile-setting HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"title": "成都汽修厂","contact": "程会勇","mobile":"18718902133","province":23,"city":385,"district":2345,"address":"成都市高新区环球中心","full_range_service":1,"accessory_shop_id":15,"brand_ids":"2,5"}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total": 7,"returned": 7,"accessory_shops": [{"accessory_shop_id": 1,"accessory_shop_address": "红牌楼三九汽配城B-203号","accessory_shop_name": "成都伟望美国汽车配件","contact": "莫伟","province": 23,"city": 385,"contact_number": "18328388566","realname_authentication": 1,"weipei_authentication": 0}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| contact | 联系人 | string | - |
| province | 省份编号 | integer | - |
| city | 城市编号 | integer | - |
| province_name | 省份名称 | string | - |
| city_name | 城市名称 | string | - |
| contact_number | 联系电话 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
接口说明:添加维修厂信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| title | 名称 | 配件商名称 | string | 是 | 无 |
| contact | 联系人 | 配件商主要联系人 | string | 是 | 无 |
| mobile | 联系电话 | 配件商主要联系电话号码 | string | 是 | 无 |
| province | 省份 | 省份编号 | integer | 否 | 无 |
| city | 城市 | 城市编号 | integer | 否 | 无 |
| district | 区县 | 区县编号 | integer | 否 | 无 |
| address | 详细地址 | 配件商详细地址 | string | 否 | 无 |
| level | 维修厂等级 | 等级编号 | integer | 否 | 无 |
请求实例:
POST /v1/motor-repair-shop/profile HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"title": "成都汽修厂","contact": "程会勇","mobile":"18718902133","province":23,"city":385,"district":2345,"address":"成都市高新区环球中心","level":1}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total": 7,"returned": 7,"accessory_shops": [{"accessory_shop_id": 1,"accessory_shop_address": "红牌楼三九汽配城B-203号","accessory_shop_name": "成都伟望美国汽车配件","contact": "莫伟","province": 23,"city": 385,"contact_number": "18328388566","realname_authentication": 1,"weipei_authentication": 0}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| contact | 联系人 | string | - |
| province | 省份编号 | integer | - |
| city | 城市编号 | integer | - |
| province_name | 省份名称 | string | - |
| city_name | 城市名称 | string | - |
| contact_number | 联系电话 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
接口说明:修改维修厂信息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| title | 名称 | 配件商名称 | string | 是 | 无 |
| contact | 联系人 | 配件商主要联系人 | string | 是 | 无 |
| mobile | 联系电话 | 配件商主要联系电话号码 | string | 是 | 无 |
| province | 省份 | 省份编号 | integer | 否 | 无 |
| city | 城市 | 城市编号 | integer | 否 | 无 |
| address | 详细地址 | 配件商详细地址 | string | 否 | 无 |
| level | 维修厂等级 | 等级编号 | integer | 否 | 无 |
| motor_repair_shop_id | 编号 | 维修厂编号 | integer | 是 | 无 |
请求实例:
PUT /v1/motor-repair-shop/profile-setting HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"title": "成都汽修厂","contact": "程会勇","mobile":"18718902133","province":23,"city":385,"address":"成都市高新区环球中心","level":1,"motor_repair_shop_id":1}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total": 7,"returned": 7,"accessory_shops": [{"accessory_shop_id": 1,"accessory_shop_address": "红牌楼三九汽配城B-203号","accessory_shop_name": "成都伟望美国汽车配件","contact": "莫伟","province": 23,"city": 385,"contact_number": "18328388566","realname_authentication": 1,"weipei_authentication": 0}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| contact | 联系人 | string | - |
| province | 省份编号 | integer | - |
| city | 城市编号 | integer | - |
| province_name | 省份名称 | string | - |
| city_name | 城市名称 | string | - |
| contact_number | 联系电话 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
接口说明:BD人员登陆
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| username | 用户名 | 用户名 | string | 是 | 无 |
| password | 密码 | 密码 | string | 是 | 无 |
请求实例:
POST /v1/business-development/login HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"username": "zhouyuan","password":123456}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","user_id":10}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| user_id | BD编号 | integer | - |
接口说明:获取未使用过的短信验证码
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| mobile | 手机号码 | 手机号码 | string | 是 | 无 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 10 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
GET /v1/sms-verifications?mobile=15928039864 HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","total": 6,"returned": 6,"verification_code": [{"code": 1044,"mobile": "15884480681","send_time": "2015-07-21 13:11:40"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| total | 总记录数量 | integer | - |
| returned | 当前返回记录数量 | integer | - |
| code | 短信验证码 | integer | - |
| mobile | 手机号码 | integer | - |
| send_time | 发送时间 | - | - |
接口说明:获取维修厂等级列表
请求实例:
GET /v1/motor-repair-shop-types HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","motor_repair_shop_level": [{"motor_repair_shop_level_id": 1,"motor_repair_shop_level_name": "一级"},{"motor_repair_shop_level_id": 2,"motor_repair_shop_level_name": "二级"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| motor_repair_shop_level_id | 等级编号 | integer | - |
| motor_repair_shop_level_name | 当前返回记录数量 | integer | - |
接口说明:通过城市编号获取所有的区县信息。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| city_id | 城市编号 | 城市ID | integer(11) | 是 | 无 |
请求实例:
GET /v1/districts HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"error_msg":"","error_code":0,"status":1,"districts":[{"district_id":1,"city_id":22,"district_name":"成都市"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| districts | 区县列表 | - | - |
| district_id | 区县编号 | integer | - |
| city_id | 城市编号 | String | - |
| district_name | 区县名称 | String | - |
接口说明:配件商PC版本退出后台,需要重置授权。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
请求实例:
POST /v1/logout HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"access_token":"token"}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "",}
接口说明:获取APP默认首页广告图片。
地区
范围
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | string | 是 | 无 |
请求实例:
GET /v1/account/advertisements?access_token=NWRiNTA0ZDgwNDFiYzBiZDA4NzFiZjgxZDUzMjdhYjk= HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","activities": [{"activity_title": "微配2.1发布更新","activity_url": "http://www.weipei.cc/index_pc.html","activity_image": "http://img.dev.weipei.cc/Uploads/pictures/assets/0d3f4a106429747419b56da84f459b33.jpg"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| activities | 活动广告图片汇总 | - | - |
| activity_url | 链接地址 | string | - |
| activity_image | 图片 | string | - |
接口说明:APP发起支付前,回调该接口,拿到支付必要的参数,仅支持手机APP支付。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| order_id | 采购单编号 | 采购单系统编号 | integer | 是 | 无 |
| access_token | 授权token | 授权token | string | 是 | 无 |
请求实例:
GET /v1/transaction?order_id=68&access_token=NWRiNTA0ZDgwNDFiYzBiZDA4NzFiZjgxZDUzMjdhYjk= HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","transactions": [{"trading_no": "201509301035040000001","total_fee": "12600","title": "前保险杠电眼线束","timestamp":"1435890533866",}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| transactions | 支付交易必要参数 | JSON | - |
| trading_no | 支付订单号,32位16进制格式 | string | - |
| total_fee | 订单价格,单位分 | integer | - |
| title | 订单标题 | string | - |
| timestamp | 签名生成时间 | integer | 10 |
接口说明:管理员在微配管理后台发起采购单退款请求。仅支持已经支付成功的订单进行退款。目前对于同一笔订单,仅能退款成功一次(对于同一个退款请求,如果第一次退款申请被驳回,仍可以进行二次退款申请). 退款金额refund_fee必须小于或者等于原始支付订单的total_fee,如果是小于,则表示部分退款。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| order_id | 采购单号 | 采购单系统编号 | integer | 是 | 无 |
| items | 退货列表 | items为空,表示全额退款,否则表示部分退款 | Map | 是 | 无 |
| orders_accessory_items_id | 采购单配件编号 | 采购配件系统编号 | integer | 是 | 无 |
| number | 数量 | 退货数量 | integer | 是 | 无 |
| trading_no | 支付订单号 | 32位16进制格式 | string | 是 | 无 |
| administrator | BD管理员 | 仅适用后台操作 | integer | 是 | 无 |
请求实例:
POST /v1/refund HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"order_id":"68","items":[{"orders_accessory_items_id":1,"number":1}],"trading_no":"201509301035040000001","administrator":"1232",}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","refund_no": "2015101311332126830369","ali_refund_no": "2015101311332126830369","ali_refund_url": "https://mapi.alipay.com/gateway.do?_input_charset=UTF-8&app_id=b207d0a0-391f-41d8-851d-88676afb1b61&batch_no=2015101311332126830369&batch_num=1&detail_data=2015101300001000480064479524%5E0.01%5E%E5%8D%8F%E8%AE%AE%E9%80%80%E6%AC%BE¬ify_url=http%3A%2F%2Fpayservice.beecloud.cn%2Fbcpay%2FaliRefundDynamic%2Fb207d0a0-391f-41d8-851d-88676afb1b61_7192d78e-71fc-4bfb-918a-6c1207bc032b.php&partner=2088021438919935&refund_date=2015-10-13+11%3A33%3A22&seller_user_id=2088021438919935&service=refund_fastpay_by_platform_pwd&sign=0Hjxx5Ft12LxmAA7gzbDxt7nEswacCcKW2CyNWfWs2EXUJxlFzxQ7RyS4IQtjCDICpjcaSZgYedqCU3UjLLjCGVTeGXBEY0oc60dEx%2FbAze8NQOuS3hweQOF%2BeP%2B8Mn9lfQYoRaaHhw6mAx1h0Ppn%2FtZPnuP%2F%2BUd6eHUmK4lkds%3D&sign_type=RSA","wx_refund_status":"SUCCESS",}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| refund_no | 退款单号 | 32位16进制格式 | 32 |
| ali_refund_no | 支付宝退款单号 | 32位16进制格式,只有使用支付宝支付,才返回该参数 | 32 |
| ali_refund_url | 支付宝退款申请链接 | 使用该链接才能真正退款,只有使用支付宝支付,才返回该参数 | - |
| wx_refund_status | 微信退款状态 | 如果有返回,则表示微信退款正在申请中,如果返回值为SUCCESS, 则表示微信退款成功 | 16 |
接口说明:采购单如果在线上交易,允许维修厂或配件商取消交易,也支持后台暂停交易。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| order_id | 采购单编号 | 系统返回的采购单ID | integer | 是 | 无 |
| administrator | BD管理员 | 仅适用后台操作 | integer | 是 | 无 |
请求实例:
PUT /v1/trading/suspension HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"access_token":"ZGNmNDIyNTMyYjk5OGFjMzMwY2JkZGU2YzcwOTcwODE=","order_id":"520323","administrator":"1232",}
返回结果:
{"error_msg":"","error_code":0,"status":1,"order_id":1,"order_no":"55c0e135808a9"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| order_id | 采购单系统编号 | integer | - |
| order_no | 采购单号 | string | 20 |
接口说明:采购单在暂停交易状态下,可以允许后台恢复交易。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| order_id | 采购单编号 | 系统返回的采购单ID | integer | 是 | 无 |
| administrator | BD管理员 | 仅适用后台操作 | integer | 是 | 无 |
请求实例:
PUT /v1/trading/resume HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"order_id":"520323","administrator":"1232",}
返回结果:
{"error_msg":"","error_code":0,"status":1,"order_id":1,"order_no":"55c0e135808a9"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| order_id | 采购单系统编号 | integer | - |
| order_no | 采购单号 | string | 20 |
接口说明:维修厂或者后台人员确认收货。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| order_id | 采购单编号 | 系统返回的采购单ID | integer | 是 | 无 |
| administrator | BD管理员 | 仅适用后台操作 | integer | 是 | 无 |
请求实例:
POST /v1/receipt HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"access_token":"ZGNmNDIyNTMyYjk5OGFjMzMwY2JkZGU2YzcwOTcwODE=","order_id":"520323","administrator":"1232",}
返回结果:
{"error_msg":"","error_code":0,"status":1,"order_id":1,"order_no":"55c0e135808a9"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| order_id | 采购单系统编号 | integer | - |
| order_no | 采购单号 | string | 20 |
接口说明:当APP发起BeCloud支付后,BeCloud会返回支付结果,而该支付结果与WebHook返回存在参数差异,因此,为保证交易资金安全,APP需再次回调该接口保存支付结果。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| order_id | 采购单号 | 采购单系统编号 | integer | 是 | 无 |
| trading_no | 交易单号 | 32位的随机10进制格式 | string | 是 | 无 |
| channel | 渠道类型 | BeCloud支持的21种渠道类型,由APP端定义 | string | 是 | 无 |
| result_id | BeCloud支付标示 | BeCloud成功发起支付后返回支付表记录唯一标识 | string | 是 | 无 |
| result_code | BeCloud返回码 | 返回码,0为正常,如果交易手动取消,该值默认设置为99 | string | 是 | 无 |
| error_message | BeCloud支付返回错误信息 | 具体错误信息 | string | 否 | 无 |
| is_canceled | 交易是否取消 | 1-是 0-否 | integer | 是 | 0 |
请求实例:
POST /v1/transaction-callback HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"order_id": 68,"trading_no": "201509301035040000001","channel": "ALI_APP","result_id": "121121331","result_code": "0","error_message": "","is_canceled":0,}
返回结果:
{"status": 1,"error_code": 0,"error_msg": ""}
接口说明:APP线下支持使用该接口。
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| order_id | 采购单号 | 采购单系统编号 | integer | 是 | 无 |
| access_token | 授权token | 授权token | string | 是 | 无 |
请求实例:
POST /v1/offline-payment HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"access_token":"NWRiNTA0ZDgwNDFiYzBiZDA4NzFiZjgxZDUzMjdhYjk=","order_id":68,}
返回结果:
{"error_msg":"","error_code":0,"status":1,"order_id":1,"order_no":"55c0e135808a9"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| order_id | 采购单系统编号 | integer | - |
| order_no | 采购单号 | string | 20 |
接口说明:采购单在线下付款(未真实付款)后,允许继续转成线上支付
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| order_id | 采购单号 | 采购单系统编号 | integer | 是 | 无 |
| access_token | 授权token | 授权token | string | 是 | 无 |
请求实例:
POST /v1/offline-to-online HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"access_token":"NWRiNTA0ZDgwNDFiYzBiZDA4NzFiZjgxZDUzMjdhYjk=","order_id":68,}
返回结果:
{"error_msg":"","error_code":0,"status":1,"order_id":1,"order_no":"55c0e135808a9"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| order_id | 采购单系统编号 | integer | - |
| order_no | 采购单号 | string | 20 |
接口说明:配件商商户查看账期交易数据,该接口返回所有的账期数据
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 100 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
GET /v1/bills?access_token=NWRiNTA0ZDgwNDFiYzBiZDA4NzFiZjgxZDUzMjdhYjk=&limit=100&offset=0 HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"error_msg":"","error_code":0,"status":1,"total":100,"returned": 10,"bills":[{"bill_id":1,"status_string":"未结算","status"1,"start_date":'2015年10月3日',"end_date":"2015年10月10日","total_price":"344","online_price":"344","offline_price":0,"platform_fee":1}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| total | 总记录数量 | integer | - |
| returned | 当前返回记录integer integer | - | |
| bills | 账期数据json | map | - |
| bill_id | 账期编号 | integer | - |
| status_string | 账期结算状态 | string | - |
| status | 账期结算状态,1-未结算 2-部分结算 3-已结算 | integer | - |
| start_date | 账期开始日期 | string | - |
| end_date | 账期结束日期 | string | - |
| total_price | 总费用 | float | - |
| online_price | 平台支付金额 | float | - |
| offline_price | 非平台支付金额 | float | - |
| platform_fee | 平台费用 | float | - |
接口说明:配件商商户查看某个账期内交易数据,如何该账期内没有配件商的交易,则返回为空
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 授权token | 授权token | sring | 是 | 无 |
| limit | 限制大小 | 指定返回记录的数量,系统会做验证 | integer | 否 | 100 |
| offset | 偏移量 | 指定返回记录的开始位置 | integer | 否 | 0 |
请求实例:
GET /v1/bill/profile?bill_id=23&access_token=NWRiNTA0ZDgwNDFiYzBiZDA4NzFiZjgxZDUzMjdhYjk= HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"error_msg":"","error_code":0,"status":1,"bill": {"bill_id":1,"status_string":"未结算","status":1,"start_date":'2015年10月3日',"end_date":"2015年10月10日","total_price":"344","online_price":"344","offline_price":0,"platform_fee":1}"details":[{"repair_shop_name":"成都仪到修理厂","order_no":"20151017153152709552","order_id":1,"order_price":"342","trading_way":"online","online_price":"234","platform_fee":13,"trading_time":"2015-10-21:10:34:11"}],"bill_record": [{"bank": "中国工商银行高新支行","account": "唐丹","card_no": "6212264402002747115","contact": "唐丹","mobile": "18215632330","settlement_amount": 0.01,"note": "测试","way": 0,"way_string": "无","created_at":"2015-11-12 12:34:11"}]}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| bills | 账期数据json | map | - |
| bill_id | 账期编号 | integer | - |
| status_string | 账期结算状态 | string | - |
| status | 账期结算状态,1-未结算 2-部分结算 3-已结算 | integer | - |
| start_date | 账期开始日期 | string | - |
| end_date | 账期结束日期 | string | - |
| total_price | 总费用 | float | - |
| online_price | 平台支付金额 | float | - |
| offline_price | 非平台支付金额 | float | - |
| platform_fee | 平台费用 | float | - |
| details | 账期明细数据 | map | - |
| repair_shop_name | 修理厂名称 | string | - |
| order_no | 采购单号 | string | 20 |
| order_id | 采购单系统编号 | integer | - |
| order_price | 平台价格 | float | - |
| trading_way | 支付方式 | string | - |
| online_price | 采购价格 | float | - |
| platform_fee | 平台费用 | float | - |
| trading_time | 收货时间 | string | - |
| bill_record | 打款记录 | map | - |
| bank | 开户行 | string | - |
| account | 账号 | string | - |
| card_no | 卡号 | string | - |
| contact | 联系人 | string | - |
| mobile | 联系电话 | string | - |
| settlement_amount | 打款金额 | float | - |
| note | 备注单号 | string | - |
| way | 打款方式 | integer | 1 |
| way_string | 打款方式描述 | string | - |
| created_at | 打款时间 | string | - |
接口说明:管理员手动结算账期内交易单
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| administrator | BD管理员 | 仅适用后台操作 | integer | 是 | 无 |
请求实例:
POST /v1/bill HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"administrator":1,}
返回结果:
{"error_msg":"","error_code":0,"status":1}
接口说明:批量发送系统消息
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| message_id | 系统消息id | 仅适用后台操作 | integer | 是 | 无 |
请求实例:
POST /v1/system/message HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4{"message_id":1,}
返回结果:
{"error_msg":"","error_code":0,"status":1}
接口说明:获取用户协议内容
请求实例:
GET /v1/user-agreement HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","title": "用户协议","version": 3,"url": "http://api.weipei.cc/trading/Agreement/Index?version=3"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| title | 标题 | string | - |
| version | 协议最新版本 | integer | - |
| url | 用户协议URL | string | - |
接口说明:获取商户结算账号信息
请求实例:
GET /v1/merchant/bill-profile HTTP/1.1Host: api.weipei.ccAuthorization: 56257a57e2a48adcb77beb724217dde2535371a4
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","bill_account": {"bank": "开户行","account": "性能","card_no": "4122","contact": "13","mobile": "13456778899"}}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| bill_account | 结算账号信息 | map | - |
| bank | 开户行 | string | - |
| account | 账号 | string | - |
| card_no | 卡号 | string | - |
| contact | 联系人 | string | - |
| mobile | 联系电话 | string | - |
接口说明:为后台商户图片上传接口并支持CDN
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| filename key:image | 图片名称 | 图片文件路径 | string | 是 | 无 |
请求实例:
POST /v1/merchant/image HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"image":"file"}
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","image_id": 5,"thumbnail_image": "http://img.dev.weipei.cc/Uploads/pictures/assets/e4e0efb241e87.jpg","original_image": "http://img.dev.weipei.cc/Uploads/pictures/assets/2f3675aa23917e12df07099363861cad.jpg"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| image_id | 图片编号 | integer | - |
| thumbnail_image | 缩略图 | string | - |
| original_image | 原始图 | string | - |
接口说明:整合接口46、78数据,在系统初始化时加载此数据
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| client_version | 版本号 | 客户端APP已有的版本号,默认版本号是1 | integer(1) | 是 | 1 |
| model | 手机类型 | 手机设备类型: 0-andriod 1-ios | integer(1) | 是 | 0 |
请求实例:
GET /v1/bootstrap?client_version=1&model=1 HTTP/1.1Host: api.weipei.comAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","upgrade_info": {"latest": 6,"upgrade_log": "-修复了部分机型无法打开的问题\n-车型列表添加测试车型,可以通过此车型体验询价报价流程","download_url": "http://www.weipei.cc/pak/weipei_2_0_7_0919.apk","upgrade": 1},"attributes": [{"attribute_id": 1,"attribute_name": "级别","attribute_sub": [{"attribute_id": 4,"attribute_name": "原厂件"}]},{"attribute_id": 2,"attribute_name": "质保","attribute_sub": [{"attribute_id": 7,"attribute_name": "无质保"}]},{"attribute_id": 3,"attribute_name": "到货情况","attribute_sub": [{"attribute_id": 10,"attribute_name": "现货"}]}],"user_agreement": {"title": "2.1用户协议","version": 1,"url": "http://api.dev.weipei.local/trading/Agreement/Index?version=1"},"sys_main": {"status": "yes","maintenance": "系统正在维护中,请稍后再试!"}}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| upgrade_info | 升级信息 | Map | - |
| latest | 最新版ID | integer | - |
| upgrade_log | 升级日志 | string | - |
| download_url | 下载地址 | string | - |
| upgrade | 升级状态 | 1-升级 2 - 强制升级 | 1 |
| attributes | 属性列表 | Map | - |
| attribute_name | 属性名称 | string | - |
| attribute_id | 属性编号 | integer | - |
| attribute_sub | 属性子分类 | - | - |
| user_agreement | 用户协议 | Map | - |
| title | 标题 | string | - |
| version | 协议最新版本 | integer | - |
| url | 用户协议URL | string | - |
| sys_main | 系统维护通知 | Map | - |
| status | 维护状态,yes维护中 no不在维护中 | string | - |
| maintenance | 维护通知内容 | string | - |
接口说明:获取配件商报价列表
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| quotation_id | 活动报价编号 | HTML请求 | integer | 是 | 无 |
请求实例:
GET /v1/activities_parts?quotation_id=1 HTTP/1.1Host: api.weipei.ccAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9
返回结果:
{"status": 1,"error_code": 0,"error_msg": "","accessory_shop": {"accessory_shop_id": 2969,"accessory_shop_name": "John配件商","accessory_shop_image": null,"accessory_shop_original_image": null,"accessory_shop_address": "桃蹊路","accessory_shop_brands": [{"brand_id": 2,"brand_name": "奥迪"},{"brand_id": 108,"brand_name": "保时捷"},{"brand_id": 8,"brand_name": "奔驰"},{"brand_id": 56,"brand_name": "凯迪拉克"}],"realname_authentication": 0,"weipei_authentication": 0,"contact": "屈行","contact_number": "13628029106","province": 23,"province_name": "四川省","city": 385,"city_name": "成都市","district": 4213,"district_name": "成华区","favorites_status": 0,"total_quotation_sheets": 3,"total_shipped_orders": 1,"accounts": {"account_id": 10736,"username": "153****8632","mobile": "15390278632","realname": "john","avatar": "http://i.weipei.cc/Uploads/pictures/avatar/avatar.jpg","uuid": "db6ac199bafd4424c336795431fb2f1d","account_extra": {"account_role": 1,"id": 2969,"name": "John配件商","contact": "屈行","contact_number": "13628029106","contact_mobile": "13628029106","address": "桃蹊路","image": null,"province": 23,"city": 385,"district": 4213,"district_name": "成华区","province_name": "四川省","city_name": "成都市","is_support_logistics": false}}},"inquiry_sheet_accessoires": [{"accessory_item_id": 1297,"accessory_item_name": "冷却剂","accessory_item_original_name": null,"accessory_item_image_id": 0,"quotation_sheet_items": [{"quotation_sheet_id": 0,"quotation_sheet_accessory_item_id": 10,"accessory_item_name": "冷却剂","accessory_item_image": "","accessory_item_original_image": "","accessory_level": 5,"accessory_quality_gurantee_period": 8,"accessory_arrival": 19,"price": 0.01,"accessory_brand": "车仆","accessory_unit": "箱","notes": "车仆牌","stock": 84},{"quotation_sheet_id": 0,"quotation_sheet_accessory_item_id": 7,"accessory_item_name": "冷却剂","accessory_item_image": "","accessory_item_original_image": "","accessory_level": 4,"accessory_quality_gurantee_period": 7,"accessory_arrival": 10,"price": 0.01,"accessory_brand": "111","accessory_unit": "1111","notes": "1212","stock": 2289},{"quotation_sheet_id": 0,"quotation_sheet_accessory_item_id": 6,"accessory_item_name": "冷却剂","accessory_item_image": "","accessory_item_original_image": "","accessory_level": 12,"accessory_quality_gurantee_period": 15,"accessory_arrival": 18,"price": 1,"accessory_brand": "13","accessory_unit": "11","notes": "11","stock": 0}]}],"inquiry_sheet": {"exipiry_time": 1459439999,"server_time": 1458115183,"created_at": 1457539200,"automobile_brand_name": "雪种活动"}}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| accessory_shop | 配件商 | - | - |
| accessory_shop_id | 配件商编号 | integer | - |
| accessory_shop_name | 配件商名称 | string | - |
| accessory_shop_image | 配件商缩略图 | string | - |
| accessory_shop_original_image | 配件商图片 | string | - |
| accessory_shop_address | 配件商详细地址 | string | - |
| accessory_shop_brands | 配件商主营品牌列表 | - | - |
| brand_name | 配件商主营品牌名称 | string | - |
| realname_authentication | 实名认证, 1=已通过认证 0-未通过认证 | integer | 1 |
| weipei_authentication | 微配认证 1=已通过认证 0-未通过认证 | integer | 1 |
| contact | 联系人 | string | - |
| contact_number | 联系电话 | string | - |
| province | 省份编号 | integer | - |
| province_name | 省份名称 | string | - |
| city | 城市编号 | integer | - |
| city_name | 城市名称 | string | - |
| district | 区域编号 | integer | - |
| district_name | 区域名称 | string | - |
| favorites_status | 是否收藏 | integer | - |
| total_inquiry_sheets | 维修厂总共询价单 | integer | - |
| total_shipped_orders | 维修厂已发货的采购单 | integer | - |
| account_extra | 账号附加信息 | - | - |
| account_role | 账号角色,1-配件商 2-修理厂 | integer | - |
| name | 修理厂或者配件商名称 | string | - |
| contact | 修理厂或者配件商联系人 | string | - |
| contact_number | 修理厂或者配件商联系电话 | string | - |
| mobile | 修理厂或者配件商手机号 | string | - |
| address | 修理厂或者配件商详细地址 | string | - |
| image | 修理厂或者配件商图片 | string | - |
| province | 省份编号 | integer | - |
| city | 城市编号 | integer | - |
| district | 地区编号 | integer | - |
| district_name | 地区名称 | string | - |
| province_name | 省份编号 | string | - |
| city_name | 城市编号 | string | - |
| is_support_logistics | 是否支持物流 true支持 false不支持 | boolean | - |
| inquiry_sheet_accessoires | 询价单条目信息 | - | - |
| accessory_item_id | 配件编号 | integer | - |
| accessory_item_name | 配件名称 | string | - |
| accessory_item_image | 配件图片 | string | - |
| stock | 库存 | integer | - |
| quotation_sheet_items | 报价单配件条目 | - | - |
| quotation_sheet_accessory_item_id | 报价配件编号 | integer | - |
| price | 配件价格 | float | - |
| accessory_level | 配件等级 | string | - |
| accessory_quality_gurantee_period | 质保期 | string | - |
| accessory_arrival | 配件到达情况 | string | - |
| brand_description | 品牌描述 | string | - |
| unit | 单位 | string | - |
| notes | 备注 | string | - |
接口说明:修理厂创建采购单
请求参数:
| 参数名 | 含义 | 规则说明 | 参数类型 | 是否必须 | 缺省值 |
|---|---|---|---|---|---|
| access_token | 修理厂账户Token | 修理厂账户授权Token | string | 是 | 无 |
| consignee | 收货人 | 收货人姓名 | string | 是 | - |
| mobile | 联系电话 | 收货人联系电话 | string | 是 | - |
| address | 收货地址 | 收货人收货地址 | string | 是 | - |
| pirce | 价格 | 报价价格,支持两位小数 | float | 是 | 无 |
| way | 货运方式 | 货运方式 | string | 是 | 无 |
| order_accessory_items | 采购单配件 | 采购单配件 | - | - | - |
| quotation_sheet_accessory_item_id | 报价配件编号 | 系统返回的报价配件ID | integer | 是 | - |
| number | 数量 | 采购配件数量 | integer | 是 | - |
| shipping_method | 发货方式 | 1微配直送 2其他物流 | integer | 是 | 2 |
请求实例:
POST /v1/activities-parts-order HTTP/1.1Host: api.weipei.ccAuthorization: d4a5cc579e4aca45fe7c4d33e72656a135aaa0f9{"access_token":"YzM1ZmMyM2QxOGQ2NmE3ZDEyMWY5MTE0Njk2ZGQ5MDU=","consignee":"描述","mobile":"件","address":"备注","pirce":"90.2","way":1,"shipping_method":1,"order_accessory_items":[{"quotation_sheet_accessory_item_id":1,"number":12}]}
返回结果:
{"error_msg":"","error_code":0,"status":1,"order_id":1,"order_no":"20160304152534532696"}
| 返回参数 | 含义 | 参数类型 | 长度 |
|---|---|---|---|
| order_id | 采购单系统编号 | integer | - |
| order_no | 采购单号 | string | 20 |