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

DEVELOPER REFERENCE

API 参考

所有核心业务均可通过 HTTP API 完成。文档公开,业务请求必须认证。

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

认证与通用约定

客户系统使用我们签发的 Bearer API Key;上游密钥只由后端持有。金额为整数美元分。所有写请求必须携带 Idempotency-Key。同一请求重试复用同一 Key。预算或卡限额修改收到 provider_outcome_unknown、operation_unknown 或网络中断时,保留原路径、原请求体与原 Key,仅按原请求只读恢复,不换新 Key 再写;确认原操作完成或明确拒绝后,新的修改才使用新 Key。

Authorization: Bearer YOUR_API_KEY
Idempotency-Key: UNIQUE_REQUEST_ID

列表使用 cursor / limit 分页;支持的资源可按 status、card_id、project_id、channel 精确过滤。错误返回 error.code、error.message 和 request_id。

限频:每个客户每个自然分钟默认 600 次读取(GET)和 300 次写入,该客户所有 API Key 合并计数,校验失败的请求也计入;卡号读取(secure-details)另有每分钟 30 次的独立额度。超出额度的第一次请求返回 429 rate_limited,并带 Retry-After: 60。运营可为客户单独调高额度。建议分批执行、用完当分钟额度后暂停。

预算与卡限额

POST /v1/cardholders 创建终端用户。充值 POST /v1/deposits 可带 holder_id,到账归该用户;旧客户资金可用 POST /v1/cardholders/{id}/wallet/transfers,传 channel、amount_cents、direction=to_wallet。GET /v1/cardholders/{id}/wallet 查询未拨备、同步占款和已确认预算;POST /v1/cardholders/{id}/wallet/sync 可恢复原同步。确认后 POST /v1/cards 只传 name、holder_id、channel,自动选择默认池。direction=to_customer 只收回未占用资金。旧客户余额和团队项目不自动迁移;跨渠道仅汇总,不共享同一分钱。BILL Live 共享并发验收失败的门禁仍生效,Brex 仍受单卡限制。一次性/月度独立卡分配限额沿用原契约,不能与共享卡混用;同步预算不等于美元实际汇兑或渠道入金。 划转响应是已提交时的固定快照;随后 GET /v1/cardholders/{id}/wallet 查询最新预算状态。 Brex 开卡准备期间上游限额为 0;先保存卡片关联,再恢复预算。结果未知时重放原 key 和 body,其余写操作等待。 Brex Live 的默认用户钱包开卡能力查看 GET /v1/capabilities 的 brex.holder_wallet_issuance;operator_verified 表示一次性默认预算的单卡发行已验收,仍不表示多卡共享、月度或跨渠道共池已通过。

钱包资金先划入项目池,再由卡消费。卡限额是项目池内的分配,不需要再次充值,也不增加项目总预算。所有金额字段均为整数美元分。

项目加减额:PATCH /v1/projects/{id} 传目标总额 budget_cents,而不是增减量。加额预留钱包余额,减额在上游读回确认后归还差额;未消费项目可调到 0,不能低于占用加已消费金额。Live 成员和预算分开请求。按月、关闭中或未决项目不能调额。

开卡限额:POST /v1/cards 的可选 limit_cents 为独立硬限额,省略则共享项目池;共享卡与独立限额卡不能混用。全部卡分配(含已关闭卡和未决分配)之和不超过项目总额,月度项目不超过月额。Brex 创建时要求限额等于项目池/月额且一项目一卡;同项目多卡共池请用 BILL。

按月项目:POST /v1/projects 传 limit_period=monthly 和 months(1–12),budget_cents 是整个期限的总预留,须可均分;创建 UTC 月是首月,响应含 monthly_limit_cents 和 ends_on。每月 1 日 UTC 00:00–11:59 暂不允许创建。总预算固定,渠道按硬月额重置且无结转;月度卡的 limit_cents 是每月限额。仅支持 one_time、monthly,没有独立 daily 或按日重置限额。

修改卡限额:PATCH /v1/cards/{id} 只传正整数 limit_cents,可修改 BILL/Brex 已有独立限额卡。目标受项目可分配总额/月额及本期授权和原清算累计约束,退款不恢复卡消费限额。周期和项目预算保持,共享卡不转独立限额卡;Brex 已有卡可改为池内较小限额。结果未决时 Card.limit_sync 保留原额/目标额,相关项目与卡操作被阻止。

