Overview
Schema references for Commerce Graph, Action Path, Protocol Profile, Public Output, and Export shapes where implemented.
- Commerce Graph schema.
- Action Path schema.
- Protocol profile schema.
- Public output schema.
Commerce Graph schema
The Commerce Graph schema describes the approved business profile: identity, locations, offers, policies, sources, actions, graph version, and public/private field boundaries.
Action Path schema
The Action Path schema describes the approved next step for a customer intent: buy, book, inquire, request quote, call, WhatsApp, pay deposit, submit form, checkout, or fallback.
Protocol Profile schema
The Protocol Profile schema describes readiness and export status for ACP, UCP, MCP, A2A, AP2, AG-UI, A2UI, and JSON-LD surfaces without turning readiness into certification.
Public Output schema
Public output includes client id, graph version, status, data, links, and error envelopes. It exposes approved public data only unless partner access is explicitly configured and scoped.
Export schema
Partner and protocol exports identify what was included, what was excluded, when the export was generated, and which client brand and output type it belongs to.
Commerce Graph JSON schema excerpt
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://akii.com/schemas/commerce-graph.schema.json",
"type": "object",
"required": ["merchant_id", "graph_version", "business", "sources", "offers", "actions"],
"properties": {
"merchant_id": { "type": "string" },
"graph_version": { "type": "string" },
"status": { "enum": ["draft", "approved", "published"] },
"business": {
"type": "object",
"required": ["name", "website"],
"properties": {
"name": { "type": "string" },
"website": { "type": "string", "format": "uri" },
"category": { "type": "string" },
"locations": { "type": "array", "items": { "$ref": "#/$defs/location" } }
}
},
"offers": { "type": "array", "items": { "$ref": "#/$defs/offer" } },
"actions": { "type": "array", "items": { "$ref": "#/$defs/action_path" } },
"sources": { "type": "array", "items": { "$ref": "#/$defs/source" } }
}
}Action Path JSON schema excerpt
{
"$id": "https://akii.com/schemas/action-path.schema.json",
"type": "object",
"required": ["id", "type", "target", "status"],
"properties": {
"id": { "type": "string" },
"type": { "enum": ["buy", "book", "inquire", "request_quote", "call", "whatsapp", "pay_deposit", "submit_form", "checkout", "fallback"] },
"target": { "type": "string" },
"provider": { "type": "string" },
"required_inputs": { "type": "array", "items": { "type": "string" } },
"safe_test_status": { "enum": ["not_tested", "passing", "failing"] },
"status": { "enum": ["draft", "approved", "published", "disabled"] }
}
}Protocol Profile JSON schema excerpt
{
"$id": "https://akii.com/schemas/protocol-profile.schema.json",
"type": "object",
"required": ["merchant_id", "protocol", "status", "checked_at"],
"properties": {
"merchant_id": { "type": "string" },
"protocol": { "enum": ["acp", "ucp", "mcp", "a2a", "ap2", "ag-ui", "a2ui", "json-ld"] },
"status": { "enum": ["supported", "partial", "readiness", "export", "planned", "watchlist", "requires_verification"] },
"missing_fields": { "type": "array", "items": { "type": "string" } },
"safe_claim": { "type": "string" },
"limitations": { "type": "array", "items": { "type": "string" } },
"checked_at": { "type": "string", "format": "date-time" }
}
}Public Output JSON schema excerpt
{
"$id": "https://akii.com/schemas/public-output.schema.json",
"type": "object",
"required": ["merchant_id", "graph_version", "status", "data"],
"properties": {
"merchant_id": { "type": "string" },
"graph_version": { "type": "string" },
"status": { "enum": ["published", "disabled", "not_found", "error"] },
"data": { "type": "object" },
"links": { "type": "object", "additionalProperties": { "type": "string" } },
"error": { "$ref": "#/$defs/error" }
}
}Export JSON schema excerpt
{
"$id": "https://akii.com/schemas/export.schema.json",
"type": "object",
"required": ["export_id", "merchant_id", "type", "included", "excluded"],
"properties": {
"export_id": { "type": "string" },
"merchant_id": { "type": "string" },
"type": { "enum": ["partner", "protocol", "readiness", "graph", "action"] },
"included": { "type": "array", "items": { "type": "string" } },
"excluded": { "type": "array", "items": { "type": "string" } },
"generated_at": { "type": "string", "format": "date-time" }
}
}