0
点赞
收藏
分享

微信扫一扫

电商API数据开发及跨境电商软件开发包括:erp系统,数据分析软件,商家工具,代购集运系统

紫荆峰 2023-08-01 阅读 13

ERP信息同步

需求地址:console.open.onebound.cn/console/ind…

环境

HTTP地址

HTTPS地址

正式环境

console.open.onebound.cn/console/?i=…

console.open.onebound.cn/console/?i=…

公共请求参数:

名称

类型

必须

描述

method

String


API接口名称,例如:alibaba.health.ys.cep.vip.insure.notice.sync

app_key

String


TOP分配给应用的AppKey,例如:12345678

session

String


用户登录授权成功后,TOP颁发给应用的授权信息,详细介绍请点击这里。当此API的标签上注明:“需要授权”,则此参数必传;“不需要授权”,则此参数不需要传;“可选授权”,则此参数为可选

timestamp

String


时间戳,格式为yyyy-MM-dd HH:mm:ss,时区为GMT+8,例如:2015-01-01 12:00:00。淘宝API服务端允许客户端请求最大时间误差为10分钟

v

String


API协议版本,可选值:2.0

sign_method

String


签名的摘要算法,可选值为:hmac,md5,hmac-sha256。

sign

String


API输入参数签名结果,签名算法介绍请点击这里

format

String


响应格式。默认为xml格式,可选值:xml,json。

simplify

Boolean


是否采用精简JSON返回格式,仅当format=json时有效,默认值为:false

请求参数

电商API数据开发及跨境电商软件开发包括:erp系统,数据分析软件,商家工具,代购集运系统_错误码

编辑

响应参数

名称

类型

示例值

描述

result

ResponseResult

返回对象

success

Boolean

true

调用是否成功

error_code

String

200

返回错误码

error_msg

String

12345

返回错误信息

请求示例

JAVA

PHP

.NET

CURL

Python

NodeJS

C/C++

Python3

GO

PHP7

JAVA8

.NET6

TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthYsCepVipInsureNoticeSyncRequest req = new AlibabaHealthYsCepVipInsureNoticeSyncRequest();
AlibabaHealthYsCepVipInsureNoticeSyncRequest.TopVipInsureInfoDTO obj1 = new AlibabaHealthYsCepVipInsureNoticeSyncRequest.TopVipInsureInfoDTO();
obj1.setInstPayOrderId("LSD12345");
obj1.setInsuranceAgentName("某某公司");
obj1.setPolicyId("12324345");
obj1.setEffectStartTime(StringUtils.parseDateTime("2022-02-02 00:00:00"));
obj1.setPhone("12345678");
obj1.setExtras("{"continuousCurInstallmentNo":3,"continuousExpectTime":"2021-12-20 12:00:09","continuousOverdueTime":"2021-12-20 12:00:09","insuredName":"7c73c5a83fa580b5d6f8208768adc931ef3123291ac8bc335a1277a39d256d9a", "insuredCertNo":"7c73c5a83fa580b5d6f8208768adc931ef3123291ac8bc335a1277a39d256d9a"}");
obj1.setEffectEndTime(StringUtils.parseDateTime("2022-02-03 00:00:00"));
obj1.setInsuredTime(StringUtils.parseDateTime("2022-02-02 10:00:00"));
obj1.setPolicyStatus("CONTINUOUS_USED");
obj1.setVipCardNo("12434545456");
req.setTopVipInsureInfoDto(obj1);
AlibabaHealthYsCepVipInsureNoticeSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());


响应示例

XML

JSON

<alibaba_health_ys_cep_vip_insure_notice_sync_response>
    <result>
        <success>true</success>
        <error_code>200</error_code>
        <error_msg>12345</error_msg>
    </result>
</alibaba_health_ys_cep_vip_insure_notice_sync_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 工具


举报

相关推荐

0 条评论