Retrieves the complete, unprocessed subscription contract data directly from Shopify’s GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata.
What This Endpoint Returns:
Unlike processed/transformed endpoints, this returns Shopify’s raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify’s GraphQL API directly, making it ideal for:
Debugging Shopify data synchronization issues
Accessing fields not exposed in other endpoints
Understanding complete Shopify contract structure
Building custom integrations requiring full data
Comparing Shopify source data with processed data
Data Included:
Contract Core:
Full subscription contract object from Shopify
All GraphQL __typename fields preserved
Complete nested object structures
All available Shopify contract fields
Customer Information:
Complete customer object with all fields
Default address details
Customer tags and metadata
Marketing preferences
Line Items:
Full line item details with edges/nodes structure
Product and variant complete objects
Pricing policies with all cycle discounts
Line item custom attributes
Current and original prices
Billing & Delivery:
Complete billing policy object
Full delivery policy details
Delivery method with all fields
Delivery price breakdown
Billing anchor details
Payment Information:
Payment method details (if available)
Customer payment instrument
Payment gateway information
Orders & History:
Origin order details
Last payment status
Historical billing attempts (in Appstle)
Use Cases:
1. Debugging & Troubleshooting:
Investigate data sync discrepancies
Verify what Shopify actually stores
Debug webhook payload issues
Compare expected vs actual data
2. Advanced Integrations:
Access Shopify-specific fields not in standard APIs
{
"detail": "Contract ID must be a valid positive integer",
"status": 400,
"title": "Invalid contract ID",
"type": "https://example.com/errors/bad-request"
}
{
"detail": "Subscription contract does not belong to your shop",
"status": 403,
"title": "Access denied",
"type": "https://example.com/errors/forbidden"
}
{
"detail": "No subscription contract found with ID 12345 in Shopify",
"status": 404,
"title": "Contract not found",
"type": "https://example.com/errors/not-found"
}
{
"detail": "Contract ID must be a valid positive integer",
"status": 400,
"title": "Invalid contract ID",
"type": "https://example.com/errors/bad-request"
}
{
"detail": "Subscription contract does not belong to your shop",
"status": 403,
"title": "Access denied",
"type": "https://example.com/errors/forbidden"
}
{
"detail": "No subscription contract found with ID 12345 in Shopify",
"status": 404,
"title": "Contract not found",
"type": "https://example.com/errors/not-found"
}
{
"detail": "Failed to retrieve contract from Shopify. Please try again later.",
"status": 502,
"title": "Shopify API error",
"type": "https://example.com/errors/bad-gateway"
}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Appstle","colors":{"primary":"#0caceb","light":"#6ccdf2","dark":"#0a7eae"},"favicon":"https://mintcdn.com/appstleinc-aeca3e0a/811jRr2WFwD6kXFw/favicon.webp?fit=max\u0026auto=format\u0026n=811jRr2WFwD6kXFw\u0026q=85\u0026s=a98f329ae5c5ff4deaa241d8abe53f11","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["bash","python","javascript","node","php","go","ruby"]}},"appearance":{"default":"light","strict":true},"navbar":{"primary":{"type":"button","label":"Help Center","href":"https://help.appstle.com/en/"}},"footer":{"socials":{"website":"https://appstle.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"appstleinc-aeca3e0a","hasAudioNarration":false,"actualSubdomain":"appstleinc-aeca3e0a","customDomains":["developers.appstle.com"],"gitSource":{"type":"github","owner":"appstleinc","repo":"appstle-docs-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af391d29a49dc45d089b234","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Subscriptions","count":268},{"language":"default","tag":"Storefront API","count":223},{"language":"default","tag":"Admin API","count":184},{"language":"default","tag":"Memberships","count":119},{"language":"default","tag":"Subscription Contracts","count":63},{"language":"default","tag":"Membership Contracts","count":62},{"language":"default","tag":"Loyalty","count":48},{"language":"default","tag":"Billing \u0026 Payments","count":28},{"language":"default","tag":"Bundles","count":25},{"language":"default","tag":"Subscription Management","count":24}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response","slug":"/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response","pageMetadata":{"title":"Get raw Shopify GraphQL contract response","description":"Retrieves the complete, unprocessed subscription contract data directly from Shopify's GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata.\n\n**What This Endpoint Returns:**\nUnlike processed/transformed endpoints, this returns Shopify's raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify's GraphQL API directly, making it ideal for:\n- Debugging Shopify data synchronization issues\n- Accessing fields not exposed in other endpoints\n- Understanding complete Shopify contract structure\n- Building custom integrations requiring full data\n- Comparing Shopify source data with processed data\n\n**Data Included:**\n\n**Contract Core:**\n- Full subscription contract object from Shopify\n- All GraphQL __typename fields preserved\n- Complete nested object structures\n- All available Shopify contract fields\n\n**Customer Information:**\n- Complete customer object with all fields\n- Default address details\n- Customer tags and metadata\n- Marketing preferences\n\n**Line Items:**\n- Full line item details with edges/nodes structure\n- Product and variant complete objects\n- Pricing policies with all cycle discounts\n- Line item custom attributes\n- Current and original prices\n\n**Billing \u0026 Delivery:**\n- Complete billing policy object\n- Full delivery policy details\n- Delivery method with all fields\n- Delivery price breakdown\n- Billing anchor details\n\n**Payment Information:**\n- Payment method details (if available)\n- Customer payment instrument\n- Payment gateway information\n\n**Orders \u0026 History:**\n- Origin order details\n- Last payment status\n- Historical billing attempts (in Appstle)\n\n**Use Cases:**\n\n**1. Debugging \u0026 Troubleshooting:**\n- Investigate data sync discrepancies\n- Verify what Shopify actually stores\n- Debug webhook payload issues\n- Compare expected vs actual data\n\n**2. Advanced Integrations:**\n- Access Shopify-specific fields not in standard APIs\n- Build custom analytics using raw data\n- Integrate with Shopify GraphQL directly\n- Extract fields for custom processing\n\n**3. Data Analysis:**\n- Analyze complete contract structure\n- Extract all available metadata\n- Build comprehensive data exports\n- Perform deep data audits\n\n**4. Development \u0026 Testing:**\n- Understand Shopify's data model\n- Test new feature development\n- Verify API responses\n- Documentation and examples\n\n**Response Structure:**\n\nReturns SubscriptionContractQuery.SubscriptionContract object:\n```json\n{\n \"id\": \"gid://shopify/SubscriptionContract/123456789\",\n \"status\": \"ACTIVE\",\n \"nextBillingDate\": \"2024-03-15T00:00:00Z\",\n \"customer\": {\n \"id\": \"gid://shopify/Customer/987654321\",\n \"email\": \"customer@example.com\",\n \"displayName\": \"John Doe\",\n \"__typename\": \"Customer\"\n },\n \"lines\": {\n \"edges\": [\n {\n \"node\": {\n \"id\": \"gid://shopify/SubscriptionLine/111111\",\n \"quantity\": 2,\n \"variantId\": \"gid://shopify/ProductVariant/222222\",\n \"title\": \"Monthly Coffee Box\",\n \"variantTitle\": \"Medium Roast\",\n \"currentPrice\": {\n \"amount\": \"29.99\",\n \"currencyCode\": \"USD\"\n },\n \"pricingPolicy\": {...},\n \"__typename\": \"SubscriptionLine\"\n }\n }\n ]\n },\n \"billingPolicy\": {\n \"interval\": \"MONTH\",\n \"intervalCount\": 1,\n \"minCycles\": 3,\n \"maxCycles\": 12\n },\n \"deliveryPolicy\": {...},\n \"deliveryMethod\": {...},\n \"__typename\": \"SubscriptionContract\"\n}\n```\n\n**Important Considerations:**\n\n**Data Source:**\n- Queries Shopify GraphQL API in real-time\n- NOT cached in Appstle database\n- Always returns current Shopify state\n- Subject to Shopify API rate limits\n\n**Performance:**\n- Slower than database queries (500-1500ms typical)\n- Makes real-time call to Shopify\n- Response size can be large (10-50 KB)\n- Use sparingly to avoid rate limits\n\n**GraphQL Structure:**\n- Includes __typename fields throughout\n- Uses GraphQL ID format (gid://shopify/...)\n- Nested edges/nodes structure for lists\n- All fields as defined in Shopify's schema\n\n**Best Practices:**\n\n1. **Use for Debugging**: Perfect for troubleshooting data issues\n2. **Avoid Polling**: Don't call repeatedly - use cached/processed endpoints instead\n3. **Cache Response**: Cache the response if using for display\n4. **Parse Carefully**: Handle GraphQL structure (edges/nodes)\n5. **Monitor Rate Limits**: Each call counts against Shopify API limits\n\n**When to Use vs Other Endpoints:**\n\n**Use this endpoint when:**\n- Need complete Shopify contract data\n- Debugging synchronization issues\n- Accessing Shopify-specific fields\n- Building Shopify GraphQL integrations\n\n**Use /api/external/v2/subscription-contract-details when:**\n- Need processed, filtered contract data\n- Want faster response times\n- Querying multiple contracts\n- Building customer-facing UIs\n\n**Authentication:** Requires valid X-API-Key header","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contracts/contract-external/{contractId}","href":"/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n ol: \"ol\",\n p: \"p\",\n pre: \"pre\",\n span: \"span\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n }, {CodeBlock} = _components;\n if (!CodeBlock) _missingMdxReference(\"CodeBlock\", true);\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Retrieves the complete, unprocessed subscription contract data directly from Shopify’s GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"What This Endpoint Returns:\"\n }), \"\\nUnlike processed/transformed endpoints, this returns Shopify’s raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify’s GraphQL API directly, making it ideal for:\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Debugging Shopify data synchronization issues\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Accessing fields not exposed in other endpoints\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Understanding complete Shopify contract structure\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Building custom integrations requiring full data\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Comparing Shopify source data with processed data\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Data Included:\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Contract Core:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Full subscription contract object from Shopify\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"All GraphQL __typename fields preserved\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Complete nested object structures\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"All available Shopify contract fields\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Customer Information:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Complete customer object with all fields\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Default address details\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Customer tags and metadata\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Marketing preferences\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Line Items:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Full line item details with edges/nodes structure\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Product and variant complete objects\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Pricing policies with all cycle discounts\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Line item custom attributes\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Current and original prices\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Billing \u0026 Delivery:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Complete billing policy object\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Full delivery policy details\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Delivery method with all fields\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Delivery price breakdown\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Billing anchor details\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Payment Information:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Payment method details (if available)\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Customer payment instrument\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Payment gateway information\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Orders \u0026 History:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Origin order details\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Last payment status\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Historical billing attempts (in Appstle)\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Use Cases:\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"1. Debugging \u0026 Troubleshooting:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Investigate data sync discrepancies\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Verify what Shopify actually stores\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Debug webhook payload issues\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Compare expected vs actual data\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"2. Advanced Integrations:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Access Shopify-specific fields not in standard APIs\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Build custom analytics using raw data\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Integrate with Shopify GraphQL directly\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Extract fields for custom processing\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"3. Data Analysis:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Analyze complete contract structure\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Extract all available metadata\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Build comprehensive data exports\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Perform deep data audits\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"4. Development \u0026 Testing:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Understand Shopify’s data model\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Test new feature development\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Verify API responses\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Documentation and examples\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Response Structure:\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: \"Returns SubscriptionContractQuery.SubscriptionContract object:\"\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"39\",\n language: \"json\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"json\",\n children: _jsxs(_components.code, {\n language: \"json\",\n numberOfLines: \"39\",\n children: [_jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"{\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"id\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"gid://shopify/SubscriptionContract/123456789\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"status\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"ACTIVE\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"nextBillingDate\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"2024-03-15T00:00:00Z\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"customer\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"id\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"gid://shopify/Customer/987654321\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"email\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"customer@example.com\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"displayName\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"John Doe\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"__typename\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"Customer\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"lines\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"edges\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": [\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" {\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"node\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"id\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"gid://shopify/SubscriptionLine/111111\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"quantity\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"2\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"variantId\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"gid://shopify/ProductVariant/222222\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"title\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"Monthly Coffee Box\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"variantTitle\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"Medium Roast\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"currentPrice\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"amount\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"29.99\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"currencyCode\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"USD\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"pricingPolicy\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n }), _jsx(_components.span, {\n style: {\n color: \"#82071E\",\n \"--shiki-light-font-style\": \"italic\",\n \"--shiki-dark\": \"#F44747\",\n \"--shiki-dark-font-style\": \"inherit\"\n },\n children: \"...\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"},\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"__typename\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"SubscriptionLine\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" }\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" }\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" ]\"\n })\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"billingPolicy\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"interval\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"MONTH\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"intervalCount\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"1\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"minCycles\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"3\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"maxCycles\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#B5CEA8\"\n },\n children: \"12\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"deliveryPolicy\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n }), _jsx(_components.span, {\n style: {\n color: \"#82071E\",\n \"--shiki-light-font-style\": \"italic\",\n \"--shiki-dark\": \"#F44747\",\n \"--shiki-dark-font-style\": \"inherit\"\n },\n children: \"...\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"},\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"deliveryMethod\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": {\"\n }), _jsx(_components.span, {\n style: {\n color: \"#82071E\",\n \"--shiki-light-font-style\": \"italic\",\n \"--shiki-dark\": \"#F44747\",\n \"--shiki-dark-font-style\": \"inherit\"\n },\n children: \"...\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"},\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"__typename\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"SubscriptionContract\\\"\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"}\"\n })\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Important Considerations:\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Data Source:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Queries Shopify GraphQL API in real-time\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"NOT cached in Appstle database\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Always returns current Shopify state\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Subject to Shopify API rate limits\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Performance:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Slower than database queries (500-1500ms typical)\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Makes real-time call to Shopify\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Response size can be large (10-50 KB)\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Use sparingly to avoid rate limits\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"GraphQL Structure:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Includes __typename fields throughout\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Uses GraphQL ID format (gid://shopify/…)\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Nested edges/nodes structure for lists\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"All fields as defined in Shopify’s schema\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Best Practices:\"\n })\n }), \"\\n\", _jsxs(_components.ol, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Use for Debugging\"\n }), \": Perfect for troubleshooting data issues\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Avoid Polling\"\n }), \": Don’t call repeatedly - use cached/processed endpoints instead\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Cache Response\"\n }), \": Cache the response if using for display\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Parse Carefully\"\n }), \": Handle GraphQL structure (edges/nodes)\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Monitor Rate Limits\"\n }), \": Each call counts against Shopify API limits\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"When to Use vs Other Endpoints:\"\n })\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Use this endpoint when:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Need complete Shopify contract data\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Debugging synchronization issues\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Accessing Shopify-specific fields\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Building Shopify GraphQL integrations\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Use /api/external/v2/subscription-contract-details when:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Need processed, filtered contract data\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Want faster response times\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Querying multiple contracts\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Building customer-facing UIs\"\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Authentication:\"\n }), \" Requires valid X-API-Key header\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\n}\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get raw Shopify GraphQL contract response","description":"Retrieves the complete, unprocessed subscription contract data directly from Shopify's GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata.\n\n**What This Endpoint Returns:**\nUnlike processed/transformed endpoints, this returns Shopify's raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify's GraphQL API directly, making it ideal for:\n- Debugging Shopify data synchronization issues\n- Accessing fields not exposed in other endpoints\n- Understanding complete Shopify contract structure\n- Building custom integrations requiring full data\n- Comparing Shopify source data with processed data\n\n**Data Included:**\n\n**Contract Core:**\n- Full subscription contract object from Shopify\n- All GraphQL __typename fields preserved\n- Complete nested object structures\n- All available Shopify contract fields\n\n**Customer Information:**\n- Complete customer object with all fields\n- Default address details\n- Customer tags and metadata\n- Marketing preferences\n\n**Line Items:**\n- Full line item details with edges/nodes structure\n- Product and variant complete objects\n- Pricing policies with all cycle discounts\n- Line item custom attributes\n- Current and original prices\n\n**Billing \u0026 Delivery:**\n- Complete billing policy object\n- Full delivery policy details\n- Delivery method with all fields\n- Delivery price breakdown\n- Billing anchor details\n\n**Payment Information:**\n- Payment method details (if available)\n- Customer payment instrument\n- Payment gateway information\n\n**Orders \u0026 History:**\n- Origin order details\n- Last payment status\n- Historical billing attempts (in Appstle)\n\n**Use Cases:**\n\n**1. Debugging \u0026 Troubleshooting:**\n- Investigate data sync discrepancies\n- Verify what Shopify actually stores\n- Debug webhook payload issues\n- Compare expected vs actual data\n\n**2. Advanced Integrations:**\n- Access Shopify-specific fields not in standard APIs\n- Build custom analytics using raw data\n- Integrate with Shopify GraphQL directly\n- Extract fields for custom processing\n\n**3. Data Analysis:**\n- Analyze complete contract structure\n- Extract all available metadata\n- Build comprehensive data exports\n- Perform deep data audits\n\n**4. Development \u0026 Testing:**\n- Understand Shopify's data model\n- Test new feature development\n- Verify API responses\n- Documentation and examples\n\n**Response Structure:**\n\nReturns SubscriptionContractQuery.SubscriptionContract object:\n```json\n{\n \"id\": \"gid://shopify/SubscriptionContract/123456789\",\n \"status\": \"ACTIVE\",\n \"nextBillingDate\": \"2024-03-15T00:00:00Z\",\n \"customer\": {\n \"id\": \"gid://shopify/Customer/987654321\",\n \"email\": \"customer@example.com\",\n \"displayName\": \"John Doe\",\n \"__typename\": \"Customer\"\n },\n \"lines\": {\n \"edges\": [\n {\n \"node\": {\n \"id\": \"gid://shopify/SubscriptionLine/111111\",\n \"quantity\": 2,\n \"variantId\": \"gid://shopify/ProductVariant/222222\",\n \"title\": \"Monthly Coffee Box\",\n \"variantTitle\": \"Medium Roast\",\n \"currentPrice\": {\n \"amount\": \"29.99\",\n \"currencyCode\": \"USD\"\n },\n \"pricingPolicy\": {...},\n \"__typename\": \"SubscriptionLine\"\n }\n }\n ]\n },\n \"billingPolicy\": {\n \"interval\": \"MONTH\",\n \"intervalCount\": 1,\n \"minCycles\": 3,\n \"maxCycles\": 12\n },\n \"deliveryPolicy\": {...},\n \"deliveryMethod\": {...},\n \"__typename\": \"SubscriptionContract\"\n}\n```\n\n**Important Considerations:**\n\n**Data Source:**\n- Queries Shopify GraphQL API in real-time\n- NOT cached in Appstle database\n- Always returns current Shopify state\n- Subject to Shopify API rate limits\n\n**Performance:**\n- Slower than database queries (500-1500ms typical)\n- Makes real-time call to Shopify\n- Response size can be large (10-50 KB)\n- Use sparingly to avoid rate limits\n\n**GraphQL Structure:**\n- Includes __typename fields throughout\n- Uses GraphQL ID format (gid://shopify/...)\n- Nested edges/nodes structure for lists\n- All fields as defined in Shopify's schema\n\n**Best Practices:**\n\n1. **Use for Debugging**: Perfect for troubleshooting data issues\n2. **Avoid Polling**: Don't call repeatedly - use cached/processed endpoints instead\n3. **Cache Response**: Cache the response if using for display\n4. **Parse Carefully**: Handle GraphQL structure (edges/nodes)\n5. **Monitor Rate Limits**: Each call counts against Shopify API limits\n\n**When to Use vs Other Endpoints:**\n\n**Use this endpoint when:**\n- Need complete Shopify contract data\n- Debugging synchronization issues\n- Accessing Shopify-specific fields\n- Building Shopify GraphQL integrations\n\n**Use /api/external/v2/subscription-contract-details when:**\n- Need processed, filtered contract data\n- Want faster response times\n- Querying multiple contracts\n- Building customer-facing UIs\n\n**Authentication:** Requires valid X-API-Key header","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contracts/contract-external/{contractId}","href":"/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Retrieves the complete, unprocessed subscription contract data directly from Shopify's GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata.\n\n**What This Endpoint Returns:**\nUnlike processed/transformed endpoints, this returns Shopify's raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify's GraphQL API directly, making it ideal for:\n- Debugging Shopify data synchronization issues\n- Accessing fields not exposed in other endpoints\n- Understanding complete Shopify contract structure\n- Building custom integrations requiring full data\n- Comparing Shopify source data with processed data\n\n**Data Included:**\n\n**Contract Core:**\n- Full subscription contract object from Shopify\n- All GraphQL __typename fields preserved\n- Complete nested object structures\n- All available Shopify contract fields\n\n**Customer Information:**\n- Complete customer object with all fields\n- Default address details\n- Customer tags and metadata\n- Marketing preferences\n\n**Line Items:**\n- Full line item details with edges/nodes structure\n- Product and variant complete objects\n- Pricing policies with all cycle discounts\n- Line item custom attributes\n- Current and original prices\n\n**Billing \u0026 Delivery:**\n- Complete billing policy object\n- Full delivery policy details\n- Delivery method with all fields\n- Delivery price breakdown\n- Billing anchor details\n\n**Payment Information:**\n- Payment method details (if available)\n- Customer payment instrument\n- Payment gateway information\n\n**Orders \u0026 History:**\n- Origin order details\n- Last payment status\n- Historical billing attempts (in Appstle)\n\n**Use Cases:**\n\n**1. Debugging \u0026 Troubleshooting:**\n- Investigate data sync discrepancies\n- Verify what Shopify actually stores\n- Debug webhook payload issues\n- Compare expected vs actual data\n\n**2. Advanced Integrations:**\n- Access Shopify-specific fields not in standard APIs\n- Build custom analytics using raw data\n- Integrate with Shopify GraphQL directly\n- Extract fields for custom processing\n\n**3. Data Analysis:**\n- Analyze complete contract structure\n- Extract all available metadata\n- Build comprehensive data exports\n- Perform deep data audits\n\n**4. Development \u0026 Testing:**\n- Understand Shopify's data model\n- Test new feature development\n- Verify API responses\n- Documentation and examples\n\n**Response Structure:**\n\nReturns SubscriptionContractQuery.SubscriptionContract object:\n```json\n{\n \"id\": \"gid://shopify/SubscriptionContract/123456789\",\n \"status\": \"ACTIVE\",\n \"nextBillingDate\": \"2024-03-15T00:00:00Z\",\n \"customer\": {\n \"id\": \"gid://shopify/Customer/987654321\",\n \"email\": \"customer@example.com\",\n \"displayName\": \"John Doe\",\n \"__typename\": \"Customer\"\n },\n \"lines\": {\n \"edges\": [\n {\n \"node\": {\n \"id\": \"gid://shopify/SubscriptionLine/111111\",\n \"quantity\": 2,\n \"variantId\": \"gid://shopify/ProductVariant/222222\",\n \"title\": \"Monthly Coffee Box\",\n \"variantTitle\": \"Medium Roast\",\n \"currentPrice\": {\n \"amount\": \"29.99\",\n \"currencyCode\": \"USD\"\n },\n \"pricingPolicy\": {...},\n \"__typename\": \"SubscriptionLine\"\n }\n }\n ]\n },\n \"billingPolicy\": {\n \"interval\": \"MONTH\",\n \"intervalCount\": 1,\n \"minCycles\": 3,\n \"maxCycles\": 12\n },\n \"deliveryPolicy\": {...},\n \"deliveryMethod\": {...},\n \"__typename\": \"SubscriptionContract\"\n}\n```\n\n**Important Considerations:**\n\n**Data Source:**\n- Queries Shopify GraphQL API in real-time\n- NOT cached in Appstle database\n- Always returns current Shopify state\n- Subject to Shopify API rate limits\n\n**Performance:**\n- Slower than database queries (500-1500ms typical)\n- Makes real-time call to Shopify\n- Response size can be large (10-50 KB)\n- Use sparingly to avoid rate limits\n\n**GraphQL Structure:**\n- Includes __typename fields throughout\n- Uses GraphQL ID format (gid://shopify/...)\n- Nested edges/nodes structure for lists\n- All fields as defined in Shopify's schema\n\n**Best Practices:**\n\n1. **Use for Debugging**: Perfect for troubleshooting data issues\n2. **Avoid Polling**: Don't call repeatedly - use cached/processed endpoints instead\n3. **Cache Response**: Cache the response if using for display\n4. **Parse Carefully**: Handle GraphQL structure (edges/nodes)\n5. **Monitor Rate Limits**: Each call counts against Shopify API limits\n\n**When to Use vs Other Endpoints:**\n\n**Use this endpoint when:**\n- Need complete Shopify contract data\n- Debugging synchronization issues\n- Accessing Shopify-specific fields\n- Building Shopify GraphQL integrations\n\n**Use /api/external/v2/subscription-contract-details when:**\n- Need processed, filtered contract data\n- Want faster response times\n- Querying multiple contracts\n- Building customer-facing UIs\n\n**Authentication:** Requires valid X-API-Key header","operationId":"getSubscriptionContractRawExternalV2","parameters":["c04de431-04fb-4b17-945d-920bb2182330","5fb06087-c884-4755-a45b-f1ff768ba6aa","136e1a3d-bf68-430e-bb0b-00eea590d7ca"],"responses":{"200":"735b7de4-0570-4201-85b1-414dcfb753cf","400":"64fdf2f0-fa95-4a56-82be-f12afde3be9f","401":"b7072920-ec87-471a-9f7a-b4b69ea0ce73","403":"e1ef849d-ef1d-4db1-aa29-4987e6835d26","404":"2cd9ab5a-d3d4-4ace-8ff3-c3d688d453d6","429":"c3981ae1-2117-4c78-87fb-66a2c82d9aad","502":"b3035cb1-1466-429f-ba1e-f64af412ec65"},"summary":"Get raw Shopify GraphQL contract response","tags":["Subscription Management","Subscription Contracts"],"method":"get","type":"path","servers":["d3c9e56f-e67b-483f-979d-9b57afc23940"],"security":[],"path":"/api/external/v2/subscription-contracts/contract-external/{contractId}","baseUrlOptions":["https://subscription-admin.appstle.com"],"title":"Get raw Shopify GraphQL contract response","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","node","php","go","ruby"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c04de431-04fb-4b17-945d-920bb2182330":{"description":"Contract ID","in":"path","name":"contractId","required":true,"schema":{"format":"int64","type":"integer","isRequired":true,"description":"Contract ID","uniqueKey":"","typeLabel":"integer\u003cint64>"}},"5fb06087-c884-4755-a45b-f1ff768ba6aa":{"description":"API Key (Deprecated - Use Header X-API-Key instead)","in":"query","name":"api_key","required":false,"schema":{"type":"string","isRequired":false,"description":"API Key (Deprecated - Use Header X-API-Key instead)","uniqueKey":"","typeLabel":"string"}},"136e1a3d-bf68-430e-bb0b-00eea590d7ca":{"in":"header","name":"X-API-Key","required":false,"schema":{"type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}}},"responses":{"735b7de4-0570-4201-85b1-414dcfb753cf":{"content":{"application/json":{"schema":{"properties":{"billingAttempts":{"properties":{"get__typename":{"type":"string","uniqueKey":"billingAttempts.get__typename","typeLabel":"string"},"nodes":{"items":{"properties":{"completedAt":{"type":"object","uniqueKey":"billingAttempts.nodes.items.[INDEX].completedAt","typeLabel":"object"},"createdAt":{"type":"object","uniqueKey":"billingAttempts.nodes.items.[INDEX].createdAt","typeLabel":"object"},"get__typename":{"type":"string","uniqueKey":"billingAttempts.nodes.items.[INDEX].get__typename","typeLabel":"string"},"id":{"type":"string","uniqueKey":"billingAttempts.nodes.items.[INDEX].id","typeLabel":"string"},"idempotencyKey":{"type":"string","uniqueKey":"billingAttempts.nodes.items.[INDEX].idempotencyKey","typeLabel":"string"},"ready":{"deprecated":true,"type":"boolean","uniqueKey":"billingAttempts.nodes.items.[INDEX].ready","typeLabel":"boolean"}},"type":"object","uniqueKey":"billingAttempts.nodes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"billingAttempts.nodes","typeLabel":"object[]"}},"type":"object","uniqueKey":"billingAttempts","typeLabel":"object"},"billingPolicy":{"properties":{"anchors":{"items":{"properties":{"cutoffDay":{"format":"int32","type":"integer","uniqueKey":"billingPolicy.anchors.items.[INDEX].cutoffDay","typeLabel":"integer\u003cint32>"},"day":{"format":"int32","type":"integer","uniqueKey":"billingPolicy.anchors.items.[INDEX].day","typeLabel":"integer\u003cint32>"},"get__typename":{"type":"string","uniqueKey":"billingPolicy.anchors.items.[INDEX].get__typename","typeLabel":"string"},"month":{"format":"int32","type":"integer","uniqueKey":"billingPolicy.anchors.items.[INDEX].month","typeLabel":"integer\u003cint32>"},"type":{"enum":["WEEKDAY","MONTHDAY","YEARDAY","$UNKNOWN"],"type":"string","uniqueKey":"billingPolicy.anchors.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"billingPolicy.anchors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"billingPolicy.anchors","typeLabel":"object[]"},"get__typename":{"type":"string","uniqueKey":"billingPolicy.get__typename","typeLabel":"string"},"interval":{"enum":["DAY","WEEK","MONTH","YEAR","$UNKNOWN"],"type":"string","uniqueKey":"billingPolicy.interval","typeLabel":"enum\u003cstring>"},"intervalCount":{"format":"int32","type":"integer","uniqueKey":"billingPolicy.intervalCount","typeLabel":"integer\u003cint32>"},"maxCycles":{"format":"int32","type":"integer","uniqueKey":"billingPolicy.maxCycles","typeLabel":"integer\u003cint32>"},"minCycles":{"format":"int32","type":"integer","uniqueKey":"billingPolicy.minCycles","typeLabel":"integer\u003cint32>"}},"type":"object","uniqueKey":"billingPolicy","typeLabel":"object"},"createdAt":{"type":"object","uniqueKey":"createdAt","typeLabel":"object"},"customAttributes":{"items":{"properties":{"get__typename":{"type":"string","uniqueKey":"customAttributes.items.[INDEX].get__typename","typeLabel":"string"},"key":{"type":"string","uniqueKey":"customAttributes.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","uniqueKey":"customAttributes.items.[INDEX].value","typeLabel":"string"}},"type":"object","uniqueKey":"customAttributes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"customAttributes","typeLabel":"object[]"},"customer":{"properties":{"displayName":{"type":"string","uniqueKey":"customer.displayName","typeLabel":"string"},"email":{"deprecated":true,"type":"string","uniqueKey":"customer.email","typeLabel":"string"},"firstName":{"type":"string","uniqueKey":"customer.firstName","typeLabel":"string"},"get__typename":{"type":"string","uniqueKey":"customer.get__typename","typeLabel":"string"},"id":{"type":"string","uniqueKey":"customer.id","typeLabel":"string"},"lastName":{"type":"string","uniqueKey":"customer.lastName","typeLabel":"string"},"phone":{"deprecated":true,"type":"string","uniqueKey":"customer.phone","typeLabel":"string"}},"type":"object","uniqueKey":"customer","typeLabel":"object"},"customerPaymentMethod":{"properties":{"get__typename":{"type":"string","uniqueKey":"customerPaymentMethod.get__typename","typeLabel":"string"},"id":{"type":"string","uniqueKey":"customerPaymentMethod.id","typeLabel":"string"},"instrument":{"properties":{"get__typename":{"type":"string","uniqueKey":"customerPaymentMethod.instrument.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"customerPaymentMethod.instrument","typeLabel":"object"},"revokedAt":{"type":"object","uniqueKey":"customerPaymentMethod.revokedAt","typeLabel":"object"},"revokedReason":{"enum":["AUTHORIZE_NET_GATEWAY_NOT_ENABLED","AUTHORIZE_NET_RETURNED_NO_PAYMENT_METHOD","FAILED_TO_UPDATE_CREDIT_CARD","STRIPE_API_AUTHENTICATION_ERROR","STRIPE_API_INVALID_REQUEST_ERROR","STRIPE_GATEWAY_NOT_ENABLED","STRIPE_RETURNED_NO_PAYMENT_METHOD","STRIPE_PAYMENT_METHOD_NOT_CARD","BRAINTREE_API_AUTHENTICATION_ERROR","BRAINTREE_GATEWAY_NOT_ENABLED","BRAINTREE_RETURNED_NO_PAYMENT_METHOD","BRAINTREE_PAYMENT_METHOD_NOT_CARD","PAYMENT_METHOD_VERIFICATION_FAILED","THREE_D_SECURE_FLOW_IN_VERIFICATION_NOT_IMPLEMENTED","MANUALLY_REVOKED","FAILED_TO_RETRIEVE_BILLING_ADDRESS","MERGED","CUSTOMER_REDACTED","TOO_MANY_CONSECUTIVE_FAILURES","CVV_ATTEMPTS_LIMIT_EXCEEDED","$UNKNOWN"],"type":"string","uniqueKey":"customerPaymentMethod.revokedReason","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"customerPaymentMethod","typeLabel":"object"},"deliveryMethod":{"properties":{"get__typename":{"type":"string","uniqueKey":"deliveryMethod.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"deliveryMethod","typeLabel":"object"},"deliveryPolicy":{"properties":{"anchors":{"items":{"properties":{"cutoffDay":{"format":"int32","type":"integer","uniqueKey":"deliveryPolicy.anchors.items.[INDEX].cutoffDay","typeLabel":"integer\u003cint32>"},"day":{"format":"int32","type":"integer","uniqueKey":"deliveryPolicy.anchors.items.[INDEX].day","typeLabel":"integer\u003cint32>"},"get__typename":{"type":"string","uniqueKey":"deliveryPolicy.anchors.items.[INDEX].get__typename","typeLabel":"string"},"month":{"format":"int32","type":"integer","uniqueKey":"deliveryPolicy.anchors.items.[INDEX].month","typeLabel":"integer\u003cint32>"},"type":{"enum":["WEEKDAY","MONTHDAY","YEARDAY","$UNKNOWN"],"type":"string","uniqueKey":"deliveryPolicy.anchors.items.[INDEX].type","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"deliveryPolicy.anchors.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"deliveryPolicy.anchors","typeLabel":"object[]"},"get__typename":{"type":"string","uniqueKey":"deliveryPolicy.get__typename","typeLabel":"string"},"interval":{"enum":["DAY","WEEK","MONTH","YEAR","$UNKNOWN"],"type":"string","uniqueKey":"deliveryPolicy.interval","typeLabel":"enum\u003cstring>"},"intervalCount":{"format":"int32","type":"integer","uniqueKey":"deliveryPolicy.intervalCount","typeLabel":"integer\u003cint32>"}},"type":"object","uniqueKey":"deliveryPolicy","typeLabel":"object"},"deliveryPrice":{"properties":{"amount":{"type":"object","uniqueKey":"deliveryPrice.amount","typeLabel":"object"},"currencyCode":{"enum":["USD","EUR","GBP","CAD","AFN","ALL","DZD","AOA","ARS","AMD","AWG","AUD","BBD","AZN","BDT","BSD","BHD","BIF","BYN","BZD","BMD","BTN","BAM","BRL","BOB","BWP","BND","BGN","MMK","KHR","CVE","KYD","XAF","CLP","CNY","COP","KMF","CDF","CRC","HRK","CZK","DKK","DJF","DOP","XCD","EGP","ERN","ETB","FKP","XPF","FJD","GIP","GMD","GHS","GTQ","GYD","GEL","GNF","HTG","HNL","HKD","HUF","ISK","INR","IDR","ILS","IRR","IQD","JMD","JPY","JEP","JOD","KZT","KES","KID","KWD","KGS","LAK","LVL","LBP","LSL","LRD","LYD","LTL","MGA","MKD","MOP","MWK","MVR","MRU","MXN","MYR","MUR","MDL","MAD","MNT","MZN","NAD","NPR","ANG","NZD","NIO","NGN","NOK","OMR","PAB","PKR","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","WST","SHP","SAR","RSD","SCR","SLL","SGD","SDG","SOS","SYP","ZAR","KRW","SSP","SBD","LKR","SRD","SZL","SEK","CHF","TWD","THB","TJS","TZS","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","UYU","UZS","VUV","VES","VND","XOF","YER","ZMW","USDC","BYR","STD","STN","VED","VEF","XXX","$UNKNOWN"],"type":"string","uniqueKey":"deliveryPrice.currencyCode","typeLabel":"enum\u003cstring>"},"get__typename":{"type":"string","uniqueKey":"deliveryPrice.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"deliveryPrice","typeLabel":"object"},"discounts":{"properties":{"get__typename":{"type":"string","uniqueKey":"discounts.get__typename","typeLabel":"string"},"nodes":{"items":{"properties":{"get__typename":{"type":"string","uniqueKey":"discounts.nodes.items.[INDEX].get__typename","typeLabel":"string"},"id":{"type":"string","uniqueKey":"discounts.nodes.items.[INDEX].id","typeLabel":"string"},"recurringCycleLimit":{"format":"int32","type":"integer","uniqueKey":"discounts.nodes.items.[INDEX].recurringCycleLimit","typeLabel":"integer\u003cint32>"},"rejectionReason":{"enum":["NOT_FOUND","NO_ENTITLED_LINE_ITEMS","QUANTITY_NOT_IN_RANGE","PURCHASE_NOT_IN_RANGE","CUSTOMER_NOT_ELIGIBLE","USAGE_LIMIT_REACHED","CUSTOMER_USAGE_LIMIT_REACHED","CURRENTLY_INACTIVE","NO_ENTITLED_SHIPPING_LINES","INCOMPATIBLE_PURCHASE_TYPE","INTERNAL_ERROR","$UNKNOWN"],"type":"string","uniqueKey":"discounts.nodes.items.[INDEX].rejectionReason","typeLabel":"enum\u003cstring>"},"targetType":{"enum":["LINE_ITEM","SHIPPING_LINE","$UNKNOWN"],"type":"string","uniqueKey":"discounts.nodes.items.[INDEX].targetType","typeLabel":"enum\u003cstring>"},"title":{"type":"string","uniqueKey":"discounts.nodes.items.[INDEX].title","typeLabel":"string"},"type":{"enum":["MANUAL","CODE_DISCOUNT","AUTOMATIC_DISCOUNT","$UNKNOWN"],"type":"string","uniqueKey":"discounts.nodes.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"usageCount":{"format":"int32","type":"integer","uniqueKey":"discounts.nodes.items.[INDEX].usageCount","typeLabel":"integer\u003cint32>"},"value":{"properties":{"get__typename":{"type":"string","uniqueKey":"discounts.nodes.items.[INDEX].value.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"discounts.nodes.items.[INDEX].value","typeLabel":"object"}},"type":"object","uniqueKey":"discounts.nodes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"discounts.nodes","typeLabel":"object[]"},"pageInfo":{"properties":{"endCursor":{"type":"string","uniqueKey":"discounts.pageInfo.endCursor","typeLabel":"string"},"get__typename":{"type":"string","uniqueKey":"discounts.pageInfo.get__typename","typeLabel":"string"},"hasNextPage":{"type":"boolean","uniqueKey":"discounts.pageInfo.hasNextPage","typeLabel":"boolean"},"hasPreviousPage":{"type":"boolean","uniqueKey":"discounts.pageInfo.hasPreviousPage","typeLabel":"boolean"},"startCursor":{"type":"string","uniqueKey":"discounts.pageInfo.startCursor","typeLabel":"string"}},"type":"object","uniqueKey":"discounts.pageInfo","typeLabel":"object"}},"type":"object","uniqueKey":"discounts","typeLabel":"object"},"get__typename":{"type":"string","uniqueKey":"get__typename","typeLabel":"string"},"id":{"type":"string","uniqueKey":"id","typeLabel":"string"},"lastPaymentStatus":{"enum":["SUCCEEDED","FAILED","$UNKNOWN"],"type":"string","uniqueKey":"lastPaymentStatus","typeLabel":"enum\u003cstring>"},"lines":{"properties":{"get__typename":{"type":"string","uniqueKey":"lines.get__typename","typeLabel":"string"},"nodes":{"items":{"properties":{"currentPrice":{"properties":{"amount":{"type":"object","uniqueKey":"lines.nodes.items.[INDEX].currentPrice.amount","typeLabel":"object"},"currencyCode":{"enum":["USD","EUR","GBP","CAD","AFN","ALL","DZD","AOA","ARS","AMD","AWG","AUD","BBD","AZN","BDT","BSD","BHD","BIF","BYN","BZD","BMD","BTN","BAM","BRL","BOB","BWP","BND","BGN","MMK","KHR","CVE","KYD","XAF","CLP","CNY","COP","KMF","CDF","CRC","HRK","CZK","DKK","DJF","DOP","XCD","EGP","ERN","ETB","FKP","XPF","FJD","GIP","GMD","GHS","GTQ","GYD","GEL","GNF","HTG","HNL","HKD","HUF","ISK","INR","IDR","ILS","IRR","IQD","JMD","JPY","JEP","JOD","KZT","KES","KID","KWD","KGS","LAK","LVL","LBP","LSL","LRD","LYD","LTL","MGA","MKD","MOP","MWK","MVR","MRU","MXN","MYR","MUR","MDL","MAD","MNT","MZN","NAD","NPR","ANG","NZD","NIO","NGN","NOK","OMR","PAB","PKR","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","WST","SHP","SAR","RSD","SCR","SLL","SGD","SDG","SOS","SYP","ZAR","KRW","SSP","SBD","LKR","SRD","SZL","SEK","CHF","TWD","THB","TJS","TZS","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","UYU","UZS","VUV","VES","VND","XOF","YER","ZMW","USDC","BYR","STD","STN","VED","VEF","XXX","$UNKNOWN"],"type":"string","uniqueKey":"lines.nodes.items.[INDEX].currentPrice.currencyCode","typeLabel":"enum\u003cstring>"},"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].currentPrice.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].currentPrice","typeLabel":"object"},"customAttributes":{"items":{"properties":{"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].customAttributes.items.[INDEX].get__typename","typeLabel":"string"},"key":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].customAttributes.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].customAttributes.items.[INDEX].value","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].customAttributes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"lines.nodes.items.[INDEX].customAttributes","typeLabel":"object[]"},"discountAllocations":{"items":{"properties":{"amount":{"properties":{"amount":{"type":"object","uniqueKey":"lines.nodes.items.[INDEX].discountAllocations.items.[INDEX].amount.amount","typeLabel":"object"},"currencyCode":{"enum":["USD","EUR","GBP","CAD","AFN","ALL","DZD","AOA","ARS","AMD","AWG","AUD","BBD","AZN","BDT","BSD","BHD","BIF","BYN","BZD","BMD","BTN","BAM","BRL","BOB","BWP","BND","BGN","MMK","KHR","CVE","KYD","XAF","CLP","CNY","COP","KMF","CDF","CRC","HRK","CZK","DKK","DJF","DOP","XCD","EGP","ERN","ETB","FKP","XPF","FJD","GIP","GMD","GHS","GTQ","GYD","GEL","GNF","HTG","HNL","HKD","HUF","ISK","INR","IDR","ILS","IRR","IQD","JMD","JPY","JEP","JOD","KZT","KES","KID","KWD","KGS","LAK","LVL","LBP","LSL","LRD","LYD","LTL","MGA","MKD","MOP","MWK","MVR","MRU","MXN","MYR","MUR","MDL","MAD","MNT","MZN","NAD","NPR","ANG","NZD","NIO","NGN","NOK","OMR","PAB","PKR","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","WST","SHP","SAR","RSD","SCR","SLL","SGD","SDG","SOS","SYP","ZAR","KRW","SSP","SBD","LKR","SRD","SZL","SEK","CHF","TWD","THB","TJS","TZS","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","UYU","UZS","VUV","VES","VND","XOF","YER","ZMW","USDC","BYR","STD","STN","VED","VEF","XXX","$UNKNOWN"],"type":"string","uniqueKey":"lines.nodes.items.[INDEX].discountAllocations.items.[INDEX].amount.currencyCode","typeLabel":"enum\u003cstring>"},"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].discountAllocations.items.[INDEX].amount.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].discountAllocations.items.[INDEX].amount","typeLabel":"object"},"discount":{"properties":{"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].discountAllocations.items.[INDEX].discount.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].discountAllocations.items.[INDEX].discount","typeLabel":"object"},"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].discountAllocations.items.[INDEX].get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].discountAllocations.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"lines.nodes.items.[INDEX].discountAllocations","typeLabel":"object[]"},"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].get__typename","typeLabel":"string"},"id":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].id","typeLabel":"string"},"lineDiscountedPrice":{"properties":{"amount":{"type":"object","uniqueKey":"lines.nodes.items.[INDEX].lineDiscountedPrice.amount","typeLabel":"object"},"currencyCode":{"enum":["USD","EUR","GBP","CAD","AFN","ALL","DZD","AOA","ARS","AMD","AWG","AUD","BBD","AZN","BDT","BSD","BHD","BIF","BYN","BZD","BMD","BTN","BAM","BRL","BOB","BWP","BND","BGN","MMK","KHR","CVE","KYD","XAF","CLP","CNY","COP","KMF","CDF","CRC","HRK","CZK","DKK","DJF","DOP","XCD","EGP","ERN","ETB","FKP","XPF","FJD","GIP","GMD","GHS","GTQ","GYD","GEL","GNF","HTG","HNL","HKD","HUF","ISK","INR","IDR","ILS","IRR","IQD","JMD","JPY","JEP","JOD","KZT","KES","KID","KWD","KGS","LAK","LVL","LBP","LSL","LRD","LYD","LTL","MGA","MKD","MOP","MWK","MVR","MRU","MXN","MYR","MUR","MDL","MAD","MNT","MZN","NAD","NPR","ANG","NZD","NIO","NGN","NOK","OMR","PAB","PKR","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","WST","SHP","SAR","RSD","SCR","SLL","SGD","SDG","SOS","SYP","ZAR","KRW","SSP","SBD","LKR","SRD","SZL","SEK","CHF","TWD","THB","TJS","TZS","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","UYU","UZS","VUV","VES","VND","XOF","YER","ZMW","USDC","BYR","STD","STN","VED","VEF","XXX","$UNKNOWN"],"type":"string","uniqueKey":"lines.nodes.items.[INDEX].lineDiscountedPrice.currencyCode","typeLabel":"enum\u003cstring>"},"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].lineDiscountedPrice.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].lineDiscountedPrice","typeLabel":"object"},"pricingPolicy":{"properties":{"basePrice":{"properties":{"amount":{"type":"object","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.basePrice.amount","typeLabel":"object"},"currencyCode":{"enum":["USD","EUR","GBP","CAD","AFN","ALL","DZD","AOA","ARS","AMD","AWG","AUD","BBD","AZN","BDT","BSD","BHD","BIF","BYN","BZD","BMD","BTN","BAM","BRL","BOB","BWP","BND","BGN","MMK","KHR","CVE","KYD","XAF","CLP","CNY","COP","KMF","CDF","CRC","HRK","CZK","DKK","DJF","DOP","XCD","EGP","ERN","ETB","FKP","XPF","FJD","GIP","GMD","GHS","GTQ","GYD","GEL","GNF","HTG","HNL","HKD","HUF","ISK","INR","IDR","ILS","IRR","IQD","JMD","JPY","JEP","JOD","KZT","KES","KID","KWD","KGS","LAK","LVL","LBP","LSL","LRD","LYD","LTL","MGA","MKD","MOP","MWK","MVR","MRU","MXN","MYR","MUR","MDL","MAD","MNT","MZN","NAD","NPR","ANG","NZD","NIO","NGN","NOK","OMR","PAB","PKR","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","WST","SHP","SAR","RSD","SCR","SLL","SGD","SDG","SOS","SYP","ZAR","KRW","SSP","SBD","LKR","SRD","SZL","SEK","CHF","TWD","THB","TJS","TZS","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","UYU","UZS","VUV","VES","VND","XOF","YER","ZMW","USDC","BYR","STD","STN","VED","VEF","XXX","$UNKNOWN"],"type":"string","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.basePrice.currencyCode","typeLabel":"enum\u003cstring>"},"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.basePrice.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.basePrice","typeLabel":"object"},"cycleDiscounts":{"items":{"properties":{"adjustmentType":{"enum":["PERCENTAGE","FIXED_AMOUNT","PRICE","$UNKNOWN"],"type":"string","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX].adjustmentType","typeLabel":"enum\u003cstring>"},"adjustmentValue":{"properties":{"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX].adjustmentValue.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX].adjustmentValue","typeLabel":"object"},"afterCycle":{"format":"int32","type":"integer","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX].afterCycle","typeLabel":"integer\u003cint32>"},"computedPrice":{"properties":{"amount":{"type":"object","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX].computedPrice.amount","typeLabel":"object"},"currencyCode":{"enum":["USD","EUR","GBP","CAD","AFN","ALL","DZD","AOA","ARS","AMD","AWG","AUD","BBD","AZN","BDT","BSD","BHD","BIF","BYN","BZD","BMD","BTN","BAM","BRL","BOB","BWP","BND","BGN","MMK","KHR","CVE","KYD","XAF","CLP","CNY","COP","KMF","CDF","CRC","HRK","CZK","DKK","DJF","DOP","XCD","EGP","ERN","ETB","FKP","XPF","FJD","GIP","GMD","GHS","GTQ","GYD","GEL","GNF","HTG","HNL","HKD","HUF","ISK","INR","IDR","ILS","IRR","IQD","JMD","JPY","JEP","JOD","KZT","KES","KID","KWD","KGS","LAK","LVL","LBP","LSL","LRD","LYD","LTL","MGA","MKD","MOP","MWK","MVR","MRU","MXN","MYR","MUR","MDL","MAD","MNT","MZN","NAD","NPR","ANG","NZD","NIO","NGN","NOK","OMR","PAB","PKR","PGK","PYG","PEN","PHP","PLN","QAR","RON","RUB","RWF","WST","SHP","SAR","RSD","SCR","SLL","SGD","SDG","SOS","SYP","ZAR","KRW","SSP","SBD","LKR","SRD","SZL","SEK","CHF","TWD","THB","TJS","TZS","TOP","TTD","TND","TRY","TMT","UGX","UAH","AED","UYU","UZS","VUV","VES","VND","XOF","YER","ZMW","USDC","BYR","STD","STN","VED","VEF","XXX","$UNKNOWN"],"type":"string","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX].computedPrice.currencyCode","typeLabel":"enum\u003cstring>"},"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX].computedPrice.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX].computedPrice","typeLabel":"object"},"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX].get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.cycleDiscounts","typeLabel":"object[]"},"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy.get__typename","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].pricingPolicy","typeLabel":"object"},"productId":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].productId","typeLabel":"string"},"quantity":{"format":"int32","type":"integer","uniqueKey":"lines.nodes.items.[INDEX].quantity","typeLabel":"integer\u003cint32>"},"sellingPlanId":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].sellingPlanId","typeLabel":"string"},"sellingPlanName":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].sellingPlanName","typeLabel":"string"},"sku":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].sku","typeLabel":"string"},"taxable":{"type":"boolean","uniqueKey":"lines.nodes.items.[INDEX].taxable","typeLabel":"boolean"},"title":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].title","typeLabel":"string"},"variantId":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].variantId","typeLabel":"string"},"variantImage":{"properties":{"get__typename":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].variantImage.get__typename","typeLabel":"string"},"url":{"type":"object","uniqueKey":"lines.nodes.items.[INDEX].variantImage.url","typeLabel":"object"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX].variantImage","typeLabel":"object"},"variantTitle":{"type":"string","uniqueKey":"lines.nodes.items.[INDEX].variantTitle","typeLabel":"string"}},"type":"object","uniqueKey":"lines.nodes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"lines.nodes","typeLabel":"object[]"},"pageInfo":{"properties":{"endCursor":{"type":"string","uniqueKey":"lines.pageInfo.endCursor","typeLabel":"string"},"get__typename":{"type":"string","uniqueKey":"lines.pageInfo.get__typename","typeLabel":"string"},"hasNextPage":{"type":"boolean","uniqueKey":"lines.pageInfo.hasNextPage","typeLabel":"boolean"},"hasPreviousPage":{"type":"boolean","uniqueKey":"lines.pageInfo.hasPreviousPage","typeLabel":"boolean"},"startCursor":{"type":"string","uniqueKey":"lines.pageInfo.startCursor","typeLabel":"string"}},"type":"object","uniqueKey":"lines.pageInfo","typeLabel":"object"}},"type":"object","uniqueKey":"lines","typeLabel":"object"},"nextBillingDate":{"type":"object","uniqueKey":"nextBillingDate","typeLabel":"object"},"note":{"type":"string","uniqueKey":"note","typeLabel":"string"},"originOrder":{"properties":{"fulfillmentOrders":{"properties":{"get__typename":{"type":"string","uniqueKey":"originOrder.fulfillmentOrders.get__typename","typeLabel":"string"},"nodes":{"items":{"properties":{"fulfillAt":{"type":"object","uniqueKey":"originOrder.fulfillmentOrders.nodes.items.[INDEX].fulfillAt","typeLabel":"object"},"get__typename":{"type":"string","uniqueKey":"originOrder.fulfillmentOrders.nodes.items.[INDEX].get__typename","typeLabel":"string"},"id":{"type":"string","uniqueKey":"originOrder.fulfillmentOrders.nodes.items.[INDEX].id","typeLabel":"string"},"status":{"enum":["OPEN","IN_PROGRESS","CANCELLED","INCOMPLETE","CLOSED","SCHEDULED","ON_HOLD","$UNKNOWN"],"type":"string","uniqueKey":"originOrder.fulfillmentOrders.nodes.items.[INDEX].status","typeLabel":"enum\u003cstring>"}},"type":"object","uniqueKey":"originOrder.fulfillmentOrders.nodes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"originOrder.fulfillmentOrders.nodes","typeLabel":"object[]"},"pageInfo":{"properties":{"endCursor":{"type":"string","uniqueKey":"originOrder.fulfillmentOrders.pageInfo.endCursor","typeLabel":"string"},"get__typename":{"type":"string","uniqueKey":"originOrder.fulfillmentOrders.pageInfo.get__typename","typeLabel":"string"},"hasNextPage":{"type":"boolean","uniqueKey":"originOrder.fulfillmentOrders.pageInfo.hasNextPage","typeLabel":"boolean"},"hasPreviousPage":{"type":"boolean","uniqueKey":"originOrder.fulfillmentOrders.pageInfo.hasPreviousPage","typeLabel":"boolean"},"startCursor":{"type":"string","uniqueKey":"originOrder.fulfillmentOrders.pageInfo.startCursor","typeLabel":"string"}},"type":"object","uniqueKey":"originOrder.fulfillmentOrders.pageInfo","typeLabel":"object"}},"type":"object","uniqueKey":"originOrder.fulfillmentOrders","typeLabel":"object"},"get__typename":{"type":"string","uniqueKey":"originOrder.get__typename","typeLabel":"string"},"id":{"type":"string","uniqueKey":"originOrder.id","typeLabel":"string"},"name":{"type":"string","uniqueKey":"originOrder.name","typeLabel":"string"}},"type":"object","uniqueKey":"originOrder","typeLabel":"object"},"revisionId":{"type":"object","uniqueKey":"revisionId","typeLabel":"object"},"status":{"enum":["ACTIVE","PAUSED","CANCELLED","EXPIRED","FAILED","$UNKNOWN"],"type":"string","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"updatedAt":{"type":"object","uniqueKey":"updatedAt","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"billingAttempts":{"get__typename":"\u003cstring>","nodes":[{"completedAt":{},"createdAt":{},"get__typename":"\u003cstring>","id":"\u003cstring>","idempotencyKey":"\u003cstring>","ready":true}]},"billingPolicy":{"anchors":[{"cutoffDay":123,"day":123,"get__typename":"\u003cstring>","month":123,"type":"WEEKDAY"}],"get__typename":"\u003cstring>","interval":"DAY","intervalCount":123,"maxCycles":123,"minCycles":123},"createdAt":{},"customAttributes":[{"get__typename":"\u003cstring>","key":"\u003cstring>","value":"\u003cstring>"}],"customer":{"displayName":"\u003cstring>","email":"\u003cstring>","firstName":"\u003cstring>","get__typename":"\u003cstring>","id":"\u003cstring>","lastName":"\u003cstring>","phone":"\u003cstring>"},"customerPaymentMethod":{"get__typename":"\u003cstring>","id":"\u003cstring>","instrument":{"get__typename":"\u003cstring>"},"revokedAt":{},"revokedReason":"AUTHORIZE_NET_GATEWAY_NOT_ENABLED"},"deliveryMethod":{"get__typename":"\u003cstring>"},"deliveryPolicy":{"anchors":[{"cutoffDay":123,"day":123,"get__typename":"\u003cstring>","month":123,"type":"WEEKDAY"}],"get__typename":"\u003cstring>","interval":"DAY","intervalCount":123},"deliveryPrice":{"amount":{},"currencyCode":"USD","get__typename":"\u003cstring>"},"discounts":{"get__typename":"\u003cstring>","nodes":[{"get__typename":"\u003cstring>","id":"\u003cstring>","recurringCycleLimit":123,"rejectionReason":"NOT_FOUND","targetType":"LINE_ITEM","title":"\u003cstring>","type":"MANUAL","usageCount":123,"value":{"get__typename":"\u003cstring>"}}],"pageInfo":{"endCursor":"\u003cstring>","get__typename":"\u003cstring>","hasNextPage":true,"hasPreviousPage":true,"startCursor":"\u003cstring>"}},"get__typename":"\u003cstring>","id":"\u003cstring>","lastPaymentStatus":"SUCCEEDED","lines":{"get__typename":"\u003cstring>","nodes":[{"currentPrice":{"amount":{},"currencyCode":"USD","get__typename":"\u003cstring>"},"customAttributes":[{"get__typename":"\u003cstring>","key":"\u003cstring>","value":"\u003cstring>"}],"discountAllocations":[{"amount":{"amount":{},"currencyCode":"USD","get__typename":"\u003cstring>"},"discount":{"get__typename":"\u003cstring>"},"get__typename":"\u003cstring>"}],"get__typename":"\u003cstring>","id":"\u003cstring>","lineDiscountedPrice":{"amount":{},"currencyCode":"USD","get__typename":"\u003cstring>"},"pricingPolicy":{"basePrice":{"amount":{},"currencyCode":"USD","get__typename":"\u003cstring>"},"cycleDiscounts":[{"adjustmentType":"PERCENTAGE","adjustmentValue":{"get__typename":"\u003cstring>"},"afterCycle":123,"computedPrice":{"amount":{},"currencyCode":"USD","get__typename":"\u003cstring>"},"get__typename":"\u003cstring>"}],"get__typename":"\u003cstring>"},"productId":"\u003cstring>","quantity":123,"sellingPlanId":"\u003cstring>","sellingPlanName":"\u003cstring>","sku":"\u003cstring>","taxable":true,"title":"\u003cstring>","variantId":"\u003cstring>","variantImage":{"get__typename":"\u003cstring>","url":{}},"variantTitle":"\u003cstring>"}],"pageInfo":{"endCursor":"\u003cstring>","get__typename":"\u003cstring>","hasNextPage":true,"hasPreviousPage":true,"startCursor":"\u003cstring>"}},"nextBillingDate":{},"note":"\u003cstring>","originOrder":{"fulfillmentOrders":{"get__typename":"\u003cstring>","nodes":[{"fulfillAt":{},"get__typename":"\u003cstring>","id":"\u003cstring>","status":"OPEN"}],"pageInfo":{"endCursor":"\u003cstring>","get__typename":"\u003cstring>","hasNextPage":true,"hasPreviousPage":true,"startCursor":"\u003cstring>"}},"get__typename":"\u003cstring>","id":"\u003cstring>","name":"\u003cstring>"},"revisionId":{},"status":"ACTIVE","updatedAt":{}}}},"exampleType":"generated"}},"description":"Successfully retrieved raw Shopify contract data","exampleType":"generated"},"64fdf2f0-fa95-4a56-82be-f12afde3be9f":{"content":{"application/json":{"example":{"detail":"Contract ID must be a valid positive integer","status":400,"title":"Invalid contract ID","type":"https://example.com/errors/bad-request"},"examples":{"Example":{"title":"Example","value":{"detail":"Contract ID must be a valid positive integer","status":400,"title":"Invalid contract ID","type":"https://example.com/errors/bad-request"}}},"exampleType":"examples"}},"description":"Bad request - Invalid contract ID","exampleType":"examples"},"b7072920-ec87-471a-9f7a-b4b69ea0ce73":{"content":{"application/json":{"example":{"detail":"Valid X-API-Key header is required","status":401,"title":"Authentication required","type":"https://example.com/errors/unauthorized"},"examples":{"Example":{"title":"Example","value":{"detail":"Valid X-API-Key header is required","status":401,"title":"Authentication required","type":"https://example.com/errors/unauthorized"}}},"exampleType":"examples"}},"description":"Authentication required","exampleType":"examples"},"e1ef849d-ef1d-4db1-aa29-4987e6835d26":{"content":{"application/json":{"example":{"detail":"Subscription contract does not belong to your shop","status":403,"title":"Access denied","type":"https://example.com/errors/forbidden"},"examples":{"Example":{"title":"Example","value":{"detail":"Subscription contract does not belong to your shop","status":403,"title":"Access denied","type":"https://example.com/errors/forbidden"}}},"exampleType":"examples"}},"description":"Forbidden - Contract does not belong to authenticated shop","exampleType":"examples"},"2cd9ab5a-d3d4-4ace-8ff3-c3d688d453d6":{"content":{"application/json":{"example":{"detail":"No subscription contract found with ID 12345 in Shopify","status":404,"title":"Contract not found","type":"https://example.com/errors/not-found"},"examples":{"Example":{"title":"Example","value":{"detail":"No subscription contract found with ID 12345 in Shopify","status":404,"title":"Contract not found","type":"https://example.com/errors/not-found"}}},"exampleType":"examples"}},"description":"Contract not found in Shopify","exampleType":"examples"},"c3981ae1-2117-4c78-87fb-66a2c82d9aad":{"content":{"application/json":{"example":{"detail":"Shopify API rate limit exceeded. Please retry after 60 seconds.","retryAfter":60,"status":429,"title":"Rate limit exceeded","type":"https://example.com/errors/rate-limit"},"examples":{"Example":{"title":"Example","value":{"detail":"Shopify API rate limit exceeded. Please retry after 60 seconds.","retryAfter":60,"status":429,"title":"Rate limit exceeded","type":"https://example.com/errors/rate-limit"}}},"exampleType":"examples"}},"description":"Rate limit exceeded - Shopify API rate limit hit","exampleType":"examples"},"b3035cb1-1466-429f-ba1e-f64af412ec65":{"content":{"application/json":{"example":{"detail":"Failed to retrieve contract from Shopify. Please try again later.","status":502,"title":"Shopify API error","type":"https://example.com/errors/bad-gateway"},"examples":{"Example":{"title":"Example","value":{"detail":"Failed to retrieve contract from Shopify. Please try again later.","status":502,"title":"Shopify API error","type":"https://example.com/errors/bad-gateway"}}},"exampleType":"examples"}},"description":"Bad gateway - Shopify API error","exampleType":"examples"}},"security":{},"servers":{"d3c9e56f-e67b-483f-979d-9b57afc23940":{"url":"https://subscription-admin.appstle.com"}}},"originalFileLocation":"subscription/admin-api-swagger.json"},"subdomain":"appstleinc-aeca3e0a","siteName":"Appstle","title":"Get raw Shopify GraphQL contract response - Appstle","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-08T12:41:24.500Z","originalFileLocation":"subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Retrieves the complete, unprocessed subscription contract data directly from Shopify\u0026#x27;s GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata. What This Endpoint Returns: Unlike processed/transformed endpoints, this returns Shopify\u0026#x27;s raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify\u0026#x27;s GraphQL API directly, making it ideal for: - Debugging Shopify data synchronization issues - Accessing fields not exposed in other endpoints - Understanding complete Shopify contract structure - Building custom integrations requiring full data - Comparing Shopify source data with processed data Data Included: Contract Core: - Full subscription contract object from Shopify - All GraphQL typename fields preserved - Complete nested object structures - All available Shopify contract fields Customer Information: - Complete customer object with all fields - Default address details - Customer tags and metadata - Marketing preferences Line Items: - Full line item details with edges/nodes structure - Product and variant complete objects - Pricing policies with all cycle discounts - Line item custom attributes - Current and original prices Billing \u0026amp; Delivery: - Complete billing policy object - Full delivery policy details - Delivery method with all fields - Delivery price breakdown - Billing anchor details Payment Information: - Payment method details (if available) - Customer payment instrument - Payment gateway information Orders \u0026amp; History: - Origin order details - Last payment status - Historical billing attempts (in Appstle) Use Cases: 1. Debugging \u0026amp; Troubleshooting: - Investigate data sync discrepancies - Verify what Shopify actually stores - Debug webhook payload issues - Compare expected vs actual data 2. Advanced Integrations: - Access Shopify-specific fields not in standard APIs - Build custom analytics using raw data - Integrate with Shopify GraphQL directly - Extract fields for custom processing 3. Data Analysis: - Analyze complete contract structure - Extract all available metadata - Build comprehensive data exports - Perform deep data audits 4. Development \u0026amp; Testing: - Understand Shopify\u0026#x27;s data model - Test new feature development - Verify API responses - Documentation and examples Response Structure: Returns SubscriptionContractQuery.SubscriptionContract object: json { \u0026quot;id\u0026quot;: \u0026quot;gid://shopify/SubscriptionContract/123456789\u0026quot;, \u0026quot;status\u0026quot;: \u0026quot;ACTIVE\u0026quot;, \u0026quot;nextBillingDate\u0026quot;: \u0026quot;2024-03-15T00:00:00Z\u0026quot;, \u0026quot;customer\u0026quot;: { \u0026quot;id\u0026quot;: \u0026quot;gid://shopify/Customer/987654321\u0026quot;, \u0026quot;email\u0026quot;: \u0026quot;customer@example.com\u0026quot;, \u0026quot;displayName\u0026quot;: \u0026quot;John Doe\u0026quot;, \u0026quot;typename\u0026quot;: \u0026quot;Customer\u0026quot; }, \u0026quot;lines\u0026quot;: { \u0026quot;edges\u0026quot;: [ { \u0026quot;node\u0026quot;: { \u0026quot;id\u0026quot;: \u0026quot;gid://shopify/SubscriptionLine/111111\u0026quot;, \u0026quot;quantity\u0026quot;: 2, \u0026quot;variantId\u0026quot;: \u0026quot;gid://shopify/ProductVariant/222222\u0026quot;, \u0026quot;title\u0026quot;: \u0026quot;Monthly Coffee Box\u0026quot;, \u0026quot;variantTitle\u0026quot;: \u0026quot;Medium Roast\u0026quot;, \u0026quot;currentPrice\u0026quot;: { \u0026quot;amount\u0026quot;: \u0026quot;29.99\u0026quot;, \u0026quot;currencyCode\u0026quot;: \u0026quot;USD\u0026quot; }, \u0026quot;pricingPolicy\u0026quot;: {...}, \u0026quot;typename\u0026quot;: \u0026quot;SubscriptionLine\u0026quot; } } ] }, \u0026quot;billingPolicy\u0026quot;: { \u0026quot;interval\u0026quot;: \u0026quot;MONTH\u0026quot;, \u0026quot;intervalCount\u0026quot;: 1, \u0026quot;minCycles\u0026quot;: 3, \u0026quot;maxCycles\u0026quot;: 12 }, \u0026quot;deliveryPolicy\u0026quot;: {...}, \u0026quot;deliveryMethod\u0026quot;: {...}, \u0026quot;typename\u0026quot;: \u0026quot;SubscriptionContract\u0026quot; } Important Considerations: Data Source: - Queries Shopify GraphQL API in real-time - NOT cached in Appstle database - Always returns current Shopify state - Subject to Shopify API rate limits Performance: - Slower than database queries (500-1500ms typical) - Makes real-time call to Shopify - Response size can be large (10-50 KB) - Use sparingly to avoid rate limits GraphQL Structure: - Includes __typename fields throughout - Uses GraphQL ID format (gid://shopify/...) - Nested edges/nodes structure for lists - All fields as defined in Shopify\u0026#x27;s schema Best Practices: 1. Use for Debugging: Perfect for troubleshooting data issues 2. Avoid Polling: Don\u0026#x27;t call repeatedly - use cached/processed endpoints instead 3. Cache Response: Cache the response if using for display 4. Parse Carefully: Handle GraphQL structure (edges/nodes) 5. Monitor Rate Limits: Each call counts against Shopify API limits When to Use vs Other Endpoints: Use this endpoint when: - Need complete Shopify contract data - Debugging synchronization issues - Accessing Shopify-specific fields - Building Shopify GraphQL integrations Use /api/external/v2/subscription-contract-details when: - Need processed, filtered contract data - Want faster response times - Querying multiple contracts - Building customer-facing UIs Authentication: Requires valid X-API-Key header\">\u003cmeta data-mint-head name=\"application-name\" content=\"Appstle\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get raw Shopify GraphQL contract response - Appstle\">\u003cmeta data-mint-head property=\"og:description\" content=\"Retrieves the complete, unprocessed subscription contract data directly from Shopify\u0026#x27;s GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata. What This Endpoint Returns: Unlike processed/transformed endpoints, this returns Shopify\u0026#x27;s raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify\u0026#x27;s GraphQL API directly, making it ideal for: - Debugging Shopify data synchronization issues - Accessing fields not exposed in other endpoints - Understanding complete Shopify contract structure - Building custom integrations requiring full data - Comparing Shopify source data with processed data Data Included: Contract Core: - Full subscription contract object from Shopify - All GraphQL typename fields preserved - Complete nested object structures - All available Shopify contract fields Customer Information: - Complete customer object with all fields - Default address details - Customer tags and metadata - Marketing preferences Line Items: - Full line item details with edges/nodes structure - Product and variant complete objects - Pricing policies with all cycle discounts - Line item custom attributes - Current and original prices Billing \u0026amp; Delivery: - Complete billing policy object - Full delivery policy details - Delivery method with all fields - Delivery price breakdown - Billing anchor details Payment Information: - Payment method details (if available) - Customer payment instrument - Payment gateway information Orders \u0026amp; History: - Origin order details - Last payment status - Historical billing attempts (in Appstle) Use Cases: 1. Debugging \u0026amp; Troubleshooting: - Investigate data sync discrepancies - Verify what Shopify actually stores - Debug webhook payload issues - Compare expected vs actual data 2. Advanced Integrations: - Access Shopify-specific fields not in standard APIs - Build custom analytics using raw data - Integrate with Shopify GraphQL directly - Extract fields for custom processing 3. Data Analysis: - Analyze complete contract structure - Extract all available metadata - Build comprehensive data exports - Perform deep data audits 4. Development \u0026amp; Testing: - Understand Shopify\u0026#x27;s data model - Test new feature development - Verify API responses - Documentation and examples Response Structure: Returns SubscriptionContractQuery.SubscriptionContract object: json { \u0026quot;id\u0026quot;: \u0026quot;gid://shopify/SubscriptionContract/123456789\u0026quot;, \u0026quot;status\u0026quot;: \u0026quot;ACTIVE\u0026quot;, \u0026quot;nextBillingDate\u0026quot;: \u0026quot;2024-03-15T00:00:00Z\u0026quot;, \u0026quot;customer\u0026quot;: { \u0026quot;id\u0026quot;: \u0026quot;gid://shopify/Customer/987654321\u0026quot;, \u0026quot;email\u0026quot;: \u0026quot;customer@example.com\u0026quot;, \u0026quot;displayName\u0026quot;: \u0026quot;John Doe\u0026quot;, \u0026quot;typename\u0026quot;: \u0026quot;Customer\u0026quot; }, \u0026quot;lines\u0026quot;: { \u0026quot;edges\u0026quot;: [ { \u0026quot;node\u0026quot;: { \u0026quot;id\u0026quot;: \u0026quot;gid://shopify/SubscriptionLine/111111\u0026quot;, \u0026quot;quantity\u0026quot;: 2, \u0026quot;variantId\u0026quot;: \u0026quot;gid://shopify/ProductVariant/222222\u0026quot;, \u0026quot;title\u0026quot;: \u0026quot;Monthly Coffee Box\u0026quot;, \u0026quot;variantTitle\u0026quot;: \u0026quot;Medium Roast\u0026quot;, \u0026quot;currentPrice\u0026quot;: { \u0026quot;amount\u0026quot;: \u0026quot;29.99\u0026quot;, \u0026quot;currencyCode\u0026quot;: \u0026quot;USD\u0026quot; }, \u0026quot;pricingPolicy\u0026quot;: {...}, \u0026quot;typename\u0026quot;: \u0026quot;SubscriptionLine\u0026quot; } } ] }, \u0026quot;billingPolicy\u0026quot;: { \u0026quot;interval\u0026quot;: \u0026quot;MONTH\u0026quot;, \u0026quot;intervalCount\u0026quot;: 1, \u0026quot;minCycles\u0026quot;: 3, \u0026quot;maxCycles\u0026quot;: 12 }, \u0026quot;deliveryPolicy\u0026quot;: {...}, \u0026quot;deliveryMethod\u0026quot;: {...}, \u0026quot;typename\u0026quot;: \u0026quot;SubscriptionContract\u0026quot; } Important Considerations: Data Source: - Queries Shopify GraphQL API in real-time - NOT cached in Appstle database - Always returns current Shopify state - Subject to Shopify API rate limits Performance: - Slower than database queries (500-1500ms typical) - Makes real-time call to Shopify - Response size can be large (10-50 KB) - Use sparingly to avoid rate limits GraphQL Structure: - Includes __typename fields throughout - Uses GraphQL ID format (gid://shopify/...) - Nested edges/nodes structure for lists - All fields as defined in Shopify\u0026#x27;s schema Best Practices: 1. Use for Debugging: Perfect for troubleshooting data issues 2. Avoid Polling: Don\u0026#x27;t call repeatedly - use cached/processed endpoints instead 3. Cache Response: Cache the response if using for display 4. Parse Carefully: Handle GraphQL structure (edges/nodes) 5. Monitor Rate Limits: Each call counts against Shopify API limits When to Use vs Other Endpoints: Use this endpoint when: - Need complete Shopify contract data - Debugging synchronization issues - Accessing Shopify-specific fields - Building Shopify GraphQL integrations Use /api/external/v2/subscription-contract-details when: - Need processed, filtered contract data - Want faster response times - Querying multiple contracts - Building customer-facing UIs Authentication: Requires valid X-API-Key header\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Appstle\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://appstleinc-aeca3e0a.mintlify.site/_mintlify/api/og/v2?division=Subscription+Management\u0026amp;title=Get+raw+Shopify+GraphQL+contract+response\u0026amp;description=Retrieves+the+complete%2C+unprocessed+subscription+contract+data+directly+from+Shopify%27s+GraphQL+API.+This+endpoint+returns+the+full+Shopify+subscription+contract\u0026amp;theme=5c3420c08540c444b143045f\u0026amp;signature=c220c4fde040a99433945473c7120d79e60f60e69279318f550732a8e4347867\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get raw Shopify GraphQL contract response - Appstle\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Retrieves the complete, unprocessed subscription contract data directly from Shopify\u0026#x27;s GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata. What This Endpoint Returns: Unlike processed/transformed endpoints, this returns Shopify\u0026#x27;s raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify\u0026#x27;s GraphQL API directly, making it ideal for: - Debugging Shopify data synchronization issues - Accessing fields not exposed in other endpoints - Understanding complete Shopify contract structure - Building custom integrations requiring full data - Comparing Shopify source data with processed data Data Included: Contract Core: - Full subscription contract object from Shopify - All GraphQL typename fields preserved - Complete nested object structures - All available Shopify contract fields Customer Information: - Complete customer object with all fields - Default address details - Customer tags and metadata - Marketing preferences Line Items: - Full line item details with edges/nodes structure - Product and variant complete objects - Pricing policies with all cycle discounts - Line item custom attributes - Current and original prices Billing \u0026amp; Delivery: - Complete billing policy object - Full delivery policy details - Delivery method with all fields - Delivery price breakdown - Billing anchor details Payment Information: - Payment method details (if available) - Customer payment instrument - Payment gateway information Orders \u0026amp; History: - Origin order details - Last payment status - Historical billing attempts (in Appstle) Use Cases: 1. Debugging \u0026amp; Troubleshooting: - Investigate data sync discrepancies - Verify what Shopify actually stores - Debug webhook payload issues - Compare expected vs actual data 2. Advanced Integrations: - Access Shopify-specific fields not in standard APIs - Build custom analytics using raw data - Integrate with Shopify GraphQL directly - Extract fields for custom processing 3. Data Analysis: - Analyze complete contract structure - Extract all available metadata - Build comprehensive data exports - Perform deep data audits 4. Development \u0026amp; Testing: - Understand Shopify\u0026#x27;s data model - Test new feature development - Verify API responses - Documentation and examples Response Structure: Returns SubscriptionContractQuery.SubscriptionContract object: json { \u0026quot;id\u0026quot;: \u0026quot;gid://shopify/SubscriptionContract/123456789\u0026quot;, \u0026quot;status\u0026quot;: \u0026quot;ACTIVE\u0026quot;, \u0026quot;nextBillingDate\u0026quot;: \u0026quot;2024-03-15T00:00:00Z\u0026quot;, \u0026quot;customer\u0026quot;: { \u0026quot;id\u0026quot;: \u0026quot;gid://shopify/Customer/987654321\u0026quot;, \u0026quot;email\u0026quot;: \u0026quot;customer@example.com\u0026quot;, \u0026quot;displayName\u0026quot;: \u0026quot;John Doe\u0026quot;, \u0026quot;typename\u0026quot;: \u0026quot;Customer\u0026quot; }, \u0026quot;lines\u0026quot;: { \u0026quot;edges\u0026quot;: [ { \u0026quot;node\u0026quot;: { \u0026quot;id\u0026quot;: \u0026quot;gid://shopify/SubscriptionLine/111111\u0026quot;, \u0026quot;quantity\u0026quot;: 2, \u0026quot;variantId\u0026quot;: \u0026quot;gid://shopify/ProductVariant/222222\u0026quot;, \u0026quot;title\u0026quot;: \u0026quot;Monthly Coffee Box\u0026quot;, \u0026quot;variantTitle\u0026quot;: \u0026quot;Medium Roast\u0026quot;, \u0026quot;currentPrice\u0026quot;: { \u0026quot;amount\u0026quot;: \u0026quot;29.99\u0026quot;, \u0026quot;currencyCode\u0026quot;: \u0026quot;USD\u0026quot; }, \u0026quot;pricingPolicy\u0026quot;: {...}, \u0026quot;typename\u0026quot;: \u0026quot;SubscriptionLine\u0026quot; } } ] }, \u0026quot;billingPolicy\u0026quot;: { \u0026quot;interval\u0026quot;: \u0026quot;MONTH\u0026quot;, \u0026quot;intervalCount\u0026quot;: 1, \u0026quot;minCycles\u0026quot;: 3, \u0026quot;maxCycles\u0026quot;: 12 }, \u0026quot;deliveryPolicy\u0026quot;: {...}, \u0026quot;deliveryMethod\u0026quot;: {...}, \u0026quot;typename\u0026quot;: \u0026quot;SubscriptionContract\u0026quot; } Important Considerations: Data Source: - Queries Shopify GraphQL API in real-time - NOT cached in Appstle database - Always returns current Shopify state - Subject to Shopify API rate limits Performance: - Slower than database queries (500-1500ms typical) - Makes real-time call to Shopify - Response size can be large (10-50 KB) - Use sparingly to avoid rate limits GraphQL Structure: - Includes __typename fields throughout - Uses GraphQL ID format (gid://shopify/...) - Nested edges/nodes structure for lists - All fields as defined in Shopify\u0026#x27;s schema Best Practices: 1. Use for Debugging: Perfect for troubleshooting data issues 2. Avoid Polling: Don\u0026#x27;t call repeatedly - use cached/processed endpoints instead 3. Cache Response: Cache the response if using for display 4. Parse Carefully: Handle GraphQL structure (edges/nodes) 5. Monitor Rate Limits: Each call counts against Shopify API limits When to Use vs Other Endpoints: Use this endpoint when: - Need complete Shopify contract data - Debugging synchronization issues - Accessing Shopify-specific fields - Building Shopify GraphQL integrations Use /api/external/v2/subscription-contract-details when: - Need processed, filtered contract data - Want faster response times - Querying multiple contracts - Building customer-facing UIs Authentication: Requires valid X-API-Key header\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://appstleinc-aeca3e0a.mintlify.site/_mintlify/api/og/v2?division=Subscription+Management\u0026amp;title=Get+raw+Shopify+GraphQL+contract+response\u0026amp;description=Retrieves+the+complete%2C+unprocessed+subscription+contract+data+directly+from+Shopify%27s+GraphQL+API.+This+endpoint+returns+the+full+Shopify+subscription+contract\u0026amp;theme=5c3420c08540c444b143045f\u0026amp;signature=c220c4fde040a99433945473c7120d79e60f60e69279318f550732a8e4347867\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/appstleinc-aeca3e0a/qTHqMufQccFjyOE2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Appstle\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0caceb\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.appstle.com/#organization\",\"name\":\"Appstle\",\"url\":\"https://developers.appstle.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://developers.appstle.com#website\",\"name\":\"Appstle\",\"url\":\"https://developers.appstle.com\",\"publisher\":{\"@id\":\"https://developers.appstle.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response#webpage\",\"url\":\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response\",\"name\":\"Get raw Shopify GraphQL contract response\",\"description\":\"Retrieves the complete, unprocessed subscription contract data directly from Shopify's GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata. What This Endpoint Returns: Unlike processed/transformed endpoints, this returns Shopify's raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify's GraphQL API directly, making it ideal for: - Debugging Shopify data synchronization issues - Accessing fields not exposed in other endpoints - Understanding complete Shopify contract structure - Building custom integrations requiring full data - Comparing Shopify source data with processed data Data Included: Contract Core: - Full subscription contract object from Shopify - All GraphQL typename fields preserved - Complete nested object structures - All available Shopify contract fields Customer Information: - Complete customer object with all fields - Default address details - Customer tags and metadata - Marketing preferences Line Items: - Full line item details with edges/nodes structure - Product and variant complete objects - Pricing policies with all cycle discounts - Line item custom attributes - Current and original prices Billing \u0026 Delivery: - Complete billing policy object - Full delivery policy details - Delivery method with all fields - Delivery price breakdown - Billing anchor details Payment Information: - Payment method details (if available) - Customer payment instrument - Payment gateway information Orders \u0026 History: - Origin order details - Last payment status - Historical billing attempts (in Appstle) Use Cases: 1. Debugging \u0026 Troubleshooting: - Investigate data sync discrepancies - Verify what Shopify actually stores - Debug webhook payload issues - Compare expected vs actual data 2. Advanced Integrations: - Access Shopify-specific fields not in standard APIs - Build custom analytics using raw data - Integrate with Shopify GraphQL directly - Extract fields for custom processing 3. Data Analysis: - Analyze complete contract structure - Extract all available metadata - Build comprehensive data exports - Perform deep data audits 4. Development \u0026 Testing: - Understand Shopify's data model - Test new feature development - Verify API responses - Documentation and examples Response Structure: Returns SubscriptionContractQuery.SubscriptionContract object: json { \\\"id\\\": \\\"gid://shopify/SubscriptionContract/123456789\\\", \\\"status\\\": \\\"ACTIVE\\\", \\\"nextBillingDate\\\": \\\"2024-03-15T00:00:00Z\\\", \\\"customer\\\": { \\\"id\\\": \\\"gid://shopify/Customer/987654321\\\", \\\"email\\\": \\\"customer@example.com\\\", \\\"displayName\\\": \\\"John Doe\\\", \\\"typename\\\": \\\"Customer\\\" }, \\\"lines\\\": { \\\"edges\\\": [ { \\\"node\\\": { \\\"id\\\": \\\"gid://shopify/SubscriptionLine/111111\\\", \\\"quantity\\\": 2, \\\"variantId\\\": \\\"gid://shopify/ProductVariant/222222\\\", \\\"title\\\": \\\"Monthly Coffee Box\\\", \\\"variantTitle\\\": \\\"Medium Roast\\\", \\\"currentPrice\\\": { \\\"amount\\\": \\\"29.99\\\", \\\"currencyCode\\\": \\\"USD\\\" }, \\\"pricingPolicy\\\": {...}, \\\"typename\\\": \\\"SubscriptionLine\\\" } } ] }, \\\"billingPolicy\\\": { \\\"interval\\\": \\\"MONTH\\\", \\\"intervalCount\\\": 1, \\\"minCycles\\\": 3, \\\"maxCycles\\\": 12 }, \\\"deliveryPolicy\\\": {...}, \\\"deliveryMethod\\\": {...}, \\\"typename\\\": \\\"SubscriptionContract\\\" } Important Considerations: Data Source: - Queries Shopify GraphQL API in real-time - NOT cached in Appstle database - Always returns current Shopify state - Subject to Shopify API rate limits Performance: - Slower than database queries (500-1500ms typical) - Makes real-time call to Shopify - Response size can be large (10-50 KB) - Use sparingly to avoid rate limits GraphQL Structure: - Includes __typename fields throughout - Uses GraphQL ID format (gid://shopify/...) - Nested edges/nodes structure for lists - All fields as defined in Shopify's schema Best Practices: 1. Use for Debugging: Perfect for troubleshooting data issues 2. Avoid Polling: Don't call repeatedly - use cached/processed endpoints instead 3. Cache Response: Cache the response if using for display 4. Parse Carefully: Handle GraphQL structure (edges/nodes) 5. Monitor Rate Limits: Each call counts against Shopify API limits When to Use vs Other Endpoints: Use this endpoint when: - Need complete Shopify contract data - Debugging synchronization issues - Accessing Shopify-specific fields - Building Shopify GraphQL integrations Use /api/external/v2/subscription-contract-details when: - Need processed, filtered contract data - Want faster response times - Querying multiple contracts - Building customer-facing UIs Authentication: Requires valid X-API-Key header\",\"dateModified\":\"2026-11-08T12:41:24.500Z\",\"isPartOf\":{\"@id\":\"https://developers.appstle.com#website\"},\"breadcrumb\":{\"@id\":\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Admin API\",\"item\":\"https://developers.appstle.com/subscription-admin-api/operations-\u0026-settings/getsearch-activity-logs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Subscription Management\",\"item\":\"https://developers.appstle.com/subscription-admin-api/subscription-management/list-quick-checkout-links\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Get raw Shopify GraphQL contract response\",\"item\":\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response#apireference\",\"headline\":\"Get raw Shopify GraphQL contract response\",\"name\":\"Get raw Shopify GraphQL contract response\",\"description\":\"Retrieves the complete, unprocessed subscription contract data directly from Shopify's GraphQL API. This endpoint returns the full Shopify subscription contract object exactly as Shopify provides it, including all nested fields, relationships, and GraphQL metadata. What This Endpoint Returns: Unlike processed/transformed endpoints, this returns Shopify's raw SubscriptionContract GraphQL object with all available fields. This is the same data structure you would receive if querying Shopify's GraphQL API directly, making it ideal for: - Debugging Shopify data synchronization issues - Accessing fields not exposed in other endpoints - Understanding complete Shopify contract structure - Building custom integrations requiring full data - Comparing Shopify source data with processed data Data Included: Contract Core: - Full subscription contract object from Shopify - All GraphQL typename fields preserved - Complete nested object structures - All available Shopify contract fields Customer Information: - Complete customer object with all fields - Default address details - Customer tags and metadata - Marketing preferences Line Items: - Full line item details with edges/nodes structure - Product and variant complete objects - Pricing policies with all cycle discounts - Line item custom attributes - Current and original prices Billing \u0026 Delivery: - Complete billing policy object - Full delivery policy details - Delivery method with all fields - Delivery price breakdown - Billing anchor details Payment Information: - Payment method details (if available) - Customer payment instrument - Payment gateway information Orders \u0026 History: - Origin order details - Last payment status - Historical billing attempts (in Appstle) Use Cases: 1. Debugging \u0026 Troubleshooting: - Investigate data sync discrepancies - Verify what Shopify actually stores - Debug webhook payload issues - Compare expected vs actual data 2. Advanced Integrations: - Access Shopify-specific fields not in standard APIs - Build custom analytics using raw data - Integrate with Shopify GraphQL directly - Extract fields for custom processing 3. Data Analysis: - Analyze complete contract structure - Extract all available metadata - Build comprehensive data exports - Perform deep data audits 4. Development \u0026 Testing: - Understand Shopify's data model - Test new feature development - Verify API responses - Documentation and examples Response Structure: Returns SubscriptionContractQuery.SubscriptionContract object: json { \\\"id\\\": \\\"gid://shopify/SubscriptionContract/123456789\\\", \\\"status\\\": \\\"ACTIVE\\\", \\\"nextBillingDate\\\": \\\"2024-03-15T00:00:00Z\\\", \\\"customer\\\": { \\\"id\\\": \\\"gid://shopify/Customer/987654321\\\", \\\"email\\\": \\\"customer@example.com\\\", \\\"displayName\\\": \\\"John Doe\\\", \\\"typename\\\": \\\"Customer\\\" }, \\\"lines\\\": { \\\"edges\\\": [ { \\\"node\\\": { \\\"id\\\": \\\"gid://shopify/SubscriptionLine/111111\\\", \\\"quantity\\\": 2, \\\"variantId\\\": \\\"gid://shopify/ProductVariant/222222\\\", \\\"title\\\": \\\"Monthly Coffee Box\\\", \\\"variantTitle\\\": \\\"Medium Roast\\\", \\\"currentPrice\\\": { \\\"amount\\\": \\\"29.99\\\", \\\"currencyCode\\\": \\\"USD\\\" }, \\\"pricingPolicy\\\": {...}, \\\"typename\\\": \\\"SubscriptionLine\\\" } } ] }, \\\"billingPolicy\\\": { \\\"interval\\\": \\\"MONTH\\\", \\\"intervalCount\\\": 1, \\\"minCycles\\\": 3, \\\"maxCycles\\\": 12 }, \\\"deliveryPolicy\\\": {...}, \\\"deliveryMethod\\\": {...}, \\\"typename\\\": \\\"SubscriptionContract\\\" } Important Considerations: Data Source: - Queries Shopify GraphQL API in real-time - NOT cached in Appstle database - Always returns current Shopify state - Subject to Shopify API rate limits Performance: - Slower than database queries (500-1500ms typical) - Makes real-time call to Shopify - Response size can be large (10-50 KB) - Use sparingly to avoid rate limits GraphQL Structure: - Includes __typename fields throughout - Uses GraphQL ID format (gid://shopify/...) - Nested edges/nodes structure for lists - All fields as defined in Shopify's schema Best Practices: 1. Use for Debugging: Perfect for troubleshooting data issues 2. Avoid Polling: Don't call repeatedly - use cached/processed endpoints instead 3. Cache Response: Cache the response if using for display 4. Parse Carefully: Handle GraphQL structure (edges/nodes) 5. Monitor Rate Limits: Each call counts against Shopify API limits When to Use vs Other Endpoints: Use this endpoint when: - Need complete Shopify contract data - Debugging synchronization issues - Accessing Shopify-specific fields - Building Shopify GraphQL integrations Use /api/external/v2/subscription-contract-details when: - Need processed, filtered contract data - Want faster response times - Querying multiple contracts - Building customer-facing UIs Authentication: Requires valid X-API-Key header\",\"url\":\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response\",\"mainEntityOfPage\":{\"@id\":\"https://developers.appstle.com/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response#webpage\"},\"dateModified\":\"2026-11-08T12:41:24.500Z\",\"publisher\":{\"@id\":\"https://developers.appstle.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.appstle.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Appstle\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Appstle\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response.md","siteName":"Appstle","nav":{"global":null,"tabs":[{"tab":"Subscriptions","icon":"arrows-rotate","groups":[{"group":"Get started","pages":[{"title":"Appstle Subscriptions: Recurring Revenue for Shopify","sidebarTitle":"Introduction","href":"/subscription/introduction"},{"title":"Authenticate with the Appstle Subscriptions API","sidebarTitle":"Authentication","href":"/subscription/authentication"},{"title":"Get started with Appstle Subscriptions API","sidebarTitle":"Quickstart","href":"/subscription/quickstart"}]},{"group":"Backend integration","pages":[{"title":"Appstle Subscriptions integration guide","sidebarTitle":"Integration guide","href":"/subscription/integration-guide"},{"title":"Appstle Subscriptions webhook events and setup","sidebarTitle":"Webhooks","href":"/subscription/webhooks"},{"title":"Automate subscriptions with Shopify Flow","sidebarTitle":"Shopify Flow","href":"/subscription/shopify-flow"}]},{"group":"Storefront integration","pages":[{"title":"Build your own subscription frontend","sidebarTitle":"Build your own frontend","href":"/subscription/build-your-own-frontend"},{"title":"Build a Dynamic Pricing Build-a-Box with a custom UI","sidebarTitle":"Dynamic Pricing Build-a-Box","href":"/subscription/dynamic-pricing-box-custom-ui"},{"title":"Build a fixed-price Build-a-Box with a custom UI","sidebarTitle":"Fixed-price Build-a-Box","href":"/subscription/fixed-price-box-custom-ui"},{"title":"Sell gift subscriptions from your own storefront","sidebarTitle":"Gift subscriptions","href":"/subscription/gift-subscriptions"},{"title":"JavaScript events for the Appstle storefront widget","sidebarTitle":"JavaScript hooks","href":"/subscription/javascript-hooks"},{"title":"Shopify metafields and tags for Appstle Subscriptions","sidebarTitle":"Metafields \u0026 tags","href":"/subscription/metafields-and-tags"}]},{"group":"Partner integration","pages":[{"title":"Partner Integration Framework overview","sidebarTitle":"Framework overview","href":"/subscription/partner-framework-overview"},{"title":"Partner Integration Framework","sidebarTitle":"Partner integration","href":"/subscription/partner-integration"}]},{"group":"Resources","pages":[{"title":"Appstle Subscriptions API changelog","sidebarTitle":"API changelog","href":"/subscription/api-changelog"},{"title":"Appstle Subscriptions frequently asked questions","sidebarTitle":"FAQ","href":"/subscription/faq"}]},{"group":"Admin API","pages":[{"group":"Operations \u0026 Settings","pages":[{"title":"Get/Search activity logs","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/activity-logs","href":"/subscription-admin-api/operations-\u0026-settings/getsearch-activity-logs"},{"title":"Bulk update subscription billing interval","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/bulk-automations/billing-interval","href":"/subscription-admin-api/operations-\u0026-settings/bulk-update-subscription-billing-interval"},{"title":"Bulk update subscription delivery method","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/bulk-automations/delivery-method","href":"/subscription-admin-api/operations-\u0026-settings/bulk-update-subscription-delivery-method"},{"title":"Bulk update subscription delivery price","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/bulk-automations/delivery-price","href":"/subscription-admin-api/operations-\u0026-settings/bulk-update-subscription-delivery-price"},{"title":"Hide subscriptions in bulk","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/bulk-automations/hide-subscriptions","href":"/subscription-admin-api/operations-\u0026-settings/hide-subscriptions-in-bulk"},{"title":"Replace products in subscriptions in bulk","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/bulk-automations/replace-product","href":"/subscription-admin-api/operations-\u0026-settings/replace-products-in-subscriptions-in-bulk"},{"title":"Get cancellation management configuration","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/cancellation-managements/{id}","href":"/subscription-admin-api/operations-\u0026-settings/get-cancellation-management-configuration"},{"title":"Create a new shipping/delivery profile","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/delivery-profiles/create-shipping-profile","href":"/subscription-admin-api/operations-\u0026-settings/create-a-new-shippingdelivery-profile"},{"title":"Create a new shipping/delivery profile (V2)","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/delivery-profiles/v2/create-shipping-profile","href":"/subscription-admin-api/operations-\u0026-settings/create-a-new-shippingdelivery-profile-v2"},{"title":"Create a new shipping/delivery profile (V3)","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/delivery-profiles/v3/create-shipping-profile","href":"/subscription-admin-api/operations-\u0026-settings/create-a-new-shippingdelivery-profile-v3"}]},{"group":"Subscription Contracts","pages":[{"title":"Associate external payment gateway customer with Shopify customer","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/associate-shopify-customer-to-external-payment-gateways","href":"/subscription-admin-api/subscription-contracts/associate-external-payment-gateway-customer-with-shopify-customer"},{"title":"Retrieve raw Shopify GraphQL response for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/contract-raw-response","href":"/subscription-admin-api/subscription-contracts/retrieve-raw-shopify-graphql-response-for-a-subscription-contract"},{"title":"Generate customer portal authentication token","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/customer-portal-token","href":"/subscription-admin-api/subscription-contracts/generate-customer-portal-authentication-token"},{"title":"Retrieve subscription contracts","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contract-details","href":"/subscription-admin-api/subscription-contracts/retrieve-subscription-contracts"},{"title":"Add custom discount to subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-add-discount","href":"/subscription-admin-api/subscription-contracts/add-custom-discount-to-subscription"},{"title":"Apply discount code to subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-apply-discount","href":"/subscription-admin-api/subscription-contracts/apply-discount-code-to-subscription"},{"title":"Replace all line item attributes in bulk across subscription contracts","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-bulk-update-line-item-attributes","href":"/subscription-admin-api/subscription-contracts/replace-all-line-item-attributes-in-bulk-across-subscription-contracts"},{"title":"Send magic link email to customer for portal access","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contracts-email-magic-link","href":"/subscription-admin-api/subscription-contracts/send-magic-link-email-to-customer-for-portal-access"},{"title":"Remove discount from subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-remove-discount","href":"/subscription-admin-api/subscription-contracts/remove-discount-from-subscription"},{"title":"Update next billing date for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-billing-date","href":"/subscription-admin-api/subscription-contracts/update-next-billing-date-for-a-subscription-contract"},{"title":"Update billing interval for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-billing-interval","href":"/subscription-admin-api/subscription-contracts/update-billing-interval-for-a-subscription-contract"},{"title":"Update Subscription contract frequency by compatible selling-plan frequency","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-frequency-by-compatible-plan","href":"/subscription-admin-api/subscription-contracts/update-subscription-contract-frequency-by-compatible-selling-plan-frequency"},{"title":"Update Subscription contract frequency by selling plan","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-frequency-by-selling-plan","href":"/subscription-admin-api/subscription-contracts/update-subscription-contract-frequency-by-selling-plan"},{"title":"Update line item attributes for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-line-item-attributes","href":"/subscription-admin-api/subscription-contracts/update-line-item-attributes-for-a-subscription-contract"},{"title":"Update multiple line item attributes for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-multiple-line-item-attributes","href":"/subscription-admin-api/subscription-contracts/update-multiple-line-item-attributes-for-a-subscription-contract"},{"title":"Cancel a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json delete /api/external/v2/subscription-contracts/{id}","href":"/subscription-admin-api/subscription-contracts/cancel-a-subscription-contract"}]},{"group":"Build-a-Box \u0026 Bundles","pages":[{"title":"Update an existing Build-A-Box subscription bundle","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/build-a-box","href":"/subscription-admin-api/build-a-box-\u0026-bundles/update-an-existing-build-a-box-subscription-bundle"},{"title":"Create a new Build-A-Box subscription bundle","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/build-a-box","href":"/subscription-admin-api/build-a-box-\u0026-bundles/create-a-new-build-a-box-subscription-bundle"},{"title":"Retrieve Build-A-Box bundle details by handle for customer storefront","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/build-a-box/{handle}","href":"/subscription-admin-api/build-a-box-\u0026-bundles/retrieve-build-a-box-bundle-details-by-handle-for-customer-storefront"},{"title":"Retrieve a Build-A-Box bundle by ID","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/build-a-box/{id}","href":"/subscription-admin-api/build-a-box-\u0026-bundles/retrieve-a-build-a-box-bundle-by-id"},{"title":"Delete a Build-A-Box subscription bundle","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json delete /api/external/v2/build-a-box/{id}","href":"/subscription-admin-api/build-a-box-\u0026-bundles/delete-a-build-a-box-subscription-bundle"},{"title":"Get subscription bundle settings (Build-a-Box configuration)","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-bundle-settings/{id}","href":"/subscription-admin-api/build-a-box-\u0026-bundles/get-subscription-bundle-settings-build-a-box-configuration"},{"title":"Update subscription bundling configuration","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-bundling/update","href":"/subscription-admin-api/build-a-box-\u0026-bundles/update-subscription-bundling-configuration"},{"title":"Generate discount code for bundle","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-bundlings/discount/{token}","href":"/subscription-admin-api/build-a-box-\u0026-bundles/generate-discount-code-for-bundle"},{"title":"Get bundle details by handle","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-bundlings/external/get-bundle/{handle}","href":"/subscription-admin-api/build-a-box-\u0026-bundles/get-bundle-details-by-handle"}]},{"group":"Customization","pages":[{"title":"Get customer portal settings","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/customer-portal-settings/{id}","href":"/subscription-admin-api/customization/get-customer-portal-settings"},{"title":"Get custom CSS for customer portal","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-custom-csses/{id}","href":"/subscription-admin-api/customization/get-custom-css-for-customer-portal"},{"title":"Regenerate subscription widget scripts","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/theme-settings/regenerate-scripts-for-shop","href":"/subscription-admin-api/customization/regenerate-subscription-widget-scripts"}]},{"group":"Customer Retention","pages":[{"title":"Get customer retention activities","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/customer-retention-activities","href":"/subscription-admin-api/customer-retention/get-customer-retention-activities"}]},{"group":"Subscription Data","pages":[{"title":"Get delivery options for subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/data/contract-delivery-options","href":"/subscription-admin-api/subscription-data/get-delivery-options-for-subscription-contract"}]},{"group":"Customers","pages":[{"title":"Generate customer portal access link by customer ID or email","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/manage-subscription-link","href":"/subscription-admin-api/customers/generate-customer-portal-access-link-by-customer-id-or-email"},{"title":"Generate customer portal link","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/manage-subscription-link/{customerId}","href":"/subscription-admin-api/customers/generate-customer-portal-link"},{"title":"Retrieve customers with subscriptions","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contract-details/customers","href":"/subscription-admin-api/customers/retrieve-customers-with-subscriptions"},{"title":"Get customer payment methods from Shopify","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contract-details/shopify/customer/{customerId}/payment-methods","href":"/subscription-admin-api/customers/get-customer-payment-methods-from-shopify"},{"title":"Get detailed subscription information for a customer","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-customers-detail/valid/{customerId}","href":"/subscription-admin-api/customers/get-detailed-subscription-information-for-a-customer"},{"title":"Sync customer subscription details from Shopify","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-customers/sync-info/{customerId}","href":"/subscription-admin-api/customers/sync-customer-subscription-details-from-shopify"},{"title":"Get valid subscription contract IDs for a customer","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-customers/valid/{customerId}","href":"/subscription-admin-api/customers/get-valid-subscription-contract-ids-for-a-customer"},{"title":"Get customer details with subscriptions","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-customers/{id}","href":"/subscription-admin-api/customers/get-customer-details-with-subscriptions"}]},{"group":"Product Catalog","pages":[{"title":"Get all product swaps for a shop","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/product-swaps","href":"/subscription-admin-api/product-catalog/get-all-product-swaps-for-a-shop"},{"title":"Update an existing product swap automation","deprecated":true,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/product-swaps","href":"/subscription-admin-api/product-catalog/update-an-existing-product-swap-automation"},{"title":"Create a new product swap automation","deprecated":true,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/product-swaps","href":"/subscription-admin-api/product-catalog/create-a-new-product-swap-automation"},{"title":"Get product swap variant groups for a contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/product-swaps-by-variant-groups/{contractId}","href":"/subscription-admin-api/product-catalog/get-product-swap-variant-groups-for-a-contract"},{"title":"Get a specific product swap by ID","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/product-swaps/{id}","href":"/subscription-admin-api/product-catalog/get-a-specific-product-swap-by-id"},{"title":"Delete a product swap automation","deprecated":true,"version":null,"openapi":"/subscription/admin-api-swagger.json delete /api/external/v2/product-swaps/{id}","href":"/subscription-admin-api/product-catalog/delete-a-product-swap-automation"}]},{"group":"Subscription Management","pages":[{"title":"List quick checkout links","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/quick-checkout/links","href":"/subscription-admin-api/subscription-management/list-quick-checkout-links"},{"title":"Get subscription contract analytics and revenue metrics","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contract-details/analytics/{contractId}","href":"/subscription-admin-api/subscription-management/get-subscription-contract-analytics-and-revenue-metrics"},{"title":"Get available billing intervals for selling plan(s)","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contract-details/billing-interval","href":"/subscription-admin-api/subscription-management/get-available-billing-intervals-for-selling-plans"},{"title":"Create a new subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/subscription-contract-details/create-subscription-contract","href":"/subscription-admin-api/subscription-management/create-a-new-subscription-contract"},{"title":"Get current billing cycle number for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contract-details/current-cycle/{contractId}","href":"/subscription-admin-api/subscription-management/get-current-billing-cycle-number-for-a-subscription-contract"},{"title":"Replace product variants in a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/subscription-contract-details/replace-variants-v3","href":"/subscription-admin-api/subscription-management/replace-product-variants-in-a-subscription-contract"},{"title":"Split or duplicate an existing subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/subscription-contract-details/split-existing-contract","href":"/subscription-admin-api/subscription-management/split-or-duplicate-an-existing-subscription-contract"},{"title":"Get subscription fulfillment details for latest order","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contract-details/subscription-fulfillments/{contractId}","href":"/subscription-admin-api/subscription-management/get-subscription-fulfillment-details-for-latest-order"},{"title":"Update delivery interval for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-delivery-interval","href":"/subscription-admin-api/subscription-management/update-delivery-interval-for-a-subscription-contract"},{"title":"Update subscription delivery method","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-delivery-method","href":"/subscription-admin-api/subscription-management/update-subscription-delivery-method"},{"title":"Update delivery price for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-delivery-price","href":"/subscription-admin-api/subscription-management/update-delivery-price-for-a-subscription-contract"},{"title":"Turn custom delivery price on or off for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-delivery-price-override","href":"/subscription-admin-api/subscription-management/turn-custom-delivery-price-on-or-off-for-a-subscription-contract"},{"title":"Update maximum cycles for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-max-cycles","href":"/subscription-admin-api/subscription-management/update-maximum-cycles-for-a-subscription-contract"},{"title":"Update minimum cycles for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-min-cycles","href":"/subscription-admin-api/subscription-management/update-minimum-cycles-for-a-subscription-contract"},{"title":"Update order note for subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-order-note/{contractId}","href":"/subscription-admin-api/subscription-management/update-order-note-for-subscription"},{"title":"Update subscription delivery address and method","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-shipping-address","href":"/subscription-admin-api/subscription-management/update-subscription-delivery-address-and-method"},{"title":"Update subscription contract status","description":"Updates the status of a subscription contract to ACTIVE, PAUSED, or CANCELLED. This endpoint manages the lifecycle of subscriptions with automatic state tracking and notifications.\n\n**Status Transitions:**\n- **ACTIVE**: Resumes a paused subscription, enabling future billing and deliveries\n- **PAUSED**: Temporarily suspends all billing and deliveries until manually resumed\n- **CANCELLED**: Cancels the subscription and stops future billing and deliveries\n\n**Key Features:**\n- Sending the status the contract already has returns 204 and changes nothing, except ACTIVE on an active prepaid contract that is due to cancel at the end of its term. That call clears the pending cancellation (pendingCancellationCycle and pendingCancellationDate go back to null), so the contract is not cancelled when the term ends, but it does not restore the orders after the term that the cancellation removed. Check the upcoming orders afterwards\n- Tracks status change timestamps for audit trails\n- Sends automated email notifications to customers\n- Creates detailed activity logs for each status change\n- Handles concurrent modifications with automatic retry\n- Adjusts the next billing date on resume when it has passed (see Resuming a paused subscription)\n\n**Status Change Side Effects:**\n- **Activating**: Marks the activation timestamp and schedules the upcoming orders again. The next billing date is kept or moved forward as described under Resuming a paused subscription\n- **Pausing**: Stops all scheduled orders, marks pause timestamp\n- **Cancelling**: Stops future billing and deliveries, marks cancellation timestamp\n\n**Resuming a paused subscription (status=ACTIVE):**\n- If the contract's next billing date is still in the future, the call keeps it and schedules the upcoming orders from it\n- If that date has passed, the call moves it forward to the first date after now on the contract's billing schedule, so the next order can be up to one billing interval away. In this case the status can still read paused for a moment after the 204 before it changes to active\n- When the next billing date arrives while the contract is paused, nothing is charged and Appstle moves the date on to the next scheduled order, so a date set when you pause is replaced if it arrives before you resume\n- To resume with a specific first order date, set the next billing date while the contract is still PAUSED (PUT /api/external/v2/subscription-contracts-update-billing-date), then send ACTIVE as soon as that call returns 200. Contracts on plans with fixed billing dates cannot be rescheduled: that call returns 400 with errorKey fixedBillingScheduleRescheduleBlocked\n\n**Error Recovery:**\nThe system automatically handles:\n- Invalid discount codes by removing them and retrying\n- Concurrent modifications by retrying the operation\n- This ensures reliable status updates in production environments\n\n**Important Notes:**\n- Send the status in uppercase: ACTIVE, PAUSED or CANCELLED. A lowercase value such as paused on an active contract returns 400 (see the Invalid Status Value example)\n- PAUSED and ACTIVE on a cancelled contract move it out of cancelled, in Appstle and in Shopify, and ACTIVE also schedules its upcoming orders again, so read the status first\n- CANCELLED cancels at once and does not apply the plan's minimum number of billing cycles. To have the minimum enforced, use the cancel call (DELETE) instead\n- A contract ID that is not one of your store's contracts returns 400 with Contract does not exist\n- Paused subscriptions retain all settings and can be resumed\n- The customer gets the store's pause, resume or cancellation email, unless the store has turned that email off\n\n**Authentication:** Requires valid X-API-Key header","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-status","href":"/subscription-admin-api/subscription-management/update-subscription-contract-status"},{"title":"Get raw Shopify GraphQL contract response","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contracts/contract-external/{contractId}","href":"/subscription-admin-api/subscription-management/get-raw-shopify-graphql-contract-response"},{"title":"Update custom attributes on a subscription contract","description":"Updates or replaces custom key-value attributes on a subscription contract. These attributes are stored with the subscription and can be used to track custom data, preferences, or metadata that's important for your business processes.\n\n**Custom Attributes Overview:**\nCustom attributes are key-value pairs that allow you to store additional information on subscriptions. They are:\n- Visible in the Shopify admin and accessible via API\n- Included in order data when subscription orders are created\n- Preserved across subscription lifecycle events\n- Useful for integrations and custom workflows\n\n**Update Modes:**\n- **Merge Mode (overwriteExistingAttributes=false)**: Adds new attributes and updates existing ones with matching keys. Other attributes remain unchanged.\n- **Replace Mode (overwriteExistingAttributes=true)**: Completely replaces all existing attributes with the provided list.\n\n**Common Use Cases:**\n- Store gift messages or special instructions\n- Track referral sources or marketing campaigns\n- Add internal reference numbers or tracking codes\n- Store customer preferences or customization options\n- Integration data for third-party systems\n\n**Important Notes:**\n- Attribute keys should not conflict with Shopify's reserved attributes\n- Both keys and values are stored as strings\n- Changes are logged in the activity history\n- Invalid discount codes may be automatically removed during update\n\n**Authentication:** Requires valid X-API-Key header","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/update-custom-note-attributes","href":"/subscription-admin-api/subscription-management/update-custom-attributes-on-a-subscription-contract"}]},{"group":"Billing \u0026 Payments","pages":[{"title":"Update subscription billing attempt","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-billing-attempts","href":"/subscription-admin-api/billing-\u0026-payments/update-subscription-billing-attempt"},{"title":"Update order note for a billing attempt","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-billing-attempts-update-order-note/{id}","href":"/subscription-admin-api/billing-\u0026-payments/update-order-note-for-a-billing-attempt"},{"title":"Trigger immediate billing for an order","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-billing-attempts/attempt-billing/{id}","href":"/subscription-admin-api/billing-\u0026-payments/trigger-immediate-billing-for-an-order"},{"title":"Get past orders","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-billing-attempts/past-orders","href":"/subscription-admin-api/billing-\u0026-payments/get-past-orders"},{"title":"Get past orders report with detailed filtering","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-billing-attempts/past-orders/report","href":"/subscription-admin-api/billing-\u0026-payments/get-past-orders-report-with-detailed-filtering"},{"title":"Reschedule a billing attempt to a new date","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-billing-attempts/reschedule-order/{id}","href":"/subscription-admin-api/billing-\u0026-payments/reschedule-a-billing-attempt-to-a-new-date"},{"title":"Skip a specific order","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-billing-attempts/skip-order/{id}","href":"/subscription-admin-api/billing-\u0026-payments/skip-a-specific-order"},{"title":"Skip the next upcoming order for a subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-billing-attempts/skip-upcoming-order","href":"/subscription-admin-api/billing-\u0026-payments/skip-the-next-upcoming-order-for-a-subscription"},{"title":"Get upcoming orders (top orders)","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-billing-attempts/top-orders","href":"/subscription-admin-api/billing-\u0026-payments/get-upcoming-orders-top-orders"},{"title":"Unskip a previously skipped order","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-billing-attempts/unskip-order/{id}","href":"/subscription-admin-api/billing-\u0026-payments/unskip-a-previously-skipped-order"}]},{"group":"Subscription Products","pages":[{"title":"Add product with custom price to subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contract-add-line-item","href":"/subscription-admin-api/subscription-products/add-product-with-custom-price-to-subscription"},{"title":"Add product to subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-add-line-item","href":"/subscription-admin-api/subscription-products/add-product-to-subscription"},{"title":"Add multiple products to subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-add-line-items","href":"/subscription-admin-api/subscription-products/add-multiple-products-to-subscription"},{"title":"Remove product from subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-remove-line-item","href":"/subscription-admin-api/subscription-products/remove-product-from-subscription"},{"title":"Remove multiple products from subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-remove-line-items","href":"/subscription-admin-api/subscription-products/remove-multiple-products-from-subscription"},{"title":"Update multiple properties of a subscription line item","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-line-item","href":"/subscription-admin-api/subscription-products/update-multiple-properties-of-a-subscription-line-item"},{"title":"Update product line item price","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-line-item-price","href":"/subscription-admin-api/subscription-products/update-product-line-item-price"},{"title":"Update line item pricing policy with cycle-based discounts","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-line-item-pricing-policy","href":"/subscription-admin-api/subscription-products/update-line-item-pricing-policy-with-cycle-based-discounts"},{"title":"Update product line item quantity in subscription","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-line-item-quantity","href":"/subscription-admin-api/subscription-products/update-product-line-item-quantity-in-subscription"},{"title":"Update selling plan for a subscription line item","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-line-item-selling-plan","href":"/subscription-admin-api/subscription-products/update-selling-plan-for-a-subscription-line-item"}]},{"group":"Subscription One-Time Products","pages":[{"title":"Get all one-time products for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-contract-one-offs-by-contractId","href":"/subscription-admin-api/subscription-one-time-products/get-all-one-time-products-for-a-subscription-contract"},{"title":"Add one-time product to subscription order","deprecated":true,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contract-one-offs-by-contractId-and-billing-attempt-id","href":"/subscription-admin-api/subscription-one-time-products/add-one-time-product-to-subscription-order"},{"title":"Remove one-time product from subscription order","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json delete /api/external/v2/subscription-contract-one-offs-by-contractId-and-billing-attempt-id","href":"/subscription-admin-api/subscription-one-time-products/remove-one-time-product-from-subscription-order"},{"title":"Get one-time products for next upcoming order","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/upcoming-subscription-contract-one-offs-by-contractId","href":"/subscription-admin-api/subscription-one-time-products/get-one-time-products-for-next-upcoming-order"}]},{"group":"Subscription Payments","pages":[{"title":"Update subscription payment method","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-existing-payment-method","href":"/subscription-admin-api/subscription-payments/update-subscription-payment-method"},{"title":"Send payment method update email to customer","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-contracts-update-payment-method","href":"/subscription-admin-api/subscription-payments/send-payment-method-update-email-to-customer"}]},{"group":"Subscription Plans","pages":[{"title":"Get all subscription groups","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-groups","href":"/subscription-admin-api/subscription-plans/get-all-subscription-groups"},{"title":"Update subscription group details and product assignments","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-groups","href":"/subscription-admin-api/subscription-plans/update-subscription-group-details-and-product-assignments"},{"title":"Create a new subscription group (selling plan group)","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/subscription-groups","href":"/subscription-admin-api/subscription-plans/create-a-new-subscription-group-selling-plan-group"},{"title":"Get all selling plans across all subscription groups","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-groups/all-selling-plans","href":"/subscription-admin-api/subscription-plans/get-all-selling-plans-across-all-subscription-groups"},{"title":"Remove products or variants from ALL subscription groups","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-groups/remove-products","href":"/subscription-admin-api/subscription-plans/remove-products-or-variants-from-all-subscription-groups"},{"title":"Add products or variants to an existing subscription group (async)","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/subscription-groups/v3/{id}/add-products","href":"/subscription-admin-api/subscription-plans/add-products-or-variants-to-an-existing-subscription-group-async"},{"title":"Check status of an async add-products job","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-groups/v3/{id}/add-products/status","href":"/subscription-admin-api/subscription-plans/check-status-of-an-async-add-products-job"},{"title":"Get subscription group by ID","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json get /api/external/v2/subscription-groups/{id}","href":"/subscription-admin-api/subscription-plans/get-subscription-group-by-id"},{"title":"Add products or variants to an existing subscription group","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-groups/{id}/add-products","href":"/subscription-admin-api/subscription-plans/add-products-or-variants-to-an-existing-subscription-group"},{"title":"Bulk add products or variants to an existing subscription group","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json post /api/external/v2/subscription-groups/{id}/bulk-add-products","href":"/subscription-admin-api/subscription-plans/bulk-add-products-or-variants-to-an-existing-subscription-group"},{"title":"Remove products or variants from a subscription group","deprecated":null,"version":null,"openapi":"/subscription/admin-api-swagger.json put /api/external/v2/subscription-groups/{id}/remove-products","href":"/subscription-admin-api/subscription-plans/remove-products-or-variants-from-a-subscription-group"}]}]},{"group":"Storefront API","pages":[{"group":"Billing \u0026 Payments","pages":[{"title":"Get backup payment recovery opt-in status","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/backup-payment-opt-in","href":"/subscription-storefront-api/billing-\u0026-payments/get-backup-payment-recovery-opt-in-status"},{"title":"Update backup payment recovery opt-in status","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/backup-payment-opt-in","href":"/subscription-storefront-api/billing-\u0026-payments/update-backup-payment-recovery-opt-in-status"},{"title":"Update subscription billing attempt","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts","href":"/subscription-storefront-api/billing-\u0026-payments/update-subscription-billing-attempt"},{"title":"Trigger immediate billing for an order","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts/attempt-billing/{id}","href":"/subscription-storefront-api/billing-\u0026-payments/trigger-immediate-billing-for-an-order"},{"title":"Recover a billing attempt stuck in progress","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts/fix-billing-attempt-in-progress/{id}","href":"/subscription-storefront-api/billing-\u0026-payments/recover-a-billing-attempt-stuck-in-progress"},{"title":"Get past orders","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-billing-attempts/past-orders","href":"/subscription-storefront-api/billing-\u0026-payments/get-past-orders"},{"title":"Get past orders report with detailed filtering","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-billing-attempts/past-orders/report","href":"/subscription-storefront-api/billing-\u0026-payments/get-past-orders-report-with-detailed-filtering"},{"title":"Process refund for subscription order","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts/refund-fulfillment/{id}","href":"/subscription-storefront-api/billing-\u0026-payments/process-refund-for-subscription-order"},{"title":"Calculate refund amount preview","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-billing-attempts/refund-preview/{id}","href":"/subscription-storefront-api/billing-\u0026-payments/calculate-refund-amount-preview"},{"title":"Reschedule a billing attempt to a new date","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts/reschedule-order/{id}","href":"/subscription-storefront-api/billing-\u0026-payments/reschedule-a-billing-attempt-to-a-new-date"},{"title":"Retry a failed billing attempt","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts/retry-failed-billing-attempt","href":"/subscription-storefront-api/billing-\u0026-payments/retry-a-failed-billing-attempt"},{"title":"Get URL for 3DS / SCA security challenge","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-billing-attempts/security-challenge-action-url/{id}","href":"/subscription-storefront-api/billing-\u0026-payments/get-url-for-3ds-sca-security-challenge"},{"title":"Skip a failed billing attempt's order","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts/skip-failed-order","href":"/subscription-storefront-api/billing-\u0026-payments/skip-a-failed-billing-attempts-order"},{"title":"Skip a specific order","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts/skip-order/{id}","href":"/subscription-storefront-api/billing-\u0026-payments/skip-a-specific-order"},{"title":"Skip the next upcoming order for a subscription","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts/skip-upcoming-order","href":"/subscription-storefront-api/billing-\u0026-payments/skip-the-next-upcoming-order-for-a-subscription"},{"title":"Get upcoming orders (top orders)","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-billing-attempts/top-orders","href":"/subscription-storefront-api/billing-\u0026-payments/get-upcoming-orders-top-orders"},{"title":"Unskip a previously skipped order","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-billing-attempts/unskip-order/{id}","href":"/subscription-storefront-api/billing-\u0026-payments/unskip-a-previously-skipped-order"},{"title":"Get subscription payment info for a contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-payment-infos/{contractId}","href":"/subscription-storefront-api/billing-\u0026-payments/get-subscription-payment-info-for-a-contract"}]},{"group":"Product Catalog","pages":[{"title":"List discount rules applicable to bundles","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/bundle-discount-rules","href":"/subscription-storefront-api/product-catalog/list-discount-rules-applicable-to-bundles"},{"title":"Get variant data for a list of variant IDs","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/product-infos/variant-data/{variantIds}","href":"/subscription-storefront-api/product-catalog/get-variant-data-for-a-list-of-variant-ids"},{"title":"Get product swap variant groups for a contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/product-swaps-by-variant-groups/{contractId}","href":"/subscription-storefront-api/product-catalog/get-product-swap-variant-groups-for-a-contract"},{"title":"Proxy a Shopify Storefront GraphQL request from the customer portal","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/storefront-graphql","href":"/subscription-storefront-api/product-catalog/proxy-a-shopify-storefront-graphql-request-from-the-customer-portal"}]},{"group":"Campaigns","pages":[{"title":"List applicable customer portal campaigns","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/campaigns/applicable","href":"/subscription-storefront-api/campaigns/list-applicable-customer-portal-campaigns"},{"title":"List applicable customer portal campaigns for multiple contracts in one call","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/campaigns/applicable-bulk","href":"/subscription-storefront-api/campaigns/list-applicable-customer-portal-campaigns-for-multiple-contracts-in-one-call"},{"title":"Get campaign landing details","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/campaigns/{id}/landing","href":"/subscription-storefront-api/campaigns/get-campaign-landing-details"},{"title":"Redeem a campaign offer","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/campaigns/{id}/redeem","href":"/subscription-storefront-api/campaigns/redeem-a-campaign-offer"},{"title":"Track a campaign banner event","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/campaigns/{id}/track","href":"/subscription-storefront-api/campaigns/track-a-campaign-banner-event"}]},{"group":"cancellation-flow-customer-portal-resource","pages":[{"title":"Get subscriptionscpapicancellation flowspublished","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/cancellation-flows/published","href":"/subscription-storefront-api/cancellation-flow-customer-portal-resource/get-subscriptionscpapicancellation-flowspublished"}]},{"group":"Customer Retention","pages":[{"title":"Get cancellation management configuration","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/cancellation-managements/{id}","href":"/subscription-storefront-api/customer-retention/get-cancellation-management-configuration"},{"title":"Record a customer retention activity","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/customer-retention-activities","href":"/subscription-storefront-api/customer-retention/record-a-customer-retention-activity"},{"title":"Get subscriptionscpapicustomer retention activitieslatest discount usage","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/customer-retention-activities/latest-discount-usage","href":"/subscription-storefront-api/customer-retention/get-subscriptionscpapicustomer-retention-activitieslatest-discount-usage"},{"title":"Get win-back offer landing details","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/win-back-campaigns/{id}/landing","href":"/subscription-storefront-api/customer-retention/get-win-back-offer-landing-details"},{"title":"Reactivate a subscription from a win-back offer","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/win-back-campaigns/{id}/reactivate","href":"/subscription-storefront-api/customer-retention/reactivate-a-subscription-from-a-win-back-offer"}]},{"group":"Subscription Contracts","pages":[{"title":"Execute a configured cancellation retention offer and record the retention activity","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/cancellation-retention-offers/execute","href":"/subscription-storefront-api/subscription-contracts/execute-a-configured-cancellation-retention-offer-and-record-the-retention-activity"},{"title":"Get currently logged-in customer ID","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/logged-in-customer","href":"/subscription-storefront-api/subscription-contracts/get-currently-logged-in-customer-id"},{"title":"Skip or unskip a product line item for next order","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/skip-unskip-subscription-contracts-product","href":"/subscription-storefront-api/subscription-contracts/skip-or-unskip-a-product-line-item-for-next-order"},{"title":"Update subscription contract details","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contract-details","href":"/subscription-storefront-api/subscription-contracts/update-subscription-contract-details"},{"title":"Get current billing cycle for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contract-details/current-cycle/{contractId}","href":"/subscription-storefront-api/subscription-contracts/get-current-billing-cycle-for-a-subscription-contract"},{"title":"Get order note for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contract-details/customer/{contractId}","href":"/subscription-storefront-api/subscription-contracts/get-order-note-for-a-subscription-contract"},{"title":"Merge an existing contract into another","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/subscription-contract-details/merge-contract","href":"/subscription-storefront-api/subscription-contracts/merge-an-existing-contract-into-another"},{"title":"Replace contract variants in bulk (v2)","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/subscription-contract-details/replace-variants-v2","href":"/subscription-storefront-api/subscription-contracts/replace-contract-variants-in-bulk-v2"},{"title":"Get current customer's saved Shopify payment methods","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contract-details/shopify/customer/payment-methods","href":"/subscription-storefront-api/subscription-contracts/get-current-customers-saved-shopify-payment-methods"},{"title":"Reschedule a planned subscription fulfillment","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contract-details/subscription-fulfillment/reschedule","href":"/subscription-storefront-api/subscription-contracts/reschedule-a-planned-subscription-fulfillment"},{"title":"List Shopify fulfillments for a specific order","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contract-details/subscription-fulfillments/order/{orderId}","href":"/subscription-storefront-api/subscription-contracts/list-shopify-fulfillments-for-a-specific-order"},{"title":"List Shopify fulfillments for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contract-details/subscription-fulfillments/{contractId}","href":"/subscription-storefront-api/subscription-contracts/list-shopify-fulfillments-for-a-subscription-contract"},{"title":"Swap a product within a Build-a-Box subscription","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contract-details/swap-bab-product","href":"/subscription-storefront-api/subscription-contracts/swap-a-product-within-a-build-a-box-subscription"},{"title":"Get subscription contract as a flattened map","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contract-raw/{contractId}","href":"/subscription-storefront-api/subscription-contracts/get-subscription-contract-as-a-flattened-map"},{"title":"Apply a discount code to a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-apply-discount","href":"/subscription-storefront-api/subscription-contracts/apply-a-discount-code-to-a-subscription-contract"},{"title":"Apply a cancellation-flow discount to a contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-cancellation-discount","href":"/subscription-storefront-api/subscription-contracts/apply-a-cancellation-flow-discount-to-a-contract"},{"title":"Edit custom attributes on a single line item","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-edit-line-item-attributes","href":"/subscription-storefront-api/subscription-contracts/edit-custom-attributes-on-a-single-line-item"},{"title":"Email customer portal magic link to subscriber","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contracts-email-magic-link","href":"/subscription-storefront-api/subscription-contracts/email-customer-portal-magic-link-to-subscriber"},{"title":"Read freeze (skip-billing) status of a contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contracts-freeze-status-detail","href":"/subscription-storefront-api/subscription-contracts/read-freeze-skip-billing-status-of-a-contract"},{"title":"Read freeze (skip-billing) status of a contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-freeze-status-detail","href":"/subscription-storefront-api/subscription-contracts/read-freeze-skip-billing-status-of-a-contract-1"},{"title":"Check whether anchor day overwrite is enabled","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contracts-is-overwrite-anchor-day","href":"/subscription-storefront-api/subscription-contracts/check-whether-anchor-day-overwrite-is-enabled"},{"title":"Update product-level custom attributes on a contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-product-custom-attributes","href":"/subscription-storefront-api/subscription-contracts/update-product-level-custom-attributes-on-a-contract"},{"title":"Remove a discount from a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-remove-discount","href":"/subscription-storefront-api/subscription-contracts/remove-a-discount-from-a-subscription-contract"},{"title":"Remove a line item from a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-remove-line-item","href":"/subscription-storefront-api/subscription-contracts/remove-a-line-item-from-a-subscription-contract"},{"title":"Update next billing date for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-billing-date","href":"/subscription-storefront-api/subscription-contracts/update-next-billing-date-for-a-subscription-contract"},{"title":"Update billing interval for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-billing-interval","href":"/subscription-storefront-api/subscription-contracts/update-billing-interval-for-a-subscription-contract"},{"title":"Update delivery method on a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-delivery-method","href":"/subscription-storefront-api/subscription-contracts/update-delivery-method-on-a-subscription-contract"},{"title":"Set existing Shopify payment method on contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-existing-payment-method","href":"/subscription-storefront-api/subscription-contracts/set-existing-shopify-payment-method-on-contract"},{"title":"Change contract frequency by selecting a compatible selling-plan frequency","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-frequency-by-compatible-plan","href":"/subscription-storefront-api/subscription-contracts/change-contract-frequency-by-selecting-a-compatible-selling-plan-frequency"},{"title":"Change contract frequency by selecting a new selling plan","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-frequency-by-selling-plan","href":"/subscription-storefront-api/subscription-contracts/change-contract-frequency-by-selecting-a-new-selling-plan"},{"title":"Update custom attributes on contract line items","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-line-item-attributes","href":"/subscription-storefront-api/subscription-contracts/update-custom-attributes-on-contract-line-items"},{"title":"Update line item quantity on a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-line-item-quantity","href":"/subscription-storefront-api/subscription-contracts/update-line-item-quantity-on-a-subscription-contract"},{"title":"Update order note on a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-order-note/{contractId}","href":"/subscription-storefront-api/subscription-contracts/update-order-note-on-a-subscription-contract"},{"title":"Trigger payment method re-collection email","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-payment-method","href":"/subscription-storefront-api/subscription-contracts/trigger-payment-method-re-collection-email"},{"title":"Get raw Shopify subscription contracts for multiple contracts in one call","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contracts/contract-external-bulk","href":"/subscription-storefront-api/subscription-contracts/get-raw-shopify-subscription-contracts-for-multiple-contracts-in-one-call"},{"title":"Get raw Shopify subscription contract (external view)","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contracts/contract-external/{contractId}","href":"/subscription-storefront-api/subscription-contracts/get-raw-shopify-subscription-contract-external-view"},{"title":"Get raw Shopify subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contracts/contract/{contractId}","href":"/subscription-storefront-api/subscription-contracts/get-raw-shopify-subscription-contract"},{"title":"Sync shipping price on contract from delivery profile","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts/sync-shipping-price/{contractId}","href":"/subscription-storefront-api/subscription-contracts/sync-shipping-price-on-contract-from-delivery-profile"},{"title":"Cancel and delete a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json delete /subscriptions/cp/api/subscription-contracts/{id}","href":"/subscription-storefront-api/subscription-contracts/cancel-and-delete-a-subscription-contract"},{"title":"Get current customer's subscription profile","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-customers","href":"/subscription-storefront-api/subscription-contracts/get-current-customers-subscription-profile"},{"title":"Get valid subscription contracts for a customer","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-customers-detail/valid/{id}","href":"/subscription-storefront-api/subscription-contracts/get-valid-subscription-contracts-for-a-customer"},{"title":"List a customer's valid subscription contract IDs","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-customers/valid/{id}","href":"/subscription-storefront-api/subscription-contracts/list-a-customers-valid-subscription-contract-ids"},{"title":"Update line item quantities for a classic Build-a-Box subscription","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/update-classic-bab-subscription/{contractId}","href":"/subscription-storefront-api/subscription-contracts/update-line-item-quantities-for-a-classic-build-a-box-subscription"},{"title":"Update subscription contract order note","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/update-contract-order-note/{contractId}","href":"/subscription-storefront-api/subscription-contracts/update-subscription-contract-order-note"},{"title":"Add a fixed pricing bundle line item, with its child products, to a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/v2/subscription-contracts-add-bundle-line-item","href":"/subscription-storefront-api/subscription-contracts/add-a-fixed-pricing-bundle-line-item-with-its-child-products-to-a-subscription-contract"},{"title":"Add a line item to a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/v2/subscription-contracts-add-line-item","href":"/subscription-storefront-api/subscription-contracts/add-a-line-item-to-a-subscription-contract"},{"title":"Add a line item to a specific section of a contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/v2/subscription-contracts-add-sectioned-line-item/{contractId}","href":"/subscription-storefront-api/subscription-contracts/add-a-line-item-to-a-specific-section-of-a-contract"}]},{"group":"Customer Portal","pages":[{"title":"Proxy GraphQL queries to Shopify Customer Account API","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/customer-account-api/graphql","href":"/subscription-storefront-api/customer-portal/proxy-graphql-queries-to-shopify-customer-account-api"},{"title":"Initiate Customer Account API OAuth flow","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/customer-account-api/initiate","href":"/subscription-storefront-api/customer-portal/initiate-customer-account-api-oauth-flow"},{"title":"Logout from Customer Account API","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/customer-account-api/logout","href":"/subscription-storefront-api/customer-portal/logout-from-customer-account-api"},{"title":"Handle OAuth callback from Shopify","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/customer-account-api/oauth/callback","href":"/subscription-storefront-api/customer-portal/handle-oauth-callback-from-shopify"},{"title":"Check Customer Account API authentication status","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/customer-account-api/status","href":"/subscription-storefront-api/customer-portal/check-customer-account-api-authentication-status"},{"title":"Get shop info for the currently signed-in shop","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/shop-infos-by-current-login","href":"/subscription-storefront-api/customer-portal/get-shop-info-for-the-currently-signed-in-shop"}]},{"group":"Customization","pages":[{"title":"Get customer portal settings","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/customer-portal-settings/{id}","href":"/subscription-storefront-api/customization/get-customer-portal-settings"},{"title":"Get customer portal label translations for locale","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/label-translations/locale","href":"/subscription-storefront-api/customization/get-customer-portal-label-translations-for-locale"},{"title":"Get shop customization CSS by category","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/shop-customizations/css/{category}","href":"/subscription-storefront-api/customization/get-shop-customization-css-by-category"},{"title":"Get custom CSS for customer portal","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-custom-csses/{id}","href":"/subscription-storefront-api/customization/get-custom-css-for-customer-portal"},{"title":"Get widget label translations for locale","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/widget-label-translations/locale","href":"/subscription-storefront-api/customization/get-widget-label-translations-for-locale"}]},{"group":"Subscription Data","pages":[{"title":"Get delivery options for subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/contract-delivery-options","href":"/subscription-storefront-api/subscription-data/get-delivery-options-for-subscription-contract"},{"title":"List live carrier-quoted shipping rates for a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/contract-live-shipping-rates","href":"/subscription-storefront-api/subscription-data/list-live-carrier-quoted-shipping-rates-for-a-subscription-contract"},{"title":"Get single product data by ID","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/product","href":"/subscription-storefront-api/subscription-data/get-single-product-data-by-id"},{"title":"List product handles for the shop","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/product-handles","href":"/subscription-storefront-api/subscription-data/list-product-handles-for-the-shop"},{"title":"Get products data with pagination","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/products","href":"/subscription-storefront-api/subscription-data/get-products-data-with-pagination"},{"title":"Get selling plans for products","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/products-selling-plans","href":"/subscription-storefront-api/subscription-data/get-selling-plans-for-products"},{"title":"Search subscription-enabled products with pagination","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/products1","href":"/subscription-storefront-api/subscription-data/search-subscription-enabled-products-with-pagination"},{"title":"List subscription products filtered by selling plans","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/selling-plan-products","href":"/subscription-storefront-api/subscription-data/list-subscription-products-filtered-by-selling-plans"},{"title":"List delivery options available for the shop","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/shop-delivery-options","href":"/subscription-storefront-api/subscription-data/list-delivery-options-available-for-the-shop"},{"title":"List subscription products available to the customer","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/subscription-products","href":"/subscription-storefront-api/subscription-data/list-subscription-products-available-to-the-customer"},{"title":"Get compatible selling-plan frequencies","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/v2/compatible-selling-plan-frequencies","href":"/subscription-storefront-api/subscription-data/get-compatible-selling-plan-frequencies"},{"title":"List products with their selling plans (v2)","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/v2/products-selling-plans","href":"/subscription-storefront-api/subscription-data/list-products-with-their-selling-plans-v2"},{"title":"Get variant contextual pricing","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/data/variant-contextual-pricing","href":"/subscription-storefront-api/subscription-data/get-variant-contextual-pricing"},{"title":"List saved addresses for the current customer","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/v2/data/addresses","href":"/subscription-storefront-api/subscription-data/list-saved-addresses-for-the-current-customer"},{"title":"List supported shipping countries","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/v2/data/countries","href":"/subscription-storefront-api/subscription-data/list-supported-shipping-countries"},{"title":"List enabled presentment currencies for the shop","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/v2/data/currencies","href":"/subscription-storefront-api/subscription-data/list-enabled-presentment-currencies-for-the-shop"}]},{"group":"Delivery \u0026 Shipping","pages":[{"title":"List delivery profile locations","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/delivery-profiles/get-locations","href":"/subscription-storefront-api/delivery-\u0026-shipping/list-delivery-profile-locations"},{"title":"Get a page of order events (paginated)","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/orders/{orderId}/events","href":"/subscription-storefront-api/delivery-\u0026-shipping/get-a-page-of-order-events-paginated"},{"title":"Get the live fulfillment status for an order","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/orders/{orderId}/live-status","href":"/subscription-storefront-api/delivery-\u0026-shipping/get-the-live-fulfillment-status-for-an-order"}]},{"group":"Loyalty Integration","pages":[{"title":"Get customer loyalty points and rewards data","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/loyalty-integration/customer","href":"/subscription-storefront-api/loyalty-integration/get-customer-loyalty-points-and-rewards-data"},{"title":"Get available ways to earn loyalty points","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/loyalty-integration/earn-options","href":"/subscription-storefront-api/loyalty-integration/get-available-ways-to-earn-loyalty-points"},{"title":"Redeem loyalty points for a reward","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/loyalty-integration/redeem","href":"/subscription-storefront-api/loyalty-integration/redeem-loyalty-points-for-a-reward"},{"title":"Get available loyalty point redemption options","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/loyalty-integration/redeem-options","href":"/subscription-storefront-api/loyalty-integration/get-available-loyalty-point-redemption-options"}]},{"group":"notification-resource","pages":[{"title":"Get subscriptionscpapinotification session","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/notification-session","href":"/subscription-storefront-api/notification-resource/get-subscriptionscpapinotification-session"}]},{"group":"Store Pickup","pages":[{"title":"List eligible pickup dates","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/pickup/eligible-dates","href":"/subscription-storefront-api/store-pickup/list-eligible-pickup-dates"},{"title":"Get the first eligible pickup date","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/pickup/eligible-dates/first","href":"/subscription-storefront-api/store-pickup/get-the-first-eligible-pickup-date"},{"title":"List eligible pickup times for a date","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/pickup/eligible-times","href":"/subscription-storefront-api/store-pickup/list-eligible-pickup-times-for-a-date"},{"title":"List eligible pickup times for a date","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/pickup/eligible-times","href":"/subscription-storefront-api/store-pickup/list-eligible-pickup-times-for-a-date-1"},{"title":"List available pickup locations","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/pickup/locations","href":"/subscription-storefront-api/store-pickup/list-available-pickup-locations"},{"title":"Update pickup and delivery details on a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/pickup/subscription-selection","href":"/subscription-storefront-api/store-pickup/update-pickup-and-delivery-details-on-a-subscription-contract"}]},{"group":"Subscription Actions","pages":[{"title":"Execute a server-authoritative next-order delay","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/subscription-actions/reschedule-by-days/execute","href":"/subscription-storefront-api/subscription-actions/execute-a-server-authoritative-next-order-delay"},{"title":"Preview a server-authoritative next-order delay","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/subscription-actions/reschedule-by-days/preview","href":"/subscription-storefront-api/subscription-actions/preview-a-server-authoritative-next-order-delay"}]},{"group":"Build-a-Box \u0026 Bundles","pages":[{"title":"Get subscription bundle settings by ID","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-bundle-settings/{id}","href":"/subscription-storefront-api/build-a-box-\u0026-bundles/get-subscription-bundle-settings-by-id"},{"title":"Get a subscription bundling configuration by token","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-bundlings/by-token/{token}","href":"/subscription-storefront-api/build-a-box-\u0026-bundles/get-a-subscription-bundling-configuration-by-token"},{"title":"List single-product Build-a-Box bundlings for the shop","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-bundlings/single-product","href":"/subscription-storefront-api/build-a-box-\u0026-bundles/list-single-product-build-a-box-bundlings-for-the-shop"},{"title":"Get public Build-a-Box bundle details by handle (v3)","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/v3/subscription-bundlings/external/get-bundle/{handle}","href":"/subscription-storefront-api/build-a-box-\u0026-bundles/get-public-build-a-box-bundle-details-by-handle-v3"}]},{"group":"Subscription Management","pages":[{"title":"Replace product variants in a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/subscription-contract-details/replace-variants-v3","href":"/subscription-storefront-api/subscription-management/replace-product-variants-in-a-subscription-contract"},{"title":"Split or duplicate an existing subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/subscription-contract-details/split-existing-contract","href":"/subscription-storefront-api/subscription-management/split-or-duplicate-an-existing-subscription-contract"},{"title":"Update subscription delivery address and method","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-shipping-address","href":"/subscription-storefront-api/subscription-management/update-subscription-delivery-address-and-method"},{"title":"Update subscription contract status","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contracts-update-status","href":"/subscription-storefront-api/subscription-management/update-subscription-contract-status"},{"title":"Update custom attributes on a subscription contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/update-custom-note-attributes","href":"/subscription-storefront-api/subscription-management/update-custom-attributes-on-a-subscription-contract"}]},{"group":"Subscription Contract Details","pages":[{"title":"Swap a product and change its delivery frequency in one change","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/subscription-contract-details/swap-product-frequency","href":"/subscription-storefront-api/subscription-contract-details/swap-a-product-and-change-its-delivery-frequency-in-one-change"},{"title":"Preview a product swap with its delivery frequency and recurring price","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json post /subscriptions/cp/api/subscription-contract-details/swap-product-frequency/preview","href":"/subscription-storefront-api/subscription-contract-details/preview-a-product-swap-with-its-delivery-frequency-and-recurring-price"}]},{"group":"Subscription One-Time Products","pages":[{"title":"List one-time add-on products for a contract","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-contract-one-offs-by-contractId","href":"/subscription-storefront-api/subscription-one-time-products/list-one-time-add-on-products-for-a-contract"},{"title":"Save a one-time add-on for a billing attempt","deprecated":true,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contract-one-offs-by-contractId-and-billing-attempt-id","href":"/subscription-storefront-api/subscription-one-time-products/save-a-one-time-add-on-for-a-billing-attempt"},{"title":"Delete a one-time add-on from a billing attempt","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json delete /subscriptions/cp/api/subscription-contract-one-offs-by-contractId-and-billing-attempt-id","href":"/subscription-storefront-api/subscription-one-time-products/delete-a-one-time-add-on-from-a-billing-attempt"},{"title":"Update quantity of a one-time add-on","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json put /subscriptions/cp/api/subscription-contract-one-offs-update-quantity","href":"/subscription-storefront-api/subscription-one-time-products/update-quantity-of-a-one-time-add-on"},{"title":"Get one-time add-ons for the next upcoming order","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/upcoming-subscription-contract-one-offs-by-contractId","href":"/subscription-storefront-api/subscription-one-time-products/get-one-time-add-ons-for-the-next-upcoming-order"}]},{"group":"subscription-gift-resource","pages":[{"title":"Get subscriptionscpapisubscription gifts","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-gifts","href":"/subscription-storefront-api/subscription-gift-resource/get-subscriptionscpapisubscription-gifts"}]},{"group":"Subscription Plans","pages":[{"title":"List all selling plans available to the customer","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/subscription-groups/all-selling-plans","href":"/subscription-storefront-api/subscription-plans/list-all-selling-plans-available-to-the-customer"}]},{"group":"upcoming-order-reward-resource","pages":[{"title":"Get subscriptionscpapiupcoming order rewards","deprecated":null,"version":null,"openapi":"/subscription/storefront-api-swagger.json get /subscriptions/cp/api/upcoming-order-rewards","href":"/subscription-storefront-api/upcoming-order-reward-resource/get-subscriptionscpapiupcoming-order-rewards"}]}]}]},{"tab":"Loyalty","icon":"star","pages":[{"title":"Loyalty","href":"/loyalty/introduction"}]},{"tab":"Memberships","icon":"id-card","pages":[{"title":"Memberships","href":"/memberships/introduction"}]},{"tab":"Bundles","icon":"boxes-stacked","pages":[{"title":"Bundles","href":"/bundles/introduction"}]}]},"basePath":"","title":"Get raw Shopify GraphQL contract response - Appstle","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-D6S0Yh6q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}