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-platform.md.

DEVELOPER REFERENCE

API 参考:平台接口

事件、Webhook、API Key、调用日志、账本、资金汇总、提现、幂等操作、渠道事件、对账与模拟测试接口。认证、幂等、分页、限频与错误码见 API 参考,所有请求同样适用。

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

渠道事件处理

2 个接口
GET/v1/issuer-events
权限: read

List issuer-events

参数

字段位置必填
cursorquery可选
limitquery可选
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
curl -X GET https://api.reyvo.com/v1/issuer-events \
  -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",
      "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
}
GET/v1/issuer-events/{id}
权限: read

Get issuer-events detail

参数

字段位置必填
idpath必填

响应结构: IssuerEvent

请求示例cURL
curl -X GET https://api.reyvo.com/v1/issuer-events/{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",
  "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 个接口
GET/v1/reconciliations
权限: read

List 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

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/reconciliations \
  -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",
      "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
}
GET/v1/reconciliations/{id}
权限: read

Get a reconciliation report by an id from the list

参数

字段位置必填
idpath必填

响应结构: Reconciliation

请求示例cURL
curl -X GET https://api.reyvo.com/v1/reconciliations/{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",
  "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 个接口
GET/v1/events
权限: read

List events

参数

字段位置必填
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可选

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/events \
  -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",
      "type": "string",
      "data": {}
    }
  ],
  "next_cursor": "string",
  "total": 0
}
GET/v1/events/{id}
权限: read

Get event

参数

字段位置必填
idpath必填

响应结构: Event

请求示例cURL
curl -X GET https://api.reyvo.com/v1/events/{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",
  "type": "string",
  "data": {}
}

API Key

4 个接口
GET/v1/api-keys
权限: keys

List masked API keys

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/api-keys \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "data": [
    {
      "id": "id_…",
      "prefix": "string",
      "scopes": [
        "read"
      ],
      "revoked": 0,
      "created": "2026-01-01T00:00:00.000Z",
      "expires_at": "string",
      "last_used_at": "string"
    }
  ]
}
POST/v1/api-keys
权限: keys

Create API key (token returned once)

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
scopesread | write | keys | webhooks | secrets | withdraw[]必填
expires_atstring可选

响应结构: ApiKeyCreated

请求示例cURL
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"]}'
响应示例200 · application/json
{
  "id": "id_…",
  "token": "string",
  "scopes": [
    "read"
  ],
  "prefix": "string",
  "expires_at": "string"
}
DELETE/v1/api-keys/{id}
权限: keys

Revoke an API key

参数

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

响应结构: object

请求示例cURL
curl -X DELETE https://api.reyvo.com/v1/api-keys/{id} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID"
响应示例200 · application/json
{
  "id": "id_…",
  "revoked": true
}
POST/v1/api-keys/{id}/rotate
权限: keys

Rotate and revoke previous key atomically

参数

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

请求字段

字段类型必填
scopesread | write | keys | webhooks | secrets | withdraw[]可选
expires_atstring可选

响应结构: ApiKeyCreated

请求示例cURL
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 '{}'
响应示例200 · application/json
{
  "id": "id_…",
  "token": "string",
  "scopes": [
    "read"
  ],
  "prefix": "string",
  "expires_at": "string"
}

Webhook配置

4 个接口
GET/v1/webhooks
权限: webhooks

List webhook endpoints

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/webhooks \
  -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",
      "url": "https://hooks.example.com/card-events",
      "events": [
        "string"
      ],
      "active": false,
      "secret": "string"
    }
  ]
}
POST/v1/webhooks
权限: webhooks

Register a signed webhook endpoint

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
urlstring必填
eventsstring[]可选

响应结构: WebhookEndpoint

请求示例cURL
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"}'
响应示例200 · application/json
{
  "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"
}
DELETE/v1/webhooks/{id}
权限: webhooks

Disable an endpoint

参数

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

响应结构: WebhookEndpoint

请求示例cURL
curl -X DELETE https://api.reyvo.com/v1/webhooks/{id} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID"
响应示例200 · application/json
{
  "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"
}
POST/v1/webhooks/{id}/replay
权限: webhooks

Replay a stored event without repeating its business operation

参数

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

请求字段

字段类型必填
event_idstring必填

响应结构: object

请求示例cURL
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_…"}'
响应示例200 · application/json
{
  "id": "id_…",
  "event_id": "event_…",
  "endpoint": "string",
  "status": "pending"
}

回调投递

2 个接口
GET/v1/webhook-deliveries
权限: webhooks

Get delivery attempts

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/webhook-deliveries \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "data": [
    {
      "id": "id_…",
      "endpoint": "string",
      "attempts": 1,
      "status": "pending",
      "next_at": 1,
      "last_code": 1
    }
  ],
  "next_cursor": "string",
  "total": 0
}
POST/v1/webhook-deliveries/{id}/retry
权限: webhooks

Requeue a dead delivery

