# Subscriptions via tokenization (API)

{% hint style="info" %}
The abbreviation "API" stands for Application Programming Interface. It refers to a set of commands, functions, and protocols that allows software to interact with another system.
{% endhint %}

Tokenization involves storing a payment method for future payments. You can learn about the benefits of tokenization and how to set it up in Payrexx in the following article:

{% content-ref url="../tokenization" %}
[tokenization](https://docs.payrexx.com/merchant/english/payment/functionalities/tokenization)
{% endcontent-ref %}

## Technical Information

Technical information and instructions for enabling subscription payments through tokenization can be found in the relevant article in our developer documentation:

{% embed url="<https://docs.payrexx.com/developer/guides/gateway/payment-types/tokenization>" %}

## Frequently Asked Questions

<details>

<summary><strong>In which cases are the webhooks "Transaction" and "Subscription" triggered for subscriptions?</strong></summary>

* **Cancellation:** The "Subscription" webhook (status: cancelled) is triggered.
* **Updating a payment method:** The "Subscription" webhook with the new token data is triggered.
* **Charge:** The "Transaction" webhook is always triggered. If the charge is successful, the "Subscription" webhook is additionally triggered with the updated billing date (next\_pay\_date).

</details>

<details>

<summary><strong>Is it possible to cancel a subscription at the next expiration date via the API?</strong></summary>

No, the API only supports the immediate deletion of a subscription (DELETE). Cancellation effective at the end of the billing period can only be configured in the Payrexx merchant administration, not via the API.

</details>

<details>

<summary><strong>Is it possible to update a customer’s address data via the API?</strong></summary>

No, address data is tied to the payment process and cannot be updated independently via the API.

</details>

<details>

<summary><strong>When does Payrexx send confirmation emails?</strong></summary>

If the sending of confirmation emails is enabled under **Settings > Notifications**, Payrexx will send the emails. If the setting is disabled, Payrexx will not send any emails.

</details>
