<?xml version="1.0" encoding="UTF-8"?>
<!--
	XONIC Shopsystem — xoPort XML: Bestellungen aktualisieren
	Beispiel-XML für update_orders.php
	Dateinamen-Konvention im Import-Ordner: Orders(.)*.xml
	Doku: https://www.xonic-solutions.de/shopsystem/api-dokumentation/xml/import/bestellungen-aktualisieren/
-->
<orders>

	<!-- Variante 1: Legacy-Format. Nur URL als Text-Knoten.
	     Carrier + Tracking-Code werden automatisch aus der URL erkannt. -->
	<order>
		<id>441535</id>
		<status>Versendet</status>
		<comment>Ihre Bestellung wurde versendet.</comment>
		<links>
			<link>https://nolp.dhl.de/nextt-online-public/de/search?piececode=00340434123456</link>
			<link>https://gls-group.eu/DE/de/paketverfolgung?match=987654321012</link>
		</links>
		<customer_notified>1</customer_notified>
		<customer_notified_template_id></customer_notified_template_id>
	</order>

	<!-- Variante 2: Verschachtelt mit URL + Carrier + Code.
	     Maximale Kontrolle: Werte werden 1:1 übernommen. -->
	<order>
		<id>441536</id>
		<status>Versendet</status>
		<comment>Ihre Bestellung wurde versendet.</comment>
		<po_number>AB-2026-0042</po_number>
		<rg>RG-2026-0042.pdf</rg>
		<ls>LS-2026-0042.pdf</ls>
		<links>
			<link>
				<url>https://nolp.dhl.de/nextt-online-public/de/search?piececode=00340434123456</url>
				<service_provider>DHL</service_provider>
				<code>00340434123456</code>
			</link>
		</links>
		<customer_notified>1</customer_notified>
		<customer_notified_template_id></customer_notified_template_id>
	</order>

	<!-- Variante 3: Nur Carrier + Code, KEINE URL.
	     Der Shop baut die kundensichtbare Tracking-URL automatisch aus
	     shipping_provider.provider_tracking_link + code zusammen. -->
	<order>
		<id>441537</id>
		<status>Versendet</status>
		<comment>Ihre Bestellung wurde versendet.</comment>
		<po_number>AB-2026-0043</po_number>
		<links>
			<link>
				<service_provider>DHL</service_provider>
				<code>00340434123457</code>
			</link>
			<link>
				<service_provider>GLS</service_provider>
				<code>987654321013</code>
			</link>
		</links>
		<customer_notified>1</customer_notified>
		<customer_notified_template_id></customer_notified_template_id>
	</order>

	<!-- Variante 4: Misch-Format. Ein Legacy-Link + ein verschachtelter Link
	     in derselben Bestellung — beide Formate können gemischt werden. -->
	<order>
		<id>441538</id>
		<status>Versendet</status>
		<comment>Teilversand: GLS und DHL.</comment>
		<po_number>AB-2026-0044</po_number>
		<links>
			<link>https://gls-group.eu/DE/de/paketverfolgung?match=987654321014</link>
			<link>
				<url>https://nolp.dhl.de/nextt-online-public/de/search?piececode=00340434123458</url>
				<service_provider>DHL</service_provider>
				<code>00340434123458</code>
			</link>
		</links>
		<customer_notified>1</customer_notified>
		<customer_notified_template_id></customer_notified_template_id>
	</order>

	<!-- Variante 5: Storno ohne Tracking. Status wird gesetzt, Mail an
	     Kunden via Textbaustein-ID. -->
	<order>
		<id>441539</id>
		<status>Storniert</status>
		<comment>Storno auf Kundenwunsch.</comment>
		<customer_notified>1</customer_notified>
		<customer_notified_template_id>4</customer_notified_template_id>
	</order>

	<!-- Variante 6: Reines Status-Update ohne Tracking, ohne Mail.
	     Nur Backend-sichtbar; ideal für stille Workflow-Schritte. -->
	<order>
		<id>441540</id>
		<status>In Bearbeitung</status>
		<comment>WaWi: Pickliste erzeugt</comment>
		<customer_notified>0</customer_notified>
		<customer_notified_template_id></customer_notified_template_id>
	</order>

</orders>
