GET SessionID · Session ID
GET SessionID
/merchants/{qnipsUsername}/sessions?outletId={outletId}&sortimentId={sortimentId}Before requesting a Session ID, let the POS administrator select the store and, if applicable, the product catalog.
The response includes a SessionId, used as an Authorization header in several API operations, and a ChecksumSecret, used to calculate an additional security token for customer and gift card balance payments.
| Field | Description |
|---|---|
| SessionId | Session identifier; store it temporarily for subsequent requests. |
| ChecksumSecret | Secret used to calculate an additional security token. |
Parameter
outletIdstringRequiredStore identifier used by the POS administrator in your system.
123sortimentIdstringRequiredProduct catalog identifier used by this POS instance.
123Request headers
Acceptapplication/jsonDevKey{Ihr Key}Authorization{qnipsUserName}:{qnipsPwd} Lassen Sie den Merchant den Username und Passwort seines Qnips-Accounts eintragen und fügen Sie diese hier mit Doppelpunkt getrennt ein, z.B. `hans.müller@firma.de:geheim`Context: SessionID
A Session ID is required for calculating discounts and loyalty points, paying from a customer balance and paying with gift card credit.
The Session ID identifies the store in which the POS instance operates. Request a new Session ID whenever the POS software starts.
Specify the store (outlet) and product catalog (sortiment). The sortimentId may be omitted for balance payments that do not require discount calculations.
Original Blueprint excerpt
### GET SessionID [GET]
{
"SessionId":"1234hjhjköh234jk",
"ChecksumSecret":"jg1h2543"
}
| Rückgabe | Beschreibung |
| --- | --- |
|`SessionId`|diese SessionID ist als Authorization-Header in mehreren Funktionen dieser API erforderlich und ist daher mindestens temporär zu speichern.|
|`ChecksumSecret`|dieser Wert wird für die Berechnung eines zusätzlichen Sicherheitstokens herangezogen, wenn es um Bezahlung aus Guthaben (Kundenkarte oder Geschenkkarte) geht.|
+ Parameters
+ outletId (string, `123`) ... Geben Sie hier einen Identifier der Filiale, unter welchem der Administrator/Betreiber der Kasse die Filiale in Ihrem System kennt.
+ sortimentId (string, `123`) ... SortimentId des sortiments auf welchem die aktuelle Kasseninstanz operieren soll
+ Request
+ Headers
Accept: application/json
DevKey: {Ihr Key}
Authorization: {qnipsUserName}:{qnipsPwd} Lassen Sie den Merchant den Username und Passwort seines Qnips-Accounts eintragen und fügen Sie diese hier mit Doppelpunkt getrennt ein, z.B. `hans.müller@firma.de:geheim`
+ Response 200
{
"SessionId":"1234hjhjköh234jk",
"ChecksumSecret":"jg1h2543"
}
+ Response 500
// HTTP-InternalServerError: Ein unbekannten Problem bei der Verarbeitung aufgetreten
+ Response 401
// HTTP-Unauthorized: DevKey nicht angegeben oder nicht vorhanden
+ Response 404
// HTTP-NotFound: qnipsUserName unbekannt oder hat keine brands