curl
curl -X GET "https://api.linkvite.io/v1/plans" \
-H "x-api-key: $LINKVITE_API_KEY"import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.plans.getSubscription();client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Plans.GetSubscription(ctx){
"data": {
"end_date": "<string>",
"id": "<string>",
"plan": [
{
"billing_thresholds": {
"usage_gte": 123
},
"created": 123,
"deleted": true,
"id": "<string>",
"metadata": {},
"object": "<string>",
"plan": {
"active": true,
"aggregate_usage": "last_during_period",
"amount": 123,
"amount_decimal": 123,
"billing_scheme": "per_unit",
"created": 123,
"currency": "aed",
"deleted": true,
"id": "<string>",
"interval": "day",
"interval_count": 123,
"livemode": true,
"metadata": {},
"nickname": "<string>",
"object": "<string>",
"product": {
"active": true,
"attributes": [
"<string>"
],
"caption": "<string>",
"created": 123,
"deactivate_on": [
"<string>"
],
"default_price": {
"active": true,
"billing_scheme": "per_unit",
"created": 123,
"currency": "aed",
"currency_options": {},
"custom_unit_amount": {
"maximum": 123,
"minimum": 123,
"preset": 123
},
"deleted": true,
"id": "<string>",
"livemode": true,
"lookup_key": "<string>",
"metadata": {},
"nickname": "<string>",
"object": "<string>",
"product": null,
"recurring": {
"aggregate_usage": "last_during_period",
"interval": "day",
"interval_count": 123,
"trial_period_days": 123,
"usage_type": "licensed"
},
"tax_behavior": "exclusive",
"tiers": [
{
"flat_amount": 123,
"flat_amount_decimal": 123,
"unit_amount": 123,
"unit_amount_decimal": 123,
"up_to": 123
}
],
"tiers_mode": "graduated",
"transform_quantity": {
"divide_by": 123,
"round": "down"
},
"type": "one_time",
"unit_amount": 123,
"unit_amount_decimal": 123
},
"deleted": true,
"description": "<string>",
"id": "<string>",
"images": [
"<string>"
],
"livemode": true,
"metadata": {},
"name": "<string>",
"object": "<string>",
"package_dimensions": {
"height": 123,
"length": 123,
"weight": 123,
"width": 123
},
"shippable": true,
"statement_descriptor": "<string>",
"tax_code": {
"description": "<string>",
"id": "<string>",
"name": "<string>",
"object": "<string>"
},
"type": "good",
"unit_label": "<string>",
"updated": 123,
"url": "<string>"
},
"tiers": [
{
"flat_amount": 123,
"flat_amount_decimal": 123,
"unit_amount": 123,
"unit_amount_decimal": 123,
"up_to": 123
}
],
"tiers_mode": "graduated",
"transform_usage": {
"divide_by": 123,
"round": "down"
},
"trial_period_days": 123,
"usage_type": "licensed"
},
"price": {
"active": true,
"billing_scheme": "per_unit",
"created": 123,
"currency": "aed",
"currency_options": {},
"custom_unit_amount": {
"maximum": 123,
"minimum": 123,
"preset": 123
},
"deleted": true,
"id": "<string>",
"livemode": true,
"lookup_key": "<string>",
"metadata": {},
"nickname": "<string>",
"object": "<string>",
"product": null,
"recurring": {
"aggregate_usage": "last_during_period",
"interval": "day",
"interval_count": 123,
"trial_period_days": 123,
"usage_type": "licensed"
},
"tax_behavior": "exclusive",
"tiers": [
{
"flat_amount": 123,
"flat_amount_decimal": 123,
"unit_amount": 123,
"unit_amount_decimal": 123,
"up_to": 123
}
],
"tiers_mode": "graduated",
"transform_quantity": {
"divide_by": 123,
"round": "down"
},
"type": "one_time",
"unit_amount": 123,
"unit_amount_decimal": 123
},
"quantity": 123,
"subscription": "<string>",
"tax_rates": [
{
"active": true,
"country": "<string>",
"created": 123,
"description": "<string>",
"display_name": "<string>",
"effective_percentage": 123,
"id": "<string>",
"inclusive": true,
"jurisdiction": "<string>",
"livemode": true,
"metadata": {},
"object": "<string>",
"percentage": 123,
"state": "<string>",
"tax_type": "amusement_tax"
}
]
}
],
"status": "<string>"
},
"ok": true,
"message": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}Plans
Get subscription
Scope: plans:read · Rate limit: 250 requests per 5 minutes
GET
/
v1
/
plans
curl
curl -X GET "https://api.linkvite.io/v1/plans" \
-H "x-api-key: $LINKVITE_API_KEY"import {Linkvite} from '@linkvite/js';
const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
const data = await linkvite.plans.getSubscription();client, _ := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
data, err := client.Plans.GetSubscription(ctx){
"data": {
"end_date": "<string>",
"id": "<string>",
"plan": [
{
"billing_thresholds": {
"usage_gte": 123
},
"created": 123,
"deleted": true,
"id": "<string>",
"metadata": {},
"object": "<string>",
"plan": {
"active": true,
"aggregate_usage": "last_during_period",
"amount": 123,
"amount_decimal": 123,
"billing_scheme": "per_unit",
"created": 123,
"currency": "aed",
"deleted": true,
"id": "<string>",
"interval": "day",
"interval_count": 123,
"livemode": true,
"metadata": {},
"nickname": "<string>",
"object": "<string>",
"product": {
"active": true,
"attributes": [
"<string>"
],
"caption": "<string>",
"created": 123,
"deactivate_on": [
"<string>"
],
"default_price": {
"active": true,
"billing_scheme": "per_unit",
"created": 123,
"currency": "aed",
"currency_options": {},
"custom_unit_amount": {
"maximum": 123,
"minimum": 123,
"preset": 123
},
"deleted": true,
"id": "<string>",
"livemode": true,
"lookup_key": "<string>",
"metadata": {},
"nickname": "<string>",
"object": "<string>",
"product": null,
"recurring": {
"aggregate_usage": "last_during_period",
"interval": "day",
"interval_count": 123,
"trial_period_days": 123,
"usage_type": "licensed"
},
"tax_behavior": "exclusive",
"tiers": [
{
"flat_amount": 123,
"flat_amount_decimal": 123,
"unit_amount": 123,
"unit_amount_decimal": 123,
"up_to": 123
}
],
"tiers_mode": "graduated",
"transform_quantity": {
"divide_by": 123,
"round": "down"
},
"type": "one_time",
"unit_amount": 123,
"unit_amount_decimal": 123
},
"deleted": true,
"description": "<string>",
"id": "<string>",
"images": [
"<string>"
],
"livemode": true,
"metadata": {},
"name": "<string>",
"object": "<string>",
"package_dimensions": {
"height": 123,
"length": 123,
"weight": 123,
"width": 123
},
"shippable": true,
"statement_descriptor": "<string>",
"tax_code": {
"description": "<string>",
"id": "<string>",
"name": "<string>",
"object": "<string>"
},
"type": "good",
"unit_label": "<string>",
"updated": 123,
"url": "<string>"
},
"tiers": [
{
"flat_amount": 123,
"flat_amount_decimal": 123,
"unit_amount": 123,
"unit_amount_decimal": 123,
"up_to": 123
}
],
"tiers_mode": "graduated",
"transform_usage": {
"divide_by": 123,
"round": "down"
},
"trial_period_days": 123,
"usage_type": "licensed"
},
"price": {
"active": true,
"billing_scheme": "per_unit",
"created": 123,
"currency": "aed",
"currency_options": {},
"custom_unit_amount": {
"maximum": 123,
"minimum": 123,
"preset": 123
},
"deleted": true,
"id": "<string>",
"livemode": true,
"lookup_key": "<string>",
"metadata": {},
"nickname": "<string>",
"object": "<string>",
"product": null,
"recurring": {
"aggregate_usage": "last_during_period",
"interval": "day",
"interval_count": 123,
"trial_period_days": 123,
"usage_type": "licensed"
},
"tax_behavior": "exclusive",
"tiers": [
{
"flat_amount": 123,
"flat_amount_decimal": 123,
"unit_amount": 123,
"unit_amount_decimal": 123,
"up_to": 123
}
],
"tiers_mode": "graduated",
"transform_quantity": {
"divide_by": 123,
"round": "down"
},
"type": "one_time",
"unit_amount": 123,
"unit_amount_decimal": 123
},
"quantity": 123,
"subscription": "<string>",
"tax_rates": [
{
"active": true,
"country": "<string>",
"created": 123,
"description": "<string>",
"display_name": "<string>",
"effective_percentage": 123,
"id": "<string>",
"inclusive": true,
"jurisdiction": "<string>",
"livemode": true,
"metadata": {},
"object": "<string>",
"percentage": 123,
"state": "<string>",
"tax_type": "amusement_tax"
}
]
}
],
"status": "<string>"
},
"ok": true,
"message": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}{
"ok": false,
"error": "<string>",
"errors": {},
"request_id": "<string>"
}Was this page helpful?