aliexpress.social.shopping.order.confirm.shopcart.query (aliexpress.social.shopping.order.confirm.shopcart.query)

API for AER SNS partner OK.ru

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_sns_shopcart_order_confirm_req SnsShopcartOrderConfirmReq 可选 input
  • └ address_id
  • Number
  • 可选
  • 123456
  • address id
  • bundle_items
  • BundleItem []
  • 可选
  • Products for checkout
  • └ product_id
  • String
  • 可选
  • 1005002702564111
  • item id
  • └ quantity
  • Number
  • 可选
  • 1
  • quantity
  • └ sku_attr
  • String
  • 可选
  • 10:477
  • sku
  • └ country_code
  • String
  • 可选
  • RU
  • Country to deliver
  • └ promocode
  • String
  • 可选
  • xxxx
  • promocode
  • └ currency
  • String
  • 可选
  • RUB
  • currency code
  • └ lang
  • String
  • 可选
  • ru_RU
  • lang

响应参数

名称 类型 示例值 描述
service_error_code String ERROR_CODE error code
service_error_message String Error message Error message
is_success String true success
total_amount_cents Number 30000 Total buy amount
is_promocode_applied Boolean true If the promocode has been applied
platform_allowance_json_string String {} The json containing promo information for the products
promocode_discount_cents Number 10000 Discount
selected_address LogisticAddressVo {} Delivery address dto
  • └ address
  • String
  • Moscow city Presnenskaya 10 C
  • Address
  • └ city
  • String
  • Moscow
  • Delivery city
  • └ city_code
  • String
  • code
  • city code
  • └ contact_person
  • String
  • Test person
  • contact person
  • └ country
  • String
  • RU
  • country
  • └ country_name
  • String
  • Russia
  • country
  • └ field_error_message_string
  • String
  • error message
  • error message
  • └ full_name
  • String
  • Test person
  • name
  • └ id
  • Number
  • 123456
  • address id
  • └ is_default
  • Boolean
  • true
  • is default address
  • └ locale
  • String
  • ru_RU
  • locale
  • └ mobile_no
  • String
  • 9009999999
  • phone
  • └ phone_area
  • String
  • _
  • Phone area
  • └ phone_country
  • String
  • +7
  • Phone country
  • └ phone_number
  • String
  • 9009999999
  • Number
  • └ province
  • String
  • Moscow
  • Province
  • └ province_code
  • String
  • Moscow
  • Province
  • └ zip
  • String
  • 123321
  • ZIP
