Skip to main content

LoginService

Version: 2.1 · December 2025

The LoginService authenticates a user and returns an authToken required by all other Shivah WS services.


Methods​

MethodDescription
getAuthCreates an authentication token for the given user if the credentials are valid

getAuth​

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

Input:

NameElement
parameterstypes:getAuth

Output:

NameElement
parameterstypes:getAuthResponse

Faults:

NameElement
parameterstypes_authentication:authenticationFault

Examples​

getAuth — SOAP​

POST {baseUrl}/services/LoginService

Request body:

<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>

Response (success):

<?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>

Response (error):

<?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

Request body:

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

Response (success):

{
"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"
}
}

Response (error):

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

Complex Types​

Namespace: types​

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

Login​

Contains login information returned after successful authentication.

FieldType / OccurrenceDescription
delisIdxsd:string / 1..1The user's DELIS-Id
customerUidxsd:string / 1..1The user's customer UID (usually equal to DELIS-Id for non-subaccounts)
authTokenxsd:string / 1..1JWT (HS256) needed for other web service calls. Variable length — allocate at least 2048 characters
depotxsd:string / 1..1The depot to which the user is assigned
authTokenExpiresxsd:dateTime / 1..1UTC date and time when the token expires

getAuth​

FieldType / OccurrenceDescription
delisIdxsd:string / 1..1The DELIS-Id of the user
passwordxsd:string / 1..1The password of the user
messageLanguagexsd:string / 1..1 · length: 5Language for messages: de_CH, fr_CH, it_CH, en_CH

getAuthResponse​

FieldType / OccurrenceDescription
returntypes:Login / 1..1The login result object

Namespace: types_authentication​

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

authenticationFault​

FieldType / OccurrenceDescription
errorCodexsd:string / 1..1The error code
errorMessagexsd:string / 1..1 · maxLength: 255The error message text

Elements​

Namespace: types​

ElementTypeDescription
getAuthtypes:getAuth / 1..1Input parameter of getAuth
getAuthResponsetypes:getAuthResponse / 1..1Output parameter of getAuth

Namespace: types_authentication​

ElementTypeDescription
authenticationFaultAnonymous complex typeAuthentication fault element

Entry Points​

EnvironmentProtocolURL
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