Store API Reference

This endpoint reference contains an overview of all endpoints contained in the Shopware Store API.

As our software can be extended using apps and plugins, this reference only represents the state of the Store API without extensions.

The actual structure and functionality of the endpoints can differ from this reference if you are using extensions within your system.β€Œ

Helpful guides to read before using this reference

This reference contains endpoints and data schemas for our Store API. Each endpoint reference is structured in the same way.β€Œ

See the below section for an exemplary endpoint description.β€Œ

Example endpoint

The first line contains the HTTP method, the endpoint URL relative to the base route and the name of the corresponding route class within the shopware/core package.

POST /product/{productId} | ProductDetailRoute

β€Œ

Parameters

The parameters section contains parameters of the endpoint. Depending on the endpoint parameters can be passed as a header, as a query parameter (?onlyAvailable=1 ), as a route path parameter (/product/{productId} ) or (for post requests) as body parameter. The most common parameters are defined in the search criteria parameters, which can be passed in almost every list endpoint. More information about the search criteria.

Pathβ€Œ

navigationId | uuid | required Identifier of a product. If it points to a "parent" product, it returns the cheapest variant of that product.β€Œ

Bodyβ€Œ

​Search Criteria | Criteria | optional

β€Œ

Returns

The return codes and bodies differ from endpoint to endpoint. Usually, our reference contains examples for the successful response and the most common 4xx errors. See Response Types.

Returns a single product together with a configurator object that contains its variant options.404 Not Found

200 OK
200 OK
{
"apiAlias": "product_detail",
"product": { ... }
"configurator": []
}

Response types

There are different types of responses and knowing about them can make your work way easier.β€Œ

Success

200 OK This is the most common response, indicating a successful operation. Oftentimes, the API responds with the entity you just modified or simply the success: true field in an object.β€Œ

204 No Content Some endpoints respond with a no content response if it's more applicable.β€Œ

Client Error

The API tries to resolve client errors and give an indication of what has gone wrong. Therefore, the response usually contains an errors field containing one or multiple errors to help you track them down. Each error contains a summary of the issue in the detail field.β€Œ

400 Bad Request This response usually indicates that there's an issue with your request format - for example a missing parameter or violated constraints.β€Œ

401 Unauthorized The unauthorised error indicates, that your sales channel access key is missing.β€Œ

403 Forbidden This response indicates that you are not authorised to perform that operation. For some operations, such as placing an order or submitting a review you need to be logged in as a customer. In those cases, check your sw-context-token header and whether you're logged in.β€Œ

405 Method Not Allowed The HTTP method used for the request is not valid.β€Œ

412 Precondition Failed This error occurs if your sales channel access key is invalid. Make sure that it matches any of your configured sales channels.β€Œ

Server Error

5xx Server errors are rare, but they occur. They can be related to inconsistencies in the DB, infrastructure outages or software issues. If you cannot backtrack that issue, please create an issue ticket to let us know.β€Œ

Submit reference issuesβ€Œ

If you find any issues, errors or missing parts in the reference, please create an issue or a pull request in our Github Documentation repository.β€Œ

All Endpoints

Route Name

Documentation Status

LoadWishlistRoute

βœ…

AddWishlistProductRoute

βœ…

MergeWishlistProductRoute

βœ…

RemoveWishlistProductRoute

βœ…

CustomerRoute

βœ…

ChangeCustomerProfileRoute

βœ…

ChangeEmailRoute

βœ…

LoginRoute

βœ…

LogoutRoute

βœ…

RegisterRoute

βœ…

RegisterConfirmRoute

βœ…

ChangePasswordRoute

βœ…

ChangePaymentMethodRoute

βœ…

SendPasswordRecoveryMailRoute

βœ…

ResetPasswordRoute

βœ…

ListAddressRoute

βœ…

DeleteAddressRoute

βœ…

SwitchDefaultAddressRoute

βœ…

UpsertAddressRoute

βœ…

CustomerGroupRegistrationSettingsRoute

βœ…

DeleteCustomerRoute

βœ…

CartDeleteRoute

❌

CartItemAddRoute

❌

CartItemRemoveRoute

❌

CartItemUpdateRoute

❌

CartLoadRoute

❌

CartOrderRoute

❌

CancelOrderRoute

❌

OrderRoute

❌

SetPaymentOrderRoute

❌

HandlePaymentMethodRoute

❌

PaymentMethodRoute

❌

ShippingMethodRoute

❌

CategoryListRoute

βœ…

CategoryRoute

βœ…

NavigationRoute

βœ…

CmsRoute

❌

ContactFormRoute

❌

NewsletterConfirmRoute

❌

NewsletterSubscribeRoute

❌

NewsletterUnsubscribeRoute

❌

ProductListListRoute

βœ…

ProductCrossSellingRoute

βœ…

ProductDetailRoute

βœ…

ProductListingRoute

βœ…

ProductReviewRoute

βœ…

ProductReviewSaveRoute

βœ…

ProductSearchRoute

βœ…

ProductSuggestRoute

βœ…

SeoUrlRoute

❌

SitemapRoute

❌

CountryRoute

❌

CurrencyRoute

❌

LanguageRoute

❌

ContextRoute

❌

ContextSwitchRoute

❌

SalutationRoute

❌