Attach an Add-On
/api/subscriptions/{subscription_id}/addons/attach/
curl --request POST \
--url https://api.uselotus.io/api/subscriptions/{subscription_id}/addons/attach/ \
--header 'Authorization: <authorization>' \
--header 'X-API-KEY: <x-api-key>'
lotus.attach_addon(
subscription_id='sub_e953bfbf42a442ca90079c8f1656d306',
addon_id='addon_5af61a194ca144478fb2721dd34c9049',
quantity=3,
)
Authorizations
Token-based authentication with required prefix "Token"
Path Parameters
The ID of the subscription to add an addon to.
Body
The add-on to be applied to the subscription.
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.
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
The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.
The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.
Whether the subscription automatically renews. Defaults to true.
curl --request POST \
--url https://api.uselotus.io/api/subscriptions/{subscription_id}/addons/attach/ \
--header 'Authorization: <authorization>' \
--header 'X-API-KEY: <x-api-key>'