Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
External ID of the existing subscription
Example:
"5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"
Query Parameters
By default, this endpoint only return active
subscriptions. If you want to update a subscription with a different status
, you can specify it here.
Available options:
active
, pending
Example:
"active"
Body
application/json
Update an existing subscription
If the field is not defined and multiple active
and pending
subscriptions exists, Lago will update the active
subscription. However, if you wish to update a pending
subscription, please ensure that you include the status
attribute with the pending
value in your request body.
Available options:
active
, pending
Example:
"active"
Response
Subscription updated