x-session. More about this
Supported methods
List of all supported methods.Methods for the customer account
With these methods, the customer account in the shop is managed. They read out the data of the currently logged-in user (master data, address, customer data fields, login status) and log an account in with email address/password. Optionally, the “stay logged in” function can be activated by autologin token. In addition, new accounts can be registered and directly logged in. Existing sessions can be cleanly logged out. Customer accounts can also be deleted.GET account/get
This call delivers the data of the currently logged-in customer account of the passed session. Typical use cases are the display of the account area (name, email address, display name) or a simple “logged in/logged out” check in the frontend. Example call to get data of the currently logged-in customer account:Parameter overview
Header parameters
Example response
POST account/login
This call logs in a customer account. If the passed credentials are correct, the active session is logged into the account. IfAutologin is enabled, the response contains an Autologin token.
Example call that logs the customer account with the ID kundenkonto@example.com into the session
Example request
Example response
Parameter overview
Header parameters
Body parameters
Example response
Error codes
POST account/autologin
This call enables the “stay logged in” function for the current session. This allows the user to log in again on this device in the future without re-entering the password. Example call that enables autologin for the customer account with the ID51
Example response
Parameter overview
Header parameters
Body parameters
Error codes
POST account/register
This call creates a new customer account and logs the current session in directly with this account. This allows the user to continue immediately after registration. Example call to create a new customer account with the email addresskundenkonto@example.com and the password password123
Example request
Example response
Parameter overview
Header parameters
Body parameters
Example response
Error codes
POST account/logout
This call logs out the currently logged-in userExample response
Parameter overview
Header parameters
Error codes
DELETE account/delete
This call deletes the currently logged-in customer account. After successful execution, the session is ended and access to the account is removed. Note: deletion cannot be undone! Example call to permanently delete the currently logged-in user accountdoubleOptInEmail.enabled setting).
Example response
Error codes
DELETE account/deleteConfirm
This call confirms the account deletion viaOpt-in token and permanently deletes the currently logged-in customer account. It is only used if account deletion via double opt-in is enabled in your shop. Without double opt-in, calling account/delete is sufficient.
Example call that confirms the deletion of the currently logged-in user account via opt-in token
Example request
Example response
Parameter overview
Header parameters
Body parameters
Error codes
Methods for address management
With these methods, the addresses in the customer account can be managed. They list all available address fields and return the addresses belonging to the logged-in account or fetch an individual address by ID. New addresses can be created with all relevant fields, existing addresses can be specifically updated or marked as the main address. If needed, they can be deleted again.GET account/address/fields
This call returns all available address fields. Using this information, address forms can be created in the frontend. Example call that returns all available address fieldsParameter overview
Example response
GET account/address/list
This call returns all saved addresses of the currently logged-in customer account, including the field values name, street, ZIP/city, and country code. The data can be used to display address overviews in the customer account. Example call that returns all saved addresses of the currently logged-in user accountParameter overview
Header parameters
Example response
GET account/address/get
The following call returns the specific address of the currently logged-in customer account based on its address ID. This can be used, for example, to display or pre-fill the address in the checkout. Example call that returns the address with the ID97 of the logged-in user account:
Parameter overview
Header parameters
Body parameters
Example response
POST account/address/create
This call creates a new address for the currently logged-in customer account. It can be used, for example, as a billing or delivery address in the checkout. Example call that creates a new address for the currently logged-in user accountExample request
address is passed without specified parameters, the default values are taken over for all fields.
Parameter overview
Header parameters
Body parameters
Example response
Error codes
POST account/address/setMain
This request can be used to set an existing address of the currently logged-in customer account as the main address (e.g. as default for shipping/billing). It can be used to mark an address as the default for billing or shipping. Example call that sets the address with the ID97 as the main address for the currently logged-in customer account
Example request
Parameter overview
Header parameters
Body parameters
Example response
Error codes
PUT account/address/update
This call lets you update an existing address of the currently logged-in customer account. It is not necessary to fill out all fields; fields that are not filled out remain unchanged. It can be used, for example, to correct an address for shipping or billing. Example call that changes the first and last name of the address with the ID97 for the currently logged-in customer account
Example request
Parameter overview
Header parameters
Body parameters
Example response
Error codes
DELETE account/address/delete
This call deletes an existing address of the currently logged-in customer account. Example call that deletes the address with the ID97 for the currently logged-in customer account
Example request
Parameter overview
Header parameters
Body parameters
Example response
Error codes
Methods for notifications
With these methods, “product back in stock” notifications in the customer account can be managed. They read out all notifications stored for the logged-in customer account, create new notifications for a combination of email address and product, and delete existing notifications again.GET account/backInStock/list
The following call lists all “product back in stock” notifications that are enabled for the account. It can be used to make them available for the customer in the customer account. Example call that lists all “product back in stock” notifications of the currently logged-in customer accountParameter overview
Header parameters
Example response
POST account/backInStock/notify
This call sets up a “product back in stock” notification for the logged-in account. As soon as the item is back in stock, an email is sent to the specified address. Example call that creates a “product back in stock” notification for the product with the ID12345. The notification is sent to the email address <EMAIL>
Example request
Parameter overview
Header parameters
Body parameters
Error codes
DELETE account/backInStock/notify
This call deletes the “product back in stock” notification created for the logged-in account. Example call that deletes a “product back in stock” notification for the product with the ID12345 and the email address <EMAIL>
Example request
Parameter overview
Header parameters
Body parameters
Error codes
Further methods for customer data
With these methods, the customer account is extended with central self-service functions. Users can view their order history paginated or specifically retrieve individual orders along with their positions, addresses, and payment and shipping details. In addition, you can change the public display name for product reviews and the email address of the account. If needed, a subsequent confirmation by opt-in token is required. The complete lifecycle of passwords is covered: from changing the password while logged in (including optional verification of the current email address and/or the previous password) to the “forgot password” process with recovery email and subsequent reset via an opt-in token.GET account/order/list
This call displays the order history of the currently logged-in customer account. It can be used for the “My orders” page in the customer account. Via the query parameterspage and size, pagination can be controlled (e.g. page 1 with ten entries). This way, orders can be loaded page by page and conveniently displayed.
Example call that displays the order history of page 1 with 10 entries of the currently logged-in customer account
Parameter overview
Header parameters
Body parameters
Example response
GET account/order/get
This call retrieves the details of a specific order of the currently logged-in customer account, for example for the order detail page. Example call that retrieves the details for the order with the ID4869 for the currently logged-in customer account
Parameter overview
Header parameters
Body parameters
Example response
POST account/displayName/update
This call lets you change the public display name of the currently logged-in customer account. This is the name displayed next to reviews in product reviews. Example call that changes the public display name of the currently logged-in user account toName
Example request
Parameter overview
Header parameters
Body parameters
Example response
Error codes
POST account/email/update
The following call can be used to change the email address of the logged-in account. Depending on the configuration, an email verification may then be triggered. Example call that changes the email address for the currently logged-in user account toneue.adresse@example.com
Example request
Parameter overview
Header parameters
Body parameters
Error codes
POST account/email/verify
The following call confirms the email address using the opt-in token from the confirmation email. Example call that verifies the email address using theopt-in token <OPT_IN_TOKEN>
Example request
Parameter overview
Header parameters
Body parameters
Example response
Error codes
POST account/password/change
This call changes the password of the currently logged-in account. Depending on the shop configuration, the entry of the current password may be required and/or an email confirmation may be triggered. Example call to set a new password (<NEW_PASSWORD>) for the current user account
Example request
Parameter overview
Header parameters
Body parameters
Example response
Error codes
POST account/password/forgotten
The following call starts the password reset for the specified email address (an email with further information on the procedure is sent). Example call that sends the “forgot password” link to the email addresskunde@example.com
Example request
Parameter overview
Header parameters
Body parameters
Error codes
POST account/password/reset
The following call can be used to reset the password using the opt-in token from the “forgot password” email: Example call that confirms the password reset for the customer account with the email addresskundenkonto@example.com and sets password as the new password
