API中心

  1. 基本档案
  2. 币种档案
返回

币种档案新增

接口所在U8C版本:U8 cloud3.1以及更高版本
详细描述:用于币种档案新增
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/uapbd/bdcurrtype/insert

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
trantype翻译类型,按编码为code,不需要翻译为pkcode
system系统参数
uniquekey幂等唯一key

请求参数(body):

全量参数最简参数
参数名类型是否数组必填描述默认值示例值
billvo请求参数
currbusidigitstring业务系统精度2
currdigitstring财务系统精度2
currtypecodestring币种编码
currtypenamestring币种名称
currtypesignstring币种币符

返回类型参数:

参数名类型是否数组必填描述默认值
billvo币种档案实体_返回
currbusidigitstring业务系统精度
currdigitstring财务系统精度
currtypecodestring币种编码
currtypenamestring币种名称
currtypesignstring币种币符
dsstring删除标志
pk_currtypestring币种主键
trstring时间戳

请求参数示例:

最简参数

复制代码

{
    "billvo": [
        {
            "currtypecode": "BTC02",
            "currtypename": "测试新增比特币02"
        }
    ]
}

正确返回示例:

最简参数

复制代码

{
    "status": "success",
    "data": "[{\"currbusidigit\":\"2\",\"currdigit\":\"2\",\"currtypecode\":\"BTC02\",\"currtypename\":\"测试新增比特币02\",\"dr\":\"0\",\"pk_currtype\":\"0001A21000000004A0NY\",\"ts\":\"2023-09-12 21:06:12\"}]",
    "taskNumber": "202309120164"
}

错误返回示例:

复制代码

{
    "status": "falied",
    "errorcode": "-32000",
    "errormsg": "U8C返回信息:违反唯一性约束。系统中已经存在符合以下条件的记录:\n[币种代码]=Test\n[币种名称]=Test\n",
    "taskNumber": "202009100034"
}