Skip to main content
POST
Create subscription updates

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
application_schedule
enum<string>
required
Available options:
immediately,
scheduled
payment_schedule
enum<string>
required
Available options:
immediately,
next_invoice,
custom
calculation_method
enum<string>
required
Available options:
pro_rata,
pay_in_full,
do_not_charge
updates
(Add product · object | Remove product · object | Add coupon · object | Remove coupon · object | Update count · object | Update prices · object)[]
required

Add a new product to bill as part of the subscription.

apply_at
string<date-time>

The date when the update should be applied. Required when application_schedule is 'scheduled'.

Example:

"2024-12-20T16:04:11Z"

charge_at
string<date-time>

The date when the resulting subscription update should be charged. Required when payment_schedule is 'custom'. Must be in the future.

Example:

"2024-12-20T16:04:11Z"

precision
enum<string>

Granularity used to prorate the update amount. Defaults to 'calendar_days' when omitted, prorating on whole calendar days; 'milliseconds' prorates on the exact elapsed time, charging the precise partial period.

Available options:
calendar_days,
milliseconds
Example:

"calendar_days"

refund_method
enum<string>

Override the refund destination when the update generates a refund credit note (e.g. seat reduction). When omitted, falls back to the invoicing entity's creditNoteWalletRefundEnabled setting.

Available options:
wallet,
original_payment_method,
external

Response

Subscription updates created

id
string
required