项目分组:POST /v1/projects 或 PATCH /v1/projects/{id} 可传 group(去空格并转小写后为 1–64 位字母、数字、- 或 _,首尾为字母或数字;PATCH 传 null 清除,只能单独或与 name 一起改,不调用渠道)。GET /v1/project-groups 与 GET /v1/project-groups/{group} 按分组返回 budget_cents、available_cents、held_cents、spent_cents 的分渠道小计与合计,shared_limit 恒为 false。这是汇总视图,不是共享额度:某渠道项目额度用完即被该渠道拒绝,不会动用组内其他项目或另一渠道的余额。跨 Brex / BILL 只提供这份汇总视图。

Live 接入先读 GET /v1/capabilities,分别核对限额建卡、monthly_budget 和两渠道 card_limit_update 的验证/准入状态。simulated 只代表 Mock;documented_unverified 不能当作真实已验;operator_verified 只表示对应能力经运营验证。小额验收例外不意味着所有客户开放,配置读回不能证明真实商户拒付、自然跨月重置或到期已通过。

BILL 共享预算在 2026-10-05 真实两卡并发测试中发生超额授权,普通 Live 共享开卡与解冻默认阻止,返回 shared_budget_concurrency_unverified;串行拒付或发行开关不能证明并发安全。独立限额卡使用各自已验证能力。项目负可用余额或 requires_reconciliation 时不能开卡、解冻或释放项目资金;先完成真实对账。事后 Webhook 入账与冻结不能保证授权前拒付。

错误响应

所有错误返回统一结构:error.code、error.message 与 request_id。请按 error.code 分支处理,不要解析 message。客户 Key 可能收到的 code:

