General
Request structure
All URIs and their underlying operations are resource based.
The structure of the URIs is as follows:
product/version/area/sub-area(s)/resource
For example:
-
product: shop
-
version: v1
-
area: discovery
-
sub-area: events
-
resource: ED24
➔ /shop/v1/discovery/events/ED24
Response structure
-
All responses contain at least the
datanode. -
All answers that modify the cart (add or remove an item or voucher) always contain the current cart in the
data/cartattribute in addition to the respective information about the modification. Details can be found in the Scheme of the respective operation. -
If a request produced an error, the response will contain an
errornode instead of thedatanode. This error node contains a single error object, which may contain further details. This follows a standardized structure derived from theResultbase class and contains the following information:
-
Code
-
Name
-
Category
-
Message
-
LogId
-
Severity
-
Details
Identifier
-
All identifiers are represented as GUID
-
An event can also always be represented by using the slug (in addition to the GUID). This means that whenever the resource
eventIdentifieris used, both usages lead to the same response:-
GET
/shop/v1/discovery/events/ED24 -
GET
/shop/v1/discovery/events/f2e25737-4990-ee11-93cf-00155d960409
-
-
An user can always be represented by the id or the email address. That means that whenever the resource
userIdentifieris used, both usages lead to the same response:-
GET
/shop/v1/user/m.muster@email.com/profile -
GET
/shop/v1/user/f2e25737-4990-ee11-93cf-00155d960409/profile
-
Localization
In order for textual resources within the response to be output in the user's language, the language must be transmitted as ISO-2 language code in the Accept-Language header.