Skip to main content
POST
Create a plan

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Headers

Alguna-Version
enum<string>
required
Available options:
2026-04-01
Idempotency-Key
string

A unique string used to ensure the request is processed exactly once. If you retry a request with the same idempotency key within 24 hours, the original response is returned without re-executing the operation.

Maximum string length: 255
Example:

"ik_a1b2c3d4e5f6"

Body

application/json
currency
string
required

ISO 4217 currency code

Example:

"USD"

name
string
required

Plan name

Example:

"Enterprise Plan"

additional_terms
string | null

Markdown additional terms appended to the contract

auto_activate
boolean | null

Auto-activate subscriptions created from this plan

Example:

false

auto_renew
boolean | null

Whether the plan auto-renews

Example:

true

contract_duration
integer<int64> | null

Contract duration in months

Example:

12

contract_period_type
enum<string> | null

Contract period type

Available options:
fixed,
monthly_rolling
Example:

"fixed"

description
string

Plan description

Example:

"Full-featured enterprise plan"

discount
object | null

Plan-level discount applied across the price set

entitlements
object[]

Entitlement configs to provision with the plan

invoice_settings
object | null

Invoice/email behavior overrides for the plan

items
object[]

Items that make up the plan's pricing template. Each item is either a standalone product (product_id + price) or a bundle (bundle_id + name + items).

maximum_spend
object | null

Maximum spend per period

minimum_spend
object | null

Minimum spend per period

payment_terms
string | null

Invoice payment terms

Example:

"net_30"

price_escalation
object | null

Price escalation config

renewal_duration
integer<int64> | null

Renewal duration in months

Example:

12

renewal_period_type
enum<string> | null

Renewal period type

Available options:
fixed,
monthly_rolling
tags
string[]

Tag IDs to associate with the plan

Example:
trial_period_days
integer<int64> | null

Trial period in days

Example:

14

Response

Success

created_at
string<date-time>
required

Timestamp when the plan was created

Example:

"2026-04-01T10:00:00Z"

currency
string
required

The currency in which the plan is billed

Example:

"USD"

id
string
required

Unique identifier for the plan

Example:

"pln_01H1VECT"

name
string
required

The name of the plan

Example:

"Enterprise Plan"

updated_at
string<date-time>
required

Timestamp when the plan was last updated

Example:

"2026-04-01T12:30:00Z"

description
string | null

A brief description of the plan

Example:

"Full-featured enterprise plan"