{
  "protocolVersion": "0.3.0",
  "name": "Being Basics Shopping Agent",
  "description": "Agent2Agent (A2A) interface to the Being Basics online store. Search the catalog, look up products, and browse categories over the public WooCommerce Store API.",
  "url": "https://beingbasics.com/wp-json/bb/v1/a2a",
  "preferredTransport": "JSONRPC",
  "supportedInterfaces": [
    { "url": "https://beingbasics.com/wp-json/bb/v1/a2a", "transport": "JSONRPC" }
  ],
  "additionalInterfaces": [
    { "url": "https://beingbasics.com/wp-json/bb/v1/a2a", "transport": "JSONRPC" }
  ],
  "version": "1.0.0",
  "documentationUrl": "https://beingbasics.com/openapi.json",
  "provider": {
    "organization": "Being Basics",
    "url": "https://beingbasics.com"
  },
  "capabilities": {
    "streaming": false,
    "pushNotifications": false,
    "stateTransitionHistory": false,
    "extensions": [
      {
        "uri": "https://github.com/google-agentic-commerce/ap2/tree/v0.1",
        "description": "Being Basics acts as the AP2 merchant: it presents carts and hands off to its hosted Stripe/Vipps checkout to complete payment.",
        "required": true,
        "params": {
          "roles": ["merchant"],
          "payment_methods": ["stripe", "vipps"],
          "currency": "NOK"
        }
      }
    ]
  },
  "defaultInputModes": ["text/plain", "application/json"],
  "defaultOutputModes": ["application/json", "text/plain"],
  "skills": [
    {
      "id": "search_products",
      "name": "Search products",
      "description": "Search the Being Basics catalog by free text. Returns matching products with id, name, price, currency, stock and URL.",
      "tags": ["shopping", "catalog", "search", "ecommerce"],
      "examples": [
        "Find black t-shirts",
        "Search for socks under 200 NOK"
      ],
      "inputModes": ["text/plain", "application/json"],
      "outputModes": ["application/json", "text/plain"]
    },
    {
      "id": "get_product",
      "name": "Get product",
      "description": "Fetch full details for one product by its numeric id.",
      "tags": ["shopping", "catalog", "product"],
      "examples": ["Get details for product 1234"]
    },
    {
      "id": "list_categories",
      "name": "List categories",
      "description": "List the store's product categories with item counts and URLs.",
      "tags": ["shopping", "catalog", "categories"],
      "examples": ["What product categories are available?"]
    },
    {
      "id": "create_checkout",
      "name": "Create checkout (AP2)",
      "description": "AP2 merchant handoff. Returns the hosted Being Basics checkout URL and supported payment methods (Stripe, Vipps) so payment completes on the merchant's PCI-compliant hosted page.",
      "tags": ["shopping", "checkout", "payment", "ap2"],
      "examples": ["Check out my cart", "Pay for these items"]
    }
  ]
}
