Skip to main content
POST
Change seats or 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

Path Parameters

id
string
required

The object id, as the API returned it.

Body

application/json

At least one of quantity or price.

quantity
integer
Required range: 1 <= x <= 10000
price
string

A recurring catalog price of the same product, in the same currency.

proration
enum<string>
default:create
Available options:
create,
none
effective
enum<string>
default:now
Available options:
now,
period_end

Response

The subscription after the change.

A subscription (sub_). None of the operations on it move money.

object
any
required
id
string
required
Pattern: ^sub_
customer
string<uuid> | null
required
status
enum<string>
required
Available options:
active,
trialing,
ending,
paused,
past_due,
incomplete,
canceled
paused
boolean
required
amount
integer
required
currency
string
required
interval
enum<string> | null
required
Available options:
day,
week,
month,
year,
null
interval_count
integer
required
quantity
integer
required
livemode
boolean
required
created
string<date-time>
required
has_payment_method
boolean

False on a trial that started without a card, until the customer adds one

product_name
string | null
current_period_end
string<date-time> | null
next_charge_at
string<date-time> | null
trial_end
string<date-time> | null
ends_at
string<date-time> | null

Set while ending.

canceled_at
string<date-time> | null
cancel_reason
string | null

The payer's reason, when they cancelled in the portal.