Skip to content

Document AgentCard card cart fields - #782

Open
hiroTamada wants to merge 1 commit into
mainfrom
hypeship/agentcard-cart-docs
Open

hiroTamada wants to merge 1 commit into
mainfrom
hypeship/agentcard-cart-docs

Conversation

@hiroTamada

@hiroTamada hiroTamada commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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 only card_id and checkout_origin as optional and says unlisted fields are rejected. Integrators reading the docs were concluding that carts aren't supported.

Changes

  • New Show the cart on the approval screen section under Create a card item, with TypeScript, Python, and CLI examples. It covers the per-line fields, that the cart is display-only, validation when the card is saved, that only non-prepared checkouts send it, and that updates must set the cart again.
  • Item reference: adds the cart fields to the card row and a paragraph with the rules.

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-links passes.

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, and discount, 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 full spec updates.

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.

@mintlify

mintlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Kernel 🟢 Ready View Preview Nov 23, 2026, 9:10 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@priscilla-kernel priscilla-kernel left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

looks good, thanks!

This branch was successfully deployed

1 active deployment
staging — 33430b92 Deployed Nov 23, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants