{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-external-product-create-schema.json",
  "title": "ExternalProductCreate",
  "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/ExternalProductCreate",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "External product name."
    },
    "plan_id": {
      "type": "string",
      "description": "Recurly plan UUID."
    },
    "external_product_references": {
      "type": "array",
      "title": "External Product References",
      "description": "List of external product references of the external product.",
      "items": {
        "$ref": "#/$defs/ExternalProductReferenceBase"
      }
    }
  },
  "required": [
    "name"
  ],
  "$defs": {
    "ExternalProductReferenceBase": {
      "type": "object",
      "properties": {
        "reference_code": {
          "type": "string",
          "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.",
          "maxLength": 255
        },
        "external_connection_type": {
          "$ref": "#/$defs/ExternalProductReferenceConnectionType"
        }
      }
    },
    "ExternalProductReferenceConnectionType": {
      "type": "string",
      "description": "Represents the connection type. One of the connection types of your enabled App Connectors"
    }
  }
}