Repository navigation
Document AgentCard card cart fields - #782
Open
hiroTamada wants to merge 1 commit into
Open
hiroTamada wants to merge 1 commit into
hiroTamada wants to merge 1 commit into
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
hiroTamada
marked this pull request as ready for review
November 23, 2026 21:36
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The AgentCard card item accepts an optional cart (
line_items,subtotal,shipping,tax,discount) that's shown on the cardholder's approval screen. The API, SDKs (0.153.0), CLI (0.53.0), and MCP server already support it, but the AgentCard page's item reference still listed onlycard_idandcheckout_originas optional and says unlisted fields are rejected. Integrators reading the docs were concluding that carts aren't supported.Changes
The item reference row and paragraph are identical to the AgentCard change in #746, so the two PRs merge cleanly in either order. This PR exists so the AgentCard page doesn't wait on that broader SDK docs update.
Testing
mint broken-linkspasses.Note
Low Risk
Documentation-only changes to the AgentCard integration page; no runtime or API behavior changes.
Overview
Updates the AgentCard integration guide so optional cart fields on card items are documented alongside the API/SDKs.
Adds a Show the cart on the approval screen section with TypeScript, Python, and CLI examples for
line_items,subtotal,shipping,tax, anddiscount, and explains that the cart is display-only, validated on card create/update, sent only for non-prepared checkouts, and must be re-specified on fullspecupdates.Extends the Item reference table and adds a paragraph describing cart field constraints (1–20 line items, required fields, minor units, dependency of totals on
line_items).Reviewed by Cursor Bugbot for commit 33430b9. Bugbot is set up for automated code reviews on this repo. Configure here.