aliexpress.social.shopping.logistics.address.create (aliexpress social shopping logistics address create)

Allows to create logistic address

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
country String 可选 RU country
province String 可选 Altay respublika province
city String 可选 Anos city
address String 可选 Presnenskaya, 10 address
zip_code String 可选 123148 zip_code
phone_country String 可选 +7 country phone code
phone String 可选 8917148869 phone
contact_person String 可选 Leman Russ contact person
is_set_as_default_logistic_adress Boolean 可选 true if is default address

响应参数

名称 类型 示例值 描述
result OpenApiResult {} result
  • └ error_code
  • String
  • -
  • error code
  • └ error_message
  • String
  • -
  • error message
  • result
  • LogisticAddressVo
  • {}
  • result
  • └ address
  • String
  • address
  • address
  • └ city
  • String
  • Anos
  • city
  • └ city_code
  • String
  • 917471659943000000
  • city code
  • └ contact_person
  • String
  • Leman Russ
  • contact person
  • └ country
  • String
  • RU
  • country
  • └ country_name
  • String
  • -
  • -
  • └ field_error_message_string
  • String
  • -
  • -
  • └ full_name
  • String
  • -
  • -
  • └ id
  • Number
  • 1259220329
  • -
  • └ is_default
  • Boolean
  • true
  • -
  • └ locale
  • String
  • ru_RU
  • -
  • └ mobile_no
  • String
  • 89175405444
  • -
  • └ phone_area
  • String
  • -
  • -
  • └ phone_country
  • String
  • +7
  • -
  • └ phone_number
  • String
  • 89175405444
  • -
  • └ province
  • String
  • Altay Respublika
  • -
  • └ province_code
  • String
  • 917471650000000000
  • -
  • └ zip
  • String
  • 123456
  • -
  • └ success
  • Boolean
  • true
  • -

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressSocialShoppingLogisticsAddressCreateRequest req = new AliexpressSocialShoppingLogisticsAddressCreateRequest();
req.setCountry("RU");
req.setProvince("Altay respublika");
req.setCity("Anos");
req.setAddress("Presnenskaya, 10");
req.setZipCode("123148");
req.setPhoneCountry("+7");
req.setPhone("8917148869");
req.setContactPerson("Leman Russ");
req.setIsSetAsDefaultLogisticAdress(true);
AliexpressSocialShoppingLogisticsAddressCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_social_shopping_logistics_address_create_response>
    <result>
        <error_code>-</error_code>
        <error_message>-</error_message>
        <result>
            <address>address</address>
            <city>Anos</city>
            <city_code>917471659943000000</city_code>
            <contact_person>Leman Russ</contact_person>
            <country>RU</country>
            <country_name>-</country_name>
            <field_error_message_string>-</field_error_message_string>
            <full_name>-</full_name>
            <id>1259220329</id>
            <is_default>true</is_default>
            <locale>ru_RU</locale>
            <mobile_no>89175405444</mobile_no>
            <phone_area>-</phone_area>
            <phone_country>+7</phone_country>
            <phone_number>89175405444</phone_number>
            <province>Altay Respublika</province>
            <province_code>917471650000000000</province_code>
            <zip>123456</zip>
        </result>
        <success>true</success>
    </result>
</aliexpress_social_shopping_logistics_address_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

返回
顶部