fix(server): align Python sample server with UCP 2026-04-08#91
Open
koustubh25 wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
Open
fix(server): align Python sample server with UCP 2026-04-08#91koustubh25 wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
koustubh25 wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
Conversation
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
Aligns the Python sample merchant server with the official UCP
2026-04-08release.Dependency chain for April validation:
Universal-Commerce-Protocol/python-sdk#28Universal-Commerce-Protocol/conformance#41This PR updates the Python server runtime to the April SDK/model layout so it can act as the reference merchant validation target for the April conformance suite.
Changes
ap2_mandate.dev.ucp.shoppingbuyer_consent.dev.ucp.shoppingdiscount.dev.ucp.shoppingfulfillment.dev.ucp.shopping2026-01-23to2026-04-08currencyinto the generatedOrdertotalsin the shape expected by the April modelsWhy
After switching the Python sample server to the April SDK branch, the server still had January-era assumptions in extension imports and in checkout completion order construction. That caused the sample merchant server to fail when used as the validation target for the April conformance suite.
Validation
Validated with:
python-sdk#28Universal-Commerce-Protocol/conformance#41Results:
rest/python/server/integration_test.pyOK (5 passed)conformance#41Scope
Included here:
Not included here: