v1
latestOpenAPI 3.1.02026-07-222392081.7 MBSubscriptions
Get subscription
Retrieve the details of an existing subscription.
get/v2/subscriptions/{id}
Path parameters
idstring required
Query parameters
include_live_billingstring
Response
Example response
{
"id": "sub_B6ClkdqNqVNBgY",
"name": "Yearly subscription",
"currency": "EUR",
"status": "active",
"customer_id": "cus_QalW2vTAdkR6IY",
"invoicing_entity_id": "ive_jerrb484RHn",
"plan_id": "plan_zHmjoDee4ZRmQV",
"template_id": "subt_7gdusOkqr5L0B8",
"minimum_invoice_fee": 250,
"commitment_interval": {
"period": "years",
"count": 1
},
"renew_automatically": true,
"renew_for": {
"period": "years",
"count": 1
},
"activation_strategy": "start_date",
"starts_at": "2024-12-20T16:04:11Z",
"contract_start": "2024-01-15T00:00:00Z",
"contract_end": "2025-01-15T00:00:00Z",
"initial_billing_at": "2024-12-20T16:04:11Z",
"paused_at": "2024-12-20T16:04:11Z",
"reactivate_at": "2024-12-20T16:04:11Z",
"cancel_at": "2024-12-20T16:04:11Z",
"current_period_started_at": "2024-12-20T16:04:11Z",
"current_period_ends_at": "2024-12-20T16:04:11Z",
"next_payment_at": "2024-12-20T16:04:11Z",
"renews_at": "2024-12-20T16:04:11Z",
"created_at": "2024-10-12T07:00:01.860Z",
"updated_at": "2024-10-12T07:00:01.860Z",
"products": [
{
"id": "itm_FJKlqUb8COXw55",
"name": "Product name",
"description": "A description of the product.",
"attached_at": "2024-01-15T00:00:00Z",
"detached_at": "2024-04-15T00:00:00Z",
"current_period_started_at": "2024-01-15T00:00:00Z",
"current_period_ends_at": "2024-02-15T00:00:00Z",
"next_payment_at": "2024-02-15T00:00:00Z",
"payment_interval": {
"period": "once"
},
"payment_schedule": "start",
"count": 1
}
],
"integrations": [
{
"entity_id": "123456789",
"provider_name": "stripe",
"provider_account_id": "acc_1234567890"
}
],
"phases": [
{
"id": "sup_1FoLfIQ5VOMbXf",
"name": "Initial term",
"type": "standard",
"status": "pending",
"activation_strategy": "manual",
"end_strategy": "duration",
"duration": {
"count": 1,
"period": "years"
},
"billing_date_setting": "phase_start",
"billing_cycle_alignment": "anniversary",
"transition_calculation_method": "prorata",
"transition_invoicing_schedule": "immediately",
"products": [
{
"id": "itm_FJKlqUb8COXw55",
"name": "Product name",
"description": "A description of the product.",
"attached_at": "2024-01-15T00:00:00Z",
"detached_at": "2024-04-15T00:00:00Z",
"current_period_started_at": "2024-01-15T00:00:00Z",
"current_period_ends_at": "2024-02-15T00:00:00Z",
"next_payment_at": "2024-02-15T00:00:00Z",
"payment_interval": {
"period": "once"
},
"payment_schedule": "start",
"count": 1
}
],
"created_at": "2024-10-12T07:00:01.860Z",
"updated_at": "2024-10-12T07:00:01.860Z"
}
],
"quote": {
"id": "quo_38YwqvItBH3d8a",
"status": "signed"
},
"plan": {
"id": "plan_zHmjoDee4ZRmQV",
"name": "My example plan"
},
"template": {
"id": "subt_7gdusOkqr5L0B8",
"name": "My example template",
"configurationId": "subtc_7mHWOlPStUogvp"
},
"checkout_session": {
"id": "che_hEUPdVG7IgjpW1",
"status": "opened",
"available_payment_methods": [
"card"
],
"redirect_url": "https://app.hyperline.co/callback/checkout",
"send_to": {
"email": "josh@alpeak.com"
},
"url": "https://billing.hyperline.co/checkout/che_hEUPdVG7IgjpW1"
},
"payment_method": {
"id": "pm_1xMpj5bwRqN7LM",
"status": "active",
"type": "card",
"last_4_digits": 2718,
"expiration_date": "2027-11",
"brand": "visa"
},
"contract_terms": {
"status": "active",
"activation_strategy": "start_date",
"end_strategy": "duration",
"starts_at": "2024-12-31T23:00:00.000Z",
"ends_at": "2025-06-30T21:59:59.999Z",
"duration": {
"count": 6,
"period": "months"
},
"renew_for_duration": {
"count": 1,
"period": "years"
},
"current_period_started_at": "2025-06-30T22:00:00.000Z",
"current_period_ends_at": "2026-06-30T21:59:59.999Z"
}
}