Retrieves comprehensive subscription contract details for a specific customer, including subscription status, products, billing information, delivery schedules, and more. This endpoint returns full subscription objects with all associated data, making it ideal for displaying subscription management interfaces and detailed analytics.
What This Endpoint Returns: Unlike the contract IDs endpoint which returns only numeric IDs, this endpoint provides complete SubscriptionContractDetailsDTO objects for each of the customer’s subscriptions. Each object contains all information needed to display and manage a subscription.
Data Included in Response:
Subscription Identity:
Subscription Status & Lifecycle:
Billing Configuration:
Delivery Configuration:
Products & Line Items:
Customer Information:
Address Details:
Payment Information:
Order & Fulfillment:
Additional Metadata:
Use Cases:
1. Customer Portal:
2. Admin Dashboard:
3. Customer Support:
4. Analytics & Reporting:
5. Integration & Automation:
Response Format:
Returns an array of SubscriptionContractDetailsDTO objects:
[
{
"id": 789,
"subscriptionContractId": 5234567890,
"status": "ACTIVE",
"nextBillingDate": "2024-03-15T00:00:00Z",
"billingInterval": "MONTH",
"billingIntervalCount": 1,
"deliveryInterval": "MONTH",
"deliveryIntervalCount": 1,
"currencyCode": "USD",
"currentTotalPrice": "49.99",
"customerId": 12345,
"customerEmail": "customer@example.com",
"lineItems": [...],
"billingAddress": {...},
"shippingAddress": {...}
},
{...}
]
Response Scenarios:
Customer with no subscriptions:
[]
Returns empty array with 200 OK status (not an error).
Customer with multiple subscriptions: Array contains multiple subscription objects, each representing a separate subscription contract.
Performance Considerations:
Response Size:
Query Performance:
Best Practices:
Data Freshness:
Security Notes:
Comparison with Other Endpoints:
vs. GET /subscription-customers/valid/:
vs. GET /subscription-contract-details:
vs. GET /subscription-contracts/contract-external/:
Authentication: Requires valid X-API-Key header or api_key parameter (deprecated)
curl --request GET \
--url https://subscription-admin.appstle.com/api/external/v2/subscription-customers-detail/valid/{customerId}[
{
"id": 789,
"subscriptionContractId": 5234567890,
"status": "ACTIVE",
"nextBillingDate": "2024-03-15T00:00:00Z",
"billingInterval": "MONTH",
"billingIntervalCount": 1,
"deliveryInterval": "MONTH",
"deliveryIntervalCount": 1,
"currencyCode": "USD",
"currentTotalPrice": "49.99",
"customerId": 12345,
"customerEmail": "customer@example.com",
"shop": "example-shop.myshopify.com",
"currentCycle": 3,
"deliveryMethod": "SHIPPING"
},
{
"id": 790,
"subscriptionContractId": 5234567891,
"status": "PAUSED",
"billingInterval": "WEEK",
"billingIntervalCount": 2,
"currencyCode": "USD",
"currentTotalPrice": "24.99",
"customerId": 12345,
"customerEmail": "customer@example.com"
}
]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.
Customer Id
API Key (Deprecated - Use Header X-API-Key instead)
Successfully retrieved customer subscription details. Returns array of subscription objects (may be empty).
SENT, UNSENT, FAILED, EMAIL_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_PAUSED_STATUS SENT, UNSENT, FAILED, SMS_SETTINGS_DISABLED, CUSTOMER_PAYMENT_EMPTY, CONTRACT_PAUSED_STATUS, PHONE_NUMBER_EMPTY STORE_FRONT, IMPORTED, SPLIT_ATTEMPT_BILLING, SPLIT_CONTRACT REGULAR_SUBSCRIPTION, BUILD_A_BOX_CLASSIC, BUILD_A_BOX_SINGLE_PRODUCT, BUNDLING_CLASSIC, BUNDLING_MIX_AND_MATCH, SECTIONED_BUNDLE, VOLUME_DISCOUNT curl --request GET \
--url https://subscription-admin.appstle.com/api/external/v2/subscription-customers-detail/valid/{customerId}[
{
"id": 789,
"subscriptionContractId": 5234567890,
"status": "ACTIVE",
"nextBillingDate": "2024-03-15T00:00:00Z",
"billingInterval": "MONTH",
"billingIntervalCount": 1,
"deliveryInterval": "MONTH",
"deliveryIntervalCount": 1,
"currencyCode": "USD",
"currentTotalPrice": "49.99",
"customerId": 12345,
"customerEmail": "customer@example.com",
"shop": "example-shop.myshopify.com",
"currentCycle": 3,
"deliveryMethod": "SHIPPING"
},
{
"id": 790,
"subscriptionContractId": 5234567891,
"status": "PAUSED",
"billingInterval": "WEEK",
"billingIntervalCount": 2,
"currencyCode": "USD",
"currentTotalPrice": "24.99",
"customerId": 12345,
"customerEmail": "customer@example.com"
}
]