For AI agents: the complete documentation index is available at https://api.reyvo.com/llms.txt, and this page is available as Markdown at https://api.reyvo.com/zh/docs-wallets.md.

DEVELOPER REFERENCE

钱包与充值 API

终端用户钱包、预算同步、客户余额与充值接口。认证与错误约定见主 API 参考。

基础地址
https://api.reyvo.com/v1
OpenAPI
3.1.0 · 9 个接口

余额

1 个接口
GET/v1/balance
权限: read

Get available wallet, holds and spend

参数

字段位置必填
cursorquery可选
limitquery可选

响应结构: Balance

请求示例cURL
curl -X GET https://api.reyvo.com/v1/balance \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "id": "id_…",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "balance_cents": 100000,
  "allocated_available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "holder_wallet_unallocated_cents": 100000,
  "holder_wallet_pending_cents": 100000,
  "holder_wallet_available_cents": 100000,
  "holder_wallet_held_cents": 100000,
  "currency": "USD",
  "channel_balances": {
    "bill": 1,
    "brex": 1
  }
}

充值

3 个接口
GET/v1/deposits
权限: read

List deposits

参数

字段位置必填
cursorquery可选
limitquery可选
statusOptional exact-match filterquery可选
card_idOptional exact-match filterquery可选
project_idOptional exact-match filterquery可选
holder_idOptional exact-match filterquery可选
channelOptional exact-match filterquery可选

响应结构: Deposit[] · 返回分页列表

请求示例cURL
curl -X GET https://api.reyvo.com/v1/deposits \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "data": [
    {
      "id": "id_…",
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z",
      "bridge_intent_id": "bridge_intent_…",
      "provider_state": "string",
      "settlement_kind": "bridge_bank_payout",
      "provider_fees": {
        "developer_cents": 100000,
        "exchange_cents": 100000,
        "gas_cents": 100000
      },
      "requires_reconciliation": false,
      "tenant_id": "tenant_…",
      "holder_id": "holder_…",
      "amount_cents": 100000,
      "credited_cents": 100000,
      "asset": "USDC",
      "network": "ethereum",
      "channel": "brex",
      "address": "string",
      "token_contract": "string",
      "chain_id": 1,
      "address_index": 1,
      "received_cents": 100000,
      "block_number": 1,
      "provider_reference": "string",
      "status": "awaiting_payment",
      "confirmations": 1,
      "confirmations_required": 1,
      "tx_hash": "string",
      "settlement_reference": "string",
      "net_cents": 100000,
      "fee_cents": 100000,
      "rate": "string",
      "source": "operator",
      "note": "string",
      "mock": false
    }
  ],
  "next_cursor": "string",
  "total": 0
}
POST/v1/deposits
权限: write

Create a stablecoin deposit order. Optional holder_id assigns the final credit to that terminal user wallet and automatically synchronizes its default budget. Chain confirmation alone is not spendable; funding remains unavailable until the channel default budget is independently confirmed. Omit holder_id to retain the existing customer-credit flow

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
amount_centsinteger必填
channelbrex | bill必填
assetUSDC | USDT可选
networkethereum | bsc可选
holder_idstring可选

响应结构: Deposit

请求示例cURL
curl -X POST https://api.reyvo.com/v1/deposits \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{"amount_cents":110000,"channel":"brex"}'
响应示例200 · application/json
{
  "id": "id_…",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "bridge_intent_id": "bridge_intent_…",
  "provider_state": "string",
  "settlement_kind": "bridge_bank_payout",
  "provider_fees": {
    "developer_cents": 100000,
    "exchange_cents": 100000,
    "gas_cents": 100000
  },
  "requires_reconciliation": false,
  "tenant_id": "tenant_…",
  "holder_id": "holder_…",
  "amount_cents": 100000,
  "credited_cents": 100000,
  "asset": "USDC",
  "network": "ethereum",
  "channel": "brex",
  "address": "string",
  "token_contract": "string",
  "chain_id": 1,
  "address_index": 1,
  "received_cents": 100000,
  "block_number": 1,
  "provider_reference": "string",
  "status": "awaiting_payment",
  "confirmations": 1,
  "confirmations_required": 1,
  "tx_hash": "string",
  "settlement_reference": "string",
  "net_cents": 100000,
  "fee_cents": 100000,
  "rate": "string",
  "source": "operator",
  "note": "string",
  "mock": false
}
GET/v1/deposits/{id}
权限: read

