GET
/
products
/
{product_id}
Get a product by ID
curl --request GET \
  --url https://api.useautumn.com/v1/products/{product_id} \
  --header 'Authorization: Bearer <token>'
{
  "autumn_id": "<string>",
  "created_at": 123,
  "id": "<string>",
  "name": "<string>",
  "env": "production",
  "is_add_on": true,
  "is_default": true,
  "group": "<string>",
  "version": 123,
  "items": [
    {
      "feature_id": "<string>",
      "feature_type": "single_use",
      "included_usage": 123,
      "interval": "<string>",
      "usage_model": "prepaid",
      "price": 123,
      "billing_units": 123,
      "entity_feature_id": "<string>",
      "reset_usage_when_enabled": true,
      "tiers": [
        {
          "to": 123,
          "amount": 123
        }
      ]
    }
  ],
  "free_trial": {
    "duration": "<string>",
    "length": 123,
    "unique_fingerprint": true
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

product_id
string
required

The product ID defined when creating the product

Response

Product retrieved successfully

autumn_id
string

Autumn's internal ID of the product

created_at
integer

The timestamp of when the product was created

id
string

The ID of the product you set when creating the product

name
string

The name of the product

env
enum<string>

The environment of the product

Available options:
production,
sandbox
is_add_on
boolean

Whether the product is an add-on and can be purchased alongside other products

is_default
boolean

Whether the product is the default product

group
string

The group of the product

version
integer

The version of the product

items
object[]
free_trial
object