{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-price-segment-schema.json",
  "title": "PriceSegment",
  "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/PriceSegment",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "title": "Object type"
    },
    "id": {
      "$ref": "#/$defs/PriceSegmentId"
    },
    "code": {
      "$ref": "#/$defs/PriceSegmentCode"
    }
  },
  "$defs": {
    "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
    }
  }
}