Kund:innen und Zugänge
Revoke access
POST
/ v1 / access / revoke Takes away access that was granted: by POST /v1/access/grant, an import, Zapier or the Tentary app.
- Access from a purchase stays. To end it, use
POST /v1/orders/{order_id}/refund, orPOST /v1/orders/{order_id}/cancel-subscriptionwithaccessnow. Both need confirmation. - The customer and their learning progress stay. A later
POST /v1/access/grantgives the access back.
Ändert sofort MCP-Werkzeug revoke_access
Autorisierung
-
Authorizationstring Header erforderlichBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Einführung
Body application/json
-
emailstring erforderlichThe customer's e-mail address.
min. Länge
3max. Länge255 -
product_idinteger erforderlichThe id from list_products.
min.
1 -
variant_idintegerOnly the grant of this variant. Leave out for all variants of the product.
min.
0
Antwort
Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.
-
statusstringThe status.
Mögliche Werte:
revokednot_found -
messagestringWhat happened, in words for the seller.
-
revoked_grantsintegerNumber of grants that were revoked.
-
customer_idinteger kann null seinThe customer ID.