HTTPerror.code含义
400invalid_json请求体不是 JSON 对象
401unauthorizedAPI Key 缺失、已吊销或已过期
403forbiddenKey 缺少该接口所需作用域
403invalid_scope新建或轮换的 Key 申请了自身没有的作用域
403customer_inactive客户账户已停用
404not_foundID 或路由不存在;live 下调用 Mock 专用路由;重试非 dead 的投递
409idempotency_conflict同一 Idempotency-Key 用于不同请求
409operation_unknown该 Key 的前一次请求仍在处理或结果未知;项目有未决预算调整时用原 Key 重放对账;3DS 挑战的未知决策换 Key 也不会重发;被未决预算调整挡下的请求,在其收口后换新 Key 重试
409insufficient_funds钱包未分配余额不足
409channel_funds_insufficient该通道已结算资金不足
409withdrawal_unsupported本部署不能提现(资金非平台保管或未配置 USDT)
409budget_in_use预算包含已占用、已消费或未确认的开卡资金,暂不能收回
409shared_budget_concurrency_unverified渠道共享预算并发防超额尚未验证,暂不能执行
409project_reconciliation_required项目存在负余额或渠道差异,请先完成对账
409project_card_existsBrex 项目已存在卡,包括已关闭卡;不能再次开卡
409card_limit_update_unverified该通道的卡限额修改需运营验证后开放
409card_limit_in_use目标卡限额低于本期授权和原清算累计;退款不恢复限额
409personal_card_existspersonal 项目只允许一张有效卡
409project_in_use归档前须关闭卡并释放冻结额
409project_archived已归档项目不能修改或开卡
409project_closing关闭中的项目保留预算直到释放,不能调额或开卡
409project_not_closing释放前须先关闭项目
409refund_window_open退款窗口未过,暂不能释放预算
409monthly_budget_fixed按月项目在整个期限内额度固定;需要不同额度请新建项目
409monthly_start_window每月 1 日 UTC 00:00–11:59 不能创建按月项目,请在 UTC 12:00 后重试
409monthly_budget_unverified该通道的按月额度需运营验证后开放,期间请使用一次性项目
409issuer_event_required交易来自发卡方事件,只能用后续事件推进
409invalid_transition当前状态不允许该操作
409card_closed已关闭的卡不能修改或查看卡面
409challenge_closed3DS 挑战已作答,不能再次决策
409unsupported_channel该卡通道没有 3DS 挑战(Brex 卡)
409holder_inactive持卡人已停用
409not_project_member持卡人不是项目成员
409channel_mismatch卡的通道与项目不一致
409card_limit_unverifiedBILL 限额卡需运营验证后开放
409card_limit_exceeds_budget各卡限额之和会超过项目额度(按月项目为月额)
409card_limit_mode_conflict限额卡与共享卡不能混用(Mixed 项目不开限额卡);Brex 限额项目不可调额
409member_has_active_cards须先关闭该成员的卡
409refund_exceeds_settlement退款超过已清算金额
409event_conflict发卡方事件 ID 或交易被不同内容复用
409funding_not_configured部署尚未配置真实充值,暂不可创建充值单
422missing_field缺少必填字段
422unknown_field字段不在请求 schema 中
422invalid_field类型或取值错误,含缺少 Idempotency-Key
422invalid_email邮箱格式无效
422invalid_amount金额不是范围内的整数美分
422withdrawal_below_minimum低于最低提现额或不高于手续费(见 GET /v1/capabilities 的 withdrawal)
422invalid_withdrawal_address不是可接收 USDT 的 BSC 地址(格式、EIP-55 校验和、零地址、代币合约或充值地址)
422invalid_channel按月项目需指定 BILL 或 Brex,不支持 Mixed
422card_limit_must_equal_budgetBrex 卡限额必须等于项目额度(按月项目为月额)
422invalid_pagination须 cursor >= 0 且 limit 为 1..100
422invalid_urlWebhook URL 无法解析
422webhook_url_not_allowedHTTPS 域名未在 allowlist(Mock 还接受 mock://local)
429rate_limited本分钟超出读取 600 次或写入 300 次的默认额度(卡号读取另计,可按客户调整),见 Retry-After
429provider_rate_limited上游限流,用同一 Idempotency-Key 重试
503provider_outcome_unknown上游结果未知,用同一 Key 重试
409default_budget_managed默认预算由用户钱包管理,请通过钱包划转接口调整资金
409holder_budget_not_ready用户默认预算尚未完成入金与渠道确认,暂不能开卡
409holder_wallet_unverified用户钱包归属或账本未通过核对,先完成对账
{
  "error": {
    "code": "insufficient_funds",
    "message": "Insufficient unallocated wallet balance"
  },
  "request_id": "req_…"
}

客户账户

2 个接口
GET/v1/me
权限: read

Get current customer

参数

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

响应结构: Customer

请求示例cURL
curl -X GET https://api.reyvo.com/v1/me \
  -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",
  "name": "Campaign card",
  "email": "finance@example.com",
  "status": "active",
  "live_policy": {
    "max_project_budget_cents": 100000,
    "max_total_budget_cents": 100000,
    "refund_window_days": 1,
    "read_rate_per_minute": 1,
    "write_rate_per_minute": 1
  }
}
PATCH/v1/me
权限: write

Update customer contact profile (not login credentials)

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
namestring可选
emailstring可选

响应结构: Customer

请求示例cURL
curl -X PATCH https://api.reyvo.com/v1/me \
  -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",
  "name": "Campaign card",
  "email": "finance@example.com",
  "status": "active",
  "live_policy": {
    "max_project_budget_cents": 100000,
    "max_total_budget_cents": 100000,
    "refund_window_days": 1,
    "read_rate_per_minute": 1,
    "write_rate_per_minute": 1
  }
}

渠道能力

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

Get upstream capabilities and verification status, and the withdrawal terms of this deployment: withdrawal.fee_cents is kept from every withdrawal, and withdrawal.min_cents is the configured floor (a withdrawal must be at least min_cents and more than fee_cents, else 422 withdrawal_below_minimum)

参数

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

响应结构: Capabilities

请求示例cURL
curl -X GET https://api.reyvo.com/v1/capabilities \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "mode": "mock",
  "brex": {},
  "bill": {},
  "write_interval_ms": {},
  "cross_channel_pool": "simulated_only",
  "funding": "string",
  "withdrawal": {
    "fee_cents": 100000,
    "min_cents": 100000
  }
}

持卡人

