Schema Documentation

subscriptionProduct

Use "product" instead.
Description

A subscription product object

Response

Returns a SubscriptionProduct

Arguments
NameDescription
id - ID The ID for identifying the SubscriptionProduct product
idType - ProductIdTypeEnum Type of ID being used identify product

Example

Query
query subscriptionProduct(  $id: ID,  $idType: ProductIdTypeEnum){  subscriptionProduct(    id: $id,    idType: $idType  ){    addToCartTextaddons {      ...ProductAddonFieldFragment    }allPaColor {      ...ProductToPaColorConnectionFragment    }allPaSize {      ...ProductToPaSizeConnectionFragment    }attributes {      ...ProductToProductAttributeConnectionFragment    }averageRatingbackordersbackordersAllowedcatalogVisibilitycommentCountcommentStatuscomments {      ...ProductToCommentsConnectionFragment    }contentcontentType {      ...ContentNodeToContentTypeConnectionEdgeFragment    }contentTypeNamedatabaseIddatedateGmtdateOnSaleFromdateOnSaleTodefaultAttributes {      ...ProductWithAttributesToVariationAttributeConnectionFragment    }descriptiondesiredSlugdownloadExpirydownloadLimitdownloadabledownloads {      ...ProductDownloadFragment    }editingLockedBy {      ...ContentNodeToEditLockConnectionEdgeFragment    }editorBlocks {      ...ProductEditorBlockFragment    }enclosureenqueuedScripts {      ...ContentNodeToEnqueuedScriptConnectionFragment    }enqueuedStylesheets {      ...ContentNodeToEnqueuedStylesheetConnectionFragment    }excerptfeaturedfeaturedImage {      ...NodeWithFeaturedImageToMediaItemConnectionEdgeFragment    }featuredImageDatabaseIdfeaturedImageIdgalleryImages {      ...ProductToMediaItemConnectionFragment    }globalAttributes {      ...ProductToGlobalProductAttributeConnectionFragment    }guidheightidimage {      ...MediaItemFragment    }isContentNodeisPreviewisRestrictedisTermNodelastEditedBy {      ...ContentNodeToEditLastConnectionEdgeFragment    }lengthlinklocalAttributes {      ...ProductToLocalProductAttributeConnectionFragment    }lowStockAmountmanageStockmenuOrdermetaData {      ...MetaDataFragment    }modifiedmodifiedGmtnameonSalepreview {      ...ProductToPreviewConnectionEdgeFragment    }previewRevisionDatabaseIdpreviewRevisionIdpriceproductCategories {      ...ProductToProductCategoryConnectionFragment    }productIdproductTags {      ...ProductToProductTagConnectionFragment    }productTypes {      ...ProductToProductTypeConnectionFragment    }purchasablepurchaseNoteregularPricerelated {      ...ProductToProductUnionConnectionFragment    }reviewCountreviews {      ...ProductToCommentConnectionFragment    }reviewsAllowedsalePriceseo {      ...PostTypeSEOFragment    }shippingClassIdshippingClasses {      ...ProductToShippingClassConnectionFragment    }shippingRequiredshippingTaxableshortDescriptionsignUpFeeskuslugsoldIndividuallystatusstockQuantitystockStatustaxClasstaxStatustemplate {      ...ContentTemplateFragment    }terms {      ...ProductToTermNodeConnectionFragment    }titletotalSalestypeupsell {      ...ProductToUpsellConnectionFragment    }urivirtualvisibleProducts {      ...ProductToVisibleProductConnectionFragment    }weightwidth  }}
Variables
{"id":4,"idType":"DATABASE_ID"}
Response
{"data":{"subscriptionProduct":{"addToCartText":"abc123","addons":[ProductAddonField],"allPaColor":ProductToPaColorConnection,"allPaSize":ProductToPaSizeConnection,"attributes":ProductToProductAttributeConnection,"averageRating":123.45,"backorders":"NO","backordersAllowed":false,"catalogVisibility":"CATALOG","commentCount":987,"commentStatus":"xyz789","comments":ProductToCommentsConnection,"content":"abc123","contentType":ContentNodeToContentTypeConnectionEdge,"contentTypeName":"xyz789","databaseId":123,"date":"xyz789","dateGmt":"xyz789","dateOnSaleFrom":"xyz789","dateOnSaleTo":"xyz789","defaultAttributes":ProductWithAttributesToVariationAttributeConnection,"description":"abc123","desiredSlug":"xyz789","downloadExpiry":987,"downloadLimit":123,"downloadable":true,"downloads":[ProductDownload],"editingLockedBy":ContentNodeToEditLockConnectionEdge,"editorBlocks":[ProductEditorBlock],"enclosure":"xyz789","enqueuedScripts":ContentNodeToEnqueuedScriptConnection,"enqueuedStylesheets":ContentNodeToEnqueuedStylesheetConnection,"excerpt":"xyz789","featured":false,"featuredImage":NodeWithFeaturedImageToMediaItemConnectionEdge,"featuredImageDatabaseId":123,"featuredImageId":"4","galleryImages":ProductToMediaItemConnection,"globalAttributes":ProductToGlobalProductAttributeConnection,"guid":"abc123","height":"xyz789","id":4,"image":MediaItem,"isContentNode":true,"isPreview":false,"isRestricted":true,"isTermNode":false,"lastEditedBy":ContentNodeToEditLastConnectionEdge,"length":"abc123","link":"xyz789","localAttributes":ProductToLocalProductAttributeConnection,"lowStockAmount":987,"manageStock":"FALSE","menuOrder":987,"metaData":[MetaData],"modified":"abc123","modifiedGmt":"xyz789","name":"abc123","onSale":true,"preview":ProductToPreviewConnectionEdge,"previewRevisionDatabaseId":987,"previewRevisionId":"4","price":"abc123","productCategories":ProductToProductCategoryConnection,"productId":987,"productTags":ProductToProductTagConnection,"productTypes":ProductToProductTypeConnection,"purchasable":false,"purchaseNote":"abc123","regularPrice":"xyz789","related":ProductToProductUnionConnection,"reviewCount":123,"reviews":ProductToCommentConnection,"reviewsAllowed":true,"salePrice":"abc123","seo":PostTypeSEO,"shippingClassId":123,"shippingClasses":ProductToShippingClassConnection,"shippingRequired":true,"shippingTaxable":false,"shortDescription":"xyz789","signUpFee":"xyz789","sku":"xyz789","slug":"abc123","soldIndividually":false,"status":"xyz789","stockQuantity":123,"stockStatus":"IN_STOCK","taxClass":"INHERIT_CART","taxStatus":"NONE","template":ContentTemplate,"terms":ProductToTermNodeConnection,"title":"abc123","totalSales":123,"type":"BUNDLE","upsell":ProductToUpsellConnection,"uri":"xyz789","virtual":false,"visibleProducts":ProductToVisibleProductConnection,"weight":"xyz789","width":"abc123"}}}