Skip to main content
PUT

Authorizations

Authorization
string
header
required

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

Path Parameters

external_id
string
required

External ID of the existing subscription

Example:

"5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba"

Query Parameters

status
enum<string>
default:active

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

subscription
object
required
status
enum<string>

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

subscription
object
required