Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

subscription_id
string
required

The ID of the subscription to add an addon to.

Body

addon_id
string<uuid>

The add-on to be applied to the subscription.

quantity
integer
default:1

The quantity of the add-on to be applied to the subscription. Flat fees of add-ons will be multiplied by this quantity. Usage-based components of add-ons will be unaffected by the quantity.

Required range: x >= 1
metadata
object

A JSON object containing additional information about the add-on subscription. This will be returned in the response when you retrieve the add-on subscription.

Response

200 - application/json
addon_subscription_id
string
required
customer
object
required
addon
object
required
start_date
string<date-time>
required
read-only

The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.

end_date
string<date-time>
required
read-only

The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.

parent
object
required
fully_billed
boolean
required
read-only
auto_renew
boolean
required
read-only

Whether the subscription automatically renews. Defaults to true.

metadata
object
required
read-only