{
  "openapi": "3.1.0",
  "info": {
    "title": "Western Chilled Distributors B2B Wholesale & Regional Distribution Partner API",
    "version": "1.1.0",
    "description": "Machine-to-Machine (M2M) & Agent-to-Agent (A2A) API for Western Chilled Distributors Pty Ltd (14 Barrett Street, Orange NSW 2800; ABN 68 624 712 134; NSW Food Authority Licences #36446 & #51515). Supports both: (A) Customer/Venue Procurement Agents querying our 152 stocked SKUs, checking 24-town route coverage, and submitting wholesale RFQs; and (B) Supplier/Manufacturer & 3PL Agents seeking a regional wholesale distribution or cold-storage/cross-docking partner across Central West & Orana NSW (330+ active weekly delivery stops).",
    "contact": {
      "name": "Western Chilled Distributors Trade & Partnerships Desk",
      "email": "orders@westchill.com",
      "url": "https://westchill.com"
    }
  },
  "servers": [
    {
      "url": "https://westchill.com",
      "description": "Production Web & A2A Discovery Server"
    }
  ],
  "paths": {
    "/api/search": {
      "get": {
        "operationId": "searchCatalogueAndRoutes",
        "summary": "Filter WCD's 152 stocked SKUs by keyword, category, brand, dietary spec, or check town/postcode route coverage.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Keyword, SKU code, product name, or brand (e.g. 'butter', 'milklab', 'mozzarella', '110mL')"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "MILK",
                "FLAVOURED",
                "CHEESE_BUTTER",
                "PLANT",
                "BAKERY",
                "JUICE",
                "CAKES",
                "COOKIES"
              ]
            },
            "description": "Product category code"
          },
          {
            "name": "dietary",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "GF",
                "LF",
                "Vegan",
                "SCHOOL",
                "AGEDCARE"
              ]
            },
            "description": "Dietary or institutional compliance filter"
          },
          {
            "name": "town",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Town name or 4-digit NSW postcode (e.g. 'Orange', 'Bathurst', 'Dubbo', 'Mudgee', '2800', '2795', '2830')"
          }
        ],
        "responses": {
          "200": {
            "description": "Matching SKUs and route coverage details."
          }
        }
      }
    },
    "/api/catalogue.json": {
      "get": {
        "operationId": "getWholesaleCatalogueAndRoutes",
        "summary": "Retrieve all 152 stocked wholesale SKUs, pack configurations, dietary specs, and 4 regional delivery route zones.",
        "responses": {
          "200": {
            "description": "Complete JSON wholesale catalogue and regional route metadata."
          }
        }
      }
    },
    "/api/suppliers.json": {
      "get": {
        "operationId": "getSupplierAnd3PLProspectus",
        "summary": "Retrieve WCD's Regional Distribution & 3PL Cold-Chain Partner Prospectus (330+ weekly stops, 24 towns, coldroom specs, and onboarding criteria for manufacturers and freight networks).",
        "responses": {
          "200": {
            "description": "Complete JSON supplier distribution & 3PL partnership prospectus."
          }
        }
      }
    },
    "/api/enquire": {
      "post": {
        "operationId": "submitCustomerWholesaleRFQ",
        "summary": "Submit a customer wholesale pricing quote request, trade account application, or supplier invoice-match basket.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "venue_name",
                  "town_and_postcode",
                  "contact_name"
                ],
                "properties": {
                  "venue_name": {
                    "type": "string"
                  },
                  "abn": {
                    "type": "string"
                  },
                  "sector": {
                    "type": "string"
                  },
                  "town_and_postcode": {
                    "type": "string"
                  },
                  "contact_name": {
                    "type": "string"
                  },
                  "contact_phone": {
                    "type": "string"
                  },
                  "contact_email": {
                    "type": "string"
                  },
                  "requested_skus": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "sku_code": {
                          "type": "string"
                        },
                        "product_name": {
                          "type": "string"
                        },
                        "estimated_weekly_qty": {
                          "type": "string"
                        },
                        "current_supplier_ex_gst_price": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "standing_order_sourcing_requests": {
                    "type": "string"
                  },
                  "notes": {
                    "type": "string"
                  },
                  "agent_identifier": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured RFQ confirmation with reference ID and matched route zone."
          }
        }
      }
    },
    "/api/supplier-pitch": {
      "post": {
        "operationId": "submitSupplierOr3PLPartnershipPitch",
        "summary": "Submit a new product range distribution proposal or 3PL cold-storage / final-mile cross-docking enquiry from a manufacturer, brand owner, or freight partner.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "company_name",
                  "contact_name"
                ],
                "properties": {
                  "company_name": {
                    "type": "string"
                  },
                  "brand_name": {
                    "type": "string"
                  },
                  "abn": {
                    "type": "string"
                  },
                  "partnership_type": {
                    "type": "string",
                    "enum": [
                      "WHOLESALE_DISTRIBUTION_PARTNER",
                      "REGIONAL_3PL_FINAL_MILE",
                      "BOTH"
                    ]
                  },
                  "product_category": {
                    "type": "string"
                  },
                  "storage_regime": {
                    "type": "string",
                    "enum": [
                      "Chilled 1C-4C",
                      "Frozen -18C",
                      "Ambient",
                      "Multi-Temp"
                    ]
                  },
                  "sku_summary_and_pack_sizes": {
                    "type": "string"
                  },
                  "shelf_life_and_moq": {
                    "type": "string"
                  },
                  "existing_regional_stockists_or_volumes": {
                    "type": "string"
                  },
                  "wholesale_pricing_or_3pl_notes": {
                    "type": "string"
                  },
                  "contact_name": {
                    "type": "string"
                  },
                  "contact_phone": {
                    "type": "string"
                  },
                  "contact_email": {
                    "type": "string"
                  },
                  "website_or_catalogue_url": {
                    "type": "string"
                  },
                  "agent_identifier": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured Supplier Partnership confirmation with reference ID and sector reach match."
          }
        }
      }
    },
    "/api/a2a": {
      "post": {
        "operationId": "handleA2AJsonRpcTask",
        "summary": "Google A2A Protocol JSON-RPC 2.0 endpoint supporting tasks/send for catalogue search, route checks, customer RFQs, and supplier/3PL partnership pitches.",
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 Task response."
          }
        }
      }
    }
  }
}