Updates the minimum number of billing cycles (orders) that a customer must complete before they can cancel their subscription. This creates a commitment period that helps with customer retention and business predictability.
What are Minimum Cycles? Minimum cycles represent a commitment period where:
Key Features:
Common Use Cases:
Impact on Customers:
Cycle Counting:
Interaction with Max Cycles:
Best Practices:
Important Notes:
Authentication: Requires valid X-API-Key header
curl --request PUT \
--url https://subscription-admin.appstle.com/api/external/v2/subscription-contracts-update-min-cycles{
"id": "gid://shopify/SubscriptionContract/123456789",
"status": "ACTIVE",
"nextBillingDate": "2024-04-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z",
"customer": {
"id": "gid://shopify/Customer/987654321",
"email": "customer@example.com",
"displayName": "John Doe"
},
"billingPolicy": {
"interval": "MONTH",
"intervalCount": 1,
"minCycles": 6,
"maxCycles": null,
"anchors": [
{
"type": "MONTHDAY",
"day": 1
}
]
},
"deliveryPolicy": {
"interval": "MONTH",
"intervalCount": 1
},
"customerPaymentMethod": {
"id": "gid://shopify/CustomerPaymentMethod/123456",
"instrument": {
"__typename": "CustomerCreditCard",
"brand": "VISA",
"lastDigits": "4242",
"expiryMonth": 12,
"expiryYear": 2025
}
},
"lines": {
"edges": [
{
"node": {
"id": "gid://shopify/SubscriptionLine/111111",
"quantity": 1,
"variantId": "gid://shopify/ProductVariant/42549172011164",
"title": "Premium Subscription Box",
"currentPrice": {
"amount": "49.99",
"currencyCode": "USD"
}
}
}
]
}
}Documentation Index
Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Contract ID
API Key (Deprecated - Use Header X-API-Key instead)
Minimum Number of Orders. The minimum number of billing cycles a customer must complete before being allowed to cancel. Set to null to remove the minimum commitment. Common values:
1 <= x <= 9999Minimum cycles updated successfully
ACTIVE, PAUSED, CANCELLED, EXPIRED, FAILED, $UNKNOWN Show child attributes
SUCCEEDED, FAILED, $UNKNOWN Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
curl --request PUT \
--url https://subscription-admin.appstle.com/api/external/v2/subscription-contracts-update-min-cycles{
"id": "gid://shopify/SubscriptionContract/123456789",
"status": "ACTIVE",
"nextBillingDate": "2024-04-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z",
"customer": {
"id": "gid://shopify/Customer/987654321",
"email": "customer@example.com",
"displayName": "John Doe"
},
"billingPolicy": {
"interval": "MONTH",
"intervalCount": 1,
"minCycles": 6,
"maxCycles": null,
"anchors": [
{
"type": "MONTHDAY",
"day": 1
}
]
},
"deliveryPolicy": {
"interval": "MONTH",
"intervalCount": 1
},
"customerPaymentMethod": {
"id": "gid://shopify/CustomerPaymentMethod/123456",
"instrument": {
"__typename": "CustomerCreditCard",
"brand": "VISA",
"lastDigits": "4242",
"expiryMonth": 12,
"expiryYear": 2025
}
},
"lines": {
"edges": [
{
"node": {
"id": "gid://shopify/SubscriptionLine/111111",
"quantity": 1,
"variantId": "gid://shopify/ProductVariant/42549172011164",
"title": "Premium Subscription Box",
"currentPrice": {
"amount": "49.99",
"currencyCode": "USD"
}
}
}
]
}
}