4 个接口
GET/v1/cardholders
权限: read

List cardholders

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/cardholders \
  -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",
      "name": "Campaign card",
      "email": "finance@example.com",
      "status": "active",
      "provider_ids": {}
    }
  ],
  "next_cursor": "string",
  "total": 0
}
POST/v1/cardholders
权限: write

Create a tenant-owned cardholder

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
namestring必填
emailstring必填

响应结构: Cardholder

请求示例cURL
curl -X POST https://api.reyvo.com/v1/cardholders \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{"name":"Ada Lovelace","email":"developer@example.com"}'
响应示例200 · application/json
{
  "id": "id_…",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "name": "Campaign card",
  "email": "finance@example.com",
  "status": "active",
  "provider_ids": {}
}
GET/v1/cardholders/{id}
权限: read

Get holder

参数

字段位置必填
idpath必填

响应结构: Cardholder

请求示例cURL
curl -X GET https://api.reyvo.com/v1/cardholders/{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",
  "name": "Campaign card",
  "email": "finance@example.com",
  "status": "active",
  "provider_ids": {}
}
PATCH/v1/cardholders/{id}
权限: write

Maintain local holder profile and activity

参数

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

请求字段

字段类型必填
namestring可选
emailstring可选
statusactive | inactive可选

响应结构: Cardholder

请求示例cURL
curl -X PATCH https://api.reyvo.com/v1/cardholders/{id} \
  -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",
  "name": "Campaign card",
  "email": "finance@example.com",
  "status": "active",
  "provider_ids": {}
}

项目与成员

7 个接口
GET/v1/projects
权限: read

List projects

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/projects \
  -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",
      "name": "Campaign card",
      "default_budget": false,
      "wallet_id": "wallet_…",
      "holder_budget": "card",
      "status": "closing",
      "closing_at": "2026-01-01T00:00:00.000Z",
      "released_at": "2026-01-01T00:00:00.000Z",
      "released_cents": 100000,
      "release_pending": false,
      "release_attempts": 1,
      "requires_reconciliation": false,
      "kind": "team",
      "channel": "brex",
      "group": "string",
      "owner_id": "holder_…",
      "members": [
        "string"
      ],
      "channel_funding": {
        "bill": 1,
        "brex": 1
      },
      "budget_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000,
      "provider_id": "provider_…",
      "limit_period": "monthly",
      "months": 1,
      "monthly_limit_cents": 100000,
      "ends_on": "2026-01-31"
    }
  ],
  "next_cursor": "string",
  "total": 0
}
POST/v1/projects
权限: write

Create a funded shared or personal budget. Optional group labels it for GET /v1/project-groups (trimmed, lowercased; a summary, not a shared limit). limit_period monthly (bill or brex) splits budget_cents evenly over months as a hard monthly limit the channel resets, the current UTC month first, until ends_on; its budget cannot change later (monthly_budget_fixed, monthly_budget_unverified, monthly_start_window: not 00:00-11:59 UTC on the 1st)

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
namestring必填
owner_idstring必填
channelbrex | bill | mixed必填
budget_centsinteger必填
kindteam | personal可选
limit_periodone_time | monthly可选
monthsinteger可选
groupstring可选

响应结构: Project

请求示例cURL
curl -X POST https://api.reyvo.com/v1/projects \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{"name":"Campaign budget","owner_id":"holder_…","channel":"brex","budget_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",
  "default_budget": false,
  "wallet_id": "wallet_…",
  "holder_budget": "card",
  "status": "closing",
  "closing_at": "2026-01-01T00:00:00.000Z",
  "released_at": "2026-01-01T00:00:00.000Z",
  "released_cents": 100000,
  "release_pending": false,
  "release_attempts": 1,
  "requires_reconciliation": false,
  "kind": "team",
  "channel": "brex",
  "group": "string",
  "owner_id": "holder_…",
  "members": [
    "string"
  ],
  "channel_funding": {
    "bill": 1,
    "brex": 1
  },
  "budget_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "provider_id": "provider_…",
  "limit_period": "monthly",
  "months": 1,
  "monthly_limit_cents": 100000,
  "ends_on": "2026-01-31"
}
GET/v1/projects/{id}
权限: read

Get project

参数

