RoaPay Settlement Engine 3.0 and the Multi-Currency Treasury API
Global payment infrastructure is usually described as a stack of rails. In practice, most merchants experience it as a stack of spreadsheets. Balances live in different providers, settlement dates drift, and finance teams spend the first week of every month reconstructing what actually happened. Today we are launching RoaPay Settlement Engine 3.0 and the Multi-Currency Treasury API to remove that reconstruction work entirely.
Settlement Engine 3.0 is now generally available to every RoaPay merchant, and the treasury API is available in all supported regions. Both are backwards compatible: existing integrations keep working, and new capabilities are opt-in through new endpoints and webhook events.
What changed
The release is organized around three ideas that customers have asked for since our first settlement product:
- One canonical ledger. Every authorization, capture, refund, payout, and FX conversion posts to a double-entry ledger in real time. Balances are derived, not periodically imported.
- Automated netting. Inflows and outflows across entities, currencies, and payment methods are netted per settlement cycle, so a merchant moving money between five markets no longer needs five funding buffers.
- Settlement in minutes, not days. Eligible flows settle through local clearing participants with pre-funded liquidity, cutting the median cross-border settlement window from T+2 to under 15 minutes.
Inside the ledger
The ledger is the product. Rather than exposing a balance endpoint that aggregates provider reports, the new API exposes immutable postings and lets you query derived balances at any point in time. That means reconciliation becomes a query instead of a project.
| Capability | Before | With Engine 3.0 |
|---|---|---|
| Balance freshness | Daily provider files | Real-time postings |
| Multi-entity netting | Manual spreadsheet | Automatic per cycle |
| FX conversion | Batch at cut-off | Streaming rate locks |
| Reconciliation | Monthly close | Continuous queries |
Each posting carries a stable entry_id, a reference to the originating payment or payout, the entity it belongs to, and a settlement batch identifier once it is cleared. Nothing is mutated after posting. Corrections are new entries, which keeps audit trails intact.
The Multi-Currency Treasury API
The treasury API gives finance teams programmatic control over balances, funding, and conversions. A single call can move funds between your own accounts, lock an FX rate for a future settlement, or request a payout from a specific currency wallet.
curl -X POST https://api.roapay.com/v3/treasury/transfers \
-H "Authorization: Bearer $ROAPAY_KEY" \
-H "Content-Type: application/json" \
-d '{
"source_wallet": "wal_usd_01",
"destination_wallet": "wal_eur_01",
"amount": 25000000,
"currency": "USD",
"reference": "Q4-supplier-funding",
"settlement_speed": "instant"
}'
The response includes the locked conversion rate, the ledger entries created, and the expected clearing window. Webhooks fire on treasury.transfer.created and treasury.transfer.settled, so your ERP receives the same events your finance team sees in the RoaPay dashboard.
Migration and availability
Engine 3.0 is enabled for new accounts by default. Existing accounts can switch when they are ready:
- Call
GET /v3/settlement/capabilitiesto check which currencies and corridors are eligible. - Enable the new ledger with
POST /v3/settlement/migrate. Historical postings are backfilled and available immediately. - Keep the legacy balance endpoint during a 90-day transition; both views are derived from the same ledger.
“We moved from a four-person reconciliation team to a single weekly review. The difference is not automation for its own sake — it is finally having one version of the truth.”
— CFO, a global marketplace with operations in 14 markets
Getting started
Read the checkout SDK deep dive for the payment side of the stack, or explore how multi-entity reconciliation works in practice. API reference and migration guides are available in the RoaPay merchant portal. If you want a guided walkthrough, our solutions team runs weekly office hours for treasury and finance engineering teams.
全球支付基础设施常被描述成一组“通道”。但在实际使用中,大多数商户感受到的是一堆电子表格:余额散落在不同服务商、结算日不断漂移,财务团队每个月第一周都在还原真实发生过的交易。今天我们正式发布 RoaPay 全球清算引擎 3.0 与 多币种资金管理 API,目标就是把这部分还原工作彻底消除。
清算引擎 3.0 现已向所有 RoaPay 商户开放,资金管理 API 也在全部支持地区上线。二者保持向后兼容:既有集成无需改动,新能力通过新的端点与 Webhook 事件按需启用。
这次改变了什么
本次发布围绕客户从第一代清算产品起就反复提出的三个诉求展开:
- 唯一可信账本。 授权、请款、退款、下发与汇兑,全部实时记入复式账本。余额由账本推导,而不是定期导入。
- 自动净额结算。 跨主体、跨币种、跨支付方式的流入与流出按清算周期自动轧差,在五个市场周转资金的商户不再需要五份备付金。
- 分钟级清算。 符合条件的资金通过本地清算参与者与预置流动性完成,跨境清算中位时间从 T+2 缩短到 15 分钟以内。
账本才是产品
新的 API 不再返回一个由各渠道报表拼合的余额,而是暴露不可变的记账分录,让你可以查询任意时间点的推导余额。对账因此从“项目”变成了“查询”。
| 能力 | 过去 | 引擎 3.0 |
|---|---|---|
| 余额时效 | 每日渠道文件 | 实时分录 |
| 多主体净额 | 手工表格 | 按周期自动 |
| 汇兑 | 截止时点批量 | 流式锁汇 |
| 对账 | 月度关账 | 持续查询 |
每条分录包含稳定的 entry_id、来源支付或下发引用、所属主体以及清算后的批次标识。记账后不再修改;更正以新分录形式追加,审计链路完整保留。
多币种资金管理 API
财务团队可以通过 API 以程序化方式管理余额、资金调拨与汇兑。一次调用即可在自有账户间划转、为未来清算锁定汇率,或从指定币种钱包发起下发。
curl -X POST https://api.roapay.com/v3/treasury/transfers \
-H "Authorization: Bearer $ROAPAY_KEY" \
-H "Content-Type: application/json" \
-d '{
"source_wallet": "wal_usd_01",
"destination_wallet": "wal_eur_01",
"amount": 25000000,
"currency": "USD",
"reference": "Q4-supplier-funding",
"settlement_speed": "instant"
}'
响应会返回锁定的汇率、生成的账本分录以及预计清算窗口。Webhook 会触发 treasury.transfer.created 与 treasury.transfer.settled,让 ERP 与财务在 RoaPay 控制台中看到同一组事件。
迁移与可用性
新账户默认启用引擎 3.0,存量账户可按自身节奏切换:
- 调用
GET /v3/settlement/capabilities查询可用币种与走廊。 - 通过
POST /v3/settlement/migrate启用新账本,历史分录会立即回填并可查询。 - 在 90 天过渡期内保留旧余额端点,两个视图来自同一账本。
“我们把四个人的对账团队压缩成每周一次复核。关键不是为自动化而自动化,而是终于只有一个版本的事实。”
—— 某覆盖 14 个市场的全球交易平台 CFO
如何开始
如果你更关心支付侧,可以阅读 统一收银台 SDK 深度解析;也可以了解 集团多主体自动对账 的实际落地方式。API 参考与迁移指南已在 RoaPay 商户门户上线;如需一对一沟通,我们的解决方案团队每周提供资金与财务工程专场答疑。