全部
        
            淘宝
        
            拼多多
        
            抖音
        
            京东
        
            快手
        
            当当
        
            1688
        
            淘工厂
        
            小红书
        
            有赞
        
            微店
        
在线测试  
     获取所有的菜鸟标准电子面单模板
接口地址: http://api.vv-tool.com/tool/erps/stdtemplates
接口介绍: 获取所有的菜鸟标准电子面单模板 点击查看详情
必须用户授权 : 需要用户的授权,才能拿到被授权的数据
请求方式: POST
返回格式: JSON
接口收费: 联系运营
频率限制: 10 次/秒
请求头参数
| 参数 | 类型 | 必选 | 值 | 示例 | 
|---|---|---|---|---|
| Authorization | string | 是 | 授权 access_token | Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx | 
请求参数
| 名称 | 类型 | 必须 | 描述 | 
|---|---|---|---|
| shop_id | String | true | 店铺 ID | 
| vvtype | int | false | 普通版 1,不传默认 1,增强版 2,增强版的需要传参 2,标准版 3,需要标准版的传 3 | 
请求示例
请求代码示例
cURL请求代码示例
PHP请求代码示例
JAVA请求代码示例
响应参数
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| result | CloudPrintBaseResult | 结果集 | |
| datas | StandardTemplateResult[] | 所有 cp 的标准模板 | |
| cp_code | String | YTO | cp 编码 | 
| standard_templates | StandardTemplateDo[] | 该 cp 的所有标准模板 | |
| standard_template_id | Number | 1024 | 模板 id | 
| standard_template_name | String | YTO 模板 | 模板名称 | 
| standard_template_url | String | http://xxx | 模板 url | 
| standard_waybill_type | Number | 1 | 1 快递标准面单 ,2 快递三联面单, 3 快递便携式三联单, 4 快运标准面单, 5 快运三联面单, 6 快递一联单 | 
| error_code | String | ERROR_GET | 错误码 | 
| error_message | String | 获取面单失败 | 错误信息 | 
| success | Boolean | false | 是否成功 | 
| withholding_money | int | 11 | 该接口扣费金额(点券) | 
返回数据
{
    "code": 0,
    "msg": "操作成功",
    "msec": 1460,
    "time": 1617273033,
    "data": {
        "withholding_money": 1,
    "cainiao_cloudprint_stdtemplates_get_response":{
        "result":{
            "datas":{
                "standard_template_result":[
                    {
                        "cp_code":"YTO",
                        "standard_templates":{
                            "standard_template_do":[
                                {
                                    "standard_template_id":1024,
                                    "standard_template_name":"YTO模板",
                                    "standard_template_url":"http:\/\/xxx",
                                    "standard_waybill_type":1
                                }
                            ]
                        }
                    }
                ]
            },
            "error_code":"ERROR_GET",
            "error_message":"获取面单失败",
            "success":false
        }
    }
    }
}
响应代码
| 代码 | 代码描述 | 解决方案 | 
|---|---|---|
| 0 | 成功 | |
| 100 | 请求参数错误 | 检查您的请求参数是否正确 | 
| 101 | 请求超时,请重试 | 检查您的网络情况或者联系客服解决 | 
| 200 | 系统错误,请联系客服 | 检查您的接口地址填写是否正确,其他问题联系客服解决 | 
| 202 | 系统错误,请稍后再试 | 稍后重试,或者联系对接群 | 
| 203 | 暂不支持当前接口 | |
| 204 | 请求异常:无该接口权限,请前往官网开通正式接口。 | 前往官网开通该接口权限 | 
| 302 | 未授权店铺 | 根据返回链接进行扫码授权 | 
| 401 | 身份凭证无效 | 在请求头中添加 access_token,重新更新 token | 
| 404 | 请求路径或请求方式错误 | 请更换请求方式或者检查路径是否正确 | 
 
 