alibaba.damai.mp.ptnr.create (创建openAccount账号服务)

创建openAccount账号服务

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
context Json 必须 { "appDomain": "5357049", "appKey": "24526121", "appSecret": "58a4d3696199491eb3a3598dd63903d9" } 上下文
open_account OpenAccountCreateRequest 可选 1
  • └ open_nick_name
  • String
  • 可选
  • 1
  • 1
  • └ birthday
  • String
  • 可选
  • 1
  • 1
  • └ pwd_salt
  • String
  • 可选
  • 1
  • 1
  • └ country
  • String
  • 可选
  • 1
  • 1
  • └ login_id
  • String
  • 可选
  • 1
  • 1
  • └ isv_account_id
  • String
  • 可选
  • 1
  • 1
  • └ login_pwd
  • String
  • 可选
  • 1
  • 1
  • └ gender
  • Number
  • 可选
  • 1
  • 1
  • └ pwd_encryption
  • Number
  • 可选
  • 1
  • 1
  • └ open_id
  • String
  • 可选
  • 1
  • 1
  • └ display_name
  • String
  • 可选
  • 1
  • 1
  • └ wangwang
  • String
  • 可选
  • 1
  • 1
  • └ company_name
  • String
  • 可选
  • 1
  • 1
  • └ ext_infos
  • String
  • 可选
  • 1
  • 1
  • └ out_platform_type
  • String
  • 可选
  • 1
  • 1
  • └ type
  • Number
  • 可选
  • 1
  • 1
  • └ locale
  • String
  • 可选
  • 1
  • 1
  • └ security_mobile
  • String
  • 可选
  • 1
  • 1
  • └ create_location
  • String
  • 可选
  • 1
  • 1
  • └ email
  • String
  • 可选
  • 1
  • 1
  • └ pwd_encrypted
  • Boolean
  • 可选
  • false
  • 1
  • └ mobile_location_code
  • String
  • 可选
  • 1
  • 1
  • └ avatar_url
  • String
  • 可选
  • 1
  • 1
  • └ bank_card_no
  • String
  • 可选
  • 1
  • 1
  • └ mobile
  • String
  • 可选
  • 1
  • 1
  • └ security_email
  • String
  • 可选
  • 1
  • 1
  • └ os_id
  • String
  • 可选
  • 1
  • 1
  • └ parent_id
  • Number
  • 可选
  • 1
  • 1
  • └ weixin
  • String
  • 可选
  • 1
  • 1
  • └ create_device_id
  • String
  • 可选
  • 1
  • 1
  • └ bank_card_owner_name
  • String
  • 可选
  • 1
  • 1
  • └ name
  • String
  • 可选
  • 1
  • 1
  • └ is_sub_account
  • Boolean
  • 可选
  • false
  • 1
  • └ link_type
  • String
  • 可选
  • 1
  • 1
  • └ alipay_id
  • String
  • 可选
  • 1
  • 1
  • └ status
  • Number
  • 可选
  • 1
  • 1

响应参数

名称 类型 示例值 描述
result Json {} 出参

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiMpPtnrCreateRequest req = new AlibabaDamaiMpPtnrCreateRequest();
req.setContextString("{     \"appDomain\": \"5357049\",     \"appKey\": \"24526121\",     \"appSecret\": \"58a4d3696199491eb3a3598dd63903d9\"   }");
AlibabaDamaiMpPtnrCreateRequest.OpenAccountCreateRequest obj1 = new AlibabaDamaiMpPtnrCreateRequest.OpenAccountCreateRequest();
obj1.setOpenNickName("1");
obj1.setBirthday("1");
obj1.setPwdSalt("1");
obj1.setCountry("1");
obj1.setLoginId("1");
obj1.setIsvAccountId("1");
obj1.setLoginPwd("1");
obj1.setGender(1L);
obj1.setPwdEncryption(1L);
obj1.setOpenId("1");
obj1.setDisplayName("1");
obj1.setWangwang("1");
obj1.setCompanyName("1");
obj1.setExtInfos("1");
obj1.setOutPlatformType("1");
obj1.setType(1L);
obj1.setLocale("1");
obj1.setSecurityMobile("1");
obj1.setCreateLocation("1");
obj1.setEmail("1");
obj1.setPwdEncrypted(false);
obj1.setMobileLocationCode("1");
obj1.setAvatarUrl("1");
obj1.setBankCardNo("1");
obj1.setMobile("1");
obj1.setSecurityEmail("1");
obj1.setOsId("1");
obj1.setParentId(1L);
obj1.setWeixin("1");
obj1.setCreateDeviceId("1");
obj1.setBankCardOwnerName("1");
obj1.setName("1");
obj1.setIsSubAccount(false);
obj1.setLinkType("1");
obj1.setAlipayId("1");
obj1.setStatus(1L);
req.setOpenAccount(obj1);
AlibabaDamaiMpPtnrCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_damai_mp_ptnr_create_response>
    <result>{}</result>
</alibaba_damai_mp_ptnr_create_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部