| API 模块API Module | 全称Full Name | 核心功能Core Function | 触发方式Trigger |
|---|---|---|---|
| Cards | Cards API | 创建虚拟卡、冻结/解冻/注销、修改限额、查询卡片 Create virtual cards, freeze/unfreeze/cancel, modify limits, query cards | 我们主动调用 We call Corpay |
| Fund | Real-Time Funding API | 将银行账户资金实时充值到 Corpay 账户,需先通过 Plaid 关联银行 Fund Corpay account from bank in real-time; requires Plaid bank linkage first | 我们主动调用 We call Corpay |
| Txn | Transactions API | 查询历史交易记录(授权、结算、撤销、拒绝等) Query transaction history (authorization, settlement, reversal, decline, etc.) | 我们主动调用 We call Corpay |
| Webhook | Subscription API | 订阅卡片交易事件,Corpay 推送通知到我们的 URL(事后通知) Subscribe to card events; Corpay pushes notifications to our URL (post-transaction) | Corpay 主动推送 Corpay pushes |
| RTCA | Real-Time Card Authorization | 交易发生时 Corpay 实时回调我们,由我们决定批准/拒绝(事前拦截) Corpay calls our endpoint per transaction in real-time; we approve or decline (pre-transaction) | Corpay 实时回调 Corpay real-time callback |
accountCode、customer_id_virtual、customer_id_physicalProduction accountCode, customer_id_virtual, customer_id_physical083595242799852401 完成 ICD ProvisioningWebhook QA: ICD provisioning for user 083595242799852401机器对机器认证,用 Client ID + Secret 换取 Access Token,Token 有效期 60 分钟 Machine-to-machine auth. Exchange Client ID + Secret for an Access Token (valid 60 min)
用户名+密码登录,获取 IdToken 作为 Bearer Token,Token 有效期 60 分钟 Username + password login; obtain IdToken as Bearer Token (valid 60 min)
7qvcsa7398vr89b319hmkdeob2)?7qvcsa7398vr89b319hmkdeob2)?| 参数Parameter | 必填Required | QA 值QA Value | Prod 值Prod Value | 说明Description |
|---|---|---|---|---|
accountCode | ✅ | W-30P |
❓ 待 Corpay 提供❓ Pending from Corpay | 账户代码Account code |
customerId | ✅ | OP70T |
❓ 待 Corpay 提供❓ Pending from Corpay | 客户ID(虚拟卡)Customer ID (virtual card) |
maxRows | ❌ | 10 |
同左Same as QA | 每页条数Records per page |
pageNumber | ❌ | 1 |
同左Same as QA | 页码Page number |
cardStatus | ❌ | A |
同左Same as QA | A=激活 B=冻结 X=注销A=Active B=Frozen X=Cancelled |
| 字段Field | 必填Required | 说明Description |
|---|---|---|
customer.accountCode | ✅ | 账户代码Account code |
customer.id | ✅ | 客户IDCustomer ID |
card.type | ✅ | Virtual / Ghost / Physical |
card.amount | ✅ | 卡片金额(USD)Card amount (USD) |
card.firstName / lastName | ❌ | 持卡人姓名Cardholder name |
card.statusCode | ❌ | A=激活(默认)Active (default) |
| statusCode | 含义Meaning | 是否可逆Reversible |
|---|---|---|
A | 激活Active | ✅ |
B | 冻结Frozen | ✅ |
X | 永久注销Permanently Cancelled | ❌ 不可逆❌ Irreversible |
| 环境Environment | URL |
|---|---|
| QA | cpuiqa.corpay.com/enrollment/index.html |
| Production | cpui.corpay.com/enrollment/v2/index.html |
| 字段Field | 值Value |
|---|---|
company-id | ❌ Corpay 未提供 ❌ Not provided by Corpay |
from-type | 固定 Fixed: fund-account |
from | account-id(Step 5 获取)account-id (from Step 5) |
to | Corpay 账户代码Corpay account code |
currency-code | 固定 Fixed: usd |
| 参数Parameter | 必填Required | 说明Description |
|---|---|---|
customerId | ✅ | 客户ID(如 OP70T)Customer ID (e.g. OP70T) |
startDate | ❌ | 格式:YYYY-MM-DDTHH:MM:SSFormat: YYYY-MM-DDTHH:MM:SS |
endDate | ❌ | 同上Same format |
cardToken | ❌ | 按卡片过滤Filter by card token |
transactionType | ❌ | AUTHORIZATION / POST / DECLINE / REVERSAL |
083595242799852401 provision 为 ICD 用户(已提交请求,等待 Corpay 处理)061115641842162385 已被 Corpay 确认授权,但 Cognito 登录目前失败(密码过期 + Client ID 待确认)
❌ QA 403 Root Cause: Corpay has not provisioned QA user 083595242799852401 as an ICD user (request submitted, awaiting Corpay action)061115641842162385 confirmed authorized by Corpay, but Cognito login currently fails (password expired + Client ID unconfirmed)
| 字段Field | 必填Required | 说明Description |
|---|---|---|
event | ✅ | card-transaction-events 等card-transaction-events, etc. |
endpoint | ✅ | 我们接收通知的 URLOur webhook receiver URL |
securityPolicy | ❌ | 签名/API Key 验证Signature / API Key validation |
deliveryPolicy | ❌ | 重试次数/间隔Retry count / interval |
card-transaction-events — 卡片交易Card transactionscard-status-events — 卡片状态变更Card status changesaccount-customer-events — 账户事件Account eventsvendor-events — 供应商事件Vendor events
| 字段Field | 必填Required | 说明Description |
|---|---|---|
inAuthUrl | ✅ | 我们的回调 URLOur callback URL |
status | ✅ | ENABLED / DISABLED |
apiKey | ❌ | 安全密钥Security key |
signatureSecret | ❌ | 签名密钥Signature secret |
company-id 将在完成 Enrollment 后自动获得,无需单独向 Corpay 追要
Steps: Login Enrollment UI → Link bank via Plaid → Corpay Credit Team approval. company-id will be obtained automatically upon enrollment completion — no need to request it separately from Corpay
9Fh%jEhrK956 已过期失效,导致 Production 的 Transactions / Webhook / RTCA 均无法测试。同时需向 Corpay 确认:密码过期后是否可自行重置,以及 Production Cognito Client ID 是否独立
Password 9Fh%jEhrK956 has expired, blocking all Production Transactions / Webhook / RTCA testing. Also need Corpay to confirm: can we self-reset expired passwords, and is the Production Cognito Client ID separate from QA?
| 字段Field | QA 值QA Value | Production 值Production Value |
|---|---|---|
okta_domain |
https://fleetcor-icd.oktapreview.com |
https://fleetcor-icd.okta.com |
okta_authorization_server_id |
aus2l0d91irbotby80x7 |
aus4jf12zlOfttOcL417 |
okta_token_url |
...oktapreview.com/oauth2/aus2.../v1/token |
...okta.com/oauth2/aus4.../v1/token |
okta_scopes |
cards.write cards.:token.write cards.:token.read | |
client_id |
0oacv7038wxTkTUif0x7 |
0oatuup0ewNTax672417 |
client_secret |
HfMxz1wEyBZ8OezS5_rcjJ_e7VvE-xs-LRh4HJarlSUngcz8Xuern9Qqh91Sj_pS |
CNU5rvB0uF9IxSXYqOLV2r9XiSh33uFR-0HW2_6JXQWpUp9mi6fbdWfuI-ccNRCF |
| 字段Field | QA 值QA Value | Production 值Production Value |
|---|---|---|
cognito_region |
us-east-1 |
us-east-1 |
cognito_client_id |
7qvcsa7398vr89b319hmkdeob2 |
7qvcsa7398vr89b319hmkdeob2
⚠️ 沿用QA值,待确认
⚠️ Using QA value, unconfirmed
|
cognito_username |
083595242799852401 |
061115641842162385 |
cognito_password |
Testing123!
⚠️ 7天过期
⚠️ Expires in 7 days
|
9Fh%jEhrK956
❌ 已过期
❌ Expired
|
| 字段Field | QA 值QA Value | Production 值Production Value |
|---|---|---|
account_code |
W-30P |
❓ 待 Corpay 提供Pending from Corpay |
customer_id_virtual |
OP70T |
❓ 待 Corpay 提供Pending from Corpay |
customer_id_physical |
O27PT |
❓ 待 Corpay 提供Pending from Corpay |
company_idFund API 必填Required for Fund API |
❓ Enrollment 完成后自动获得Obtained after Enrollment | ❓ 同左Same as QA |
| 用途Purpose | 认证Auth | QA 地址QA URL | Production 地址Production URL |
|---|---|---|---|
| cards 卡片 APICards API |
Okta | https://api.vc-stg.corpay.com |
https://api.vc.corpay.com |
| transactions 交易查询Transactions |
Cognito | https://cp-transaction-eapi-qa.ca-ce1-ch2-d-000.api.fleetcor.com |
https://cp-transaction-eapi.api.fleetcor.com |
| subscriptions Webhook 订阅Webhook |
Cognito | https://subscribe.payqa.fleetcoraws.com/qa |
https://subscribe.fleetcorpayments.com |
| fund 资金充值Funding |
Okta | https://cpapiqa.corpay.com/v1/funds |
https://cpapi.corpay.com/v1/funds |
| fund_enrollment_ui 注册 UIEnrollment UI |
浏览器Browser | https://cpuiqa.corpay.com/enrollment/index.html |
https://cpui.corpay.com/enrollment/v2/index.html |
| authorization_controls RTCA |
Cognito |
https://subscribe.payqa.fleetcoraws.com/qa
❌ QA 不可用❌ QA unavailable
|
https://subscribe.fleetcorpayments.com |
| vcws 虚拟卡服务VCWS |
Basic | https://w6cert.iconnectdata.com/VCWS/services/VCWS |
https://w6.iconnectdata.com/VCWS/services/VCWS |
| onboarding 客户入驻Onboarding |
- | https://na-cp-domestic-onboarding-qa.ca-ce1-ch2-d-000.api.fleetcor.com |
https://na-cp-domestic-onboarding.api.fleetcor.com |