LoginService
Versione: 2.1 · Dicembre 2025
Il LoginService autentica un utente e restituisce un authToken richiesto da tutti gli altri servizi Shivah WS.
Metodi
| Metodo | Descrizione |
|---|---|
getAuth | Crea un token di autenticazione per l'utente indicato se le credenziali sono valide |
getAuth
Action: http://dpd.com/common/service/LoginService/2.1/getAuth
Input:
| Nome | Elemento |
|---|---|
| parameters | types:getAuth |
Output:
| Nome | Elemento |
|---|---|
| parameters | types:getAuthResponse |
Fault:
| Nome | Elemento |
|---|---|
| parameters | types_authentication:authenticationFault |
Esempi
getAuth — SOAP
<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>
getAuth — REST
POST {baseUrl}/services/LoginService/getAuth
Corpo della richiesta:
{
"delisID": "{your delisId}",
"password": "{your password}",
"messageLanguage": "de_CH"
}
Risposta (successo):
{
"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"
}
}
Risposta (errore):
{
"getAuthResponse": null,
"status": {
"type": "AuthenticationFault",
"code": "DELICOM_ERR_AUTHENTICATION",
"message": "Authentication failure, check delisId and password."
}
}
Tipi complessi
Namespace: types
URL: http://dpd.com/common/service/types/LoginService/2.1
Login
Contiene le informazioni di login restituite dopo un'autenticazione riuscita.
| Campo | Tipo / Occorrenza | Descrizione |
|---|---|---|
delisId | xsd:string / 1..1 | Il DELIS-Id dell'utente |
customerUid | xsd:string / 1..1 | L'UID cliente dell'utente (di norma uguale al DELIS-Id per gli account non secondari) |
authToken | xsd:string / 1..1 | JWT (HS256) necessario per le altre chiamate ai web service. Lunghezza variabile — allocare almeno 2048 caratteri |
depot | xsd:string / 1..1 | Il depot a cui l'utente è assegnato |
authTokenExpires | xsd:dateTime / 1..1 | Data e ora UTC di scadenza del token |
getAuth
| Campo | Tipo / Occorrenza | Descrizione |
|---|---|---|
delisId | xsd:string / 1..1 | Il DELIS-Id dell'utente |
password | xsd:string / 1..1 | La password dell'utente |
messageLanguage | xsd:string / 1..1 · length: 5 | Lingua dei messaggi: de_CH, fr_CH, it_CH, en_CH |
getAuthResponse
| Campo | Tipo / Occorrenza | Descrizione |
|---|---|---|
return | types:Login / 1..1 | L'oggetto risultato del login |
Namespace: types_authentication
URL: http://dpd.com/common/service/types/Authentication/2.1
authenticationFault
| Campo | Tipo / Occorrenza | Descrizione |
|---|---|---|
errorCode | xsd:string / 1..1 | Il codice di errore |
errorMessage | xsd:string / 1..1 · maxLength: 255 | Il testo del messaggio di errore |
Elementi
Namespace: types
| Elemento | Tipo | Descrizione |
|---|---|---|
getAuth | types:getAuth / 1..1 | Parametro di input di getAuth |
getAuthResponse | types:getAuthResponse / 1..1 | Parametro di output di getAuth |
Namespace: types_authentication
| Elemento | Tipo | Descrizione |
|---|---|---|
authenticationFault | Tipo complesso anonimo | Elemento del fault di autenticazione |
Punti di accesso
| Ambiente | Protocollo | URL |
|---|---|---|
| Stage | SOAP | https://shivah-st.dpd.ch/external/soap/services/LoginService |
| Live | SOAP | https://shivah.dpd.ch/external/soap/services/LoginService |
| Stage | REST | https://shivah-st.dpd.ch/external/rest/services/LoginService/getAuth |
| Live | REST | https://shivah.dpd.ch/external/rest/services/LoginService/getAuth |