Protocol Integration
ACP Integration
Agentic Commerce Protocol integration via checkout session metadata.
This section is advisory.
ACP (Agentic Commerce Protocol) supports freeform JSON metadata on checkout sessions. The legalContext key is additive and does not affect existing session processing.
Checkout Session Metadata
{
"legalContext": {
"type": "sha256",
"value": "0x7f83b165..."
}
}The legalContext object is included in the checkout session metadata. ACP's session metadata is freeform JSON, so no schema changes are required.
Integration Flow
- Service creates a checkout session with
legalContextin the metadata - Agent reads the
legalContextfrom the session - Agent resolves the reference (fetches and verifies the terms)
- Agent completes checkout
The legal context reference travels with the checkout session through the entire lifecycle.