> For the complete documentation index, see [llms.txt](https://docs.solutioo.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.solutioo.de/vr-payment-gateway/zahlungen/payment-links.md).

# Payment Links erstellen

Payment Links aus Rechnung, Auftrag und Angebot erstellen, stornieren und übertragen.

Ein Payment Link ist die URL, unter der der Kunde bei VR Payment bezahlt. Die App erzeugt ihn über die Gateway-API inkl. Rechnungspositionen (`lineItems`).

#### Wo Sie Links erzeugen

| Beleg                     | Aktion                                       |
| ------------------------- | -------------------------------------------- |
| Gebuchte Verkaufsrechnung | **Payment Link erstellen**                   |
| Verkaufsauftrag           | **Payment Link erstellen** (z. B. Vorkasse)  |
| Verkaufsangebot           | **Payment Link erstellen** (z. B. Anzahlung) |

Die Druckregel muss den Beleg erlauben, sonst erscheint eine klare Fehlermeldung.

#### Automatisch beim Buchen

Wenn **Automatisch Payment Link erstellen** aktiv ist, legt die App beim Buchen der Verkaufsrechnung einen Link an. Existiert bereits ein aktiver Link am Auftrag oder Angebot, wird er auf die gebuchte Rechnung **übertragen** (Quelltyp und Belegnummer werden umgeschrieben) – es entsteht kein zweiter Link.

#### Status

| Status             | Bedeutung                                                                      |
| ------------------ | ------------------------------------------------------------------------------ |
| **Aktiv**          | Offener Link, QR-Code wird angezeigt.                                          |
| **Bezahlt**        | Mindestens eine abgeschlossene Zahlung.                                        |
| **Abgelaufen**     | Gültig-bis überschritten (Job Queue oder manuelle Aktion).                     |
| **Storniert**      | Manuell oder nach externem Ausgleich storniert.                                |
| **Extern bezahlt** | Rechnung außerhalb von VR Payment ausgeglichen, Link bei VR Payment storniert. |

Weitere Aktionen am Beleg: **Payment Status aktualisieren**, **Payment Link stornieren**, **Transaktionen anzeigen**.

{% hint style="info" %}
Die `externalId` enthält Belegnummer plus Zeitstempel. So können Sie für denselben Beleg nach einer Stornierung einen neuen Link erzeugen.
{% endhint %}

{% hint style="info" %}
Adressdaten werden als URL-Parameter mitgegeben und auf der Zahlungsseite vorausgefüllt. `billingAddressHandlingMode` ist `NOT_REQUIRED`, damit fehlende Straßenangaben die Zahlung nicht blockieren. Der QR-Code nutzt die kurze Basis-URL ohne Adressparameter.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.solutioo.de/vr-payment-gateway/zahlungen/payment-links.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