Get deposit

参数

字段位置必填
idpath必填

响应结构: Deposit

请求示例cURL
curl -X GET https://api.reyvo.com/v1/deposits/{id} \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "id": "id_…",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "bridge_intent_id": "bridge_intent_…",
  "provider_state": "string",
  "settlement_kind": "bridge_bank_payout",
  "provider_fees": {
    "developer_cents": 100000,
    "exchange_cents": 100000,
    "gas_cents": 100000
  },
  "requires_reconciliation": false,
  "tenant_id": "tenant_…",
  "holder_id": "holder_…",
  "amount_cents": 100000,
  "credited_cents": 100000,
  "asset": "USDC",
  "network": "ethereum",
  "channel": "brex",
  "address": "string",
  "token_contract": "string",
  "chain_id": 1,
  "address_index": 1,
  "received_cents": 100000,
  "block_number": 1,
  "provider_reference": "string",
  "status": "awaiting_payment",
  "confirmations": 1,
  "confirmations_required": 1,
  "tx_hash": "string",
  "settlement_reference": "string",
  "net_cents": 100000,
  "fee_cents": 100000,
  "rate": "string",
  "source": "operator",
  "note": "string",
  "mock": false
}

用户钱包

5 个接口
GET/v1/cardholders/{id}/wallet
权限: read

Get one terminal cardholder wallet, separate from GET /v1/balance (customer funds). unallocated_cents is not yet in a confirmed default budget; pending_sync_cents is not spendable. Only confirmed, ready channel available_cents may be spent. The channel pools are separate, not a real-time cross-issuer shared limit

参数

字段位置必填
idpath必填

响应结构: HolderWallet

请求示例cURL
curl -X GET https://api.reyvo.com/v1/cardholders/{id}/wallet \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "id": "id_…",
  "holder_id": "holder_…",
  "currency": "USD",
  "unallocated_cents": 100000,
  "pending_sync_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "channels": {
    "bill": {
      "unallocated_cents": 100000,
      "pending_sync_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000,
      "project_id": "project_…",
      "status": "unfunded",
      "error_code": "string",
      "mode": "default",
      "card_budgets": [
        {}
      ]
    },
    "brex": {
      "unallocated_cents": 100000,
      "pending_sync_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000,
      "project_id": "project_…",
      "status": "unfunded",
      "error_code": "string",
      "mode": "default",
      "card_budgets": [
        {}
      ]
    }
  }
}
POST/v1/cardholders/{id}/wallet/sync
权限: write

Synchronize this holder default budget using its durable internal funding operation. Unknown writes are recovered by read-back only; a new request key never authorizes duplicating the upstream funding. Read the returned channel status before issuing or using cards (holder_wallet_unverified, holder_budget_not_ready, operation_unknown)

参数

字段位置必填
idpath必填
Idempotency-Keyheader必填

请求字段

字段类型必填
channelbill | brex必填

响应结构: HolderWallet

请求示例cURL
curl -X POST https://api.reyvo.com/v1/cardholders/{id}/wallet/sync \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{"channel":"bill"}'
响应示例200 · application/json
{
  "id": "id_…",
  "holder_id": "holder_…",
  "currency": "USD",
  "unallocated_cents": 100000,
  "pending_sync_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "channels": {
    "bill": {
      "unallocated_cents": 100000,
      "pending_sync_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000,
      "project_id": "project_…",
      "status": "unfunded",
      "error_code": "string",
      "mode": "default",
      "card_budgets": [
        {}
      ]
    },
    "brex": {
      "unallocated_cents": 100000,
      "pending_sync_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000,
      "project_id": "project_…",
      "status": "unfunded",
      "error_code": "string",
      "mode": "default",
      "card_budgets": [
        {}
      ]
    }
  }
}
POST/v1/cardholders/{id}/wallet/transfers
权限: write

