动物与宠物

Adyen余额控制API

余额控制API允许您在同一法人实体下、属于同一公司账户的商户账户之间转移资金。

查看官方文档 ↗

接入教程

1. 获取API密钥或基本认证凭证
2. 确定源账户和目标账户ID
3. 构建资金转移请求
4. 调用余额控制API端点
5. 处理API响应
6. 验证资金转移状态

使用Python转移资金

python
import requests
import json

url = "https://api.example.com/balanceTransfer"
headers = {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "sourceAccount": "source_merchant_account",
    "targetAccount": "target_merchant_account",
    "amount": {
        "value": 10000,
        "currency": "EUR"
    },
    "reference": "internal_transfer_001"
}

response = requests.post(url, headers=headers, json=payload)
print(f"Status Code: {response.status_code}")
print(f"Response: {response.json()}")

使用PHP转移资金

php
<?php
$url = "https://api.example.com/balanceTransfer";
$apiKey = "YOUR_API_KEY";

$data = [
    "sourceAccount" => "source_merchant_account",
    "targetAccount" => "target_merchant_account",
    "amount" => [
        "value" => 10000,
        "currency" => "EUR"
    ],
    "reference" => "internal_transfer_001"
];

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "X-API-Key: $apiKey",
    "Content-Type: application/json"
]);

$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "Status Code: $httpCode\n";
echo "Response: $response\n";
?>

使用JavaScript转移资金

javascript
const fetch = require('node-fetch');

const url = "https://api.example.com/balanceTransfer";
const apiKey = "YOUR_API_KEY";

const payload = {
    sourceAccount: "source_merchant_account",
    targetAccount: "target_merchant_account",
    amount: {
        value: 10000,
        currency: "EUR"
    },
    reference: "internal_transfer_001"
};

const options = {
    method: 'POST',
    headers: {
        "X-API-Key": apiKey,
        "Content-Type": "application/json"
    },
    body: JSON.stringify(payload)
};

fetch(url, options)
    .then(response => response.json())
    .then(data => console.log("Response:", data))
    .catch(error => console.error("Error:", error));

常见问题

余额控制API支持哪些货币?

该API支持Adyen平台处理的所有货币,具体货币列表需参考Adyen官方文档。资金转移必须在同一货币的账户间进行。

资金转移是实时的吗?

资金转移通常是即时处理的,但具体到账时间可能受银行处理时间和系统审核的影响。建议在非高峰时段操作并保留交易参考号。

转移资金需要额外费用吗?

在同一公司账户下的商户账户间转移资金通常不收取额外费用,但请查阅您的服务协议或联系Adyen客服确认具体条款。

相似接口推荐

AWS IoT Jobs数据平面

AWS IoT Jobs是一项服务,允许您定义一组作业——这些远程操作将发送到一个或多个连接到AWS IoT的设备上执行。例如,您可以定义作业指示一组设备下载并安装应用程序或固件更新、重启或轮换证书。

待确认
AWS IoT数据平面

AWS IoT数据平面提供物联网设备与AWS云之间的安全双向通信。它实现了消息代理功能,支持应用程序和设备发布消息。该服务适用于传感器、执行器及智能家电等联网设备。

待确认
AWS IoT

AWS IoT 提供物联网设备(如传感器、执行器、嵌入式设备或智能家电)与亚马逊云之间的安全双向通信服务。您可发现自定义的 IoT-Data 端点进行通信,并配置数据转发规则。

待确认
AWS Health API与通知服务

AWS Health API提供对个人健康仪表板中健康信息的编程访问。通过API操作可获取可能影响AWS服务的事件信息,帮助用户监控服务健康状况并及时响应潜在问题。

待确认