Updates the billing frequency (how often the customer is charged) for a subscription contract. This comprehensive operation recalculates billing dates, adjusts pricing, updates selling plans, and may also modify delivery intervals.
Key Features:
Billing Interval Types:
Validation Rules:
Next Billing Date Calculation: The system uses sophisticated logic to determine the new billing date:
Side Effects:
Prepaid vs Pay-Per-Delivery:
Authentication: Requires valid X-API-Key header
curl --request PUT \
--url https://www.myshop.com/apps/subscriptions/cp/api/subscription-contracts-update-billing-interval{
"id": "gid://shopify/SubscriptionContract/123456789",
"status": "ACTIVE",
"nextBillingDate": "2024-04-01T12:00:00Z",
"customer": {
"id": "gid://shopify/Customer/987654321",
"email": "customer@example.com"
},
"billingPolicy": {
"interval": "MONTH",
"intervalCount": 2,
"anchors": [
{
"type": "MONTHDAY",
"day": 1
}
]
},
"deliveryPolicy": {
"interval": "MONTH",
"intervalCount": 2
},
"lines": {
"edges": [
{
"node": {
"id": "gid://shopify/SubscriptionLine/111111",
"quantity": 1,
"variantId": "gid://shopify/ProductVariant/42549172011164",
"currentPrice": {
"amount": "59.98",
"currencyCode": "USD"
},
"sellingPlanId": "gid://shopify/SellingPlan/222222",
"sellingPlanName": "Deliver every 2 months",
"pricingPolicy": {
"basePrice": {
"amount": "29.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.
DAY, WEEK, MONTH, YEAR, $UNKNOWN Billing interval 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://www.myshop.com/apps/subscriptions/cp/api/subscription-contracts-update-billing-interval{
"id": "gid://shopify/SubscriptionContract/123456789",
"status": "ACTIVE",
"nextBillingDate": "2024-04-01T12:00:00Z",
"customer": {
"id": "gid://shopify/Customer/987654321",
"email": "customer@example.com"
},
"billingPolicy": {
"interval": "MONTH",
"intervalCount": 2,
"anchors": [
{
"type": "MONTHDAY",
"day": 1
}
]
},
"deliveryPolicy": {
"interval": "MONTH",
"intervalCount": 2
},
"lines": {
"edges": [
{
"node": {
"id": "gid://shopify/SubscriptionLine/111111",
"quantity": 1,
"variantId": "gid://shopify/ProductVariant/42549172011164",
"currentPrice": {
"amount": "59.98",
"currencyCode": "USD"
},
"sellingPlanId": "gid://shopify/SellingPlan/222222",
"sellingPlanName": "Deliver every 2 months",
"pricingPolicy": {
"basePrice": {
"amount": "29.99",
"currencyCode": "USD"
}
}
}
}
]
}
}