Skip to main content
POST
Archive or restore 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.

Path Parameters

id
string
required

The object id, as the API returned it.

Body

application/json
active
boolean
required

Response

The price.

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.