Send-PeppolInvoiceToYuki #
ÜBERSICHT #
TEST-STAGE: Lädt eine PEPPOL-Rechnung ins Yuki-Archiv hoch.
SYNTAX #
Send-PeppolInvoiceToYuki [-YukiAccessKey] <string> [-YukiAdministrationId] <string>
[[-YukiDomainId] <string>] [[-YukiFolder] <int>] [[-YukiServiceUri] <string>] [-UblPath]
<string> [[-PdfPath] <string>] [[-MetaXmlPath] <string>] [[-InvoiceNo] <int>]
[-YukiFailOnError] [<CommonParameters>]
BESCHREIBUNG #
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.
PARAMETER #
-YukiAccessKey #
Type: string
Mandatory: True
WebServiceAccessKey (GUID) für den Yuki Archive Webservice.
-YukiAdministrationId #
Type: string
Mandatory: True
Administration ID (GUID) der Ziel-Administration in Yuki.
-YukiDomainId #
Type: string
Optional: DomainId für SetCurrentDomain (bei Portal/Accountant Keys häufig erforderlich).
-YukiFolder #
Type: int
Default: 2
Zielordner 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: True
Pfad zur UBL-XML-Datei, die hochgeladen werden soll.
-PdfPath #
Type: string
Optionaler Pfad zur PDF-Datei. Wenn angegeben, wird das PDF als Hauptdokument und das UBL als Attachment hochgeladen.
-MetaXmlPath #
Type: string
Optionaler Pfad zur META-XML-Datei als Fallback für Rechnungswerte.
-InvoiceNo #
Type: int
Optional: Rechnungsnummer für Fallback-Szenarien.
-YukiFailOnError #
Type: switch
Wenn gesetzt, wird bei Yuki-Fehlern eine Exception geworfen (FailOnError an Send-InvoiceToYuki).
AUSGABEN #
System.Management.Automation.PSCustomObject
Gibt ein Objekt mit folgenden Properties zurück: - YukiUploaded (bool) - YukiDocumentId (string) - YukiResultString (string) - YukiErrorMessage (string) - YukiResult (object) - Amount (decimal) - Currency (string)
BEISPIELE #
# 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' -YukiFailOnError
HINWEISE #
Autor: Claude Version: 1.0 Erstellt: 2026-02-07
Voraussetzungen:
- Funktion Get-InvoiceValuesFromXml muss verfügbar sein
- Funktion Send-InvoiceToYuki muss verfügbar sein