Subscriptions
Retrieve a plan for a subscription
get/subscriptions/{id}/plan
Path parameters
idinteger required
The SamCart ID for the subscription
Query parameters
created_at_minstring date-time
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.
created_at_maxstring date-time
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.
Response
Successful operation
Example response
{
"id": 1337,
"product_id": 1234,
"plan_status": "active",
"plan_archived_date": "2021-03-02 01:23:34",
"plan_duration": 2,
"plan_frequency": "days",
"plan_price": 9825,
"trial_period": 2,
"rebill_days": 15,
"stripe_compatible": true,
"stripe_plan_id": "samcart_plan_1_12345",
"on_stripe_sandbox": true,
"recurring_shipping": true
}Changes
No recorded changes to this endpoint across all 1 revision of this API.