IBAN编辑接口

说明:编辑 IBAN 记录,只更新传入的字段,未传字段不改动

生产环境 API URL:#/api/iban/edit 测试环境 API URL:https://ibantest.yabandpay.com/api/iban/edit

Method:POST

Header:

Authorization: Bearer {api_account_token}
Content-Type: application/json

1. 请求参数(顶层)

字段 类型 描述 是否必填
uid string API 账户 UID 必填
timestamp integer 请求时间戳 必填
nonce string 随机字符串 必填
sign string 签名 必填
data object 编辑数据集 必填

2. data 对象(支持写在顶层或 data 内)

Parameter Type Description 是否必填
request_id string 请求号,响应原样回传 非必填
id integer IBAN 记录 ID 必填
holder_name string 开户名,若传则不能为空白字符串 非必填
alternative_name string 别名 非必填
creditor_identifier string 债权人标识 非必填
access integer 访问权限:0 none、1 full、2 inbound、3 outbound 非必填
remark string 备注 非必填
status integer 账户状态:0 inactive、1 active 非必填

注意:除 id 外,其他字段按需传入,只更新传入字段。未传任何可更新字段时,接口仍返回 200 并带当前记录详情。

权限隔离:只能编辑 api_account_id = 当前账户ID 的记录,否则返回 -3001 IBAN record not found。

3. 提交示例

{
    "uid": "900001",
    "timestamp": 1750000000,
    "nonce": "Qe3CkH2xP8",
    "sign": "A1AC665F9B40F7C51212BCE080F5B987",
    "data": {
        "request_id": "req_20260820_edit_001",
        "id": 1,
        "alternative_name": "New Alias",
        "creditor_identifier": "NL00ZZZ123456780001",
        "access": 3,
        "remark": "更新备注",
        "status": 1
    }
}

4. 返回示例

成功(返回更新后的完整详情)

{
    "status": true,
    "code": 200,
    "message": "",
    "data": {
        "id": 1,
        "customer_type": "legal_entity",
        "customer_id": "2012345678",
        "holder_name": "企业名字",
        "alternative_name": "New Alias",
        "creditor_identifier": "NL00ZZZ123456780001",
        "bic": "YABNNL22",
        "iban": "NL09YABN0192150222",
        "currency": "EUR",
        "balance": "1000.00",
        "access": 3,
        "access_label": "outbound",
        "status": 1,
        "status_label": "active",
        "remark": "更新备注",
        "api_account_id": 1,
        "created_at": 1784851200,
        "updated_at": 1784855400,
        "request_id": "req_20260820_edit_001"
    }
}

失败:记录不存在 / 不属于当前账户

{
    "status": false,
    "code": -3001,
    "message": "IBAN record not found",
    "data": {}
}

失败:access 或 status 取值非法

{
    "status": false,
    "code": -3004,
    "message": "The given data was invalid.",
    "data": {}
}

失败:holder_name 传空字符串

{
    "status": false,
    "code": -3002,
    "message": "holder_name cannot be empty",
    "data": {}
}

results matching ""

    No results matching ""