Skip to main content
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>",
      "env": "sandbox",
      "is_add_on": true,
      "is_default": true,
      "archived": true,
      "version": 123,
      "created_at": 123,
      "items": [
        {
          "type": "feature",
          "feature_id": "<string>",
          "feature_type": "single_use",
          "included_usage": 123,
          "interval": "minute",
          "interval_count": 123,
          "price": 123,
          "tiers": [
            {
              "to": 100,
              "amount": 10
            }
          ],
          "usage_model": "prepaid",
          "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"
            },
            "on_increase": "bill_immediately",
            "on_decrease": "prorate"
          }
        }
      ],
      "free_trial": {
        "duration": "day",
        "length": 123,
        "unique_fingerprint": true,
        "card_required": true,
        "trial_available": true
      },
      "base_variant_id": "<string>",
      "scenario": "scheduled"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json
list
object[]
required