{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-external-product-list-schema.json",
  "title": "ExternalProductList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-external-product-api-openapi.yml#/components/schemas/ExternalProductList",
  "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/ExternalProduct"
      }
    }
  },
  "$defs": {
    "ExternalProduct": {
      "type": "object",
      "description": "Product from an external resource such as Apple App Store or Google Play Store.",
      "properties": {
        "id": {
          "type": "string",
          "title": "External product ID.",
          "description": "System-generated unique identifier for an external product ID, e.g. `e28zov4fw0v2`."
        },
        "object": {
          "type": "string",
          "title": "Object type"
        },
        "name": {
          "type": "string",
          "title": "Name",
          "description": "Name to identify the external product in Recurly."
        },
        "plan": {
          "$ref": "#/$defs/PlanMini"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the external product was created in Recurly."
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the external product was updated in Recurly."
        },
        "external_product_references": {
          "type": "array",
          "title": "External Product References",
          "description": "List of external product references of the external product.",
          "items": {
            "$ref": "#/$defs/ExternalProductReferenceMini"
          }
        }
      }
    },
    "ExternalProductReferenceMini": {
      "type": "object",
      "title": "External Product Reference details",
      "description": "External Product Reference details",
      "properties": {
        "id": {
          "type": "string",
          "title": "External Product ID",
          "description": "System-generated unique identifier for an external product ID, e.g. `e28zov4fw0v2`."
        },
        "object": {
          "type": "string",
          "title": "object"
        },
        "reference_code": {
          "type": "string",
          "title": "reference_code",
          "description": "A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store."
        },
        "external_connection_type": {
          "type": "string",
          "title": "external_connection_type",
          "description": "Source connection platform."
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the external product was created in Recurly."
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the external product was updated in Recurly."
        }
      }
    },
    "PlanCode": {
      "type": "string",
      "title": "Plan code",
      "description": "Unique code to identify the plan. This is used in Hosted Payment Page URLs and in the invoice exports.",
      "pattern": "/^[a-z0-9_+-]+$/",
      "maxLength": 50
    },
    "PlanMini": {
      "type": "object",
      "title": "Plan mini details",
      "description": "Just the important parts.",
      "properties": {
        "id": {
          "type": "string",
          "title": "Plan ID",
          "maxLength": 13,
          "readOnly": true
        },
        "object": {
          "type": "string",
          "title": "Object type",
          "readOnly": true
        },
        "code": {
          "$ref": "#/$defs/PlanCode"
        },
        "name": {
          "$ref": "#/$defs/PlanName"
        }
      }
    },
    "PlanName": {
      "type": "string",
      "title": "Name",
      "description": "This name describes your plan and will appear on the Hosted Payment Page and the subscriber's invoice.",
      "maxLength": 255
    }
  }
}