参数

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

{} · 请求字段

响应结构: object

请求示例cURL
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 '{}'
响应示例200 · application/json
{
  "queued": true
}

调用日志

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

Get redacted API request logs

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/logs \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "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 个接口
GET/v1/ledger
权限: read

Get balanced journal entries

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/ledger \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "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 个接口
GET/v1/funds/flow
权限: read

List 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)

参数

字段位置必填
cursorquery可选
limitquery可选
fromOptional UTC date (YYYY-MM-DD), inclusive startquery可选
toOptional UTC date (YYYY-MM-DD), inclusive endquery可选
card_idOptional exact-match filterquery可选
project_idOptional exact-match filterquery可选

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/funds/flow \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "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
}
GET/v1/funds/merchants
权限: read

List 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)

参数

字段位置必填
cursorquery可选
limitquery可选
fromOptional UTC date (YYYY-MM-DD), inclusive startquery可选
toOptional UTC date (YYYY-MM-DD), inclusive endquery可选

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/funds/merchants \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "data": [
    {
      "merchant": "string",
      "spent_cents": 100000,
      "refunded_cents": 100000,
      "net_cents": 100000,
      "transaction_count": 1
    }
  ],
  "next_cursor": "string",
  "total": 0
}
GET/v1/funds/summary
权限: read

Get 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
curl -X GET https://api.reyvo.com/v1/funds/summary \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "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 个接口
GET/v1/withdrawals
权限: read

List withdrawals

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/withdrawals \
  -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",
      "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
}
POST/v1/withdrawals
权限: withdraw

Request 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-Keyheader必填

请求字段

字段类型必填
amount_centsinteger必填
channelbill | brex必填
addressstring必填

响应结构: Withdrawal

请求示例cURL
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"}'
响应示例200 · application/json
{
  "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"
  }
}
GET/v1/withdrawals/{id}
权限: read

Get withdrawal

参数

字段位置必填
idpath必填

响应结构: Withdrawal

请求示例cURL
curl -X GET https://api.reyvo.com/v1/withdrawals/{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",
  "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 个接口
GET/v1/operations
权限: read

Get idempotent operation status

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/operations \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "data": [
    {
      "key": "string",
      "status": "pending",
      "created": "2026-01-01T00:00:00.000Z"
    }
  ],
  "next_cursor": "string",
  "total": 0
}

模拟测试

8 个接口
POST/v1/mock/authorizations
权限: write仅 Mock

Simulate authorization against a shared pool

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
card_idstring必填
amount_centsinteger必填
merchantstring可选

响应结构: Transaction

请求示例cURL
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}'
响应示例200 · application/json
{
  "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
}
POST/v1/mock/challenges
权限: write仅 Mock

Simulate a pending 3D Secure challenge on a BILL card; answer with POST /v1/challenges/{id}/decision

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
card_idstring必填
amount_centsinteger必填
merchantstring可选

响应结构: Challenge

请求示例cURL
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}'
响应示例200 · application/json
{
  "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"
}
POST/v1/mock/deposits/{id}/advance
权限: write仅 Mock

Simulate next funding stage

参数

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

{} · 请求字段

响应结构: Deposit

请求示例cURL
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 '{}'
响应示例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
}
POST/v1/mock/issuer-events
权限: write仅 Mock

Submit a normalized Mock issuer event (ordered and deduplicated)

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
card_idstring必填
event_idstring必填
provider_transaction_idstring必填
sequenceinteger必填
typeauthorized | declined | settled | reversed | refunded | settled_additional必填
amount_centsinteger必填
merchantstring可选

响应结构: IssuerEvent

请求示例cURL
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}'
响应示例200 · application/json
{
  "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"
  }
}
POST/v1/mock/transactions/{id}/refund
权限: write仅 Mock

Simulate refund

参数

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

请求字段

字段类型必填
amount_centsinteger可选

响应结构: Transaction

请求示例cURL
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 '{}'
响应示例200 · application/json
{
  "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
}
POST/v1/mock/transactions/{id}/reverse
权限: write仅 Mock

Simulate reverse

参数

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

请求字段

字段类型必填
amount_centsinteger可选

响应结构: Transaction

请求示例cURL
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 '{}'
响应示例200 · application/json
{
  "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
}
POST/v1/mock/transactions/{id}/settle
权限: write仅 Mock

Simulate settle

参数

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

请求字段

字段类型必填
amount_centsinteger可选

响应结构: Transaction

请求示例cURL
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 '{}'
响应示例200 · application/json
{
  "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
}
POST/v1/mock/webhooks/deliver
权限: webhooks仅 Mock

Deliver to local Mock sink

参数

字段位置必填
Idempotency-Keyheader必填

{} · 请求字段

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

请求示例cURL
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 '{}'
响应示例200 · application/json
{
  "data": [
    {
      "id": "id_…",
      "status": "delivered",
      "attempts": 1,
      "http_status": 1
    }
  ]
}