Skip to main content

Terminate a subscription

Route

DELETE
/api/v1/subscriptions/:id

Usage

LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
EXTERNAL_ID="__YOUR_SUBSCRIPTION_ID__"

curl --location --request DELETE "$LAGO_URL/api/v1/subscriptions/$EXTERNAL_ID" \
--header "Authorization: Bearer $API_KEY"

Arguments

Should be sent as request parameters

external_id: 5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba
AttributesTypeDescription
external_idString      RequiredSubscription unique identifier in your application

Response

The customer subscription was successfully terminated.

Returns a subscription object.