Products
Create Product
POST
/
products
curl --request POST \
--url https://api.useautumn.com/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"name": "<string>",
"is_add_on": false,
"is_default": false,
"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
}
}'
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
201 - application/json
Product created successfully
The response is of type object
.
curl --request POST \
--url https://api.useautumn.com/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"name": "<string>",
"is_add_on": false,
"is_default": false,
"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
}
}'
{
"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
}
}
Assistant
Responses are generated using AI and may contain mistakes.