/herren/schuhe/sneaker, the API returns the target type (e.g. category) and the corresponding category ID, and afterwards the contents are loaded via the Catalog API.
Supported methods
List of all supported methods.| Command | Endpoints | GET | PUT | POST | DELETE |
|---|---|---|---|---|---|
| Identify SEO URLs | urls/identify | ||||
| Retrieve SEO URL of a product | urls/product | ||||
| Retrieve SEO URL of a category | urls/category |
SEO URLs
GET urls/identify
The following call can be used to determine where an SEO URL leads in the shop (product, category, content page, or start page).The API distinguishes between the following types
| Type | Resource | Description |
|---|---|---|
"Product" | Product ID | Refers to a product page and contains the corresponding product ID to which the URL belongs. |
"Category" | Category ID | Refers to a category page and contains the category ID called up via the URL. |
"View" | Template path | Refers to a shop page or template that is loaded via the specified path. |
"Startpage" | — | Refers to the start page of the shop. No additional resource is output for this type. |
Examples
Successful identification (main URL) The URL points directly to a product. The type and the corresponding ID are specified in the response.Successful identification with redirect
Obsolete URLs are recognized and redirected to the current URL. In addition to the ID, a redirect is also delivered.Category
If the URL leads to a category, the response contains a category ID.Start page
If the URL leads to the start page, there is no additional (ID) resource in the response.Invalid URL
If the URL is not known to the system, the API responds with a “404 Not Found”.
GET urls/product
The following call can be used to determine the SEO URL of a product based on the product ID.Parameter overview
| Parameter | Type | Description |
|---|---|---|
productId | string | Required field ID of the product whose SEO URL should be determined. |
Example response
- If the product was not found, the request returns
404 Not Found. - On success, the request returns
200 OKincluding the output of the product’s SEO URL mentioned in the example in the body.
GET urls/category
The following call can be used to determine the SEO URL of a category based on the category ID.Parameter overview
| Parameter | Type | Description |
|---|---|---|
categoryId | string | Required field ID of the category whose SEO URL should be determined. |
Example response
- If the category was not found, the request returns
404 Not Found. - On success, the request returns
200 OKincluding the output of the category’s SEO URL mentioned in the example in the body.
