Orders and subscriptions
Cancel subscription
/ v1 / orders / {order_id} / cancel-subscription Stops the future payments of a subscription or an installment plan. access decides what happens to the access:
period_end(default): a subscription buyer keeps access until the paid period ends and gets an email. An installment buyer keeps access.now: the buyer also loses access at once, without an email.
This does not refund anything. For a refund, use POST /v1/orders/{order_id}/refund or the Tentary app.
After the call: the account owner confirms at the confirm_url within 5 minutes. Then check the result with GET /v1/confirmations/{confirmation_id}.
Changes nothing at once. The answer has a link that the account owner confirms in Tentary. Confirmations
Authorization
-
Authorizationstring header requiredBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Introduction
Path parameters
-
order_idinteger requiredThe id from list_orders or get_order (not the order number).
min
1Example:1002
Body application/json
-
accessstringWhen the access ends. Default period_end.
Allowed values:
period_endnow
Response
Fields of the answer with status 200. Errors always have the same format, see Errors.
The action waits for the seller's confirmation.
-
statusstringNothing happened yet.
Allowed values:
needs_confirmation -
confirmation_idintegerFor get_confirmation.
-
confirm_urlstring<uri>The seller opens it while logged in to Tentary and confirms.
-
expires_atstring<date-time>UTC, like 2026-01-31T14:05:00Z. The link works until then.
-
summarystringWhat the seller confirms.
-
messagestringNext steps for the AI app.