Skip to content

feat: add optional note field to line items#607

Open
hemanth wants to merge 3 commits into
Universal-Commerce-Protocol:mainfrom
hemanth:feat/line-item-note
Open

feat: add optional note field to line items#607
hemanth wants to merge 3 commits into
Universal-Commerce-Protocol:mainfrom
hemanth:feat/line-item-note

Conversation

@hemanth

@hemanth hemanth commented Jul 17, 2026

Copy link
Copy Markdown

Closes #349

Summary

Adds an optional note string field (max 500 chars) to the line item schema, allowing buyers to attach free-text per-item instructions.

Use cases

  • Food ordering: "no onions", "extra sauce"
  • Gift wrapping / engraving instructions
  • Voice agent scenarios: "make that a gift", "hold the pickles"

Changes

  • source/schemas/shopping/types/line_item.json: Added note property with maxLength: 500 and appropriate ucp_request annotations

Design decisions

  • Plain text only — structured customization belongs in catalog item variants
  • 500-char limit prevents abuse while covering reasonable instructions
  • Business echoes the note in responses (confirming receipt)
  • Business MAY forward to downstream fulfillment via order webhooks

@damaz91 damaz91 added the status:needs-triage Signal that the PR is ready for human triage label Jul 17, 2026
@jamesandersen

Copy link
Copy Markdown
Contributor

Hi @hemanth - thanks for the PR. JFYI - there are two other related PRs at play:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:needs-triage Signal that the PR is ready for human triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Line items have no field for buyer notes

3 participants