{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/africacompliancedata-com/json-schema/africacompliancedata-com-rate-on-date-schema.json",
  "title": "RateOnDate",
  "description": "A withholding or treaty rate on the date asked. status not_covered: no dated period covers that date (no rate is given; the current rates are shown separately for reference).",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/africacompliancedata-com-openapi.json#/components/schemas/RateOnDate",
  "type": "object",
  "properties": {
    "payment_type": {
      "type": "string"
    },
    "partner": {
      "type": "string"
    },
    "income": {
      "type": "string",
      "enum": [
        "dividends",
        "interest",
        "royalties",
        "technical_fees"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "covered",
        "not_covered"
      ]
    },
    "resident_rate": {
      "type": [
        "number",
        "null"
      ],
      "description": "Only when the period covers it"
    },
    "non_resident_rate": {
      "type": [
        "number",
        "null"
      ],
      "description": "Only when the period covers it"
    },
    "rate": {
      "type": [
        "number",
        "string",
        "null"
      ],
      "description": "Treaty rate (a number, 'a/b' or 'none'; null: the treaty does not limit the source state)"
    },
    "from": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "to": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "from_note": {
      "type": "string"
    },
    "legal_basis": {
      "type": "string"
    },
    "source_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_note": {
      "type": "string"
    },
    "source_type": {
      "type": "string",
      "description": "e.g. press: the date is known from a press report of the official announcement"
    },
    "confidence": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "notes": {
      "type": "string"
    }
  }
}