DEVELOPER REFERENCE
API 参考:平台接口
事件、Webhook、API Key、调用日志、账本、资金汇总、提现、幂等操作、渠道事件、对账与模拟测试接口。认证、幂等、分页、限频与错误码见 API 参考,所有请求同样适用。
渠道事件处理
2 个接口/v1/issuer-eventsList issuer-events
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
sinceForward-only stream read: rows with ordinal > since, oldest first, each carrying its ordinal; the response adds next_since. Replaces cursor when present. | query | 可选 |
响应结构: IssuerEvent[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/issuer-events \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"ordinal": 1,
"channel": "bill",
"card_id": "card_…",
"transaction_id": "transaction_…",
"status": "waiting",
"attempts": 1,
"error_code": "string",
"fingerprint": "string",
"duplicate": false,
"payload": {
"event_id": "event_…",
"provider_card_id": "provider_card_…",
"provider_transaction_id": "provider_transaction_…",
"sequence": 1,
"type": "authorized",
"amount_cents": 100000,
"merchant": "string"
}
}
],
"next_cursor": "string",
"total": 0
}/v1/issuer-events/{id}Get issuer-events detail
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: IssuerEvent
curl -X GET https://api.reyvo.com/v1/issuer-events/{id} \
-H "Authorization: Bearer YOUR_API_KEY"{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"ordinal": 1,
"channel": "bill",
"card_id": "card_…",
"transaction_id": "transaction_…",
"status": "waiting",
"attempts": 1,
"error_code": "string",
"fingerprint": "string",
"duplicate": false,
"payload": {
"event_id": "event_…",
"provider_card_id": "provider_card_…",
"provider_transaction_id": "provider_transaction_…",
"sequence": 1,
"type": "authorized",
"amount_cents": 100000,
"merchant": "string"
}
}本地对账报告
2 个接口/v1/reconciliationsList reconciliation reports; they are written by operator runs and background sweeps, never by a customer request, so a Mock tenant has none until an operator runs one
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: Reconciliation[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/reconciliations \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"status": "passed",
"scope": "local_ledger_and_events",
"channel": "bill",
"scanned_rows": 1,
"other_tenant_rows": 1,
"upstream_verified": false,
"checked_projects": 1,
"findings": [
{}
]
}
],
"next_cursor": "string",
"total": 0
}/v1/reconciliations/{id}Get a reconciliation report by an id from the list
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: Reconciliation
curl -X GET https://api.reyvo.com/v1/reconciliations/{id} \
-H "Authorization: Bearer YOUR_API_KEY"{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"status": "passed",
"scope": "local_ledger_and_events",
"channel": "bill",
"scanned_rows": 1,
"other_tenant_rows": 1,
"upstream_verified": false,
"checked_projects": 1,
"findings": [
{
"code": "string",
"resource": "string",
"expected": null,
"actual": null
}
]
}事件
2 个接口/v1/eventsList events
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
statusOptional exact-match filter | query | 可选 |
card_idOptional exact-match filter | query | 可选 |
project_idOptional exact-match filter | query | 可选 |
holder_idOptional exact-match filter | query | 可选 |
channelOptional exact-match filter | query | 可选 |
响应结构: Event[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/events \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"type": "string",
"data": {}
}
],
"next_cursor": "string",
"total": 0
}/v1/events/{id}Get event
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: Event
curl -X GET https://api.reyvo.com/v1/events/{id} \
-H "Authorization: Bearer YOUR_API_KEY"{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"type": "string",
"data": {}
}API Key
4 个接口/v1/api-keysList masked API keys
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: ApiKey[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/api-keys \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"prefix": "string",
"scopes": [
"read"
],
"revoked": 0,
"created": "2026-01-01T00:00:00.000Z",
"expires_at": "string",
"last_used_at": "string"
}
]
}/v1/api-keysCreate API key (token returned once)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
scopes | read | write | keys | webhooks | secrets | withdraw[] | 必填 |
expires_at | string | 可选 |
响应结构: ApiKeyCreated
curl -X POST https://api.reyvo.com/v1/api-keys \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{"scopes":["read"]}'{
"id": "id_…",
"token": "string",
"scopes": [
"read"
],
"prefix": "string",
"expires_at": "string"
}/v1/api-keys/{id}Revoke an API key
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
响应结构: object
curl -X DELETE https://api.reyvo.com/v1/api-keys/{id} \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID"{
"id": "id_…",
"revoked": true
}/v1/api-keys/{id}/rotateRotate and revoke previous key atomically
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
scopes | read | write | keys | webhooks | secrets | withdraw[] | 可选 |
expires_at | string | 可选 |
响应结构: ApiKeyCreated
curl -X POST https://api.reyvo.com/v1/api-keys/{id}/rotate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "id_…",
"token": "string",
"scopes": [
"read"
],
"prefix": "string",
"expires_at": "string"
}Webhook配置
4 个接口/v1/webhooksList webhook endpoints
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: WebhookEndpoint[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/webhooks \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"url": "https://hooks.example.com/card-events",
"events": [
"string"
],
"active": false,
"secret": "string"
}
]
}/v1/webhooksRegister a signed webhook endpoint
参数
| 字段 | 位置 | 必填 |
|---|---|---|
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
url | string | 必填 |
events | string[] | 可选 |
响应结构: WebhookEndpoint
curl -X POST https://api.reyvo.com/v1/webhooks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{"url":"mock://local"}'{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"url": "https://hooks.example.com/card-events",
"events": [
"string"
],
"active": false,
"secret": "string"
}/v1/webhooks/{id}Disable an endpoint
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
响应结构: WebhookEndpoint
curl -X DELETE https://api.reyvo.com/v1/webhooks/{id} \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID"{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"url": "https://hooks.example.com/card-events",
"events": [
"string"
],
"active": false,
"secret": "string"
}/v1/webhooks/{id}/replayReplay a stored event without repeating its business operation
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
event_id | string | 必填 |
响应结构: object
curl -X POST https://api.reyvo.com/v1/webhooks/{id}/replay \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{"event_id":"event_…"}'{
"id": "id_…",
"event_id": "event_…",
"endpoint": "string",
"status": "pending"
}回调投递
2 个接口/v1/webhook-deliveriesGet delivery attempts
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: WebhookDelivery[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/webhook-deliveries \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"endpoint": "string",
"attempts": 1,
"status": "pending",
"next_at": 1,
"last_code": 1
}
],
"next_cursor": "string",
"total": 0
}/v1/webhook-deliveries/{id}/retryRequeue a dead delivery
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: object
curl -X POST https://api.reyvo.com/v1/webhook-deliveries/{id}/retry \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{}'{
"queued": true
}调用日志
1 个接口/v1/logsGet redacted API request logs
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: RequestLog[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/logs \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"tenant": "string",
"method": "string",
"path": "string",
"status": 1,
"duration": 1,
"created": "2026-01-01T00:00:00.000Z"
}
],
"next_cursor": "string",
"total": 0
}账本
1 个接口/v1/ledgerGet balanced journal entries
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: LedgerEntry[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/ledger \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"tenant": "string",
"reference": "string",
"debit": "string",
"credit": "string",
"amount": 1,
"created": "2026-01-01T00:00:00.000Z"
}
],
"next_cursor": "string",
"total": 0
}资金汇总
3 个接口/v1/funds/flowList the funds flow: one row per ledger entry, newest booking first. type is a stable code (deposit, spend, refund, project_allocation, project_release, authorization_hold, authorization_release, channel_transfer, withdrawal_hold, withdrawal_release, withdrawal, other) and new codes may be added, so treat an unknown one as other; direction is in, out or internal (a move between your own wallet, project and hold balances), and amount_cents is always positive, so direction gives its sign. from and to are UTC dates (YYYY-MM-DD), both inclusive. card_id matches the entries of that card's transactions (holds, releases, spend and refunds); project_id matches the project's own entries and entries of its transactions, including refunds that reach the wallet after the project is archived. Offset paging over live data: rows booked while you page can repeat on the next page, so page a past date range for a fixed snapshot (invalid_field, invalid_pagination)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
fromOptional UTC date (YYYY-MM-DD), inclusive start | query | 可选 |
toOptional UTC date (YYYY-MM-DD), inclusive end | query | 可选 |
card_idOptional exact-match filter | query | 可选 |
project_idOptional exact-match filter | query | 可选 |
响应结构: FundsFlowEntry[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/funds/flow \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"type": "deposit",
"direction": "in",
"amount_cents": 100000,
"reference": "string",
"project_id": "project_…",
"card_id": "card_…",
"transaction_id": "transaction_…",
"merchant": "string",
"channel": "bill"
}
],
"next_cursor": "string",
"total": 0
}/v1/funds/merchantsList settled spend by merchant: spent_cents (settled, additional clearings included), refunded_cents, net_cents and transaction_count per merchant. Only transactions with a settlement count. Names are grouped after trimming spaces and ignoring case; merchant is one spelling of the group, null for transactions without a merchant. from and to are UTC dates (YYYY-MM-DD, both inclusive) of the transaction's creation (its authorization), not of the booking used by GET /v1/funds/flow. Sorted by spent_cents, highest first. Offset paging over live data: a merchant whose totals change while you page can move between pages (invalid_field, invalid_pagination)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
fromOptional UTC date (YYYY-MM-DD), inclusive start | query | 可选 |
toOptional UTC date (YYYY-MM-DD), inclusive end | query | 可选 |
响应结构: MerchantSpend[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/funds/merchants \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"merchant": "string",
"spent_cents": 100000,
"refunded_cents": 100000,
"net_cents": 100000,
"transaction_count": 1
}
],
"next_cursor": "string",
"total": 0
}/v1/funds/summaryGet a funds overview. Lifetime deposited, spent (gross) and refunded totals come from the ledger. available_cents equals customer wallet_available_cents plus project_available_cents (including holder default budgets once) plus holder_wallet_unallocated_cents. holder_wallet_available_cents and holder_wallet_held_cents are informational subsets, not extra balances to add. Pending holder funding is excluded from available_cents. available_cents + held_cents + holder_wallet_pending_cents + withdrawal_pending_cents = total_deposited_cents - total_spent_cents + total_refunded_cents - total_withdrawn_cents. A holder channel must also be ready before spending; customer withdrawals use only customer funds
响应结构: FundsSummary
curl -X GET https://api.reyvo.com/v1/funds/summary \ -H "Authorization: Bearer YOUR_API_KEY"
{
"total_deposited_cents": 100000,
"total_spent_cents": 100000,
"total_refunded_cents": 100000,
"available_cents": 100000,
"wallet_available_cents": 100000,
"holder_wallet_unallocated_cents": 100000,
"holder_wallet_pending_cents": 100000,
"holder_wallet_available_cents": 100000,
"holder_wallet_held_cents": 100000,
"project_available_cents": 100000,
"held_cents": 100000,
"withdrawal_pending_cents": 100000,
"total_withdrawn_cents": 100000,
"currency": "USD"
}提现
3 个接口/v1/withdrawalsList withdrawals
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
statusOptional exact-match filter | query | 可选 |
channelOptional exact-match filter | query | 可选 |
响应结构: Withdrawal[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/withdrawals \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"channel": "bill",
"network": "bsc",
"asset": "USDT",
"address": "string",
"amount_cents": 100000,
"fee_cents": 100000,
"payout_cents": 100000,
"currency": "USD",
"status": "pending_review",
"approved_at": "2026-01-01T00:00:00.000Z",
"approved_by": "string",
"rejected_at": "2026-01-01T00:00:00.000Z",
"rejected_by": "string",
"tx_hash": "string",
"completed_at": "2026-01-01T00:00:00.000Z",
"completed_by": "string",
"block_number": 1,
"block_hash": "string",
"log_index": 1,
"confirmations": 1,
"block_time": "2026-01-01T00:00:00.000Z",
"mock": true,
"proof_mismatch": {
"code": "chain_id",
"tx_hash": "string",
"items": [
{}
],
"checked_at": "2026-01-01T00:00:00.000Z"
}
}
],
"next_cursor": "string",
"total": 0
}/v1/withdrawalsRequest a BSC USDT payout of unallocated wallet funds from one channel. amount_cents is frozen at once (balance_cents and channel_balances drop by it) and waits for an operator to approve or reject it; fee_cents and payout_cents (amount_cents minus fee_cents) are fixed at submission from GET /v1/capabilities withdrawal. address must be able to receive USDT on BSC; mixed case must be a valid EIP-55 checksum. Needs the withdraw scope, which default keys do not carry (withdrawal_unsupported, withdrawal_below_minimum, invalid_withdrawal_address, channel_funds_insufficient, channel_balance_mismatch, customer_inactive, live_customer_not_allowed)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
amount_cents | integer | 必填 |
channel | bill | brex | 必填 |
address | string | 必填 |
响应结构: Withdrawal
curl -X POST https://api.reyvo.com/v1/withdrawals \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{"amount_cents":5000,"channel":"brex","address":"0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"}'{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"channel": "bill",
"network": "bsc",
"asset": "USDT",
"address": "string",
"amount_cents": 100000,
"fee_cents": 100000,
"payout_cents": 100000,
"currency": "USD",
"status": "pending_review",
"approved_at": "2026-01-01T00:00:00.000Z",
"approved_by": "string",
"rejected_at": "2026-01-01T00:00:00.000Z",
"rejected_by": "string",
"tx_hash": "string",
"completed_at": "2026-01-01T00:00:00.000Z",
"completed_by": "string",
"block_number": 1,
"block_hash": "string",
"log_index": 1,
"confirmations": 1,
"block_time": "2026-01-01T00:00:00.000Z",
"mock": true,
"proof_mismatch": {
"code": "chain_id",
"tx_hash": "string",
"items": [
{
"field": "chain_id",
"expected": "string",
"actual": "string"
}
],
"checked_at": "2026-01-01T00:00:00.000Z"
}
}/v1/withdrawals/{id}Get withdrawal
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: Withdrawal
curl -X GET https://api.reyvo.com/v1/withdrawals/{id} \
-H "Authorization: Bearer YOUR_API_KEY"{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"channel": "bill",
"network": "bsc",
"asset": "USDT",
"address": "string",
"amount_cents": 100000,
"fee_cents": 100000,
"payout_cents": 100000,
"currency": "USD",
"status": "pending_review",
"approved_at": "2026-01-01T00:00:00.000Z",
"approved_by": "string",
"rejected_at": "2026-01-01T00:00:00.000Z",
"rejected_by": "string",
"tx_hash": "string",
"completed_at": "2026-01-01T00:00:00.000Z",
"completed_by": "string",
"block_number": 1,
"block_hash": "string",
"log_index": 1,
"confirmations": 1,
"block_time": "2026-01-01T00:00:00.000Z",
"mock": true,
"proof_mismatch": {
"code": "chain_id",
"tx_hash": "string",
"items": [
{
"field": "chain_id",
"expected": "string",
"actual": "string"
}
],
"checked_at": "2026-01-01T00:00:00.000Z"
}
}幂等操作
1 个接口/v1/operationsGet idempotent operation status
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: Operation[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/operations \ -H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"key": "string",
"status": "pending",
"created": "2026-01-01T00:00:00.000Z"
}
],
"next_cursor": "string",
"total": 0
}模拟测试
8 个接口/v1/mock/authorizationsSimulate authorization against a shared pool
参数
| 字段 | 位置 | 必填 |
|---|---|---|
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
card_id | string | 必填 |
amount_cents | integer | 必填 |
merchant | string | 可选 |
响应结构: Transaction
curl -X POST https://api.reyvo.com/v1/mock/authorizations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{"card_id":"card_…","amount_cents":2500}'{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"channel": "bill",
"issuer_sequence": 1,
"provider_transaction_id": "provider_transaction_…",
"card_id": "card_…",
"project_id": "project_…",
"merchant": "string",
"amount_cents": 100000,
"settled_cents": 100000,
"refunded_cents": 100000,
"status": "authorized",
"decline_reason": null
}/v1/mock/challengesSimulate a pending 3D Secure challenge on a BILL card; answer with POST /v1/challenges/{id}/decision
参数
| 字段 | 位置 | 必填 |
|---|---|---|
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
card_id | string | 必填 |
amount_cents | integer | 必填 |
merchant | string | 可选 |
响应结构: Challenge
curl -X POST https://api.reyvo.com/v1/mock/challenges \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{"card_id":"card_…","amount_cents":100000}'{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"channel": "bill",
"card_id": "card_…",
"provider_challenge_id": "provider_challenge_…",
"merchant": "string",
"amount_cents": 100000,
"status": "pending",
"decision_op": "string",
"occurred_at": "string",
"answered_at": "2026-01-01T00:00:00.000Z"
}/v1/mock/deposits/{id}/advanceSimulate next funding stage
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: Deposit
curl -X POST https://api.reyvo.com/v1/mock/deposits/{id}/advance \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{}'{
"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
}/v1/mock/issuer-eventsSubmit a normalized Mock issuer event (ordered and deduplicated)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
card_id | string | 必填 |
event_id | string | 必填 |
provider_transaction_id | string | 必填 |
sequence | integer | 必填 |
type | authorized | declined | settled | reversed | refunded | settled_additional | 必填 |
amount_cents | integer | 必填 |
merchant | string | 可选 |
响应结构: IssuerEvent
curl -X POST https://api.reyvo.com/v1/mock/issuer-events \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{"card_id":"card_…","event_id":"demo-event-1","provider_transaction_id":"demo-txn-1","sequence":1,"type":"authorized","amount_cents":2500}'{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"ordinal": 1,
"channel": "bill",
"card_id": "card_…",
"transaction_id": "transaction_…",
"status": "waiting",
"attempts": 1,
"error_code": "string",
"fingerprint": "string",
"duplicate": false,
"payload": {
"event_id": "event_…",
"provider_card_id": "provider_card_…",
"provider_transaction_id": "provider_transaction_…",
"sequence": 1,
"type": "authorized",
"amount_cents": 100000,
"merchant": "string"
}
}/v1/mock/transactions/{id}/refundSimulate refund
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
amount_cents | integer | 可选 |
响应结构: Transaction
curl -X POST https://api.reyvo.com/v1/mock/transactions/{id}/refund \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"channel": "bill",
"issuer_sequence": 1,
"provider_transaction_id": "provider_transaction_…",
"card_id": "card_…",
"project_id": "project_…",
"merchant": "string",
"amount_cents": 100000,
"settled_cents": 100000,
"refunded_cents": 100000,
"status": "authorized",
"decline_reason": null
}/v1/mock/transactions/{id}/reverseSimulate reverse
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
amount_cents | integer | 可选 |
响应结构: Transaction
curl -X POST https://api.reyvo.com/v1/mock/transactions/{id}/reverse \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"channel": "bill",
"issuer_sequence": 1,
"provider_transaction_id": "provider_transaction_…",
"card_id": "card_…",
"project_id": "project_…",
"merchant": "string",
"amount_cents": 100000,
"settled_cents": 100000,
"refunded_cents": 100000,
"status": "authorized",
"decline_reason": null
}/v1/mock/transactions/{id}/settleSimulate settle
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
amount_cents | integer | 可选 |
响应结构: Transaction
curl -X POST https://api.reyvo.com/v1/mock/transactions/{id}/settle \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{}'{
"id": "id_…",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"channel": "bill",
"issuer_sequence": 1,
"provider_transaction_id": "provider_transaction_…",
"card_id": "card_…",
"project_id": "project_…",
"merchant": "string",
"amount_cents": 100000,
"settled_cents": 100000,
"refunded_cents": 100000,
"status": "authorized",
"decline_reason": null
}/v1/mock/webhooks/deliverDeliver to local Mock sink
参数
| 字段 | 位置 | 必填 |
|---|---|---|
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: object[] · 返回分页列表
curl -X POST https://api.reyvo.com/v1/mock/webhooks/deliver \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{}'{
"data": [
{
"id": "id_…",
"status": "delivered",
"attempts": 1,
"http_status": 1
}
]
}