Membership Contracts
Get billing interval options for selling plans
Retrieves available billing frequency/interval options for specified Shopify selling plans (subscription plans). This endpoint returns all configured billing frequencies that customers can choose from for their subscriptions.
Key Information Returned:
- Frequency Options: List of available billing intervals (e.g., weekly, monthly, quarterly)
- Interval Units: Time unit for each option (DAYS, WEEKS, MONTHS, YEARS)
- Interval Count: Number of units between billings (e.g., 2 = every 2 weeks)
- Display Names: Customer-friendly names for each frequency option
- Plan IDs: Associated selling plan IDs for each frequency
Billing Frequency Structure: Each FrequencyInfoDTO contains:
- id: Selling plan ID (Shopify subscription plan identifier)
- name: Display name (e.g., “Deliver every 2 weeks”, “Monthly subscription”)
- intervalUnit: Time unit (DAY, WEEK, MONTH, YEAR)
- intervalCount: Number of units between deliveries
- billingPolicy: How billing is configured (EXACT_DAY, ANNIVERSARY)
- deliveryPolicy: How delivery is scheduled
Common Billing Intervals:
- Weekly: intervalUnit=WEEK, intervalCount=1
- Bi-Weekly: intervalUnit=WEEK, intervalCount=2
- Monthly: intervalUnit=MONTH, intervalCount=1
- Every 2 Months: intervalUnit=MONTH, intervalCount=2
- Quarterly: intervalUnit=MONTH, intervalCount=3
- Semi-Annual: intervalUnit=MONTH, intervalCount=6
- Annual: intervalUnit=YEAR, intervalCount=1
Request Parameters:
- sellingPlanIds: Comma-separated list of Shopify selling plan IDs (required)
- Example: “123456,123457,123458”
- Returns frequency options for all specified plans
Common Use Cases:
- Display available billing frequencies in customer portal
- Allow customers to change subscription delivery frequency
- Build frequency selector UI components
- Validate frequency options before updating subscription
- Sync available billing options with external systems
- Show frequency options during subscription checkout
Integration Example:
- Get customer’s current subscription selling plan ID
- Call this endpoint with that selling plan ID
- Display returned frequency options to customer
- Customer selects new frequency
- Update subscription with selected frequency
Authentication: Requires API key authentication via X-API-Key header or api_key parameter
GET
Get billing interval options for selling plans
Headers
Query Parameters
API Key (Deprecated - Use Header X-API-Key instead)
Comma-separated list of Shopify selling plan IDs
Response
Billing interval options successfully retrieved
Available options:
DAY, WEEK, MONTH, YEAR Available options:
ASAP, NEXT, $UNKNOWN Available options:
PERCENTAGE, FIXED, PRICE Available options:
PERCENTAGE, FIXED, PRICE Available options:
DAY, WEEK, MONTH, YEAR Available options:
DAY, WEEK, MONTH, YEAR Available options:
ON_PURCHASE_DAY, ON_SPECIFIC_DAY Available options:
PAY_AS_YOU_GO, PREPAID, ADVANCED_PREPAID