字段位置必填
idpath必填

响应结构: Project

请求示例cURL
curl -X GET https://api.reyvo.com/v1/projects/{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",
  "name": "Campaign card",
  "default_budget": false,
  "wallet_id": "wallet_…",
  "holder_budget": "card",
  "status": "closing",
  "closing_at": "2026-01-01T00:00:00.000Z",
  "released_at": "2026-01-01T00:00:00.000Z",
  "released_cents": 100000,
  "release_pending": false,
  "release_attempts": 1,
  "requires_reconciliation": false,
  "kind": "team",
  "channel": "brex",
  "group": "string",
  "owner_id": "holder_…",
  "members": [
    "string"
  ],
  "channel_funding": {
    "bill": 1,
    "brex": 1
  },
  "budget_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "provider_id": "provider_…",
  "limit_period": "monthly",
  "months": 1,
  "monthly_limit_cents": 100000,
  "ends_on": "2026-01-31"
}
PATCH/v1/projects/{id}
权限: write

Update name, group, members or budget (0 releases an unspent pool). A holder default budget is managed through its wallet; direct budget changes return default_budget_managed. group (null clears) is a local label, sent alone or with name only, never to a channel. Live, one of members or budget: a raise reserves funds first, a cut releases them once read back, an unknown outcome locks the project until its Idempotency-Key is replayed (read-back only); members stay local (Brex may not change spend limit users) and, unlike Mock, emit no budget.updated (budget_in_use, budget_resize_unverified, insufficient_funds, live_customer_not_allowed, live_limit_exceeded, monthly_budget_fixed, operation_unknown, project_closing, provider_mapping_required, provider_schema_unverified, upstream_membership_unverified)

参数

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

请求字段

字段类型必填
namestring可选
membersstring[]可选
budget_centsinteger可选
groupstring | null可选

响应结构: Project

请求示例cURL
curl -X PATCH https://api.reyvo.com/v1/projects/{id} \
  -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",
  "name": "Campaign card",
  "default_budget": false,
  "wallet_id": "wallet_…",
  "holder_budget": "card",
  "status": "closing",
  "closing_at": "2026-01-01T00:00:00.000Z",
  "released_at": "2026-01-01T00:00:00.000Z",
  "released_cents": 100000,
  "release_pending": false,
  "release_attempts": 1,
  "requires_reconciliation": false,
  "kind": "team",
  "channel": "brex",
  "group": "string",
  "owner_id": "holder_…",
  "members": [
    "string"
  ],
  "channel_funding": {
    "bill": 1,
    "brex": 1
  },
  "budget_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "provider_id": "provider_…",
  "limit_period": "monthly",
  "months": 1,
  "monthly_limit_cents": 100000,
  "ends_on": "2026-01-31"
}
POST/v1/projects/{id}/archive
权限: write仅 Mock

Archive a project (Mock only; live answers 404 not_found); funds stay for late refunds

参数

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

{} · 请求字段

响应结构: Project

请求示例cURL
curl -X POST https://api.reyvo.com/v1/projects/{id}/archive \
  -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",
  "name": "Campaign card",
  "default_budget": false,
  "wallet_id": "wallet_…",
  "holder_budget": "card",
  "status": "closing",
  "closing_at": "2026-01-01T00:00:00.000Z",
  "released_at": "2026-01-01T00:00:00.000Z",
  "released_cents": 100000,
  "release_pending": false,
  "release_attempts": 1,
  "requires_reconciliation": false,
  "kind": "team",
  "channel": "brex",
  "group": "string",
  "owner_id": "holder_…",
  "members": [
    "string"
  ],
  "channel_funding": {
    "bill": 1,
    "brex": 1
  },
  "budget_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "provider_id": "provider_…",
  "limit_period": "monthly",
  "months": 1,
  "monthly_limit_cents": 100000,
  "ends_on": "2026-01-31"
}
POST/v1/projects/{id}/close
权限: write

Stop a project issuing and start its refund window; the budget is released afterwards. Refused while a budget change on the project is unresolved (operation_unknown, project_in_use)

参数

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

{} · 请求字段

响应结构: Project

