Get-PeppolIdFromParticipant

EulandaXtools — Funktionsreferenz

Get-PeppolIdFromParticipant

ÜBERSICHT

Sucht im Peppol Directory und gibt die Peppol Participant ID als Text zurück.

SYNTAX

Get-PeppolIdFromParticipant [[-CountryCode] <string>] [-SearchText] <string> [[-DirectoryBaseUri]
    <string>] [-All] [-OmitIso] [[-ResultPageCount] <int>] [[-ResultPageIndex] <int>]
    [[-RetryCount] <int>] [[-RetryDelayMs] <int>] [-FailIfNotFound] [<CommonParameters>]

BESCHREIBUNG

Fragt das öffentliche Peppol Directory über /search/1.0/json per HTTP GET ab. Es wird mit q= (Freitext) und country= gesucht.

Standard-Ausgabeformat: "::" Beispiel: "iso6523-actorid-upis::9915:test"

Wenn -OmitIso gesetzt ist und das Scheme "iso6523-actorid-upis" lautet, wird nur der Value ausgegeben: Beispiel: "9915:test"

PARAMETER

-CountryCode

Type: string

Optionaler zweistelliger Ländercode (z.B. DE, AT, BE).

-SearchText

Type: string

Freitext für die Directory-Suche (q).

-DirectoryBaseUri

Type: string
Default: 'https://directory.peppol.eu'

Basis-URL des Directory. Standard: https://directory.peppol.eu

-All

Type: switch

Gibt alle gefundenen Participant IDs zurück (statt nur der ersten).

-OmitIso

Type: switch

Wenn gesetzt, wird für Participant IDs mit Scheme "iso6523-actorid-upis" das Präfix "iso6523-actorid-upis::" im Output weggelassen und nur der Value zurückgegeben.

-ResultPageCount

Type: int
Default: 20

Anzahl Ergebnisse pro Seite (rpc). Standard 20.

-ResultPageIndex

Type: int
Default: 0

Seitenindex (rpi, 0-basiert). Standard 0.

-RetryCount

Type: int
Default: 3

Anzahl Wiederholungen bei HTTP 429. Standard 3.

-RetryDelayMs

Type: int
Default: 650

Wartezeit zwischen Wiederholungen in Millisekunden. Standard 650.

-FailIfNotFound

Type: switch

Wenn gesetzt, wird bei 0 Treffern ein Fehler ausgelöst.

AUSGABEN

System.String

BEISPIELE

# Erste gefundene Participant ID (mit Scheme) für "EULANDA Software GmbH" holen
Get-PeppolIdFromParticipant -SearchText 'EULANDA Software GmbH'
# Erste gefundene Participant ID ohne "iso6523-actorid-upis::" holen (nur "9915:...")
Get-PeppolIdFromParticipant -CountryCode DE -SearchText 'EULANDA Software GmbH' -OmitIso
# Alle IDs ohne "iso6523-actorid-upis::" holen
Get-PeppolIdFromParticipant -CountryCode DE -SearchText 'EULANDA Software GmbH' -All -OmitIso
# Debug: die finale URL anzeigen
Get-PeppolIdFromParticipant -CountryCode DE -SearchText 'EULANDA Software GmbH' -Verbose