skio
Help CenterAdmin API Docs
  • 👋Getting Started
  • 💻App Block Setup
    • What are app blocks?
    • Plan Picker
  • ✏️Manual Theme Setup
    • Manual install process
    • Auto-login to Skio from Shopify Account
  • 📏Rules
    • Rules API
    • Apply Volume Discounts
  • 📦Build-a-Box
    • Static
    • Dynamic
    • Sectioned
  • 🛍️Selling Plan
    • Getting Selling Plan Information
  • 👾Extras
    • Subscription Tags
    • One-click Checkout / Buy Now
    • Redirect Old Customer Portals
  • ❓Troubleshooting
    • Selling Plan Cannot Be Applied to Variant
  • 🛒Shopify API References
    • Liquid Docs
    • AJAX API Docs
    • Storefront GraphQL API Docs
Powered by GitBook
On this page
  1. Selling Plan

Getting Selling Plan Information

PreviousSectionedNextSubscription Tags

Last updated 1 year ago

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.

In most cases you should be getting selling plan information from Shopify. In certain cases, such as relating two selling plan intervals to each other you can use our API as a supplement.

Skio Selling Plan API

🛍️
  • Skio Selling Plan API
  • POSTget-product-variant-selling-plans

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
            }
          }
        ]
      }
    ]
  }
}