Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.
Cancel, resume, close

Cancel a subscription

Builds the transaction that cancels an active, unpaid or stopped subscription. The subscription's own wallet signs and sends it, then you confirm. Nothing changes until the confirmation.
A subscription that is paid up keeps its access until the end of the period. A late or stopped one has none, and its missed period is never collected.
POSThttps://api.mesub.io/v1/subscriptions/{id}/cancel
POSTCancel a subscription
https://api.mesub.io/v1/subscriptions/{id}/cancel

Calls are real. They go to https://api.mesub.io and act on the project the key belongs to.

Authorization

The key stays in this browser and is sent only to the API. It is not stored or logged by the docs.

Path

Fill id to send.

cURL
curl -X POST "https://api.mesub.io/v1/subscriptions/{id}/cancel" \
  -H "Authorization: Bearer $MESUB_API_KEY"
Response

Send the request to see the status, the headers and the body.

Limit: 60 calls a minute per API key.Guide: Manage from your server.

Headers

Mesub-Versionenum<string>

The version of this contract the call is written against. Without it, the call is served as the first version, 2026-10-02. Any other value is refused with 400 unsupported_version.

One of2026-10-02

Request example
curl -X POST "https://api.mesub.io/v1/subscriptions/cmg1x0abc0001/cancel" \ -H "Authorization: Bearer $MESUB_API_KEY"
Response example
{ "transaction": "gAIBBg0Xq3ZkT9yLmR4vP7wJ8sN2aHcVbE5uYtKfDgQxWz1oMiCj6rA0lSnUhBdXe2GqFpYv7mNcTz4RwK8sLjH5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQIDBAUGBwgJCgsM", "last_valid_block_height": "301245678", "transaction_expires_at": "2026-01-01T00:00:33.000Z" }