docs: sync card documentation with PENDING_AUTH state#606
Conversation
Sync Mintlify card documentation with OpenAPI schema changes from commits 5ebb4e0 and ea40e01. Cards backed by Embedded Wallet funding sources now enter PENDING_AUTH state until delegated key authorization is completed via POST /auth/delegated-keys. Updated: - Card lifecycle table in intro snippet (5 → 6 states) - State diagram and table in issuing-cards snippet - Webhook event trigger list in webhooks snippet Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Greptile SummaryThis PR syncs the card documentation with the
Confidence Score: 3/5The lifecycle diagram misrepresents the card flow for the common non-Embedded Wallet case, which is worth fixing before publishing. The ASCII diagram in mintlify/snippets/cards/issuing-cards.mdx — the ASCII diagram needs a direct PROCESSING → ACTIVE branch for non-Embedded Wallet cards
|
| Filename | Overview |
|---|---|
| mintlify/snippets/cards/issuing-cards.mdx | ASCII lifecycle diagram now routes all cards through PENDING_AUTH, dropping the direct PROCESSING → ACTIVE path used by non-Embedded Wallet cards; state table text is accurate but contradicts the diagram. |
| mintlify/snippets/cards/intro.mdx | PENDING_AUTH row inserted before PROCESSING in the lifecycle table, breaking the sequential lifecycle order shown in issuing-cards.mdx. |
| mintlify/snippets/cards/webhooks.mdx | CARD.STATE_CHANGE triggers correctly extended with PROCESSING → PENDING_AUTH and PENDING_AUTH → ACTIVE transitions; no issues found. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[POST /cards] --> B[PROCESSING]
B -->|"Non-Embedded Wallet card"| D[ACTIVE]
B -->|"Embedded Wallet card"| C[PENDING_AUTH]
B -->|"Issuer rejects provisioning"| F[CLOSED]
C -->|"POST /auth/delegated-keys completed"| D
C --> F
D --> E[FROZEN]
E --> D
D --> F
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[POST /cards] --> B[PROCESSING]
B -->|"Non-Embedded Wallet card"| D[ACTIVE]
B -->|"Embedded Wallet card"| C[PENDING_AUTH]
B -->|"Issuer rejects provisioning"| F[CLOSED]
C -->|"POST /auth/delegated-keys completed"| D
C --> F
D --> E[FROZEN]
E --> D
D --> F
Prompt To Fix All With AI
Fix the following 2 code review issues. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 2
mintlify/snippets/cards/issuing-cards.mdx:34-41
**Direct `PROCESSING → ACTIVE` path missing from lifecycle diagram**
The new diagram routes all cards through `PENDING_AUTH`, but the state table directly below (and the webhooks page) confirm that `PENDING_AUTH` _"only appears for Embedded Wallet-funded cards."_ Regular cards still follow `PROCESSING → ACTIVE` directly. Any developer who reads this diagram first will conclude that `PENDING_AUTH` is mandatory for every card, which contradicts the conditional path described in the text.
### Issue 2 of 2
mintlify/snippets/cards/intro.mdx:27-29
The table in `intro.mdx` lists states in lifecycle order (PENDING_KYC → PROCESSING → ACTIVE → FROZEN → CLOSED), but `PENDING_AUTH` has been inserted between `PENDING_KYC` and `PROCESSING`. In the actual lifecycle, `PENDING_AUTH` occurs after `PROCESSING` — as correctly shown in the `issuing-cards.mdx` state table. Placing it before `PROCESSING` here will confuse developers trying to map the sequence.
```suggestion
| `PENDING_KYC` | Cardholder has not finished KYC; the card cannot transact yet. |
| `PROCESSING` | Card has been requested and is being provisioned with the issuer. |
| `PENDING_AUTH` | Card is backed by an Embedded Wallet funding source and the cardholder has not yet completed delegated signing authorization via `POST /auth/delegated-keys`. The card cannot transact. |
```
Reviews (1): Last reviewed commit: "docs: add PENDING_AUTH state to card doc..." | Re-trigger Greptile
| ```text | ||
| PROCESSING ──► ACTIVE ──► FROZEN ──► ACTIVE ──► CLOSED | ||
| │ │ ▲ | ||
| │ └──────────────────────────────┘ | ||
| PROCESSING ──► PENDING_AUTH ──► ACTIVE ──► FROZEN ──► ACTIVE ──► CLOSED | ||
| │ │ │ ▲ | ||
| │ │ └──────────────────────────────┘ | ||
| │ └──────────────────────────────────────────────┘ | ||
| │ | ||
| └─► CLOSED (stateReason: ISSUER_REJECTED) | ||
| ``` |
There was a problem hiding this comment.
Direct
PROCESSING → ACTIVE path missing from lifecycle diagram
The new diagram routes all cards through PENDING_AUTH, but the state table directly below (and the webhooks page) confirm that PENDING_AUTH "only appears for Embedded Wallet-funded cards." Regular cards still follow PROCESSING → ACTIVE directly. Any developer who reads this diagram first will conclude that PENDING_AUTH is mandatory for every card, which contradicts the conditional path described in the text.
Prompt To Fix With AI
This is a comment left during a code review.
Path: mintlify/snippets/cards/issuing-cards.mdx
Line: 34-41
Comment:
**Direct `PROCESSING → ACTIVE` path missing from lifecycle diagram**
The new diagram routes all cards through `PENDING_AUTH`, but the state table directly below (and the webhooks page) confirm that `PENDING_AUTH` _"only appears for Embedded Wallet-funded cards."_ Regular cards still follow `PROCESSING → ACTIVE` directly. Any developer who reads this diagram first will conclude that `PENDING_AUTH` is mandatory for every card, which contradicts the conditional path described in the text.
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| | `PENDING_KYC` | Cardholder has not finished KYC; the card cannot transact yet. | | ||
| | `PENDING_AUTH` | Card is backed by an Embedded Wallet funding source and the cardholder has not yet completed delegated signing authorization via `POST /auth/delegated-keys`. The card cannot transact. | | ||
| | `PROCESSING` | Card has been requested and is being provisioned with the issuer. | |
There was a problem hiding this comment.
The table in
intro.mdx lists states in lifecycle order (PENDING_KYC → PROCESSING → ACTIVE → FROZEN → CLOSED), but PENDING_AUTH has been inserted between PENDING_KYC and PROCESSING. In the actual lifecycle, PENDING_AUTH occurs after PROCESSING — as correctly shown in the issuing-cards.mdx state table. Placing it before PROCESSING here will confuse developers trying to map the sequence.
| | `PENDING_KYC` | Cardholder has not finished KYC; the card cannot transact yet. | | |
| | `PENDING_AUTH` | Card is backed by an Embedded Wallet funding source and the cardholder has not yet completed delegated signing authorization via `POST /auth/delegated-keys`. The card cannot transact. | | |
| | `PROCESSING` | Card has been requested and is being provisioned with the issuer. | | |
| | `PENDING_KYC` | Cardholder has not finished KYC; the card cannot transact yet. | | |
| | `PROCESSING` | Card has been requested and is being provisioned with the issuer. | | |
| | `PENDING_AUTH` | Card is backed by an Embedded Wallet funding source and the cardholder has not yet completed delegated signing authorization via `POST /auth/delegated-keys`. The card cannot transact. | |
Prompt To Fix With AI
This is a comment left during a code review.
Path: mintlify/snippets/cards/intro.mdx
Line: 27-29
Comment:
The table in `intro.mdx` lists states in lifecycle order (PENDING_KYC → PROCESSING → ACTIVE → FROZEN → CLOSED), but `PENDING_AUTH` has been inserted between `PENDING_KYC` and `PROCESSING`. In the actual lifecycle, `PENDING_AUTH` occurs after `PROCESSING` — as correctly shown in the `issuing-cards.mdx` state table. Placing it before `PROCESSING` here will confuse developers trying to map the sequence.
```suggestion
| `PENDING_KYC` | Cardholder has not finished KYC; the card cannot transact yet. |
| `PROCESSING` | Card has been requested and is being provisioned with the issuer. |
| `PENDING_AUTH` | Card is backed by an Embedded Wallet funding source and the cardholder has not yet completed delegated signing authorization via `POST /auth/delegated-keys`. The card cannot transact. |
```
How can I resolve this? If you propose a fix, please make it concise.
Summary
PENDING_AUTHstate added in docs(openapi): document card pending auth state #591 and add card-scoped /auth/delegated-keys endpoints #574PENDING_AUTHuntil delegated key authorization is completed viaPOST /auth/delegated-keysChanges
mintlify/snippets/cards/intro.mdx
PENDING_AUTHto the card lifecycle table (5 → 6 states)mintlify/snippets/cards/issuing-cards.mdx
PENDING_AUTHin the lifecycle flowPENDING_AUTHto the state table with descriptionmintlify/snippets/cards/webhooks.mdx
CARD.STATE_CHANGEevent triggers to includePENDING_AUTHtransitionsTest plan
🤖 Generated with Claude Code