{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/collectly/json-schema/collectly-partners-apisubscription-schema.json",
  "title": "PartnersAPISubscription",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/collectly-subscriptions-api-openapi.yml#/components/schemas/PartnersAPISubscription",
  "properties": {
    "amount": {
      "minimum": 1,
      "type": "number"
    },
    "billing_provider_id": {
      "format": "int32",
      "type": "integer"
    },
    "cadence": {
      "enum": [
        "monthly",
        "weekly",
        "biweekly"
      ],
      "type": "string"
    },
    "client_id": {
      "writeOnly": true
    },
    "company_id": {
      "writeOnly": true
    },
    "cpt_code": {
      "type": "string"
    },
    "diagnosis_code": {
      "type": "string"
    },
    "diagnosis_code_type": {
      "type": "string"
    },
    "id": {
      "readOnly": true,
      "type": "string"
    },
    "location_id": {
      "type": "string"
    },
    "name": {
      "minLength": 1,
      "type": [
        "string",
        "null"
      ]
    },
    "patient_id": {
      "writeOnly": true
    },
    "payment_method_id": {
      "format": "int32",
      "type": "integer"
    },
    "place_of_service": {
      "enum": [
        "65",
        "56",
        "04",
        "33",
        "50",
        "06",
        "32",
        "20",
        "81",
        "41",
        "60",
        "23",
        "51",
        "01",
        "34",
        "62",
        "31",
        "52",
        "22",
        "72",
        "13",
        "57",
        "10",
        "49",
        "61",
        "03",
        "09",
        "54",
        "55",
        "14",
        "66",
        "05",
        "99",
        "24",
        "08",
        "21",
        "17",
        "27",
        "07",
        "19",
        "18",
        "11",
        "12",
        "58",
        "02",
        "53",
        "42",
        "16",
        "71",
        "15",
        "25",
        "26"
      ],
      "type": "string"
    },
    "rendering_provider_id": {
      "format": "int32",
      "type": "integer"
    },
    "secret": {
      "readOnly": true,
      "type": "string"
    },
    "start_date": {
      "format": "date",
      "type": "string"
    },
    "status": {
      "enum": [
        "active",
        "pending"
      ],
      "type": "string"
    }
  },
  "required": [
    "amount",
    "billing_provider_id",
    "cadence",
    "cpt_code",
    "diagnosis_code",
    "diagnosis_code_type",
    "location_id",
    "name",
    "place_of_service",
    "rendering_provider_id",
    "start_date"
  ],
  "type": "object"
}