Membership Contracts
Get raw subscription contract details from Shopify
Retrieves the complete subscription contract data directly from Shopify’s GraphQL API. This returns the full, unmodified Shopify contract object with all nested data.
Full behavior, validation rules, and side effects
Key Features:
- Raw Shopify Data: Direct response from Shopify API, not transformed
- Complete Contract: All contract fields, line items, billing details
- Real-Time Data: Fetches current state from Shopify (not cached)
- Nested Objects: Includes customer, addresses, discounts, line items
Returned Contract Data:
- Contract ID & Status: Shopify global ID, status (ACTIVE/PAUSED/CANCELLED/EXPIRED)
- Customer Info: Customer object with name, email, addresses
- Line Items: Products/variants in subscription with quantities, prices
- Billing Details: Next billing date, billing policy (frequency, interval)
- Delivery Details: Delivery policy, shipping address, method
- Pricing: Line prices, discounts, currency code
- Dates: Created at, updated at, next billing date
- Custom Attributes: Any custom data attached to the contract
- Discounts: Applied discount codes with amounts
Common Use Cases:
- Full Contract Display: Show all contract details in admin/portal
- Debugging: Inspect raw Shopify contract structure
- Data Export: Get complete contract for reporting/analytics
- Integration Development: Understand Shopify’s contract schema
- Audit Trail: Capture complete contract state at a point in time
Differences from other endpoints:
- This returns Shopify’s raw contract object
/api/external/v2/subscription-contract-detailsreturns transformed DTO- This includes more nested Shopify-specific fields
Parameters:
- contractId (required, path): The subscription contract ID (numeric)
Response: Returns complete Shopify SubscriptionContract GraphQL object
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
GET
Get raw subscription contract details from Shopify
Documentation Index
Fetch the complete documentation index at: https://developers.appstle.com/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Path Parameters
Subscription contract ID
Query Parameters
API Key (Deprecated - Use Header X-API-Key instead)
Response
Subscription contract retrieved successfully from Shopify
Available options:
ACTIVE, PAUSED, CANCELLED, EXPIRED, FAILED, $UNKNOWN Available options:
SUCCEEDED, FAILED, $UNKNOWN