Getting Selling Plan Information

Selling plan information can be found directly on the product and product variant level in Shopify. There are various ways to reference this data from Shopify through an AJAX call directly to the product, through the GraphQL Storefront API, or with Liquid variables found here Shopify API References

However, the level of data returned by Shopify can be rather limited such as the actual delivery and billing interval a selling plan has. In this case, we provide an API that takes in a variant ID and returns all the selling plan groups and selling plans associated with that variant so that you can get additional data about the available selling plans.

Skio Selling Plan API

get-product-variant-selling-plans

post

get-product-variant-selling-plans

Body
productVariantPlatformIdstringOptionalExample: gid://shopify/ProductVariant/48136143601953
Responses
200
Successful response with selling plan details for a product variant
application/json
post
POST /storefront-v2-http/get-product-variant-selling-plans HTTP/1.1
Host: api.skio.com
Content-Type: application/json
Accept: */*
Content-Length: 74

{
  "productVariantPlatformId": "gid://shopify/ProductVariant/48136143601953"
}
200

Successful response with selling plan details for a product variant

{
  "ok": true,
  "productVariant": {
    "id": "text",
    "platformId": "text",
    "sellingPlanGroups": [
      {
        "id": "text",
        "platformId": "text",
        "sellingPlans": [
          {
            "id": "text",
            "platformId": "text",
            "billingPolicy": {
              "interval": "text",
              "intervalCount": 1,
              "minCycles": 1,
              "maxCycles": 1
            }
          }
        ]
      }
    ]
  }
}

Last updated