curl --request POST \
  --url https://api.useautumn.com/v1/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "prod_12345",
  "customer_id": "cust_67890",
  "prices": {
    "amount": 100,
    "bill_when": "in_advance",
    "feature_id": "chat-messages",
    "usage_tiers": [
      {
        "from": 0,
        "to": "unlimited",
        "amount": 10
      }
    ],
    "billing_units": 1,
    "interval": "month"
  },
  "entitlements": {
    "feature_id": "entitlement_123",
    "allowance_type": "fixed",
    "allowance": "10",
    "interval": "month"
  },
  "free_trial": true
}'
{
  "id": "<string>",
  "status": "active"
}

Please contact us at hey@useautumn.com to get access to this endpoint.

Authorizations

Authorization
string
header
required

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

Body

application/json
id
string

The unique identifier for the product

customer_id
string

The unique identifier for the customer to attach the product to

prices
object
entitlements
object
free_trial_days
number | null

How many days the product will be free

Response

201 - application/json
Product created successfully
id
string

The unique identifier for the created product

status
enum<string>
Available options:
active,
inactive