Move settled customer credit to this holder wallet (to_wallet), or return unused holder funds to the customer (to_customer), within one channel. This is neither card funding nor an on-chain payout or issuer cash transfer. The response is the archived transfer snapshot, not proof of budget readiness; GET the wallet for current synchronization status. Default budgets use durable operations; pending/unknown funding is not spendable, and recovery reads the original upstream result rather than sending another write (default_budget_managed, holder_wallet_unverified, holder_budget_not_ready, operation_unknown, budget_in_use, insufficient_funds)

参数

字段位置必填
idpath必填
Idempotency-Keyheader必填

请求字段

字段类型必填
channelbill | brex必填
amount_centsinteger必填
directionto_wallet | to_customer必填

响应结构: HolderWallet

请求示例cURL
curl -X POST https://api.reyvo.com/v1/cardholders/{id}/wallet/transfers \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{"channel":"bill","amount_cents":100000,"direction":"to_wallet"}'
响应示例200 · application/json
{
  "id": "id_…",
  "holder_id": "holder_…",
  "currency": "USD",
  "unallocated_cents": 100000,
  "pending_sync_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "channels": {
    "bill": {
      "unallocated_cents": 100000,
      "pending_sync_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000,
      "project_id": "project_…",
      "status": "unfunded",
      "error_code": "string",
      "mode": "default",
      "card_budgets": [
        {}
      ]
    },
    "brex": {
      "unallocated_cents": 100000,
      "pending_sync_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000,
      "project_id": "project_…",
      "status": "unfunded",
      "error_code": "string",
      "mode": "default",
      "card_budgets": [
        {}
      ]
    }
  }
}
POST/v1/cards/{id}/funding
权限: write

POST /v1/cards with holder_id, channel and amount_cents issues a card on its own budget funded from the customer wallet; replaying its key resumes funding and issuance by read-back. This route moves customer wallet funds into that card budget (to_card) or unused budget back to the customer wallet (to_wallet); holder wallet funds are never used. Unknown outcomes keep the reservation; replay the original key (card_budget_not_found, budget_in_use, insufficient_funds, operation_unknown, holder_budget_mode_conflict, holder_card_budgets_unverified, holder_card_limit_reached)

参数

字段位置必填
idpath必填
Idempotency-Keyheader必填

请求字段

字段类型必填
directionto_card | to_wallet必填
amount_centsinteger必填

响应结构: Card

请求示例cURL
curl -X POST https://api.reyvo.com/v1/cards/{id}/funding \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{"direction":"to_card","amount_cents":100000}'
响应示例200 · application/json
{
  "id": "id_…",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "name": "Campaign card",
  "project_id": "project_…",
  "holder_id": "holder_…",
  "channel": "brex",
  "status": "pending",
  "last_four": "string",
  "provider_id": "provider_…",
  "synced_at": "2026-01-01T00:00:00.000Z",
  "network": "visa",
  "network_source": "channel_default",
  "limit_cents": 100000,
  "limit_sync": {
    "op": "string",
    "prior_cents": 100000,
    "target_cents": 100000,
    "at": "2026-01-01T00:00:00.000Z",
    "policy_fingerprint": "string"
  },
  "expiration": "string"
}
GET/v1/wallets
权限: read

List terminal cardholder wallets owned by this customer. Each holder has one logical wallet, with separate BILL and Brex backing; an unfunded holder returns zero balances. Existing customer funds and team projects are not migrated or counted in each holder wallet

参数

字段位置必填
cursorquery可选
limitquery可选

响应结构: HolderWallet[] · 返回分页列表

请求示例cURL
curl -X GET https://api.reyvo.com/v1/wallets \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "data": [
    {
      "id": "id_…",
      "holder_id": "holder_…",
      "currency": "USD",
      "unallocated_cents": 100000,
      "pending_sync_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000,
      "channels": {
        "bill": {},
        "brex": {}
      }
    }
  ],
  "next_cursor": "string",
  "total": 0
}