Skip to content

fix(rest/python): reject fulfillment line_item_ids that match no line item - #278

Open
aksharprabhudesai wants to merge 1 commit into
Universal-Commerce-Protocol:mainfrom
aksharprabhudesai:fix/python-reject-unknown-line-item-ids
Open

aksharprabhudesai wants to merge 1 commit into
Universal-Commerce-Protocol:mainfrom
aksharprabhudesai:fix/python-reject-unknown-line-item-ids

Conversation

@aksharprabhudesai

Copy link
Copy Markdown
Contributor

Fixes #277

Description

Fulfillment methods and groups could reference line_item_ids that match no line item. They were skipped silently when quoting shipping, so item-based shipping promotions didn't apply and the same order could be priced two ways.

Create and update now reject an unknown id with 400 INVALID_REQUEST, naming the id and listing the checkout's line items. Two test fixtures that used product ids as line item ids now omit them on create (meaning all items) or use the server-assigned ids on update. Added a regression test.

Thanks @sanjanar06 for the clear write-up and reproduction.

@damaz91 damaz91 added the status:needs-triage Signal that the PR is ready for human triage label Nov 5, 2026
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.

[Bug]: fulfillment line_item_ids that match no line item are accepted, and shipping promotions are silently skipped

2 participants