Onerway
POST

查询收款人详情

根据 beneficiaryId 获取当前操作商户收款人的完整详情。

请求

ApiKey
Onerway 分配的账户服务 API key 请求 Header;必须使用与请求域名相同环境的值。
示例:
Content-Type
请求体媒体类型。
示例:
beneficiaryId
Onerway 收款人 ID(64 位整数)。
约束
规则
beneficiaryId 必填。不存在、不属于当前操作商户或已删除的收款人均返回无效收款人业务错误。
onBehalfOf
请求实际对应的商户号,仅在代其他商户发起请求时填写。

请求示例

curl -X POST 'https://sandbox-transfer-api.onerway.com/api/v3/beneficiary/queryDetail' \
  -H 'ApiKey: replace_with_account_service_apikey' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "beneficiaryId": 10001
}'

响应

respCode
响应码;20000 表示请求处理成功,其余为错误码。
respMsg
响应码对应的可读说明。
成功业务数据;失败不作为有效业务数据读取
约束
规则
individual/business、bankAccount/walletAccount/cashPickupAccount 按主体和付款方式选择返回;不适用分支没有有效内容。历史记录中未保存的叶子字段可能为空,不能以请求字段必填性推断响应必有值。
结构化失败信息;并非每个失败分支都有该字段

响应示例

{
  "respCode": "20000",
  "respMsg": "Success",
  "data": {
    "beneficiaryId": "10001",
    "merchantNo": "10000",
    "status": "unnecessary",
    "entityType": "BUSINESS",
    "paymentMethod": "BANK_TRANSFER",
    "business": {
      "companyName": "Example Demo Company",
      "registrationNumber": "demo_registration_001",
      "registrationDate": "2020-01-01",
      "tin": "demo_tax_id"
    },
    "contact": {
      "email": "demo@example.com"
    },
    "address": {
      "countryCode": "US",
      "state": "Example State",
      "city": "Example City",
      "addressLine1": "Example Address",
      "postalCode": "00000"
    },
    "account": {
      "countryCode": "US",
      "currency": "USD",
      "bankAccount": {
        "accountHolderName": "Example Demo Company",
        "bankName": "Example Bank",
        "accountType": "CHECKING",
        "accountIdentifier": {
          "type": "LOCAL_ACCOUNT",
          "value": "demo_account_001"
        },
        "routingNumber": "000000000"
      }
    }
  }
}
20050112

编号不存在、不属于当前商户或已删除。

触发条件: 编号不存在、不属于当前商户或已删除。

示例

{
  "respCode": "50112",
  "respMsg": "beneficiaryId invalid",
  "error": {
    "type": "business_error",
    "code": "cl1048",
    "message": "beneficiaryId invalid",
    "requestId": "req_00000000000000000000000000000001",
    "errorDetails": [
      {
        "errorCode": "cl1048",
        "message": "beneficiaryId invalid"
      }
    ]
  }
}