文档中心 > API类目 > 欢行开发平台API

alibaba.tae.common.currency.all.query (欢行全部币种查询)

查询全部币种

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
currency_open_request_dto CurrencyOpenRequestDTO 必须 币种查询参数
  • └ tenant_key
  • String
  • 必须
  • ant
  • 租户身份标识;开放API调用必填,Agent调用由上下文识别
  • └ employee_no
  • String
  • 必须
  • 091103
  • 企业员工工号;开放API调用必填,Agent调用由登录态注入
  • └ app_key
  • String
  • 必须
  • ant-expense
  • 调用方应用身份;开放API调用必填,Agent调用由上下文识别

响应参数

名称 类型 示例值 描述
result_code String A00001 错误码
result_message String 系统异常 错误信息
content CurrencyOpenDTO [] 币种列表
  • └ code
  • String
  • CNY
  • 三位币种编码
  • └ name
  • String
  • CNY (人民币)
  • 币种展示名称
is_success Boolean true 系统调用是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTaeCommonCurrencyAllQueryRequest req = new AlibabaTaeCommonCurrencyAllQueryRequest();
AlibabaTaeCommonCurrencyAllQueryRequest.CurrencyOpenRequestDTO obj1 = new AlibabaTaeCommonCurrencyAllQueryRequest.CurrencyOpenRequestDTO();
obj1.setTenantKey("ant");
obj1.setEmployeeNo("091103");
obj1.setAppKey("ant-expense");
req.setCurrencyOpenRequestDto(obj1);
AlibabaTaeCommonCurrencyAllQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tae_common_currency_all_query_response>
    <result_code>A00001</result_code>
    <result_message>系统异常</result_message>
    <content>
        <currency_open_d_t_o>
            <code>CNY</code>
            <name>CNY (人民币)</name>
        </currency_open_d_t_o>
    </content>
    <is_success>true</is_success>
</alibaba_tae_common_currency_all_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

返回
顶部