curl --request GET \
--url https://api.hyperline.co/v2/subscriptions \
--header 'Authorization: Bearer <token>'{
"meta": {
"total": 1,
"taken": 1,
"skipped": 0,
"approximateCount": false
},
"data": [
{
"id": "sub_B6ClkdqNqVNBgY",
"name": "Yearly subscription",
"currency": "EUR",
"status": "active",
"purchase_order": "<string>",
"customer_id": "cus_QalW2vTAdkR6IY",
"invoicing_entity_id": "ive_jerrb484RHn",
"plan_id": "plan_zHmjoDee4ZRmQV",
"template_id": "subt_7gdusOkqr5L0B8",
"checkout_session_id": "<string>",
"crm_opportunity_id": null,
"minimum_invoice_fee": 250,
"commitment_interval": {
"period": "years",
"count": 1
},
"renew_automatically": true,
"renew_for": {
"period": "years",
"count": 1
},
"activation_strategy": "checkout",
"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",
"cancellation_strategy": "refund_prorata",
"cancellation_amount": 123,
"cancellation_reason": "<string>",
"estimated_arr": 123,
"contract_value": 123,
"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",
"next_payment_amount": 123,
"renews_at": "2024-12-20T16:04:11Z",
"current_phase_id": "<string>",
"display_shipping_details": true,
"properties": null,
"custom_properties": {},
"generate_document": true,
"document_name": "<string>",
"add_tax_to_document": true,
"generate_draft_invoices": true,
"created_at": "2024-10-12T07:00:01.860Z",
"updated_at": "2024-10-12T07:00:01.860Z"
}
]
}Retrieve existing subscriptions. By default, draft, voided, and cancelled subscriptions are not included.
curl --request GET \
--url https://api.hyperline.co/v2/subscriptions \
--header 'Authorization: Bearer <token>'{
"meta": {
"total": 1,
"taken": 1,
"skipped": 0,
"approximateCount": false
},
"data": [
{
"id": "sub_B6ClkdqNqVNBgY",
"name": "Yearly subscription",
"currency": "EUR",
"status": "active",
"purchase_order": "<string>",
"customer_id": "cus_QalW2vTAdkR6IY",
"invoicing_entity_id": "ive_jerrb484RHn",
"plan_id": "plan_zHmjoDee4ZRmQV",
"template_id": "subt_7gdusOkqr5L0B8",
"checkout_session_id": "<string>",
"crm_opportunity_id": null,
"minimum_invoice_fee": 250,
"commitment_interval": {
"period": "years",
"count": 1
},
"renew_automatically": true,
"renew_for": {
"period": "years",
"count": 1
},
"activation_strategy": "checkout",
"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",
"cancellation_strategy": "refund_prorata",
"cancellation_amount": 123,
"cancellation_reason": "<string>",
"estimated_arr": 123,
"contract_value": 123,
"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",
"next_payment_amount": 123,
"renews_at": "2024-12-20T16:04:11Z",
"current_phase_id": "<string>",
"display_shipping_details": true,
"properties": null,
"custom_properties": {},
"generate_document": true,
"document_name": "<string>",
"add_tax_to_document": true,
"generate_draft_invoices": true,
"created_at": "2024-10-12T07:00:01.860Z",
"updated_at": "2024-10-12T07:00:01.860Z"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
0 <= x <= 100x >= 0checkout, contract_start_date, quote, start_date, manually checkout, contract_start_date, quote, start_date, manually all, inactive, active, errored, cancelled, paused, pending, draft, voided, archived all, inactive, active, errored, cancelled, paused, pending, draft, voided, archived Was this page helpful?