curl --request GET \
--url https://api.hyperline.co/v1/plans/{id} \
--header 'Authorization: Bearer <token>'{
"id": "plan_zHmjoDea4ZRmQV",
"name": "Starter",
"description": "Starter pack",
"commitment_interval": {
"period": "years",
"count": 1
},
"contract_start_strategy": "start_date",
"contract_start": "2025-01-01T00:00:00.000Z",
"contract_end_strategy": "duration",
"contract_end": "2025-12-31T23:59:59.999Z",
"contract_duration": {
"period": "years",
"count": 1
},
"renew_automatically": true,
"renew_for": {
"period": "years",
"count": 1
},
"products": [
{
"id": "itm_3kXODDF42QXtnL",
"name": "Product name",
"description": "Product internal description",
"description_display_interval_dates": true,
"payment_interval": {
"period": "months",
"count": 1
},
"payment_schedule": "start",
"type": "flat_fee",
"prices": [
{
"type": "fee",
"amount": 123,
"country": "all",
"currency": "EUR",
"id": "<string>"
}
]
}
],
"custom_properties": {}
}Plans are discontinued and progressively replaced by subscription templates.
curl --request GET \
--url https://api.hyperline.co/v1/plans/{id} \
--header 'Authorization: Bearer <token>'{
"id": "plan_zHmjoDea4ZRmQV",
"name": "Starter",
"description": "Starter pack",
"commitment_interval": {
"period": "years",
"count": 1
},
"contract_start_strategy": "start_date",
"contract_start": "2025-01-01T00:00:00.000Z",
"contract_end_strategy": "duration",
"contract_end": "2025-12-31T23:59:59.999Z",
"contract_duration": {
"period": "years",
"count": 1
},
"renew_automatically": true,
"renew_for": {
"period": "years",
"count": 1
},
"products": [
{
"id": "itm_3kXODDF42QXtnL",
"name": "Product name",
"description": "Product internal description",
"description_display_interval_dates": true,
"payment_interval": {
"period": "months",
"count": 1
},
"payment_schedule": "start",
"type": "flat_fee",
"prices": [
{
"type": "fee",
"amount": 123,
"country": "all",
"currency": "EUR",
"id": "<string>"
}
]
}
],
"custom_properties": {}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Plan ID.
"plan_zHmjoDea4ZRmQV"
Plan name.
"Starter"
Plan description.
"Starter pack"
Interval used to represent the commitment period of the plan.
Show child attributes
{ "period": "years", "count": 1 }Strategy used to trigger the start of the subscription contract.
start_date, immediately, manual, manual_with_latest, quote_signature, checkout "start_date"
Contract start date, applicable if the start strategy is start_date.
"2025-01-01T00:00:00.000Z"
Strategy used to trigger the end of the subscription contract.
duration, manual, end_date "duration"
Contract end date, applicable if the end strategy is end_date.
"2025-12-31T23:59:59.999Z"
Duration of the initial contract for the created subscription.
Show child attributes
{ "period": "years", "count": 1 }Indicates if the subscription to the plan should automatically renew.
true
Interval to renew thr subscription for if renew_automatically is enabled.
Show child attributes
{ "period": "years", "count": 1 }Show child attributes
A list of key value with the slug of the custom property as the key and the custom property value as value.
Show child attributes
Was this page helpful?