Skip to main content
POST
Create a price

Authorizations

Authorization
string
header
default:easner_sk_test_…
required

A secret key, easner_sk_test_… or easner_sk_live_…, as Authorization: Bearer. Each key has one business, one mode and fixed scopes. Transfer routes also accept a transfer's easner_ta_… secret for the customer.

Headers

Idempotency-Key
string

Up to 255 characters. Keys are scoped to your business and mode. Longer is 400 invalid_idempotency_key. Honoured only on the operations marked idempotent.

Maximum string length: 255

Body

application/json
product
string<uuid>
required

A product id of this mode.

unit_amount
integer
required

Whole cents, above zero.

Required range: x >= 1
currency
string
default:USD
Pattern: ^[A-Za-z]{3}$
interval
enum<string>
Available options:
day,
week,
month,
year,
none
interval_count
integer

Every N periods. Up to 365 days, 52 weeks, 12 months, or 1 year.

Required range: x >= 1
trial_days
integer
Required range: 0 <= x <= 730
per_seat
boolean
default:false

Recurring only. True makes unit_amount the price for each seat.

min_quantity
integer

Per-seat only. The fewest seats a customer can have.

Required range: 1 <= x <= 10000
max_quantity
integer

Per-seat only. The most seats a customer can buy. Default 10,000.

Required range: 1 <= x <= 10000
tiers_mode
enum<string>

Per-seat only, with tiers. graduated bills each seat at the price of its own band. volume bills every seat at the price of the band the whole team lands in.

Available options:
graduated,
volume
tiers
object[]

Per-seat only. The price per seat by team size. Send these instead of unit_amount. The last band has up_to null.

Required array length: 2 - 8 elements
active
boolean
default:true

Response

The price made by an earlier call with the same Idempotency-Key.

object
any
required
id
string<uuid>
required
livemode
boolean
required
product
string<uuid>
required
currency
string
required
unit_amount
integer
required

Whole cents for one unit.

mode
enum<string>
required
Available options:
one_time,
subscription
interval
enum<string> | null
required
Available options:
day,
week,
month,
year,
null
interval_count
integer | null
required
trial_days
integer | null
required
per_seat
boolean
required

A per-seat price: the seats are the quantity, and the customer can change them.

min_quantity
integer | null
required

The fewest seats a per-seat price is billed for.

active
boolean
required
created
string<date-time>
required
max_quantity
integer | null

The most seats a per-seat price can be bought for. null: up to 10,000.

tiers_mode
enum<string> | null

Set on a tiered price.

Available options:
graduated,
volume,
null
tiers
object[] | null

The price per seat by team size. unit_amount is the first band.