{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/subotiz-com/json-schema/subotiz-com-api-auth-customer-portal-request-schema.json",
  "title": "ApiAuthCustomerPortalRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/subotiz-com-customer-portal-api-openapi.yml#/components/schemas/ApiAuthCustomerPortalRequest",
  "required": [
    "customer_id"
  ],
  "type": "object",
  "properties": {
    "customer_id": {
      "type": "string",
      "description": "Subotiz customer unique identifier"
    },
    "locale": {
      "type": "string",
      "description": "Customer portal language/locale, e.g. \"en-US\", \"zh-CN\""
    },
    "landing": {
      "allOf": [
        {
          "$ref": "#/$defs/Landing"
        }
      ],
      "description": "Landing target (optional)"
    }
  },
  "$defs": {
    "Landing": {
      "type": "object",
      "properties": {
        "page": {
          "type": "string",
          "description": "Landing page type: subscriptions / payment_methods / invoices / profile / subscription_detail"
        },
        "subscription_id": {
          "type": "string",
          "description": "Secondary page parameter: subscription ID (required when page=subscription_detail)"
        },
        "mode": {
          "type": "string",
          "description": "Secondary page parameter: action mode (required when page=subscription_detail), currently only \"change_payment_method\""
        }
      }
    }
  }
}