{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postbye-com/json-schema/postbye-com-company-schema.json",
  "title": "Company",
  "description": "The public facts on a company's guide page at https://postbye.com/cancel/{slug}.",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/postbye-com-api-openapi.json#/components/schemas/Company",
  "type": "object",
  "required": [
    "name",
    "slug",
    "category",
    "method",
    "how_to_cancel",
    "website",
    "verified",
    "verified_on",
    "postbye_can_mail_letter",
    "page_url",
    "address_page_url"
  ],
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "description": "Name shown on the guide page."
    },
    "slug": {
      "type": "string",
      "description": "The company's current slug."
    },
    "category": {
      "type": [
        "string",
        "null"
      ],
      "description": "Category hub label, for example Streaming."
    },
    "method": {
      "type": "string",
      "enum": [
        "letter",
        "email",
        "both"
      ],
      "description": "How the company accepts cancellations in Postbye's database."
    },
    "how_to_cancel": {
      "type": "string",
      "description": "One line on how the company takes cancellations."
    },
    "website": {
      "type": [
        "string",
        "null"
      ],
      "description": "The company's website."
    },
    "verified": {
      "type": "boolean",
      "description": "True when the facts were checked by hand against the company's own pages."
    },
    "verified_on": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Date of that check."
    },
    "postbye_can_mail_letter": {
      "type": "boolean",
      "description": "True when a mailing address is on file (or the letter goes to the member's home club), so Postbye can mail a cancellation letter."
    },
    "page_url": {
      "type": "string",
      "format": "uri",
      "description": "The guide page."
    },
    "address_page_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The where-to-send page with the mailing addresses on file; null when none."
    }
  }
}