Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mintlify/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mintlify/snippets/cards/issuing-cards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ curl -X POST "$GRID_BASE_URL/cards" \
| Field | Required | Notes |
|-------|----------|-------|
| `customerId` | Yes | The `Customer` that owns the card. Must be `kycStatus: APPROVED`. |
| `platformCardId` | No | Ignored if supplied. The value on the returned `Card` is generated by the server. |
| `platformCardId` | No | Your own identifier for the card. Generated by the system if you omit it. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Caller identifier is ignored

When a caller supplies platformCardId, this text promises that it becomes their identifier for the card. Card issuance currently ignores that value and returns a generated one, while the card-list API supports filtering by platformCardId. A caller following this guide can therefore fail to find or correlate the created card using the identifier they supplied. This violates the repository directive to prioritize accurate, usable documentation; the docs need to describe the current behavior until the API honors caller-supplied values.

Context Used: mintlify/AGENTS.md (source)

Knowledge Base Used: Cards API

Prompt To Fix With AI
This is a comment left during a code review.
Path: mintlify/snippets/cards/issuing-cards.mdx
Line: 24

Comment:
**Caller identifier is ignored**

When a caller supplies `platformCardId`, this text promises that it becomes their identifier for the card. Card issuance currently ignores that value and returns a generated one, while the card-list API supports filtering by `platformCardId`. A caller following this guide can therefore fail to find or correlate the created card using the identifier they supplied. This violates the repository directive to prioritize accurate, usable documentation; the docs need to describe the current behavior until the API honors caller-supplied values.

**Context Used:** mintlify/AGENTS.md ([source](https://github.com/lightsparkdev/grid-api/blob/main/mintlify/AGENTS.md))

**Knowledge Base Used:** [Cards API](https://app.greptile.com/lightspark/-/custom-context/knowledge-base/lightsparkdev/grid-api/-/docs/cards-api.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

| `form` | Yes | `VIRTUAL` in v1. `PHYSICAL` will be added later. |
| `fundingSource` | Yes | The `InternalAccount` that funds the card. Must belong to the customer and be denominated in a card-eligible currency. |
| `maxSpendPerTransaction` | No | The largest amount the card can authorize on a single transaction, in the smallest unit of the card's currency (cents for USD). An authorization for exactly the limit is allowed; a later clearing can still settle above it (e.g. a restaurant tip). Omit for no limit. Available only on card programs where Grid makes the authorization decision. |
Expand Down
4 changes: 2 additions & 2 deletions mintlify/snippets/cards/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ curl -X POST "$GRID_BASE_URL/cards" \
```

The card comes back in `status: "PROCESSING"` while the issuer
provisions it. `platformCardId` is generated by the server, and any value
supplied in the request is ignored. When activation completes, a
provisions it. `platformCardId` is generated by the system when you do not
supply one on the request. When activation completes, a
`CARD.STATUS_CHANGE` webhook fires with `status: "ACTIVE"`:

```json
Expand Down
4 changes: 2 additions & 2 deletions openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions openapi/components/schemas/cards/Card.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ properties:
example: Customer:019542f5-b3e7-1d02-0000-000000000001
platformCardId:
type: string
description: >-
Platform-specific card identifier generated by the server.
description: Platform-specific card identifier
example: card-emp-001
status:
$ref: ./CardStatus.yaml
Expand Down
4 changes: 2 additions & 2 deletions openapi/components/schemas/cards/CardCreateRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ properties:
platformCardId:
type: string
description: >-
Platform-specific card identifier. Always generated by the server; any
value supplied in the request is ignored.
Platform-specific card identifier. If not provided, one will be
generated by the system.
example: card-emp-001
threeDSecurePassword:
type: string
Expand Down
Loading