Agent Legal Context
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

  1. Service creates a checkout session with legalContext in the metadata
  2. Agent reads the legalContext from the session
  3. Agent resolves the reference (fetches and verifies the terms)
  4. Agent completes checkout

The legal context reference travels with the checkout session through the entire lifecycle.