Modules
Business logic helpers for UCP Checkout Sessions.
ISO 4217 currency codes supported by UCP.
Business logic helpers for UCP discount capability.
Builder for the UCP Discovery Profile.
Error documents for API responses.
Fulfillment capability helpers: the method and destination types UCP defines, and the default business and platform configuration a handler advertises.
Behaviour for implementing UCP merchant handlers.
Idempotency store on a Cachex cache, for production: entries expire with the cache's default TTL, and Cachex's distributed routers keep records visible across nodes.
In-memory idempotency store on a named ETS table.
Storage behaviour for Bazaar.Plugs.Idempotency.
Business logic helpers for UCP Messages (errors, warnings, info).
Order documents: building one from a completed checkout, applying the updates a platform sends, and recording fulfillment events.
Phoenix controller that dispatches to your UCP/ACP handler.
Phoenix router macros for mounting UCP and ACP routes.
Platform profiles.
Idempotent replay for requests carrying an Idempotency-Key header.
The UCP request pipeline in one plug: Bazaar.Plugs.UCPHeaders followed by
Bazaar.Plugs.Idempotency.
Reads the UCP request headers and negotiates the protocol version.
Plug that validates incoming UCP requests against schemas.
Plug that validates outgoing UCP responses against schemas.
Exception raised when response validation fails in strict mode.
Protocol constants and status mappings for UCP and ACP protocols.
Transforms requests and responses between UCP and ACP protocol formats.
OpenAI product feed schema.
Capability (Business Schema)
Capability (Platform Schema)
Capability (Response Schema)
Identity Provider
Scope Policy
Location Complete Request
Location Create Request
Location Response
Location Update Request
Cart with Loyalty Complete Request
Catalog Lookup with Loyalty Complete Request
Catalog Search with Loyalty Complete Request
Checkout with Loyalty Complete Request
Cart with Loyalty Create Request
Catalog Lookup with Loyalty Create Request
Catalog Search with Loyalty Create Request
Checkout with Loyalty Create Request
Cart with Loyalty Response
Catalog Lookup with Loyalty Response
Catalog Search with Loyalty Response
Checkout with Loyalty Response
Cart with Loyalty Update Request
Catalog Lookup with Loyalty Update Request
Catalog Search with Loyalty Update Request
Checkout with Loyalty Update Request
Checkout with AP2 Mandate Complete Request
Checkout with AP2 Mandate Create Request
Checkout with AP2 Mandate Response
Checkout with AP2 Mandate Update Request
Checkout Complete Request
Checkout Create Request
Checkout Response
Checkout Update Request
Checkout with Split Payments Complete Request
Payment Instrument (Split Payments) Complete Request
Checkout with Split Payments Create Request
Payment Instrument (Split Payments) Create Request
Checkout with Split Payments Response
Payment Instrument (Split Payments) Response
Checkout with Split Payments Update Request
Payment Instrument (Split Payments) Update Request
Checkout with Payment Terms Complete Request
Order with Accepted Payment Term Complete Request
Order Payment with Accepted Term Complete Request
Payment with Terms Complete Request
Checkout with Payment Terms Create Request
Order with Accepted Payment Term Create Request
Order Payment with Accepted Term Create Request
Payment with Terms Create Request
Checkout with Payment Terms Response
Order with Accepted Payment Term Response
Order Payment with Accepted Term Response
Payment with Terms Response
Checkout with Payment Terms Update Request
Order with Accepted Payment Term Update Request
Order Payment with Accepted Term Update Request
Payment with Terms Update Request
Available Payment Instrument
Business Split Payments Config
Card Credential
Card Payment Instrument
Card Constraint Target
Constraint Expression
Daily Hour Complete Request
Daily Hour Create Request
Daily Hour Response
Daily Hour Update Request
Description
Error Response
Exception Hour Complete Request
Exception Hour Create Request
Exception Hour Response
Exception Hour Update Request
Instrument Group
Locality
Location Complete Request
Amenity Complete Request
Location Create Request
Amenity Create Request
Location Distance
Location Filter
Location Response
Amenity Response
Location Serves Complete Request
Location Serves Create Request
Location Serves Response
Location Serves Update Request
Location Summary Complete Request
Location Summary Create Request
Location Summary Response
Location Summary Update Request
Location Update Request
Amenity Update Request
Message Error
Message Info
Message Warning
Network Token Credential
PAN Credential
Payment Credential
Payment Identity
Payment Instrument
Selected Payment Instrument
Payment Schedule
Payment Term
Postal Address
Price Filter
Price Range
Quantity Unit
Request Constraints
Time Interval Complete Request
Time Interval Create Request
Time Interval Response
Time Interval Update Request
Token Credential Complete Request
Token Credential Create Request
Token Credential Response
Token Credential Update Request
Total Complete Request
Total Create Request
Total Response
Total Update Request
Totals Complete Request
Totals Create Request
Totals Response
Totals Update Request
Payment Handler (Business Schema)
Payment Handler (Platform Schema)
Payment Handler (Response Schema)
UCP Profile Document
Schema
UCP Business Profile Document
Ed25519 pairs with EdDSA
UCP Platform Profile Document
Schema
Service (Business Schema)
Service (Platform Schema)
Service (Response Schema)
Buyer with Consent Complete Request
Cart with Buyer Consent Complete Request
Checkout with Buyer Consent Complete Request
Buyer with Consent Create Request
Cart with Buyer Consent Create Request
Checkout with Buyer Consent Create Request
Buyer with Consent Response
Cart with Buyer Consent Response
Checkout with Buyer Consent Response
Buyer with Consent Update Request
Cart with Buyer Consent Update Request
Checkout with Buyer Consent Update Request
Cart Complete Request
Checkout with Cart Complete Request
Cart Create Request
Checkout with Cart Create Request
Cart Response
Checkout with Cart Response
Cart Update Request
Checkout with Cart Update Request
Checkout Complete Request
Checkout Create Request
Checkout Response
Checkout Update Request
Cart with Discount Complete Request
Checkout with Discount Complete Request
Cart with Discount Create Request
Checkout with Discount Create Request
Cart with Discount Response
Checkout with Discount Response
Cart with Discount Update Request
Checkout with Discount Update Request
Catalog Fulfillment Complete Request
Catalog Fulfillment Method Complete Request
Checkout with Fulfillment Complete Request
Catalog Fulfillment Create Request
Catalog Fulfillment Method Create Request
Checkout with Fulfillment Create Request
Catalog Fulfillment Response
Catalog Fulfillment Method Response
Checkout with Fulfillment Response
Catalog Fulfillment Update Request
Catalog Fulfillment Method Update Request
Checkout with Fulfillment Update Request
Order Complete Request
Platform Order Schema Complete Request
Order Create Request
Platform Order Schema Create Request
Order Response
Platform Order Schema Response
Order Update Request
Platform Order Schema Update Request
Adjustment
Availability
Business Fulfillment Config
Detail Option Value
Expectation
Fulfillment Available Method Complete Request
Fulfillment Available Method Create Request
Fulfillment Available Method Response
Fulfillment Available Method Update Request
Fulfillment Complete Request
Fulfillment Create Request
Fulfillment Destination Complete Request
Fulfillment Destination Create Request
Fulfillment Destination Filter
Fulfillment Destination Response
Fulfillment Destination Update Request
Fulfillment Event
Fulfillment Group Complete Request
Fulfillment Group Create Request
Fulfillment Group Response
Fulfillment Group Update Request
Fulfillment Method Complete Request
Fulfillment Method Create Request
Fulfillment Method Response
Fulfillment Method Update Request
Fulfillment Option Base Complete Request
Fulfillment Option Base Create Request
Fulfillment Option Base Response
Fulfillment Option Base Update Request
Fulfillment Option Complete Request
Fulfillment Option Create Request
Fulfillment Option Response
Fulfillment Option Update Request
Fulfillment Response
Fulfillment Update Request
Input Correlation
Item Complete Request
Item Create Request
Item Response
Item Update Request
Line Item Complete Request
Line Item Create Request
Line Item Response
Line Item Update Request
Business Location Destination Complete Request
Business Location Destination Create Request
Business Location Destination Response
Business Location Destination Update Request
Option Value
Order Confirmation
Order Line Item
Platform Fulfillment Config
Product Option
Search Filters
Selected Option
Shipping Destination Complete Request
Shipping Destination Create Request
Shipping Destination Response
Shipping Destination Update Request
Unit Price
A2A UCP Message Envelope
Embedded Transport Config
Embedded Protocol Message Envelope
JSON-RPC 2.0 Envelope
MCP Tool Call Envelope
UCP Business Schema Complete Request
UCP Platform Schema Complete Request
UCP Cart Response Schema Complete Request
UCP Catalog Response Schema Complete Request
UCP Checkout Response Schema Complete Request
UCP Location Response Schema Complete Request
UCP Order Response Schema Complete Request
UCP Business Schema Create Request
UCP Platform Schema Create Request
UCP Cart Response Schema Create Request
UCP Catalog Response Schema Create Request
UCP Checkout Response Schema Create Request
UCP Location Response Schema Create Request
UCP Order Response Schema Create Request
Schema
UCP Business Schema Response
Schema
UCP Platform Schema Response
UCP Cart Response Schema Response
UCP Catalog Response Schema Response
UCP Checkout Response Schema Response
UCP Location Response Schema Response
UCP Order Response Schema Response
UCP Business Schema Update Request
UCP Platform Schema Update Request
UCP Cart Response Schema Update Request
UCP Catalog Response Schema Update Request
UCP Checkout Response Schema Update Request
UCP Location Response Schema Update Request
UCP Order Response Schema Update Request
HTTP message signatures (RFC 9421) the way UCP uses them.
A signing key for UCP HTTP message signatures: EC P-256 (ES256) or Ed25519 (EdDSA), as the spec allows.
Telemetry events emitted by Bazaar.
Ready-to-use telemetry logger for Bazaar events.
Validates data against UCP and ACP schemas.
Custom JSV resolver for loading UCP schemas from the priv directory.
Order event delivery to platforms.
One order event to deliver: the order document encoded once, with the
Webhook-Id and Webhook-Timestamp that identify it. Nothing here changes
between delivery attempts, which is what lets the platform deduplicate
retries.
Retry helpers for webhook delivery.
Mix Tasks
Generates Elixir schema modules from UCP JSON Schema files.
Generates Elixir schema modules for all JSON Schema files in a directory.