Zum Hauptinhalt springen

LoginService

Version: 2.1 · Dezember 2025

Der LoginService authentifiziert einen Benutzer und gibt einen authToken zurück, der von allen anderen Shivah-WS-Services benötigt wird.


Methoden​

MethodeBeschreibung
getAuthErstellt ein Authentifizierungs-Token für den angegebenen Benutzer, sofern die Anmeldedaten gültig sind

getAuth​

Action: http://dpd.com/common/service/LoginService/2.1/getAuth

Eingabe:

NameElement
parameterstypes:getAuth

Ausgabe:

NameElement
parameterstypes:getAuthResponse

Faults:

NameElement
parameterstypes_authentication:authenticationFault

Beispiele​

getAuth — SOAP​

POST {baseUrl}/services/LoginService

Anfragetext:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://dpd.com/common/service/types/LoginService/2.1">
<soapenv:Header/>
<soapenv:Body>
<ns:getAuth>
<delisId>{your delisId}</delisId>
<password>{your password}</password>
<messageLanguage>de_CH</messageLanguage>
</ns:getAuth>
</soapenv:Body>
</soapenv:Envelope>

Antwort (Erfolg):

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<getAuthResponse xmlns="http://dpd.com/common/service/types/LoginService/2.1">
<return>
<delisId>{your delisId}</delisId>
<customerUid>{your customerUid}</customerUid>
<authToken>{your authToken}</authToken>
<depot>{your sendingDepot}</depot>
<authTokenExpires>2026-10-01T09:59:28.0000000Z</authTokenExpires>
</return>
</getAuthResponse>
</soap:Body>
</soap:Envelope>

Antwort (Fehler):

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Authentication failed</faultstring>
<detail>
<ns:authenticationFault xmlns:ns="http://dpd.com/common/service/types/Authentication/2.0">
<errorCode>UNAUTHORIZED</errorCode>
<errorMessage>AUTH-INVALID-CREDENTIALS: Unauthorized, invalid credentials...</errorMessage>
</ns:authenticationFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>

getAuth — REST​

POST {baseUrl}/services/LoginService/getAuth

Anfragetext:

{
"delisID": "{your delisId}",
"password": "{your password}",
"messageLanguage": "de_CH"
}

Antwort (Erfolg):

{
"getAuthResponse": {
"return": {
"delisId": "{your delisId}",
"customerUid": "{your customerUid}",
"authToken": "{your authToken}",
"depot": "{your sendingDepot}",
"authTokenExpires": "2021-07-16T05:39:03.9133333Z"
}
},
"status": {
"type": "OK",
"code": "200",
"message": "valid"
}
}

Antwort (Fehler):

{
"getAuthResponse": null,
"status": {
"type": "AuthenticationFault",
"code": "DELICOM_ERR_AUTHENTICATION",
"message": "Authentication failure, check delisId and password."
}
}

Komplexe Typen​

Namespace: types​

URL: http://dpd.com/common/service/types/LoginService/2.1

Login​

Enthält die nach erfolgreicher Authentifizierung zurückgegebenen Anmeldeinformationen.

FeldTyp / VorkommenBeschreibung
delisIdxsd:string / 1..1Die DELIS-Id des Benutzers
customerUidxsd:string / 1..1Die Kunden-UID des Benutzers (in der Regel identisch mit der DELIS-Id, ausser bei Unterkonten)
authTokenxsd:string / 1..1JWT (HS256), das für andere Webservice-Aufrufe benötigt wird. Variable Länge — reservieren Sie mindestens 2048 Zeichen
depotxsd:string / 1..1Das Depot, dem der Benutzer zugeordnet ist
authTokenExpiresxsd:dateTime / 1..1UTC-Datum und -Uhrzeit, zu dem das Token abläuft

getAuth​

FeldTyp / VorkommenBeschreibung
delisIdxsd:string / 1..1Die DELIS-Id des Benutzers
passwordxsd:string / 1..1Das Passwort des Benutzers
messageLanguagexsd:string / 1..1 · Länge: 5Sprache für Meldungen: de_CH, fr_CH, it_CH, en_CH

getAuthResponse​

FeldTyp / VorkommenBeschreibung
returntypes:Login / 1..1Das Ergebnisobjekt der Anmeldung

Namespace: types_authentication​

URL: http://dpd.com/common/service/types/Authentication/2.0

authenticationFault​

FeldTyp / VorkommenBeschreibung
errorCodexsd:string / 1..1Der Fehlercode
errorMessagexsd:string / 1..1 · maxLength: 255Der Fehlermeldungstext

Elemente​

Namespace: types​

ElementTypBeschreibung
getAuthtypes:getAuth / 1..1Eingabeparameter von getAuth
getAuthResponsetypes:getAuthResponse / 1..1Ausgabeparameter von getAuth

Namespace: types_authentication​

ElementTypBeschreibung
authenticationFaultAnonymer komplexer TypElement für Authentifizierungsfehler

Einstiegspunkte​

UmgebungProtokollURL
StageSOAPhttps://shivah-st.dpd.ch/external/soap/services/LoginService
LiveSOAPhttps://shivah.dpd.ch/external/soap/services/LoginService
StageRESThttps://shivah-st.dpd.ch/external/rest/services/LoginService/getAuth
LiveRESThttps://shivah.dpd.ch/external/rest/services/LoginService/getAuth