DEVELOPER REFERENCE
API 参考
所有核心业务均可通过 HTTP API 完成。文档公开,业务请求必须认证。
认证与通用约定
客户系统使用我们签发的 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:
| HTTP | error.code | 含义 |
|---|---|---|
| 400 | invalid_json | 请求体不是 JSON 对象 |
| 401 | unauthorized | API Key 缺失、已吊销或已过期 |
| 403 | forbidden | Key 缺少该接口所需作用域 |
| 403 | invalid_scope | 新建或轮换的 Key 申请了自身没有的作用域 |
| 403 | customer_inactive | 客户账户已停用 |
| 404 | not_found | ID 或路由不存在;live 下调用 Mock 专用路由;重试非 dead 的投递 |
| 409 | idempotency_conflict | 同一 Idempotency-Key 用于不同请求 |
| 409 | operation_unknown | 该 Key 的前一次请求仍在处理或结果未知;项目有未决预算调整时用原 Key 重放对账;3DS 挑战的未知决策换 Key 也不会重发;被未决预算调整挡下的请求,在其收口后换新 Key 重试 |
| 409 | insufficient_funds | 钱包未分配余额不足 |
| 409 | channel_funds_insufficient | 该通道已结算资金不足 |
| 409 | withdrawal_unsupported | 本部署不能提现(资金非平台保管或未配置 USDT) |
| 409 | budget_in_use | 预算包含已占用、已消费或未确认的开卡资金,暂不能收回 |
| 409 | shared_budget_concurrency_unverified | 渠道共享预算并发防超额尚未验证,暂不能执行 |
| 409 | project_reconciliation_required | 项目存在负余额或渠道差异,请先完成对账 |
| 409 | project_card_exists | Brex 项目已存在卡,包括已关闭卡;不能再次开卡 |
| 409 | card_limit_update_unverified | 该通道的卡限额修改需运营验证后开放 |
| 409 | card_limit_in_use | 目标卡限额低于本期授权和原清算累计;退款不恢复限额 |
| 409 | personal_card_exists | personal 项目只允许一张有效卡 |
| 409 | project_in_use | 归档前须关闭卡并释放冻结额 |
| 409 | project_archived | 已归档项目不能修改或开卡 |
| 409 | project_closing | 关闭中的项目保留预算直到释放,不能调额或开卡 |
| 409 | project_not_closing | 释放前须先关闭项目 |
| 409 | refund_window_open | 退款窗口未过,暂不能释放预算 |
| 409 | monthly_budget_fixed | 按月项目在整个期限内额度固定;需要不同额度请新建项目 |
| 409 | monthly_start_window | 每月 1 日 UTC 00:00–11:59 不能创建按月项目,请在 UTC 12:00 后重试 |
| 409 | monthly_budget_unverified | 该通道的按月额度需运营验证后开放,期间请使用一次性项目 |
| 409 | issuer_event_required | 交易来自发卡方事件,只能用后续事件推进 |
| 409 | invalid_transition | 当前状态不允许该操作 |
| 409 | card_closed | 已关闭的卡不能修改或查看卡面 |
| 409 | challenge_closed | 3DS 挑战已作答,不能再次决策 |
| 409 | unsupported_channel | 该卡通道没有 3DS 挑战(Brex 卡) |
| 409 | holder_inactive | 持卡人已停用 |
| 409 | not_project_member | 持卡人不是项目成员 |
| 409 | channel_mismatch | 卡的通道与项目不一致 |
| 409 | card_limit_unverified | BILL 限额卡需运营验证后开放 |
| 409 | card_limit_exceeds_budget | 各卡限额之和会超过项目额度(按月项目为月额) |
| 409 | card_limit_mode_conflict | 限额卡与共享卡不能混用(Mixed 项目不开限额卡);Brex 限额项目不可调额 |
| 409 | member_has_active_cards | 须先关闭该成员的卡 |
| 409 | refund_exceeds_settlement | 退款超过已清算金额 |
| 409 | event_conflict | 发卡方事件 ID 或交易被不同内容复用 |
| 409 | funding_not_configured | 部署尚未配置真实充值,暂不可创建充值单 |
| 422 | missing_field | 缺少必填字段 |
| 422 | unknown_field | 字段不在请求 schema 中 |
| 422 | invalid_field | 类型或取值错误,含缺少 Idempotency-Key |
| 422 | invalid_email | 邮箱格式无效 |
| 422 | invalid_amount | 金额不是范围内的整数美分 |
| 422 | withdrawal_below_minimum | 低于最低提现额或不高于手续费(见 GET /v1/capabilities 的 withdrawal) |
| 422 | invalid_withdrawal_address | 不是可接收 USDT 的 BSC 地址(格式、EIP-55 校验和、零地址、代币合约或充值地址) |
| 422 | invalid_channel | 按月项目需指定 BILL 或 Brex,不支持 Mixed |
| 422 | card_limit_must_equal_budget | Brex 卡限额必须等于项目额度(按月项目为月额) |
| 422 | invalid_pagination | 须 cursor >= 0 且 limit 为 1..100 |
| 422 | invalid_url | Webhook URL 无法解析 |
| 422 | webhook_url_not_allowed | HTTPS 域名未在 allowlist(Mock 还接受 mock://local) |
| 429 | rate_limited | 本分钟超出读取 600 次或写入 300 次的默认额度(卡号读取另计,可按客户调整),见 Retry-After |
| 429 | provider_rate_limited | 上游限流,用同一 Idempotency-Key 重试 |
| 503 | provider_outcome_unknown | 上游结果未知,用同一 Key 重试 |
| 409 | default_budget_managed | 默认预算由用户钱包管理,请通过钱包划转接口调整资金 |
| 409 | holder_budget_not_ready | 用户默认预算尚未完成入金与渠道确认,暂不能开卡 |
| 409 | holder_wallet_unverified | 用户钱包归属或账本未通过核对,先完成对账 |
{
"error": {
"code": "insufficient_funds",
"message": "Insufficient unallocated wallet balance"
},
"request_id": "req_…"
}客户账户
2 个接口/v1/meGet current customer
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: Customer
curl -X GET https://api.reyvo.com/v1/me \ -H "Authorization: Bearer YOUR_API_KEY"
{
"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
}
}/v1/meUpdate customer contact profile (not login credentials)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
name | string | 可选 |
email | string | 可选 |
响应结构: Customer
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 '{}'{
"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 个接口/v1/capabilitiesGet 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)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: Capabilities
curl -X GET https://api.reyvo.com/v1/capabilities \ -H "Authorization: Bearer YOUR_API_KEY"
{
"mode": "mock",
"brex": {},
"bill": {},
"write_interval_ms": {},
"cross_channel_pool": "simulated_only",
"funding": "string",
"withdrawal": {
"fee_cents": 100000,
"min_cents": 100000
}
}持卡人
4 个接口/v1/cardholdersList cardholders
参数
| 字段 | 位置 | 必填 |
|---|---|---|
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 | 可选 |
响应结构: Cardholder[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/cardholders \ -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",
"name": "Campaign card",
"email": "finance@example.com",
"status": "active",
"provider_ids": {}
}
],
"next_cursor": "string",
"total": 0
}/v1/cardholdersCreate a tenant-owned cardholder
参数
| 字段 | 位置 | 必填 |
|---|---|---|
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
name | string | 必填 |
email | string | 必填 |
响应结构: Cardholder
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"}'{
"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": {}
}/v1/cardholders/{id}Get holder
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: Cardholder
curl -X GET https://api.reyvo.com/v1/cardholders/{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",
"name": "Campaign card",
"email": "finance@example.com",
"status": "active",
"provider_ids": {}
}/v1/cardholders/{id}Maintain local holder profile and activity
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
name | string | 可选 |
email | string | 可选 |
status | active | inactive | 可选 |
响应结构: Cardholder
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 '{}'{
"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 个接口/v1/projectsList projects
参数
| 字段 | 位置 | 必填 |
|---|---|---|
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 | 可选 |
响应结构: Project[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/projects \ -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",
"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
}/v1/projectsCreate 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-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
name | string | 必填 |
owner_id | string | 必填 |
channel | brex | bill | mixed | 必填 |
budget_cents | integer | 必填 |
kind | team | personal | 可选 |
limit_period | one_time | monthly | 可选 |
months | integer | 可选 |
group | string | 可选 |
响应结构: Project
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}'{
"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"
}/v1/projects/{id}Get project
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: Project
curl -X GET https://api.reyvo.com/v1/projects/{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",
"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"
}/v1/projects/{id}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)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
name | string | 可选 |
members | string[] | 可选 |
budget_cents | integer | 可选 |
group | string | null | 可选 |
响应结构: Project
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 '{}'{
"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"
}/v1/projects/{id}/archiveArchive a project (Mock only; live answers 404 not_found); funds stay for late refunds
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: Project
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 '{}'{
"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"
}/v1/projects/{id}/closeStop 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)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: Project
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 '{}'{
"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"
}/v1/projects/{id}/releaseRetire 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)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: Project
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 '{}'{
"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 个接口/v1/project-groupsList 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
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: ProjectGroup[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/project-groups \ -H "Authorization: Bearer YOUR_API_KEY"
{
"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
}/v1/project-groups/{group}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)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
group | path | 必填 |
响应结构: ProjectGroup
curl -X GET https://api.reyvo.com/v1/project-groups/{group} \
-H "Authorization: Bearer YOUR_API_KEY"{
"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 个接口/v1/cardsList cards
参数
| 字段 | 位置 | 必填 |
|---|---|---|
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 | 可选 |
响应结构: Card[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/cards \ -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",
"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
}/v1/cardsIssue 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-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
name | string | 必填 |
project_id | string | 可选 |
holder_id | string | 必填 |
channel | brex | bill | 可选 |
limit_cents | integer | 可选 |
amount_cents | integer | 可选 |
响应结构: Card
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_…"}'{
"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"
}/v1/cards/{id}Get card
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: Card
curl -X GET https://api.reyvo.com/v1/cards/{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",
"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"
}/v1/cards/{id}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)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
limit_cents | integer | 必填 |
响应结构: Card
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}'{
"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"
}/v1/cards/{id}/closeclose a card
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: Card
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 '{}'{
"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"
}/v1/cards/{id}/freezefreeze a card
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: Card
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 '{}'{
"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"
}/v1/cards/{id}/secure-detailsFetch issuer-hosted card details once; never stored by the platform
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: CardSecureDetails
curl -X GET https://api.reyvo.com/v1/cards/{id}/secure-details \
-H "Authorization: Bearer YOUR_API_KEY"{
"delivery": "number",
"number": "string",
"cvv": "string",
"expiration": "string",
"mock": false
}/v1/cards/{id}/syncRefresh masked card details and status from issuer
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: Card
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 '{}'{
"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"
}/v1/cards/{id}/unfreezeunfreeze 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)
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
{} · 请求字段
响应结构: Card
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 '{}'{
"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 个接口/v1/transactionsList transactions
参数
| 字段 | 位置 | 必填 |
|---|---|---|
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 | 可选 |
响应结构: Transaction[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/transactions \ -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",
"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
}/v1/transactions/{id}Get transaction
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: Transaction
curl -X GET https://api.reyvo.com/v1/transactions/{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",
"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 个接口/v1/challengesList challenges
参数
| 字段 | 位置 | 必填 |
|---|---|---|
cursor | query | 可选 |
limit | query | 可选 |
响应结构: Challenge[] · 返回分页列表
curl -X GET https://api.reyvo.com/v1/challenges \ -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",
"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
}/v1/challenges/{id}Get challenge
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
响应结构: Challenge
curl -X GET https://api.reyvo.com/v1/challenges/{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",
"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/challenges/{id}/decisionBILL 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.
参数
| 字段 | 位置 | 必填 |
|---|---|---|
id | path | 必填 |
Idempotency-Key | header | 必填 |
请求字段
| 字段 | 类型 | 必填 |
|---|---|---|
decision | accept | reject | 必填 |
响应结构: Challenge
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"}'{
"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"
}