Skip to main content
PUT
Update a specific subscription

Path Parameters

id
string
required

subscription id

Body

application/json
command
string
required
Allowed value: "update"
billing_frequency
enum<string>
Available options:
monthly
billing_interval
integer
default:1
billing_limit
integer | null

null means there is no limit on number of invoices generated. If specified, then subscription will be revoked automatically after billing limit is reached.

shipping_frequency
enum<string>
Available options:
monthly
shipping_interval
integer
default:1
shipping_limit
integer | null

null means there is no limit on number of deliveries completed. If specified, then subscription will be revoked automatically after shipping limit is reached.

is_prepaid
boolean
default:false

Refers to a pricing model where customers are charged based on their actual usage of a service. Usage based billing works for digital products.

usage_based_billing
boolean
default:false

Refers to a pricing model where customers are charged based on their actual usage of a service. Usage based billing works for digital products.

usage_based_tiers
object[]

Refers to a pricing structure where customers are charged based on their usage, but the cost per unit of usage decreases or changes as they move into higher usage levels.

grace_period_days
integer
default:0

The number of days after a failed payment to retry before canceling.

is_cancellation_allowed
boolean
default:true

Indcates whether the next billing cancellation is allowed or not.

days_until_cancellation_allowed
integer
default:3

Specifies the number of days the customer has to cancel before the next billing.

invoice_items
SubscriptionInvoiceItem · object[]

Response

OK

message
string
required
success
boolean
required
content
object
required