TypeScript
import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.products.list();{
"list": [
{
"id": "<string>",
"name": "<string>",
"group": "<string>",
"is_add_on": true,
"is_default": true,
"archived": true,
"version": 123,
"created_at": 123,
"items": [
{
"feature_id": "<string>",
"included_usage": 123,
"interval_count": 123,
"price": 123,
"tiers": [
{
"to": 100,
"amount": 10
}
],
"billing_units": 123,
"reset_usage_when_enabled": true,
"entity_feature_id": "<string>",
"display": {
"primary_text": "<string>",
"secondary_text": "<string>"
},
"quantity": 123,
"next_cycle_quantity": 123,
"config": {
"rollover": {
"max": 123,
"length": 123,
"duration": "month"
}
}
}
],
"free_trial": {
"length": 123,
"unique_fingerprint": true,
"card_required": true,
"trial_available": true
},
"base_variant_id": "<string>"
}
]
}Products
List Products
GET
/
products
TypeScript
import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.products.list();{
"list": [
{
"id": "<string>",
"name": "<string>",
"group": "<string>",
"is_add_on": true,
"is_default": true,
"archived": true,
"version": 123,
"created_at": 123,
"items": [
{
"feature_id": "<string>",
"included_usage": 123,
"interval_count": 123,
"price": 123,
"tiers": [
{
"to": 100,
"amount": 10
}
],
"billing_units": 123,
"reset_usage_when_enabled": true,
"entity_feature_id": "<string>",
"display": {
"primary_text": "<string>",
"secondary_text": "<string>"
},
"quantity": 123,
"next_cycle_quantity": 123,
"config": {
"rollover": {
"max": 123,
"length": 123,
"duration": "month"
}
}
}
],
"free_trial": {
"length": 123,
"unique_fingerprint": true,
"card_required": true,
"trial_available": true
},
"base_variant_id": "<string>"
}
]
}⌘I

