Skip to content

Wise 凭据(Wise credentials)#

你可以使用以下凭据验证以下节点:

🌐 You can use these credentials to authenticate the following nodes:

先决条件(Prerequisites)#

创建一个 Wise 账户。

🌐 Create a Wise account.

支持的身份验证方法(Supported authentication methods)#

  • API 令牌

有关该服务的更多信息,请参考 Wise 的 API 文档

🌐 Refer to Wise's API documentation for more information about the service.

使用 API 令牌(Using API token)#

要配置此凭据,你需要:

🌐 To configure this credential, you'll need:

  • 一个 API 令牌:转到你的 用户菜单 > 设置 > API 令牌 来生成 API 令牌。将生成的 API 密钥输入到你的 n8n 凭证中。更多信息请参考 API 入门
  • 您的环境:请选择与您的Wise账户环境最匹配的环境。
    • 如果你正在使用 Wise 测试沙箱账户,请选择测试
    • 否则,选择 直播
  • 私钥(可选):对于需要强客户身份验证(SCA)的实时端点,请生成公钥和私钥。在此输入私钥。有关更多信息,请参考添加私钥
    • 如果你使用的是测试环境,只有在你已在公钥管理页面启用强客户认证时,才需要输入私钥。

添加私钥(Add a private key)#

Wise 使用强客户认证(SCA)保护一些活跃端点和操作。详细信息请参阅 强客户认证 & 双因素认证

🌐 Wise protects some live endpoints and operations with Strong Customer Authentication (SCA). Refer to Strong Customer Authentication & 2FA for details.

如果你向需要 SCA 的端点发出请求,Wise 会返回 403 Forbidden HTTP 状态码。返回的错误如下所示:

🌐 If you make a request to an endpoint that requires SCA, Wise returns a 403 Forbidden HTTP status code. The error returned will look like this:

此请求需要强客户认证(SCA)。请在你的账户和 n8n 凭证中添加密钥对。详见 https://api-docs.transferwise.com/#strong-customer-authentication-personal-token

要使用需要 SCA 的端点,请生成 RSA 密钥对,并将相关的密钥信息添加到 Wise 和 n8n:

🌐 To use endpoints requiring SCA, generate an RSA key pair and add the relevant key information to both Wise and n8n:

  1. 生成 RSA 密钥对:

    1
    2
    $ openssl genrsa -out private.pem 2048 
    $ openssl rsa -pubout -in private.pem -out public.pem
    
  2. 将公钥 public.pem 的内容添加到你的 Wise 用户菜单 > 设置 > API 令牌 > 管理公钥 中。

  3. 将私钥 private.pem 的内容添加到 n8n 的 私钥(可选) 中。

有关更多信息,请参阅 个人令牌 SCA

🌐 Refer to Personal Token SCA for more information.