# 私域用户邀请码生成

# 接口名称

taobao.tbk.sc.invitecode.get

# 调用方法

https://api.taobaokeapi.com/?usertoken=[usertoken]&method=taobao.tbk.sc.invitecode.get

# 请求参数

名称 类型 必须 示例值 描述
relation_id Number false 11 渠道关系ID
relation_app String true common 渠道推广的物料类型
code_type Number true 1 邀请码类型,1 - 渠道邀请,2 - 渠道裂变,3 -会员邀请

# 响应参数

名称 类型 示例值 描述
data Data data
inviter_code String xxxx 邀请码

# 响应示例

{
    "tbk_sc_invitecode_get_response":{
        "data":{
            "inviter_code":"xxxx"
        }
    }
}
1
2
3
4
5
6
7

# 异常示例

{
	"error_response":{
		"sub_msg":"非法参数",
		"code":50,
		"sub_code":"isv.invalid-parameter",
		"msg":"Remote service error"
	}
}
1
2
3
4
5
6
7
8

# 错误码解释

错误码 错误消息 解决方案
isp.tbkapi-service-unavailable 淘宝客API服务不可用 请稍后重试