{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/7digital/refs/heads/main/json-schema/streaming-platform-create-subscription-request-schema.json",
  "title": "CreateSubscriptionRequest",
  "description": "CreateSubscriptionRequest schema from 7digital API",
  "type": "object",
  "properties": {
    "userId": {
      "type": "string",
      "example": "500123"
    },
    "productId": {
      "type": "string",
      "example": "unlimited-streaming-monthly"
    },
    "startDate": {
      "type": "string",
      "format": "date",
      "example": "2026-05-28"
    },
    "endDate": {
      "type": "string",
      "format": "date",
      "description": "Subscription expiry. Maximum one month from startDate.",
      "example": "2026-06-28"
    },
    "country": {
      "type": "string",
      "example": "GB"
    }
  },
  "required": [
    "userId",
    "productId",
    "startDate",
    "endDate"
  ]
}