shopcart_seller_items ShopcartSellerItem [] [] Items
  • └ freight_amount_cents
  • Number
  • 10000
  • freight amount
  • └ items_amount_cents
  • Number
  • 10000
  • items amount
  • └ seller_name
  • String
  • Seller
  • Seller name
  • shopcart_items
  • ShopcartItem []
  • []
  • Shopcart products
  • └ actual_order_amount_cents
  • Number
  • 20000
  • Order amount
  • available_delivery_services
  • DeliveryService []
  • [CIANAIO_ECONOMY]
  • delevery services
  • └ amount_cents
  • Number
  • 10000
  • delivery amount
  • └ max_delivery_days
  • Number
  • 20
  • max delivery days
  • └ min_delivery_days
  • Number
  • 10
  • min delivery days
  • └ service_display_name
  • String
  • CIANIAO
  • Delivery service display name
  • └ service_name
  • String
  • CIANIAO
  • Service name
  • └ freight_amount_cents
  • Number
  • 10000
  • Freight amount
  • └ original_order_amount_cents
  • Number
  • 10000
  • Order amount
  • └ product_id
  • Number
  • 123456
  • Item id
  • recommended_delivery_service
  • DeliveryService
  • CIANIAO
  • Recommended service name
  • └ amount_cents
  • Number
  • 10000
  • delivery amount
  • └ max_delivery_days
  • Number
  • 20
  • Max delivery days
  • └ min_delivery_days
  • Number
  • 10
  • Min delivery days
  • └ service_display_name
  • String
  • CIANIAO
  • Service display name
  • └ service_name
  • String
  • CIANIAO
  • Service name
  • └ sku_attr
  • String
  • 10:437
  • Product sku
  • └ total_actual_freight_amount_cents
  • Number
  • 10000
  • Freight amount
  • └ total_amount_cents
  • Number
  • 10000
  • Total amount

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressSocialShoppingOrderConfirmShopcartQueryRequest req = new AliexpressSocialShoppingOrderConfirmShopcartQueryRequest();
AliexpressSocialShoppingOrderConfirmShopcartQueryRequest.SnsShopcartOrderConfirmReq obj1 = new AliexpressSocialShoppingOrderConfirmShopcartQueryRequest.SnsShopcartOrderConfirmReq();
obj1.setAddressId(123456L);
List<AliexpressSocialShoppingOrderConfirmShopcartQueryRequest.BundleItem> list3 = new ArrayList<AliexpressSocialShoppingOrderConfirmShopcartQueryRequest.BundleItem>();
AliexpressSocialShoppingOrderConfirmShopcartQueryRequest.BundleItem obj4 = new AliexpressSocialShoppingOrderConfirmShopcartQueryRequest.BundleItem();
list3.add(obj4);
obj4.setProductId("1005002702564111");
obj4.setQuantity(1L);
obj4.setSkuAttr("10:477");
obj1.setBundleItems(list3);
obj1.setCountryCode("RU");
obj1.setPromocode("xxxx");
obj1.setCurrency("RUB");
obj1.setLang("ru_RU");
req.setParamSnsShopcartOrderConfirmReq(obj1);
AliexpressSocialShoppingOrderConfirmShopcartQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_social_shopping_order_confirm_shopcart_query_response>
    <service_error_code>ERROR_CODE</service_error_code>
    <service_error_message>Error message</service_error_message>
    <is_success>true</is_success>
    <total_amount_cents>30000</total_amount_cents>
    <is_promocode_applied>true</is_promocode_applied>
    <platform_allowance_json_string>{}</platform_allowance_json_string>
    <promocode_discount_cents>10000</promocode_discount_cents>
    <selected_address>
        <address>Moscow city Presnenskaya 10 C</address>
        <city>Moscow</city>
        <city_code>code</city_code>
        <contact_person>Test person</contact_person>
        <country>RU</country>
        <country_name>Russia</country_name>
        <field_error_message_string>error message</field_error_message_string>
        <full_name>Test person</full_name>
        <id>123456</id>
        <is_default>true</is_default>
        <locale>ru_RU</locale>
        <mobile_no>9009999999</mobile_no>
        <phone_area>_</phone_area>
        <phone_country>+7</phone_country>
        <phone_number>9009999999</phone_number>
        <province>Moscow</province>
        <province_code>Moscow</province_code>
        <zip>123321</zip>
    </selected_address>
    <shopcart_seller_items>
        <shopcart_seller_item>
            <freight_amount_cents>10000</freight_amount_cents>
            <items_amount_cents>10000</items_amount_cents>
            <seller_name>Seller</seller_name>
            <shopcart_items>
                <shopcart_item>
                    <actual_order_amount_cents>20000</actual_order_amount_cents>
                    <available_delivery_services>
                        <delivery_service>
                            <amount_cents>10000</amount_cents>
                            <max_delivery_days>20</max_delivery_days>
                            <min_delivery_days>10</min_delivery_days>
                            <service_display_name>CIANIAO</service_display_name>
                            <service_name>CIANIAO</service_name>
                        </delivery_service>
                    </available_delivery_services>
                    <freight_amount_cents>10000</freight_amount_cents>
                    <original_order_amount_cents>10000</original_order_amount_cents>
                    <product_id>123456</product_id>
                    <recommended_delivery_service>
                        <amount_cents>10000</amount_cents>
                        <max_delivery_days>20</max_delivery_days>
                        <min_delivery_days>10</min_delivery_days>
                        <service_display_name>CIANIAO</service_display_name>
                        <service_name>CIANIAO</service_name>
                    </recommended_delivery_service>
                    <sku_attr>10:437</sku_attr>
                </shopcart_item>
            </shopcart_items>
            <total_actual_freight_amount_cents>10000</total_actual_freight_amount_cents>
            <total_amount_cents>10000</total_amount_cents>
        </shopcart_seller_item>
    </shopcart_seller_items>
</aliexpress_social_shopping_order_confirm_shopcart_query_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

返回
顶部