Retrieve all subscriptions for a customer
Path parameters
The SamCart ID for the customer
Query parameters
Filter by created at date/time at or after given value. Accepts ISO 8601/RFC 3339 format with timezone (e.g., 2025-01-16T14:30:00Z) or date-only (e.g., 2025-01-16). Date-only values use 00:00:00 UTC.
Filter by created at date/time at or before given value. Accepts ISO 8601/RFC 3339 format with timezone (e.g., 2025-01-16T14:30:00Z) or date-only (e.g., 2025-01-16). Date-only values use 23:59:59 UTC.
Filter by rebilling date/time at or after given value. Accepts ISO 8601/RFC 3339 format with timezone (e.g., 2025-01-16T14:30:00Z) or date-only (e.g., 2025-01-16). Date-only values use 00:00:00 UTC.
Filter by rebilling date/time at or before given value. Accepts ISO 8601/RFC 3339 format with timezone (e.g., 2025-01-16T14:30:00Z) or date-only (e.g., 2025-01-16). Date-only values use 23:59:59 UTC.
Filter by canceled date/time at or after given value. Accepts ISO 8601/RFC 3339 format with timezone (e.g., 2025-01-16T14:30:00Z) or date-only (e.g., 2025-01-16). Date-only values use 00:00:00 UTC.
Filter by canceled date/time at or before given value. Accepts ISO 8601/RFC 3339 format with timezone (e.g., 2025-01-16T14:30:00Z) or date-only (e.g., 2025-01-16). Date-only values use 23:59:59 UTC.
Filter subscriptions by status
Filter subscriptions by type
Filter by test mode
Response
Successful operation. Response will return an array of 0 or more subscriptions
Example response
[
{
"id": 1337,
"customer_id": 1234,
"affiliate_id": 1001,
"order_id": 1001,
"product_id": 1001,
"sku": "sku123",
"status": "active",
"type": "recurring_subscription",
"product_name": "Cool Product",
"internal_product_name": "Cool Product",
"initial_price": {
"subtotal": 10000,
"taxes": 500,
"shipping": 300,
"total": 9800
},
"recurring_price": {
"subtotal": 10000,
"taxes": 500,
"shipping": 300,
"total": 10800
},
"coupon": {
"charge_instance": "one_time",
"code": "summersale",
"type": "flat_rate",
"discount_percentage": 10
},
"cancel_schedule": {
"status": "scheduled",
"cancel_date": "2021-03-08 00:18:35"
},
"processor_name": "Stripe",
"test_mode": true,
"created_at": "2021-03-08 00:18:35",
"start_date": "2021-03-08 00:18:35",
"end_date": "2021-03-08 00:18:35",
"next_rebilling_date": "2021-04-08 00:18:35",
"total_failed_charges": 1,
"subscription_interval": "monthly",
"stripe_plan_id": "plan_abc123"
}
]Changes
No recorded changes to this endpoint across all 1 revision of this API.