curl -X PATCH https://api.autumnai.com/products/Pro%20Product \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Pro Plan (Updated)",
"description": "Our premium plan with advanced features",
"items": [
{
"price": 25,
"interval": "month"
},
{
"feature_id": "messages",
"included_usage": 2000,
"price": 0.4,
"interval": "month",
"usage_model": "pay_per_use"
}
]
}'
{
"id": "Pro Product",
"name": "Pro Plan (Updated)",
"description": "Our premium plan with advanced features",
"group": null,
"env": "sandbox",
"is_add_on": false,
"is_default": false,
"archived": false,
"version": 2,
"created_at": 1761296829908,
"items": [
{
"type": "price",
"feature_id": null,
"interval": "month",
"interval_count": 1,
"price": 25,
"display": {
"primary_text": "$25",
"secondary_text": "per month"
}
},
{
"type": "priced_feature",
"feature_id": "messages",
"included_usage": 2000,
"interval": "month",
"interval_count": 1,
"price": 0.4,
"usage_model": "pay_per_use",
"billing_units": 1000,
"reset_usage_when_enabled": true,
"entity_feature_id": null,
"display": {
"primary_text": "2,000 Messages",
"secondary_text": "then $0.4 per 1,000 Messages"
}
}
],
"free_trial": null,
"base_variant_id": null,
"scenario": "new"
}
curl -X PATCH https://api.autumnai.com/products/Pro%20Product \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Pro Plan (Updated)",
"description": "Our premium plan with advanced features",
"items": [
{
"price": 25,
"interval": "month"
},
{
"feature_id": "messages",
"included_usage": 2000,
"price": 0.4,
"interval": "month",
"usage_model": "pay_per_use"
}
]
}'
{
"id": "Pro Product",
"name": "Pro Plan (Updated)",
"description": "Our premium plan with advanced features",
"group": null,
"env": "sandbox",
"is_add_on": false,
"is_default": false,
"archived": false,
"version": 2,
"created_at": 1761296829908,
"items": [
{
"type": "price",
"feature_id": null,
"interval": "month",
"interval_count": 1,
"price": 25,
"display": {
"primary_text": "$25",
"secondary_text": "per month"
}
},
{
"type": "priced_feature",
"feature_id": "messages",
"included_usage": 2000,
"interval": "month",
"interval_count": 1,
"price": 0.4,
"usage_model": "pay_per_use",
"billing_units": 1000,
"reset_usage_when_enabled": true,
"entity_feature_id": null,
"display": {
"primary_text": "2,000 Messages",
"secondary_text": "then $0.4 per 1,000 Messages"
}
}
],
"free_trial": null,
"base_variant_id": null,
"scenario": "new"
}
Show Product Item Object
price - Fixed price itempriced_feature - Feature with pricingfeature - Feature without pricingdayweekmonthyearprepaidpay_per_usegraduatedvolumeShow Config Object
prorateno_prorateprorateno_prorateShow Free Trial Object
daymonthyearcurl -X PATCH https://api.autumnai.com/products/Pro%20Product \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Pro Plan (Updated)",
"description": "Our premium plan with advanced features",
"items": [
{
"price": 25,
"interval": "month"
},
{
"feature_id": "messages",
"included_usage": 2000,
"price": 0.4,
"interval": "month",
"usage_model": "pay_per_use"
}
]
}'
{
"id": "Pro Product",
"name": "Pro Plan (Updated)",
"description": "Our premium plan with advanced features",
"group": null,
"env": "sandbox",
"is_add_on": false,
"is_default": false,
"archived": false,
"version": 2,
"created_at": 1761296829908,
"items": [
{
"type": "price",
"feature_id": null,
"interval": "month",
"interval_count": 1,
"price": 25,
"display": {
"primary_text": "$25",
"secondary_text": "per month"
}
},
{
"type": "priced_feature",
"feature_id": "messages",
"included_usage": 2000,
"interval": "month",
"interval_count": 1,
"price": 0.4,
"usage_model": "pay_per_use",
"billing_units": 1000,
"reset_usage_when_enabled": true,
"entity_feature_id": null,
"display": {
"primary_text": "2,000 Messages",
"secondary_text": "then $0.4 per 1,000 Messages"
}
}
],
"free_trial": null,
"base_variant_id": null,
"scenario": "new"
}