Wise 凭据#
¥Wise credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
创建 Wise 账户。
¥Create a Wise account.
支持的身份验证方法#
¥Supported authentication methods
- API 令牌
¥API token
相关资源#
¥Related resources
有关服务的更多信息,请参阅 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 令牌。输入 n8n 凭据中生成的 API 密钥。有关更多信息,请参阅 API 入门。
¥An API Token: Go to your user menu > Settings > API tokens to generate an API token. Enter the generated API key in your n8n credential. Refer to Getting started with the API for more information.
- 你的环境:选择与你的 Wise 账户环境最匹配的环境。
¥Your Environment: Select the environment that best matches your Wise account environment.
-
如果你使用的是 Wise 测试沙盒账户,请选择“测试”。
¥If you're using a Wise test sandbox account, select Test.
-
否则,请选择“上线”。
¥Otherwise, select Live.
-
私钥(可选):对于需要强客户身份验证 (SCA) 的实时端点,请生成公钥和私钥。在此处输入私钥。有关更多信息,请参阅 添加私钥。
¥Private Key (Optional): For live endpoints requiring Strong Customer Authentication (SCA), generate a public and private key. Enter the private key here. Refer to Add a private key for more information.
-
如果你使用的是测试环境,则只有在 公钥管理页面 上启用了强客户身份验证 (SCA) 时才需要输入私钥。
¥If you're using a Test environment, you'll only need to enter a Private Key if you've enabled Strong Customer Authentication on the public keys management page.
添加私钥#
¥Add a private key
Wise 使用强客户身份验证 (SCA) 保护某些实时端点和操作。有关详细信息,请联系 强客户身份验证和双因素身份验证 (2FA)。
¥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
¥This request requires Strong Customer Authentication (SCA). Please add a key pair to your account and n8n credentials. See 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:
- 生成 RSA 密钥对:
¥Generate an RSA key pair:
1 2 | |
- 将公钥
public.pem的内容添加到 Wise 用户菜单 > 设置 > API 令牌 > 管理公钥。
¥Add the content of the public key public.pem to your Wise user menu > Settings > API tokens > Manage public keys.
- 将 n8n 中私钥
private.pem的内容添加到“私钥”(可选)。
¥Add the content of the private key private.pem in n8n to the Private Key (Optional).
有关更多信息,请参阅 个人令牌 SCA。
¥Refer to Personal Token SCA for more information.