Deutsch DE
API-Referenz
API-Referenz

Kund:innen und Zugänge

Grant access

POST / v1 / access / grant

Gives a person access to a live product without an order: no payment and no invoice. For example a gift, or a purchase on another platform.

  • Creates the customer if needed. A customer created this way counts toward the plan limit of external customers until they buy.
  • The person gets an email with the access link, unless send_email is false.
  • It does not subscribe the person to the newsletter.
  • Not possible for booking, newsletter and external products.
Ändert sofort MCP-Werkzeug grant_access

Autorisierung

  • Authorization string Header erforderlich

    Bearer tnt_… · A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Einführung

Body application/json

  • email string erforderlich

    The customer's e-mail address.

    min. Länge 3 max. Länge 255

  • product_id integer erforderlich

    The id from list_products.

    min. 1

  • variant_id integer

    Needed for a product with variants (get_product shows them).

    min. 1

  • first_name string

    For a new customer.

    max. Länge 100

  • last_name string

    For a new customer.

    max. Länge 100

  • reason string

    Shown in the app. Default manual.

    Mögliche Werte: manualcomplimentarypurchased_elsewhere

  • send_email boolean

    Send the access e-mail (default true).

Antwort

Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.

  • status string

    exists and purchased: the customer had access already, so no grant was added. A deactivated customer is still reactivated: see customer.reactivated.

    Mögliche Werte: createdreactivatedexistspurchased

  • message string

    What happened, in words for the seller.

  • grant_id integer kann null sein

    The ID of the access grant.

  • customer object

    The customer.

    4 Felder anzeigen Felder ausblenden
    • id integer

      The ID.

    • email string

      E-mail address.

    • created boolean

      true = a new customer.

    • reactivated boolean

      true = a deactivated customer was reactivated.

  • product object

    The product.

    3 Felder anzeigen Felder ausblenden
    • id integer

      The ID.

    • name string

      The name.

    • variant_id integer kann null sein

      The variant ID, if any.

  • access_email string

    queued = the e-mail with the access link goes out in the next minutes. suppressed = the address bounced before.

    Mögliche Werte: queuedsuppressednot_sent

Tippe, um zu suchen.