请求示例cURL
curl -X POST https://api.reyvo.com/v1/projects/{id}/close \
  -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",
  "name": "Campaign card",
  "default_budget": false,
  "wallet_id": "wallet_…",
  "holder_budget": "card",
  "status": "closing",
  "closing_at": "2026-01-01T00:00:00.000Z",
  "released_at": "2026-01-01T00:00:00.000Z",
  "released_cents": 100000,
  "release_pending": false,
  "release_attempts": 1,
  "requires_reconciliation": false,
  "kind": "team",
  "channel": "brex",
  "group": "string",
  "owner_id": "holder_…",
  "members": [
    "string"
  ],
  "channel_funding": {
    "bill": 1,
    "brex": 1
  },
  "budget_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "provider_id": "provider_…",
  "limit_period": "monthly",
  "months": 1,
  "monthly_limit_cents": 100000,
  "ends_on": "2026-01-31"
}
POST/v1/projects/{id}/release
权限: write

Retire a closed project after its refund window. released_cents is signed: positive returns surplus, negative charges single-channel debt to the wallet (not a refund), zero moves nothing. Drift and mixed-channel debt block release (project_reconciliation_required, project_requires_reconciliation, budget_release_unverified, operation_unknown, project_not_closing, refund_window_open)

参数

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

{} · 请求字段

响应结构: Project

请求示例cURL
curl -X POST https://api.reyvo.com/v1/projects/{id}/release \
  -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",
  "name": "Campaign card",
  "default_budget": false,
  "wallet_id": "wallet_…",
  "holder_budget": "card",
  "status": "closing",
  "closing_at": "2026-01-01T00:00:00.000Z",
  "released_at": "2026-01-01T00:00:00.000Z",
  "released_cents": 100000,
  "release_pending": false,
  "release_attempts": 1,
  "requires_reconciliation": false,
  "kind": "team",
  "channel": "brex",
  "group": "string",
  "owner_id": "holder_…",
  "members": [
    "string"
  ],
  "channel_funding": {
    "bill": 1,
    "brex": 1
  },
  "budget_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "provider_id": "provider_…",
  "limit_period": "monthly",
  "months": 1,
  "monthly_limit_cents": 100000,
  "ends_on": "2026-01-31"
}

项目分组汇总

2 个接口
GET/v1/project-groups
权限: read

List project groups: budget, available, held and spent of the labelled projects, per channel and in total. A summary of separate project budgets, not a shared limit: a card is declined once its own project is used up, even if another project or channel in the group has funds left

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/project-groups \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "data": [
    {
      "group": "string",
      "shared_limit": false,
      "project_count": 1,
      "budget_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000,
      "channels": [
        {}
      ],
      "projects": [
        {}
      ]
    }
  ],
  "next_cursor": "string",
  "total": 0
}
GET/v1/project-groups/{group}
权限: read

Get one project group: totals, per-channel subtotals and its member projects, including closing and archived ones. A summary view, not a shared limit (not_found)

参数

字段位置必填
grouppath必填

响应结构: ProjectGroup

请求示例cURL
curl -X GET https://api.reyvo.com/v1/project-groups/{group} \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "group": "string",
  "shared_limit": false,
  "project_count": 1,
  "budget_cents": 100000,
  "available_cents": 100000,
  "held_cents": 100000,
  "spent_cents": 100000,
  "channels": [
    {
      "channel": "bill",
      "project_count": 1,
      "budget_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000
    }
  ],
  "projects": [
    {
      "id": "id_…",
      "name": "Campaign card",
      "channel": "bill",
      "status": "closing",
      "limit_period": "monthly",
      "budget_cents": 100000,
      "available_cents": 100000,
      "held_cents": 100000,
      "spent_cents": 100000
    }
  ]
}

虚拟卡

9 个接口
GET/v1/cards
权限: read

List cards

参数

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

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

请求示例cURL
curl -X GET https://api.reyvo.com/v1/cards \
  -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",
      "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"
    }
  ],
  "next_cursor": "string",
  "total": 0
}
POST/v1/cards
权限: write

