alipay.baoxian.localreturn.issue (海外本地退2.0投保出单)

海外本地退2.0投保出单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ins_top_local_return_issue_request InsTopLocalReturnIssueRequest 可选 request
  • └ delivery_time
  • String
  • 可选
  • 1765184578000
  • 发货时间戳
  • └ trade_order_id
  • String
  • 可选
  • 3088715556873172001
  • 淘宝交易单id
  • └ buyer_area
  • String
  • 可选
  • HK
  • 买家地区, HK、TW、SG、等等
  • └ item_num
  • String
  • 可选
  • 1
  • 商品数量,一个订单里 用户买的商品数量
  • └ item_name
  • String
  • 可选
  • 商品名称
  • 商品名称
  • └ seller_id
  • String
  • 可选
  • 1234567
  • 商家id
  • └ ext_col
  • String
  • 可选
  • {"insureType":"general"}
  • 扩展参数
  • └ finance_type
  • String
  • 可选
  • platform
  • 出资类型
  • └ receivable_price
  • String
  • 可选
  • 100
  • 商家应收款(分),保额(订单商家的应收金额
  • └ service_order_id
  • String
  • 可选
  • xxx
  • 服务单id, 淘宝订单和保司保单对接的一个单据id

响应参数

名称 类型 示例值 描述
result TopResult result
  • └ error_code
  • String
  • SYSTEM_ERROR
  • 错误码
  • model
  • InsTopLocalReturnIssueResponse
  • 相应体
  • └ policy_no
  • String
  • 25112863827094710001
  • 蚂蚁保单号
  • └ error_msg
  • String
  • 系统内部异常
  • 错误描述
  • └ is_success
  • Boolean
  • true
  • 请求是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlipayBaoxianLocalreturnIssueRequest req = new AlipayBaoxianLocalreturnIssueRequest();
AlipayBaoxianLocalreturnIssueRequest.InsTopLocalReturnIssueRequest obj1 = new AlipayBaoxianLocalreturnIssueRequest.InsTopLocalReturnIssueRequest();
obj1.setDeliveryTime("1765184578000");
obj1.setTradeOrderId("3088715556873172001");
obj1.setBuyerArea("HK");
obj1.setItemNum("1");
obj1.setItemName("商品名称");
obj1.setSellerId("1234567");
obj1.setExtCol("{\"insureType\":\"general\"}");
obj1.setFinanceType("platform");
obj1.setReceivablePrice("100");
obj1.setServiceOrderId("xxx");
req.setInsTopLocalReturnIssueRequest(obj1);
AlipayBaoxianLocalreturnIssueResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alipay_baoxian_localreturn_issue_response>
    <result>
        <error_code>SYSTEM_ERROR</error_code>
        <model>
            <policy_no>25112863827094710001</policy_no>
        </model>
        <error_msg>系统内部异常</error_msg>
        <is_success>true</is_success>
    </result>
</alipay_baoxian_localreturn_issue_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

返回
顶部