POST
/
v1
/
subscriptions
/
{id}
/
cancel
Cancelar assinatura
curl --request POST \
  --url https://api.malga.io/v1/subscriptions/{id}/cancel \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Client-Id: <api-key>'
{
  "id": "019860b2-feb8-7edf-b5ba-0c48a7a8bd3f",
  "status": "canceled",
  "message": "Assinatura cancelada com sucesso",
  "updatedAt": "2025-07-31T14:00:00Z"
}

Authorizations

X-Client-Id
string
header
required
X-Api-Key
string
header
required

Path Parameters

id
string<uuid>
required

id da assinatura que deseja cancelar

Response

200 - application/json

Success

The response is of type object.