{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/youtube/json-schema/youtube-third-party-link-list-response-schema.json",
  "title": "ThirdPartyLinkListResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/youtube-youtube-third-party-links-api-openapi.yml#/components/schemas/ThirdPartyLinkListResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ThirdPartyLink"
      }
    },
    "kind": {
      "type": "string",
      "default": "youtube#thirdPartyLinkListResponse",
      "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#thirdPartyLinkListResponse\"."
    },
    "etag": {
      "description": "Etag of this resource.",
      "type": "string"
    }
  },
  "$defs": {
    "ChannelToAffiliateProgramLinkDetails": {
      "properties": {
        "statusUpdateReason": {
          "description": "Optional. Reason for the last update of the affiliate program status.",
          "type": "string"
        },
        "programStatus": {
          "enum": [
            "affiliateProgramStatusUnspecified",
            "active",
            "inactive"
          ],
          "description": "Required. Affiliate program status.",
          "type": "string"
        },
        "merchantId": {
          "format": "uint64",
          "description": "Required. Google Merchant Center ID of the partner.",
          "type": "string"
        },
        "statusUpdateTime": {
          "description": "Optional. Timestamp when the affiliate program status was last updated.",
          "type": "string",
          "format": "google-datetime"
        }
      },
      "type": "object",
      "description": "Information specific to a creator in an affiliate program linked to a YouTube channel."
    },
    "ChannelToStoreLinkDetails": {
      "type": "object",
      "properties": {
        "storeName": {
          "type": "string",
          "description": "Name of the store."
        },
        "merchantAffiliateProgramDetails": {
          "$ref": "#/$defs/ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails",
          "description": "Information specific to merchant affiliate program (read-only)."
        },
        "storeUrl": {
          "description": "Landing page of the store.",
          "type": "string"
        },
        "billingDetails": {
          "$ref": "#/$defs/ChannelToStoreLinkDetailsBillingDetails",
          "description": "Information specific to billing (read-only)."
        },
        "merchantId": {
          "type": "string",
          "format": "uint64",
          "description": "Google Merchant Center id of the store."
        }
      },
      "description": "Information specific to a store on a merchandising platform linked to a YouTube channel."
    },
    "ChannelToStoreLinkDetailsBillingDetails": {
      "properties": {
        "billingStatus": {
          "description": "The current billing profile status.",
          "type": "string",
          "enum": [
            "billingStatusUnspecified",
            "billingStatusPending",
            "billingStatusActive",
            "billingStatusInactive"
          ]
        }
      },
      "description": "Information specific to billing.",
      "type": "object"
    },
    "ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails": {
      "description": "Information specific to merchant affiliate program.",
      "properties": {
        "status": {
          "enum": [
            "merchantAffiliateProgramStatusUnspecified",
            "merchantAffiliateProgramStatusEligible",
            "merchantAffiliateProgramStatusActive",
            "merchantAffiliateProgramStatusPaused"
          ],
          "description": "The current merchant affiliate program status.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ThirdPartyLink": {
      "description": "A *third party account link* resource represents a link between a YouTube account or a channel and an account on a third-party service.",
      "properties": {
        "kind": {
          "default": "youtube#thirdPartyLink",
          "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#thirdPartyLink\".",
          "type": "string"
        },
        "etag": {
          "description": "Etag of this resource",
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/ThirdPartyLinkStatus",
          "description": "The status object contains information about the status of the link."
        },
        "linkingToken": {
          "description": "The linking_token identifies a YouTube account and channel with which the third party account is linked.",
          "type": "string"
        },
        "snippet": {
          "$ref": "#/$defs/ThirdPartyLinkSnippet",
          "description": "The snippet object contains basic details about the third- party account link."
        }
      },
      "type": "object"
    },
    "ThirdPartyLinkSnippet": {
      "description": "Basic information about a third party account link, including its type and type-specific information.",
      "properties": {
        "channelToAffiliateProgramLink": {
          "$ref": "#/$defs/ChannelToAffiliateProgramLinkDetails",
          "description": "Information specific to a link between a channel and an affiliate program of a partner."
        },
        "type": {
          "enum": [
            "linkUnspecified",
            "channelToStoreLink",
            "channelToAffiliateProgramLink"
          ],
          "description": "Type of the link named after the entities that are being linked.",
          "type": "string"
        },
        "channelToStoreLink": {
          "$ref": "#/$defs/ChannelToStoreLinkDetails",
          "description": "Information specific to a link between a channel and a store on a merchandising platform."
        }
      },
      "type": "object"
    },
    "ThirdPartyLinkStatus": {
      "type": "object",
      "properties": {
        "linkStatus": {
          "enum": [
            "unknown",
            "failed",
            "pending",
            "linked"
          ],
          "type": "string"
        }
      },
      "description": "The third-party link status object contains information about the status of the link."
    }
  }
}