Issue with project_id or holder_id + channel for a ready default budget. Default budgets are one-time, without rollover. limit_cents caps total spend, or per month in a monthly project; allocations cannot exceed the budget. Brex allows one lifetime card with an equal cap. BILL requires verified shared concurrency, or a separately verified single-card wallet with a permanent claim. Unknown BILL wallet issuance never resends; known native IDs allow original-request read-only recovery. Wallet sync, closing, deficits, drift or unverified membership block issuance (holder_budget_not_ready, project_closing, project_reconciliation_required, upstream_membership_unverified)

参数

字段位置必填
Idempotency-Keyheader必填

请求字段

字段类型必填
namestring必填
project_idstring可选
holder_idstring必填
channelbrex | bill可选
limit_centsinteger可选
amount_centsinteger可选

响应结构: Card

请求示例cURL
curl -X POST https://api.reyvo.com/v1/cards \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{"name":"Campaign card","project_id":"project_…","holder_id":"holder_…"}'
响应示例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/cards/{id}
权限: read

Get card

参数

字段位置必填
idpath必填

响应结构: Card

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

Change the hard limit of an existing BILL or Brex limit card, within its project budget (monthly limit if monthly) and no lower than current-period authorizations plus original settled spend; refunds do not restore it. Does not change the project budget or period and never converts shared cards. Live confirms the issuer with an independent read; an unknown outcome locks the card and its project until this original Idempotency-Key is replayed (read-back only). (card_limit_update_unverified, card_limit_in_use, card_limit_exceeds_budget, card_limit_mode_conflict, operation_unknown, project_closing)

参数

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

请求字段

字段类型必填
limit_centsinteger必填

响应结构: Card

请求示例cURL
curl -X PATCH https://api.reyvo.com/v1/cards/{id} \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{"limit_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"
}
POST/v1/cards/{id}/close
权限: write

close a card

参数

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

{} · 请求字段

响应结构: Card

请求示例cURL
curl -X POST https://api.reyvo.com/v1/cards/{id}/close \
  -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",
  "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"
}
POST/v1/cards/{id}/freeze
权限: write

freeze a card

参数

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

{} · 请求字段

响应结构: Card

请求示例cURL
curl -X POST https://api.reyvo.com/v1/cards/{id}/freeze \
  -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",
  "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/cards/{id}/secure-details
权限: secrets

Fetch issuer-hosted card details once; never stored by the platform

参数

字段位置必填
idpath必填

响应结构: CardSecureDetails

请求示例cURL
curl -X GET https://api.reyvo.com/v1/cards/{id}/secure-details \
  -H "Authorization: Bearer YOUR_API_KEY"
响应示例200 · application/json
{
  "delivery": "number",
  "number": "string",
  "cvv": "string",
  "expiration": "string",
  "mock": false
}
POST/v1/cards/{id}/sync
权限: write

Refresh masked card details and status from issuer

参数

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

{} · 请求字段

响应结构: Card

请求示例cURL
curl -X POST https://api.reyvo.com/v1/cards/{id}/sync \
  -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",
  "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"
}
POST/v1/cards/{id}/unfreeze
权限: write

unfreeze a card; Live refuses project deficits or drift (project_reconciliation_required); BILL shared cards additionally require concurrent budget verification or a matching separately verified holder-wallet card claim (shared_budget_concurrency_unverified)

参数

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

{} · 请求字段

响应结构: Card

请求示例cURL
curl -X POST https://api.reyvo.com/v1/cards/{id}/unfreeze \
  -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",
  "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"
}

交易

2 个接口
GET/v1/transactions
权限: read

List transactions

参数

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

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

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

Get transaction

参数

字段位置必填
idpath必填

响应结构: Transaction

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

3DS 验证挑战

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

List challenges

参数

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

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

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

Get challenge

参数

字段位置必填
idpath必填

响应结构: Challenge

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

BILL 3DS identity decision; not payment success. Live accepts need active card/project, no deficit/drift, and verified concurrent enforcement for shared cards. Reject is available. Explicit BILL status must match; other outcomes keep decision_op and return provider_outcome_unknown. Never resend a pending/unknown decision. Query transactions for payment outcome.

参数

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

请求字段

字段类型必填
decisionaccept | reject必填

响应结构: Challenge

请求示例cURL
curl -X POST https://api.reyvo.com/v1/challenges/{id}/decision \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{"decision":"accept"}'
响应示例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"
}