{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-price-segment-list-schema.json",
  "title": "PriceSegmentList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-price-segment-api-openapi.yml#/components/schemas/PriceSegmentList",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "title": "Object type",
      "description": "Will always be List."
    },
    "has_more": {
      "type": "boolean",
      "description": "Indicates there are more results on subsequent pages."
    },
    "next": {
      "type": "string",
      "description": "Path to subsequent page of results."
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PriceSegment"
      }
    }
  },
  "$defs": {
    "PriceSegment": {
      "type": "object",
      "properties": {
        "object": {
          "type": "string",
          "title": "Object type"
        },
        "id": {
          "$ref": "#/$defs/PriceSegmentId"
        },
        "code": {
          "$ref": "#/$defs/PriceSegmentCode"
        }
      }
    },
    "PriceSegmentCode": {
      "type": "string",
      "description": "The price segment code, e.g. `my-price-segment`.",
      "maxLength": 50,
      "pattern": "/^[a-z0-9_+-]+$/"
    },
    "PriceSegmentId": {
      "type": "string",
      "description": "The price segment ID, e.g. `e28zov4fw0v2`.",
      "maxLength": 50
    }
  }
}