> 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

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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
