EulandaXtools — Funktionsreferenz
TEST-STAGE: Lädt eine PEPPOL-Rechnung ins Yuki-Archiv hoch.
Send-PeppolInvoiceToYuki [-YukiAccessKey] <string> [-YukiAdministrationId] <string>
[[-YukiDomainId] <string>] [[-YukiFolder] <int>] [[-YukiServiceUri] <string>] [-UblPath]
<string> [[-PdfPath] <string>] [[-MetaXmlPath] <string>] [[-InvoiceNo] <int>]
[-YukiFailOnError] [<CommonParameters>]Diese Funktion übernimmt den Upload einer bereits erzeugten PEPPOL-Rechnung (UBL-Format) in das Yuki Archive Webservice. Optional kann zusätzlich ein PDF als Hauptdokument mit dem UBL als Attachment hochgeladen werden.
-YukiAccessKey
Type: string
Mandatory: TrueWebServiceAccessKey (GUID) für den Yuki Archive Webservice.
-YukiAdministrationId
Type: string
Mandatory: TrueAdministration ID (GUID) der Ziel-Administration in Yuki.
-YukiDomainId
Type: stringOptional: DomainId für SetCurrentDomain (bei Portal/Accountant Keys häufig erforderlich).
-YukiFolder
Type: int
Default: 2Zielordner in Yuki (Default 2 = Sales). Mögliche Werte: 0, 1, 2, 3, 4, 5, 6, 7, 8, 100, 101, 102
-YukiServiceUri
Type: string
Default: 'https://api.yukiworks.be/ws/Archive.asmx'Archive Webservice Endpoint. Default: https://api.yukiworks.be/ws/Archive.asmx (Belgien)
-UblPath
Type: string
Mandatory: TruePfad zur UBL-XML-Datei, die hochgeladen werden soll.
-PdfPath
Type: stringOptionaler Pfad zur PDF-Datei. Wenn angegeben, wird das PDF als Hauptdokument und das UBL als Attachment hochgeladen.
-MetaXmlPath
Type: stringOptionaler Pfad zur META-XML-Datei als Fallback für Rechnungswerte.
-InvoiceNo
Type: intOptional: Rechnungsnummer für Fallback-Szenarien.
-YukiFailOnError
Type: switchWenn gesetzt, wird bei Yuki-Fehlern eine Exception geworfen (FailOnError an Send-InvoiceToYuki).
System.Management.Automation.PSCustomObjectGibt ein Objekt mit folgenden Properties zurück: - YukiUploaded (bool) - YukiDocumentId (string) - YukiResultString (string) - YukiErrorMessage (string) - YukiResult (object) - Amount (decimal) - Currency (string)
# Lädt die UBL-Datei nach Yuki hoch.
Send-PeppolInvoiceToYuki -YukiAccessKey $key -YukiAdministrationId $adminId -UblPath 'C:\Temp\invoice-4711-ubl.xml'# Lädt PDF als Hauptdokument und UBL als Attachment hoch, wirft Exception bei Fehlern.
Send-PeppolInvoiceToYuki -YukiAccessKey $key -YukiAdministrationId $adminId -YukiDomainId $domainId `
-PdfPath 'C:\Temp\invoice-4711.pdf' -UblPath 'C:\Temp\invoice-4711-ubl.xml' -YukiFailOnErrorAutor: Claude Version: 1.0 Erstellt: 2026-02-07
Voraussetzungen: