Skip to main content
Glama
selling_plan.md2.46 kB
# selling_plan Information about the intent of how a specific [selling plan](https://shopify.dev/apps/subscriptions/selling-plans) affects a line item. To learn about supporting selling plans in your theme, refer to [Purchase options](https://shopify.dev/themes/pricing-payments/purchase-options). ## Properties ### checkout_charge **Type:** [selling_plan_checkout_charge](https://shopify.dev/docs/api/liquid/objects/selling_plan_checkout_charge) The checkout charge of the selling plan. ### description **Type:** [string](https://shopify.dev/docs/api/liquid/basics#string) The description of the selling plan. ### group_id **Type:** [string](https://shopify.dev/docs/api/liquid/basics#string) The ID of the [`selling_plan_group`](https://shopify.dev/docs/api/liquid/objects/selling_plan_group) that the selling plan belongs to. The name displays at checkout with the line item summary. ### id **Type:** [number](https://shopify.dev/docs/api/liquid/basics#number) The ID of the selling plan. ### name **Type:** [string](https://shopify.dev/docs/api/liquid/basics#string) The name of the selling plan. The name displays at checkout with the line item summary. ### options **Type:** array of [selling_plan_option](https://shopify.dev/docs/api/liquid/objects/selling_plan_option) The selling plan options. ### price_adjustments **Type:** array of [selling_plan_price_adjustment](https://shopify.dev/docs/api/liquid/objects/selling_plan_price_adjustment) The selling plan price adjustments. Maximum array length is two. If no price adjustments exist, the array is empty. Each adjustment maps to a corresponding [`selling_plan_allocation_price_adjustment`](https://shopify.dev/docs/api/liquid/objects/selling_plan_allocation_price_adjustment). ### recurring_deliveries **Type:** [boolean](https://shopify.dev/docs/api/liquid/basics#boolean) Returns `true` if the selling plan includes multiple deliveries; otherwise `false`. ### selected **Type:** [boolean](https://shopify.dev/docs/api/liquid/basics#boolean) Returns `true` if the selling plan is currently selected; otherwise `false`. The selected plan is determined by the `selling_plan` URL parameter. ## Example ```json { "checkout_charge": {}, "description": null, "group_id": "e88ff8fdb3c39c89b564859e34542e0b982076d6", "id": 2595487809, "name": "Deliver every week, 10% off", "options": [], "price_adjustments": [], "recurring_deliveries": true, "selected": true } ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/shopify-liquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server