API for AER SNS partner OK.ru
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param_sns_shopcart_order_confirm_req | SnsShopcartOrderConfirmReq | 可选 | input | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
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 |
|
|||
shopcart_seller_items | ShopcartSellerItem [] | [] | Items |
|
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());
<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>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|