diff --git a/storeapi.json b/storeapi.json index 56657f6..efcbf5c 100644 --- a/storeapi.json +++ b/storeapi.json @@ -1,5 +1,5 @@ { - "openapi": "3.1.0", + "openapi": "3.0.0", "info": { "title": "Shopware Store API", "description": "This endpoint reference contains an overview of all endpoints comprising the Shopware Store API", @@ -7,7 +7,7 @@ "name": "MIT", "url": "https://github.com/shopware/shopware/blob/trunk/LICENSE" }, - "version": "6.7.9.1" + "version": "6.6.10.20" }, "servers": [ { @@ -679,7 +679,6 @@ "pattern": "^[0-9a-f]{32}$" }, "afterCategoryId": { - "description": "Unique identity of the category under which the new category is to be created.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -688,12 +687,10 @@ "pattern": "^[0-9a-f]{32}$" }, "mediaId": { - "description": "Unique identity of media added to identify category.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "displayNestedProducts": { - "description": "Shows nested categories on a product category page.", "type": "boolean" }, "breadcrumb": { @@ -705,13 +702,11 @@ "readOnly": true }, "level": { - "description": "An integer value that denotes the level of nesting of a particular category located in an hierarchical category tree.", "type": "integer", "format": "int64", "readOnly": true }, "path": { - "description": "A relative URL to the category.", "type": "string", "readOnly": true }, @@ -721,24 +716,19 @@ "readOnly": true }, "type": { - "description": "Type of categories like `page`, `folder`, `link`.", - "type": "string", - "enum": [ - "page", - "link", - "folder" - ] + "type": "string" }, "productAssignmentType": { - "description": "Type of product assignment: Dynamic product group as or `product_stream` or Manual assignment as `product`.", "type": "string" }, "visible": { - "description": "Displays categories on category page when true.", "type": "boolean" }, "active": { - "description": "When boolean value is `true`, the category is listed for selection.", + "type": "boolean" + }, + "cmsPageIdSwitched": { + "description": "Runtime field, cannot be used as part of the criteria.", "type": "boolean" }, "visibleChildCount": { @@ -753,13 +743,7 @@ "type": "object" }, "linkType": { - "type": "string", - "enum": [ - "category", - "product", - "external", - "landing_page" - ] + "type": "string" }, "internalLink": { "type": "string", @@ -784,7 +768,6 @@ "type": "string" }, "cmsPageId": { - "description": "Unique identity of CMS page.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -796,15 +779,6 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" }, - "cmsPageIdSwitched": { - "description": "Runtime field, cannot be used as part of the criteria.", - "type": "boolean", - "deprecated": true - }, - "seoUrl": { - "description": "Runtime field, cannot be used as part of the criteria.", - "type": "string" - }, "createdAt": { "type": "string", "format": "date-time", @@ -821,7 +795,6 @@ "relationships": { "properties": { "parent": { - "description": "Unique identity of category.", "properties": { "links": { "type": "object", @@ -851,7 +824,6 @@ "type": "object" }, "children": { - "description": "Child categories within this category for hierarchical navigation", "properties": { "links": { "type": "object", @@ -883,7 +855,6 @@ "type": "object" }, "media": { - "description": "Category image or banner", "properties": { "links": { "type": "object", @@ -913,7 +884,6 @@ "type": "object" }, "tags": { - "description": "Tags for organizing and filtering categories", "properties": { "links": { "type": "object", @@ -945,7 +915,6 @@ "type": "object" }, "cmsPage": { - "description": "CMS page layout for the category", "properties": { "links": { "type": "object", @@ -975,7 +944,6 @@ "type": "object" }, "seoUrls": { - "description": "SEO-friendly URLs for the category across different sales channels", "properties": { "links": { "type": "object", @@ -1022,7 +990,6 @@ "children", "childCount", "translated", - "type", "id", "name" ], @@ -1047,9 +1014,9 @@ "description": "Unique identity of parent category's version." }, "afterCategoryId": { - "description": "Unique identity of the category under which the new category is to be created.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the category under which the new category is to be created." }, "afterCategoryVersionId": { "type": "string", @@ -1057,13 +1024,13 @@ "description": "Unique identity of the category's version under which the new category is to be created." }, "mediaId": { - "description": "Unique identity of media added to identify category.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of media added to identify category." }, "displayNestedProducts": { - "description": "Shows nested categories on a product category page.", - "type": "boolean" + "type": "boolean", + "description": "Shows nested categories on a product category page." }, "breadcrumb": { "type": "array", @@ -1075,15 +1042,15 @@ "description": "Breadcrumbs offer the users on the website the option to quickly find their way back to the homepage or another level of the website using internal links." }, "level": { - "description": "An integer value that denotes the level of nesting of a particular category located in an hierarchical category tree. ", "type": "integer", "format": "int64", - "readOnly": true + "readOnly": true, + "description": "An integer value that denotes the level of nesting of a particular category located in an hierarchical category tree. " }, "path": { - "description": "A relative URL to the category.", "type": "string", - "readOnly": true + "readOnly": true, + "description": "A relative URL to the category." }, "childCount": { "type": "number", @@ -1092,24 +1059,23 @@ "description": "Number of categories below the main category." }, "type": { - "description": "Type of categories like `page`, `folder`, `link`.", "type": "string", - "enum": [ - "page", - "link", - "folder" - ] + "description": "Type of categories like `page`, `folder`, `link`." }, "productAssignmentType": { - "description": "Type of product assignment: Dynamic product group as or `product_stream` or Manual assignment as `product`.", - "type": "string" + "type": "string", + "description": "Type of product assignment: Dynamic product group as or `product_stream` or Manual assignment as `product`." }, "visible": { - "description": "Displays categories on category page when true.", - "type": "boolean" + "type": "boolean", + "description": "Displays categories on category page when true." }, "active": { - "description": "When boolean value is `true`, the category is listed for selection.", + "type": "boolean", + "description": "When boolean value is `true`, the category is listed for selection." + }, + "cmsPageIdSwitched": { + "description": "Runtime field, cannot be used as part of the criteria.", "type": "boolean" }, "visibleChildCount": { @@ -1127,12 +1093,6 @@ }, "linkType": { "type": "string", - "enum": [ - "category", - "product", - "external", - "landing_page" - ], "description": "linkType : `external`, `category`, `product`, `landing_page`." }, "internalLink": { @@ -1165,9 +1125,9 @@ "description": "Keywords that help to search the category." }, "cmsPageId": { - "description": "Unique identity of CMS page.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of CMS page." }, "cmsPageVersionId": { "type": "string", @@ -1178,15 +1138,6 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" }, - "cmsPageIdSwitched": { - "description": "Runtime field, cannot be used as part of the criteria.", - "type": "boolean", - "deprecated": true - }, - "seoUrl": { - "description": "Runtime field, cannot be used as part of the criteria.", - "type": "string" - }, "createdAt": { "type": "string", "format": "date-time", @@ -1214,33 +1165,27 @@ "description": "Contains the translations of all translated fields." }, "parent": { - "$ref": "#/components/schemas/Category", - "description": "Unique identity of category." + "$ref": "#/components/schemas/Category" }, "children": { - "description": "Child categories within this category for hierarchical navigation", "type": "array", "items": { "$ref": "#/components/schemas/Category" } }, "media": { - "$ref": "#/components/schemas/Media", - "description": "Category image or banner" + "$ref": "#/components/schemas/Media" }, "tags": { - "description": "Tags for organizing and filtering categories", "type": "array", "items": { "$ref": "#/components/schemas/Tag" } }, "cmsPage": { - "$ref": "#/components/schemas/CmsPage", - "description": "CMS page layout for the category" + "$ref": "#/components/schemas/CmsPage" }, "seoUrls": { - "description": "SEO-friendly URLs for the category across different sales channels", "type": "array", "items": { "$ref": "#/components/schemas/SeoUrl" @@ -1260,7 +1205,6 @@ "required": [ "apiAlias", "slots", - "id", "position", "type", "sectionId" @@ -1270,65 +1214,55 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" }, - "versionId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$", - "description": "Unique identity of CMS Block version." - }, - "cmsSectionVersionId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$", - "description": "Unique identity of CMS Section version." - }, "position": { - "description": "Order of the block indicated by number like 0, 1, 2,...", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Order of the block indicated by number like 0, 1, 2,..." }, "type": { - "description": "Type of block can be 'image`, `text`, 'product-listing`, `image-two-column`, etc.", - "type": "string" + "type": "string", + "description": "Type of block can be 'image`, `text`, 'product-listing`, `image-two-column`, etc." }, "name": { - "description": "Unique name of the CMS Block.", - "type": "string" + "type": "string", + "description": "Unique name of the CMS Block." }, "sectionPosition": { - "description": "Position of the section. It can either be `main` or `sidebar`.", - "type": "string" + "type": "string", + "description": "Position of the section. It can either be `main` or `sidebar`." }, "marginTop": { - "description": "Defines the margin area on the top of an element.", - "type": "string" + "type": "string", + "description": "Defines the margin area on the top of an element." }, "marginBottom": { - "description": "Defines for the margin area on the bottom of an element.", - "type": "string" + "type": "string", + "description": "Defines for the margin area on the bottom of an element." }, "marginLeft": { - "description": "Defines for the margin area on the left of an element.", - "type": "string" + "type": "string", + "description": "Defines for the margin area on the left of an element." }, "marginRight": { - "description": "Defines the margin area on the right of an element.", - "type": "string" + "type": "string", + "description": "Defines the margin area on the right of an element." }, "backgroundColor": { - "description": "Defines the background color of an element.", - "type": "string" + "type": "string", + "description": "Defines the background color of an element." }, "backgroundMediaId": { - "description": "Unique identity of background media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of background media." }, "backgroundMediaMode": { - "description": "Background media mode accept values `cover`, `auto`, `contain`.", - "type": "string" + "type": "string", + "description": "Background media mode accept values `cover`, `auto`, `contain`." }, "cssClass": { - "description": "One or more CSS classes added and separated by spaces.", - "type": "string" + "type": "string", + "description": "One or more CSS classes added and separated by spaces." }, "visibility": { "properties": { @@ -1345,14 +1279,24 @@ "type": "object" }, "sectionId": { - "description": "Unique identity of section.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of section." }, "customFields": { "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, + "versionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of CMS Block version." + }, + "cmsSectionVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of CMS Section version." + }, "createdAt": { "type": "string", "format": "date-time", @@ -1405,16 +1349,16 @@ "description": "Name of the CMS page." }, "type": { - "description": "CMS page types can be `landingpage`, `page`, `product_list`, `product_detail`.", - "type": "string" + "type": "string", + "description": "CMS page types can be `landingpage`, `page`, `product_list`, `product_detail`." }, "entity": { - "description": "This field will be implemented in the future.", - "type": "string" + "type": "string", + "description": "This field will be implemented in the future." }, "cssClass": { - "description": "One or more CSS classes added and separated by spaces.", - "type": "string" + "type": "string", + "description": "One or more CSS classes added and separated by spaces." }, "config": { "properties": { @@ -1426,9 +1370,9 @@ "type": "object" }, "previewMediaId": { - "description": "Unique identity of media to be previewed.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of media to be previewed." }, "customFields": { "type": "object", @@ -1449,18 +1393,15 @@ "description": "Contains the translations of all translated fields." }, "sections": { - "description": "Content sections within the CMS page (layout blocks containing slots)", "type": "array", "items": { "$ref": "#/components/schemas/CmsSection" } }, "previewMedia": { - "$ref": "#/components/schemas/Media", - "description": "Preview image for the CMS page in admin panel and page selection" + "$ref": "#/components/schemas/Media" }, "landingPages": { - "description": "Landing pages using this CMS layout", "type": "array", "items": { "$ref": "#/components/schemas/LandingPage" @@ -1480,7 +1421,6 @@ "required": [ "apiAlias", "blocks", - "id", "position", "type", "pageId" @@ -1491,57 +1431,48 @@ "pattern": "^[0-9a-f]{32}$", "description": "Unique identity of CMS section." }, - "cmsPageVersionId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$", - "description": "Unique identity of CMS page version." - }, "position": { - "description": "Position of occurrence of each section denoted by numerical values 0, 1, 2...", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Position of occurrence of each section denoted by numerical values 0, 1, 2..." }, "type": { - "description": "Types of sections can be `sidebar` or `fullwidth`.", "type": "string", - "enum": [ - "default", - "sidebar" - ] + "description": "Types of sections can be `sidebar` or `fullwidth`." }, "name": { - "description": "Name of the CMS section defined.", - "type": "string" + "type": "string", + "description": "Name of the CMS section defined." }, "sizingMode": { - "description": "Sizing mode can be `boxed` or `full_width`.", - "type": "string" + "type": "string", + "description": "Sizing mode can be `boxed` or `full_width`." }, "mobileBehavior": { - "description": "Hides the sidebar on mobile viewports. It can hold values such as 'mobile', 'wrap', any other string or be unset.", - "type": "string" + "type": "string", + "description": "Hides the sidebar on mobile viewports. It can hold values such as 'mobile', 'wrap', any other string or be unset." }, "backgroundColor": { - "description": "Background color of CMS page.", - "type": "string" + "type": "string", + "description": "Background color of CMS page." }, "backgroundMediaId": { - "description": "Unique identity of CMS section's background media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of CMS section's background media." }, "backgroundMediaMode": { - "description": "Background media mode can be `cover`, `auto` or `contain`.", - "type": "string" + "type": "string", + "description": "Background media mode can be `cover`, `auto` or `contain`." }, "cssClass": { - "description": "One or more CSS classes added and separated by spaces.", - "type": "string" + "type": "string", + "description": "One or more CSS classes added and separated by spaces." }, "pageId": { - "description": "Unique identity of page where CMS section is defined.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of page where CMS section is defined." }, "visibility": { "properties": { @@ -1564,6 +1495,11 @@ "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, + "cmsPageVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of CMS page version." + }, "createdAt": { "type": "string", "format": "date-time", @@ -1598,7 +1534,6 @@ "CmsSlot": { "description": "Added since version: 6.0.0.0", "required": [ - "apiAlias", "id", "type", "slot", @@ -1614,22 +1549,13 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" }, - "cmsBlockVersionId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$", - "description": "Unique identity of CMS block version." - }, - "fieldConfig": { - "type": "object", - "description": "Con info of cms slot" - }, "type": { - "description": "It indicates the types of content that can be defined within the slot which includes `image`, `text`, `form`, `product-listing`, `category-navigation`, `product-box`, `buy-box`, `sidebar-filter`, etc.", - "type": "string" + "type": "string", + "description": "It indicates the types of content that can be defined within the slot which includes `image`, `text`, `form`, `product-listing`, `category-navigation`, `product-box`, `buy-box`, `sidebar-filter`, etc." }, "slot": { - "description": "Key-value pair to configure which element to be shown in which slot.", - "type": "string" + "type": "string", + "description": "Key-value pair to configure which element to be shown in which slot." }, "locked": { "type": "boolean", @@ -1649,9 +1575,18 @@ "description": "Each cms slot (element) has a config that has values defined in the admin. When cms loads, each Resolver class adds the resolved config data to this value." }, "blockId": { - "description": "Unique identity of CMS block where slot is defined.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of CMS block where slot is defined." + }, + "fieldConfig": { + "type": "object", + "description": "Con info of cms slot" + }, + "cmsBlockVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of CMS block version." }, "createdAt": { "type": "string", @@ -1670,12 +1605,6 @@ "block": { "$ref": "#/components/schemas/CmsBlock" }, - "apiAlias": { - "type": "string", - "enum": [ - "cms_slot" - ] - }, "VersionId": { "description": "Unique identity of CMS slot's version." } @@ -1703,44 +1632,34 @@ "type": "string" }, "iso": { - "description": "Internationally recognized two-letter country codes. For example, DE, IN, NO, etc.", "type": "string" }, "position": { - "description": "Numerical value that indicates the order in which the defined countries must be displayed in the frontend.", "type": "integer", "format": "int64" }, "active": { - "description": "When boolean value is `true`, the country is available for selection in the storefront.", "type": "boolean" }, "shippingAvailable": { - "description": "The shipping availability for a country is enabled when boolean value is `true`.", "type": "boolean" }, "iso3": { - "description": "Internationally recognized three-letter country codes. For example, DEU, IND, NOR, etc.", "type": "string" }, "displayStateInRegistration": { - "description": "The country's state is displayed in the address when boolean value is `true`.", "type": "boolean" }, "forceStateInRegistration": { - "description": "State details in the address are force included when boolean value is `true`.", "type": "boolean" }, "checkVatIdPattern": { - "description": "Verify if VAT ID is valid or not.", "type": "boolean" }, "vatIdRequired": { - "description": "Set to true, if VAT ID is to be made mandatory.", "type": "boolean" }, "vatIdPattern": { - "description": "Unique VAT ID with country code and numbers, for example - GB999 9999", "type": "string" }, "customFields": { @@ -1787,26 +1706,21 @@ "type": "object" }, "postalCodeRequired": { - "description": "The postal code is made mandatory specification in the address, when boolean value is `true`.", "type": "boolean" }, "checkPostalCodePattern": { - "description": "Verify for valid postal code pattern.", "type": "boolean" }, "checkAdvancedPostalCodePattern": { - "description": "Verify for advanced postal code pattern.", "type": "boolean" }, "advancedPostalCodePattern": { - "description": "Wildcard formatted zip codes to allow easy searching in the frontend based on initial constants, for example - 24****, 1856**.", "type": "string" }, "addressFormat": { "type": "object" }, "defaultPostalCodePattern": { - "description": "Default pattern of postal or zip code.", "type": "string" }, "isEu": { @@ -1828,7 +1742,6 @@ "relationships": { "properties": { "states": { - "description": "States/provinces/regions within the country", "properties": { "links": { "type": "object", @@ -1885,45 +1798,45 @@ "description": "Name of the country." }, "iso": { - "description": "Internationally recognized two-letter country codes. For example, DE, IN, NO, etc.", - "type": "string" + "type": "string", + "description": "Internationally recognized two-letter country codes. For example, DE, IN, NO, etc." }, "position": { - "description": "Numerical value that indicates the order in which the defined countries must be displayed in the frontend.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Numerical value that indicates the order in which the defined countries must be displayed in the frontend." }, "active": { - "description": "When boolean value is `true`, the country is available for selection in the storefront.", - "type": "boolean" + "type": "boolean", + "description": "When boolean value is `true`, the country is available for selection in the storefront." }, "shippingAvailable": { - "description": "The shipping availability for a country is enabled when boolean value is `true`.", - "type": "boolean" + "type": "boolean", + "description": "The shipping availability for a country is enabled when boolean value is `true`." }, "iso3": { - "description": "Internationally recognized three-letter country codes. For example, DEU, IND, NOR, etc.", - "type": "string" + "type": "string", + "description": "Internationally recognized three-letter country codes. For example, DEU, IND, NOR, etc." }, "displayStateInRegistration": { - "description": "The country's state is displayed in the address when boolean value is `true`.", - "type": "boolean" + "type": "boolean", + "description": "The country's state is displayed in the address when boolean value is `true`." }, "forceStateInRegistration": { - "description": "State details in the address are force included when boolean value is `true`.", - "type": "boolean" + "type": "boolean", + "description": "State details in the address are force included when boolean value is `true`." }, "checkVatIdPattern": { - "description": "Verify if VAT ID is valid or not.", - "type": "boolean" + "type": "boolean", + "description": "Verify if VAT ID is valid or not." }, "vatIdRequired": { - "description": "Set to true, if VAT ID is to be made mandatory.", - "type": "boolean" + "type": "boolean", + "description": "Set to true, if VAT ID is to be made mandatory." }, "vatIdPattern": { - "description": "Unique VAT ID with country code and numbers, for example - GB999 9999", - "type": "string" + "type": "string", + "description": "Unique VAT ID with country code and numbers, for example - GB999 9999" }, "customFields": { "type": "object", @@ -1976,28 +1889,28 @@ "type": "object" }, "postalCodeRequired": { - "description": "The postal code is made mandatory specification in the address, when boolean value is `true`.", - "type": "boolean" + "type": "boolean", + "description": "The postal code is made mandatory specification in the address, when boolean value is `true`." }, "checkPostalCodePattern": { - "description": "Verify for valid postal code pattern.", - "type": "boolean" + "type": "boolean", + "description": "Verify for valid postal code pattern." }, "checkAdvancedPostalCodePattern": { - "description": "Verify for advanced postal code pattern.", - "type": "boolean" + "type": "boolean", + "description": "Verify for advanced postal code pattern." }, "advancedPostalCodePattern": { - "description": "Wildcard formatted zip codes to allow easy searching in the frontend based on initial constants, for example - 24****, 1856**.", - "type": "string" + "type": "string", + "description": "Wildcard formatted zip codes to allow easy searching in the frontend based on initial constants, for example - 24****, 1856**." }, "addressFormat": { "type": "object", "description": "The address format with recipient's name, building number, street name, city, state and ZIP code on different lines as required." }, "defaultPostalCodePattern": { - "description": "Default pattern of postal or zip code.", - "type": "string" + "type": "string", + "description": "Default pattern of postal or zip code." }, "isEu": { "type": "boolean" @@ -2017,7 +1930,6 @@ "description": "Contains the translations of all translated fields." }, "states": { - "description": "States/provinces/regions within the country", "type": "array", "items": { "$ref": "#/components/schemas/CountryState" @@ -2051,24 +1963,20 @@ "pattern": "^[0-9a-f]{32}$" }, "countryId": { - "description": "Unique identity of the country.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "shortCode": { - "description": "An abbreviation for the country's state.", "type": "string" }, "name": { "type": "string" }, "position": { - "description": "Numerical value that indicates the order in which the defined states must be displayed in the frontend.", "type": "integer", "format": "int64" }, "active": { - "description": "When boolean value is `true`, the country's state is available for selection in the storefront.", "type": "boolean" }, "customFields": { @@ -2107,26 +2015,26 @@ "description": "Unique identity of the country's state." }, "countryId": { - "description": "Unique identity of the country.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the country." }, "shortCode": { - "description": "An abbreviation for the country's state.", - "type": "string" + "type": "string", + "description": "An abbreviation for the country's state." }, "name": { "type": "string", "description": "Name of the country's state." }, "position": { - "description": "Numerical value that indicates the order in which the defined states must be displayed in the frontend.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Numerical value that indicates the order in which the defined states must be displayed in the frontend." }, "active": { - "description": "When boolean value is `true`, the country's state is available for selection in the storefront.", - "type": "boolean" + "type": "boolean", + "description": "When boolean value is `true`, the country's state is available for selection in the storefront." }, "customFields": { "type": "object", @@ -2172,16 +2080,13 @@ "pattern": "^[0-9a-f]{32}$" }, "factor": { - "description": "Currency exchange rate.", "type": "number", "format": "float" }, "symbol": { - "description": "A currency symbol is a graphical representation used as shorthand for a currency's name, for example US Dollar - $", "type": "string" }, "isoCode": { - "description": "Standard international three digit code to represent currency. For example, USD.", "type": "string" }, "shortName": { @@ -2191,7 +2096,6 @@ "type": "string" }, "position": { - "description": "The order of the tabs for multiple currencies defined.", "type": "integer", "format": "int64" }, @@ -2200,7 +2104,6 @@ "type": "boolean" }, "taxFreeFrom": { - "description": "The value from which the tax must be exempted.", "type": "number", "format": "float" }, @@ -2286,17 +2189,17 @@ "description": "Unique identity of currency." }, "factor": { - "description": "Currency exchange rate.", "type": "number", - "format": "float" + "format": "float", + "description": "Currency exchange rate." }, "symbol": { - "description": "A currency symbol is a graphical representation used as shorthand for a currency's name, for example US Dollar - $", - "type": "string" + "type": "string", + "description": "A currency symbol is a graphical representation used as shorthand for a currency's name, for example US Dollar - $" }, "isoCode": { - "description": "Standard international three digit code to represent currency. For example, USD.", - "type": "string" + "type": "string", + "description": "Standard international three digit code to represent currency. For example, USD." }, "shortName": { "type": "string", @@ -2307,18 +2210,18 @@ "description": "Full name of the currency. For example, US-Dollar." }, "position": { - "description": "The order of the tabs for multiple currencies defined.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The order of the tabs for multiple currencies defined." }, "isSystemDefault": { "description": "Runtime field, cannot be used as part of the criteria.", "type": "boolean" }, "taxFreeFrom": { - "description": "The value from which the tax must be exempted.", "type": "number", - "format": "float" + "format": "float", + "description": "The value from which the tax must be exempted." }, "customFields": { "type": "object", @@ -2509,7 +2412,8 @@ "customerNumber", "firstName", "lastName", - "email" + "email", + "defaultPaymentMethodId" ], "properties": { "id": { @@ -2518,131 +2422,131 @@ "description": "Unique identity of the customer." }, "groupId": { - "description": "Unique identity of customer group.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of customer group." }, "salesChannelId": { - "description": "Unique identity of sales channel.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of sales channel." }, "languageId": { - "description": "Unique identity of language.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of language." }, "lastPaymentMethodId": { - "description": "Unique identity of previous payment method.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of previous payment method." }, "defaultBillingAddressId": { - "description": "Unique identity of default billing address.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of default billing address." }, "defaultShippingAddressId": { - "description": "Unique identity of default shipping address.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of default shipping address." }, "customerNumber": { - "description": "Unique number assigned to identity a customer.", - "type": "string" + "type": "string", + "description": "Unique number assigned to identity a customer." }, "salutationId": { - "description": "Unique identity of salutation.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of salutation." }, "firstName": { - "description": "First name of the customer.", - "type": "string" + "type": "string", + "description": "First name of the customer." }, "lastName": { - "description": "Last name of the customer.", - "type": "string" + "type": "string", + "description": "Last name of the customer." }, "email": { - "description": "Email ID of the customer.", - "type": "string" + "type": "string", + "description": "Email ID of the customer." }, "title": { - "description": "Titles or honorifics like Mr, Mrs, etc.", - "type": "string" + "type": "string", + "description": "Titles or honorifics like Mr, Mrs, etc." }, "affiliateCode": { - "description": "An affiliate code is an identification option with which website operators can mark outgoing links.", - "type": "string" + "type": "string", + "description": "An affiliate code is an identification option with which website operators can mark outgoing links." }, "campaignCode": { - "description": "A campaign code is the globally unique identifier for a campaign.", - "type": "string" + "type": "string", + "description": "A campaign code is the globally unique identifier for a campaign." }, "active": { - "description": "To keep the status of the customer active, the boolean value is set to `true`.", - "type": "boolean" + "type": "boolean", + "description": "To keep the status of the customer active, the boolean value is set to `true`." }, "doubleOptInRegistration": { - "description": "Set to `true` to allow user subscriptions to an email marketing list.", - "type": "boolean" + "type": "boolean", + "description": "Set to `true` to allow user subscriptions to an email marketing list." }, "doubleOptInEmailSentDate": { - "description": "Date and time when the double opt-in email was sent.", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "Date and time when the double opt-in email was sent." }, "doubleOptInConfirmDate": { - "description": "Date and time when the double opt-in email was confirmed.", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "Date and time when the double opt-in email was confirmed." }, "hash": { - "description": "Password hash for account recovery.", - "type": "string" + "type": "string", + "description": "Password hash for account recovery." }, "guest": { - "description": "Boolean value is `true` if it is to be a guest account.", - "type": "boolean" + "type": "boolean", + "description": "Boolean value is `true` if it is to be a guest account." }, "firstLogin": { - "description": "To capture date and time of customer's first login.", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "To capture date and time of customer's first login." }, "lastLogin": { - "description": "To capture date and time of customer's last login.", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "To capture date and time of customer's last login." }, "birthday": { - "description": "To capture customer's birthday details.", - "type": "string" + "type": "string", + "description": "To capture customer's birthday details." }, "lastOrderDate": { - "description": "Captures last order date.", "type": "string", "format": "date-time", - "readOnly": true + "readOnly": true, + "description": "Captures last order date." }, "orderCount": { - "description": "Captures the number of orders placed.", "type": "integer", "format": "int64", - "readOnly": true + "readOnly": true, + "description": "Captures the number of orders placed." }, "orderTotalAmount": { - "description": "Sum of total amount to be paid.", "type": "number", "format": "float", - "readOnly": true + "readOnly": true, + "description": "Sum of total amount to be paid." }, "reviewCount": { - "description": "Number of reviews the customer has given.", "type": "integer", "format": "int64", - "readOnly": true + "readOnly": true, + "description": "Number of reviews the customer has given." }, "customFields": { "type": "object", @@ -2665,6 +2569,11 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "defaultPaymentMethodId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of default payment method." + }, "createdAt": { "type": "string", "format": "date-time", @@ -2676,60 +2585,50 @@ "readOnly": true }, "group": { - "$ref": "#/components/schemas/CustomerGroup", - "description": "Customer group determining pricing and permissions" + "$ref": "#/components/schemas/CustomerGroup" }, "language": { - "$ref": "#/components/schemas/Language", - "description": "Preferred language for customer communication" + "$ref": "#/components/schemas/Language" }, "lastPaymentMethod": { - "$ref": "#/components/schemas/PaymentMethod", - "description": "Last used payment method by the customer" + "$ref": "#/components/schemas/PaymentMethod" }, "defaultBillingAddress": { - "$ref": "#/components/schemas/CustomerAddress", - "description": "Default billing address for the customer" + "$ref": "#/components/schemas/CustomerAddress" }, "activeBillingAddress": { - "$ref": "#/components/schemas/CustomerAddress", - "description": "Currently active billing address in the session" + "$ref": "#/components/schemas/CustomerAddress" }, "defaultShippingAddress": { - "$ref": "#/components/schemas/CustomerAddress", - "description": "Default shipping address for the customer" + "$ref": "#/components/schemas/CustomerAddress" }, "activeShippingAddress": { - "$ref": "#/components/schemas/CustomerAddress", - "description": "Currently active shipping address in the session" + "$ref": "#/components/schemas/CustomerAddress" }, "salutation": { - "$ref": "#/components/schemas/Salutation", - "description": "Customer salutation (e.g., Mr., Mrs., Ms.)" + "$ref": "#/components/schemas/Salutation" }, "addresses": { - "description": "All addresses saved for the customer", "type": "array", "items": { "$ref": "#/components/schemas/CustomerAddress" } }, "tags": { - "description": "Tags assigned to the customer for organization and segmentation", "type": "array", "items": { "$ref": "#/components/schemas/Tag" } }, + "defaultPaymentMethod": { + "$ref": "#/components/schemas/PaymentMethod" + }, "apiAlias": { "type": "string", "enum": [ "customer" ] }, - "defaultPaymentMethodId": { - "description": "Unique identity of default payment method." - }, "company": { "description": "Company name of the customer." }, @@ -2789,213 +2688,6 @@ } ] }, - "CustomerAddressJsonApi": { - "description": "Added since version: 6.0.0.0", - "allOf": [ - { - "$ref": "#/components/schemas/resource" - }, - { - "required": [ - "id", - "customerId", - "countryId", - "firstName", - "lastName", - "city", - "street" - ], - "properties": { - "id": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "customerId": { - "description": "Unique identity of customer.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "countryId": { - "description": "Unique identity of country.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "countryStateId": { - "description": "Unique identity of country's state.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "salutationId": { - "description": "Unique identity of salutation.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "firstName": { - "description": "First name of the customer.", - "type": "string" - }, - "lastName": { - "description": "Last name of the customer.", - "type": "string" - }, - "zipcode": { - "description": "Postal or zip code of customer's address.", - "type": "string" - }, - "city": { - "description": "Name of customer's city.", - "type": "string" - }, - "company": { - "description": "Name of customer's company.", - "type": "string" - }, - "street": { - "description": "Name of customer's street.", - "type": "string" - }, - "department": { - "description": "Name of customer's department.", - "type": "string" - }, - "title": { - "description": "Titles given to customer like Dr. , Prof., etc", - "type": "string" - }, - "phoneNumber": { - "description": "Customer's phone number.", - "type": "string" - }, - "additionalAddressLine1": { - "description": "Additional customer's address information.", - "type": "string" - }, - "additionalAddressLine2": { - "description": "Additional customer's address information.", - "type": "string" - }, - "hash": { - "description": "Runtime field, cannot be used as part of the criteria.", - "type": "string" - }, - "customFields": { - "type": "object" - }, - "isDefaultBillingAddress": { - "description": "Added since version: 6.7.7.0. Runtime field, cannot be used as part of the criteria.", - "type": "boolean" - }, - "isDefaultShippingAddress": { - "description": "Added since version: 6.7.7.0. Runtime field, cannot be used as part of the criteria.", - "type": "boolean" - }, - "createdAt": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "relationships": { - "properties": { - "country": { - "properties": { - "links": { - "type": "object", - "properties": { - "related": { - "type": "string", - "format": "uri-reference", - "example": "/customer-address/1b4b031005f93d02d887e7d66efb653b/country" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "example": "country" - }, - "id": { - "type": "string", - "pattern": "^[0-9a-f]{32}$", - "example": "e909c2d7067ea37437cf97fe11d91bd0" - } - } - } - }, - "type": "object" - }, - "countryState": { - "properties": { - "links": { - "type": "object", - "properties": { - "related": { - "type": "string", - "format": "uri-reference", - "example": "/customer-address/1b4b031005f93d02d887e7d66efb653b/countryState" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "example": "country_state" - }, - "id": { - "type": "string", - "pattern": "^[0-9a-f]{32}$", - "example": "cb6a9764567191fb74fe28d8d6a4819d" - } - } - } - }, - "type": "object" - }, - "salutation": { - "properties": { - "links": { - "type": "object", - "properties": { - "related": { - "type": "string", - "format": "uri-reference", - "example": "/customer-address/1b4b031005f93d02d887e7d66efb653b/salutation" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "example": "salutation" - }, - "id": { - "type": "string", - "pattern": "^[0-9a-f]{32}$", - "example": "7a6efb02514153b5aa9a8f40c6f8bcc3" - } - } - } - }, - "type": "object" - } - }, - "type": "object" - } - }, - "type": "object" - } - ] - }, "CustomerAddress": { "description": "Added since version: 6.0.0.0", "required": [ @@ -3014,68 +2706,68 @@ "description": "Unique identity of customer's address." }, "customerId": { - "description": "Unique identity of customer.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of customer." }, "countryId": { - "description": "Unique identity of country.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of country." }, "countryStateId": { - "description": "Unique identity of country's state.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of country's state." }, "salutationId": { - "description": "Unique identity of salutation.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of salutation." }, "firstName": { - "description": "First name of the customer.", - "type": "string" + "type": "string", + "description": "First name of the customer." }, "lastName": { - "description": "Last name of the customer.", - "type": "string" + "type": "string", + "description": "Last name of the customer." }, "zipcode": { - "description": "Postal or zip code of customer's address.", - "type": "string" + "type": "string", + "description": "Postal or zip code of customer's address." }, "city": { - "description": "Name of customer's city.", - "type": "string" + "type": "string", + "description": "Name of customer's city." }, "company": { - "description": "Name of customer's company.", - "type": "string" + "type": "string", + "description": "Name of customer's company." }, "street": { - "description": "Name of customer's street.", - "type": "string" + "type": "string", + "description": "Name of customer's street." }, "department": { - "description": "Name of customer's department.", - "type": "string" + "type": "string", + "description": "Name of customer's department." }, "title": { - "description": "Titles given to customer like Dr. , Prof., etc", - "type": "string" + "type": "string", + "description": "Titles given to customer like Dr. , Prof., etc" }, "phoneNumber": { - "description": "Customer's phone number.", - "type": "string" + "type": "string", + "description": "Customer's phone number." }, "additionalAddressLine1": { - "description": "Additional customer's address information.", - "type": "string" + "type": "string", + "description": "Additional customer's address information." }, "additionalAddressLine2": { - "description": "Additional customer's address information.", - "type": "string" + "type": "string", + "description": "Additional customer's address information." }, "hash": { "description": "Runtime field, cannot be used as part of the criteria.", @@ -3085,14 +2777,6 @@ "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, - "isDefaultBillingAddress": { - "description": "Added since version: 6.7.7.0. Runtime field, cannot be used as part of the criteria.", - "type": "boolean" - }, - "isDefaultShippingAddress": { - "description": "Added since version: 6.7.7.0. Runtime field, cannot be used as part of the criteria.", - "type": "boolean" - }, "createdAt": { "type": "string", "format": "date-time", @@ -3133,16 +2817,16 @@ "description": "Name of the customer group." }, "displayGross": { - "description": "If boolean value is `true` gross value is displayed else, net value will be displayed to the customer.", - "type": "boolean" + "type": "boolean", + "description": "If boolean value is `true` gross value is displayed else, net value will be displayed to the customer." }, "customFields": { "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, "registrationActive": { - "description": "To enable the registration of partner customer group.", - "type": "boolean" + "type": "boolean", + "description": "To enable the registration of partner customer group." }, "registrationTitle": { "type": "string", @@ -3253,9 +2937,9 @@ "description": "Unique identity of the customer's wishlist." }, "customerId": { - "description": "Unique identity of the customer.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the customer." }, "customFields": { "type": "object", @@ -3270,12 +2954,6 @@ "type": "string", "format": "date-time", "readOnly": true - }, - "products": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomerWishlistProduct" - } } }, "type": "object" @@ -3293,9 +2971,9 @@ "description": "Unique identity of the product in customer wishlist." }, "productId": { - "description": "Unique identity of the product.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the product." }, "productVersionId": { "type": "string", @@ -3335,18 +3013,18 @@ "description": "Name given to delivery time." }, "min": { - "description": "Minimum delivery time taken.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Minimum delivery time taken." }, "max": { - "description": "Maximum delivery time taken.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Maximum delivery time taken." }, "unit": { - "description": "Unit in which the delivery time is defined. For example, days or hours.", - "type": "string" + "type": "string", + "description": "Unit in which the delivery time is defined. For example, days or hours." }, "customFields": { "type": "object", @@ -3376,7 +3054,8 @@ "documentTypeId", "orderId", "config", - "deepLinkCode" + "deepLinkCode", + "fileType" ], "properties": { "id": { @@ -3448,6 +3127,10 @@ "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, + "fileType": { + "type": "string", + "description": "Type of file like PDF." + }, "createdAt": { "type": "string", "format": "date-time", @@ -3478,10 +3161,6 @@ }, "documentA11yMediaFile": { "$ref": "#/components/schemas/Media" - }, - "fileType": { - "type": "string", - "description": "Type of file like PDF." } }, "type": "object" @@ -3500,34 +3179,34 @@ "description": "Unique identity of the document base config." }, "documentTypeId": { - "description": "Unique identity of the document type.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the document type." }, "logoId": { - "description": "Unique identity of the company logo.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the company logo." }, "name": { - "description": "Name of the document.", - "type": "string" + "type": "string", + "description": "Name of the document." }, "filenamePrefix": { - "description": "A prefix name added to the file name separated by an underscore.", - "type": "string" + "type": "string", + "description": "A prefix name added to the file name separated by an underscore." }, "filenameSuffix": { - "description": "A suffix name added to the file name separated by an underscore.", - "type": "string" + "type": "string", + "description": "A suffix name added to the file name separated by an underscore." }, "global": { - "description": "When set to `true`, the document can be used across all sales channels.", - "type": "boolean" + "type": "boolean", + "description": "When set to `true`, the document can be used across all sales channels." }, "documentNumber": { - "description": "Unique number associated with every document.", - "type": "string" + "type": "string", + "description": "Unique number associated with every document." }, "config": { "type": "object", @@ -3567,19 +3246,19 @@ "description": "Unique identity of document's base config sales channel." }, "documentBaseConfigId": { - "description": "Unique identity of document's base config.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of document's base config." }, "salesChannelId": { - "description": "Unique identity of sales channel.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of sales channel." }, "documentTypeId": { - "description": "Unique identity of document type.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of document type." }, "createdAt": { "type": "string", @@ -3612,12 +3291,8 @@ "description": "Name of the document type." }, "technicalName": { - "description": "Technical name of document type.", - "type": "string" - }, - "customFields": { - "type": "object", - "description": "Additional fields that offer a possibility to add own fields for the different program-areas." + "type": "string", + "description": "Technical name of document type." }, "createdAt": { "type": "string", @@ -3629,6 +3304,10 @@ "format": "date-time", "readOnly": true }, + "customFields": { + "type": "object", + "description": "Additional fields that offer a possibility to add own fields for the different program-areas." + }, "translated": { "type": "object", "description": "Contains the translations of all translated fields." @@ -3857,7 +3536,6 @@ "relationships": { "properties": { "cmsPage": { - "description": "CMS page layout for the landing page", "properties": { "links": { "type": "object", @@ -3887,7 +3565,6 @@ "type": "object" }, "seoUrls": { - "description": "SEO-friendly URLs for the landing page across different sales channels", "properties": { "links": { "type": "object", @@ -4001,11 +3678,9 @@ "description": "Contains the translations of all translated fields." }, "cmsPage": { - "$ref": "#/components/schemas/CmsPage", - "description": "CMS page layout for the landing page" + "$ref": "#/components/schemas/CmsPage" }, "seoUrls": { - "description": "SEO-friendly URLs for the landing page across different sales channels", "type": "array", "items": { "$ref": "#/components/schemas/SeoUrl" @@ -4042,22 +3717,16 @@ "pattern": "^[0-9a-f]{32}$" }, "localeId": { - "description": "Unique identity of locale.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "translationCodeId": { - "description": "Unique identity of translation code.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "name": { - "description": "Name of the language.", "type": "string" }, - "active": { - "type": "boolean" - }, "customFields": { "type": "object" }, @@ -4074,7 +3743,6 @@ "relationships": { "properties": { "parent": { - "description": "Unique identity of language.", "properties": { "links": { "type": "object", @@ -4104,7 +3772,6 @@ "type": "object" }, "locale": { - "description": "Locale defining regional settings (date, time, number formats)", "properties": { "links": { "type": "object", @@ -4134,7 +3801,6 @@ "type": "object" }, "translationCode": { - "description": "Locale used for translating content", "properties": { "links": { "type": "object", @@ -4164,7 +3830,6 @@ "type": "object" }, "children": { - "description": "Child languages inheriting from this parent language", "properties": { "links": { "type": "object", @@ -4222,21 +3887,18 @@ "description": "Unique identity of parent language." }, "localeId": { - "description": "Unique identity of locale.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of locale." }, "translationCodeId": { - "description": "Unique identity of translation code.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of translation code." }, "name": { - "description": "Name of the language.", - "type": "string" - }, - "active": { - "type": "boolean" + "type": "string", + "description": "Name of the language." }, "customFields": { "type": "object", @@ -4253,19 +3915,15 @@ "readOnly": true }, "parent": { - "$ref": "#/components/schemas/Language", - "description": "Unique identity of language." + "$ref": "#/components/schemas/Language" }, "locale": { - "$ref": "#/components/schemas/Locale", - "description": "Locale defining regional settings (date, time, number formats)" + "$ref": "#/components/schemas/Locale" }, "translationCode": { - "$ref": "#/components/schemas/Locale", - "description": "Locale used for translating content" + "$ref": "#/components/schemas/Locale" }, "children": { - "description": "Child languages inheriting from this parent language", "type": "array", "items": { "$ref": "#/components/schemas/Language" @@ -4289,8 +3947,8 @@ "description": "Unique identity of locale." }, "code": { - "description": "Code given to the locale. For example: en-CA.", - "type": "string" + "type": "string", + "description": "Code given to the locale. For example: en-CA." }, "name": { "type": "string", @@ -4515,8 +4173,8 @@ "description": "Name of the mail template." }, "technicalName": { - "description": "Technical name of mail template.", - "type": "string" + "type": "string", + "description": "Technical name of mail template." }, "customFields": { "type": "object", @@ -4558,7 +4216,6 @@ "pattern": "^[0-9a-f]{32}$" }, "productId": { - "description": "Unique identity of the product.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -4567,7 +4224,6 @@ "pattern": "^[0-9a-f]{32}$" }, "categoryId": { - "description": "Unique identity of the category.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -4576,7 +4232,6 @@ "pattern": "^[0-9a-f]{32}$" }, "salesChannelId": { - "description": "Unique identity of the sales channel.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -4610,9 +4265,9 @@ "description": "Unique identity of main category." }, "productId": { - "description": "Unique identity of the product.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the product." }, "productVersionId": { "type": "string", @@ -4620,9 +4275,9 @@ "description": "Unique identity of the product's version." }, "categoryId": { - "description": "Unique identity of the category.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the category." }, "categoryVersionId": { "type": "string", @@ -4630,92 +4285,9 @@ "description": "Unique identity of the category's version." }, "salesChannelId": { - "description": "Unique identity of the sales channel.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "createdAt": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "readOnly": true - } - }, - "type": "object" - }, - "MeasurementDisplayUnit": { - "description": "Added since version: 6.7.1.0", - "required": [ - "id", - "measurementSystemId", - "default", - "type", - "shortName", - "factor", - "precision" - ], - "properties": { - "id": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "measurementSystemId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "default": { - "type": "boolean" - }, - "type": { - "type": "string" - }, - "shortName": { - "type": "string" - }, - "factor": { - "type": "number", - "format": "float" - }, - "precision": { - "type": "integer", - "format": "int64" - }, - "createdAt": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "readOnly": true - }, - "translated": { - "type": "object" - }, - "measurementSystem": { - "$ref": "#/components/schemas/MeasurementSystem" - } - }, - "type": "object" - }, - "MeasurementSystem": { - "description": "Added since version: 6.7.1.0", - "required": [ - "id", - "technicalName" - ], - "properties": { - "id": { "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "technicalName": { - "type": "string" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the sales channel." }, "createdAt": { "type": "string", @@ -4726,15 +4298,6 @@ "type": "string", "format": "date-time", "readOnly": true - }, - "translated": { - "type": "object" - }, - "units": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MeasurementDisplayUnit" - } } }, "type": "object" @@ -4758,42 +4321,33 @@ "description": "Unique identity of media." }, "mimeType": { - "description": "A string sent along with a file indicating the type of the file. For example: image/jpeg.", - "type": "string" + "type": "string", + "description": "A string sent along with a file indicating the type of the file. For example: image/jpeg." }, "fileExtension": { - "description": "Type of file indication. For example: jpeg, png.", - "type": "string" + "type": "string", + "readOnly": true, + "description": "Type of file indication. For example: jpeg, png." }, "uploadedAt": { - "description": "Date and time at which media was added.", "type": "string", "format": "date-time", - "readOnly": true + "readOnly": true, + "description": "Date and time at which media was added." }, "fileName": { - "description": "Name of the media file uploaded.", - "type": "string" + "type": "string", + "description": "Name of the media file uploaded." }, "fileSize": { - "description": "Size of the file media file uploaded.", "type": "integer", "format": "int64", - "readOnly": true + "readOnly": true, + "description": "Size of the file media file uploaded." }, "metaData": { "type": "object", "readOnly": true, - "properties": { - "height": { - "type": "integer", - "format": "int64" - }, - "width": { - "type": "integer", - "format": "int64" - } - }, "description": "Details of the media file uploaded." }, "config": { @@ -4819,8 +4373,8 @@ "type": "boolean" }, "private": { - "description": "When `true`, the media display is kept private.", - "type": "boolean" + "type": "boolean", + "description": "When `true`, the media display is kept private." }, "customFields": { "type": "object", @@ -4841,7 +4395,6 @@ "description": "Contains the translations of all translated fields." }, "thumbnails": { - "description": "Generated thumbnail images in various sizes", "type": "array", "items": { "$ref": "#/components/schemas/MediaThumbnail" @@ -4969,25 +4522,21 @@ "description": "Unique identity of media thumbnail." }, "mediaId": { - "description": "Unique identity of media.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "mediaThumbnailSizeId": { "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of media." }, "width": { - "description": "Width of the thumbnail.", "type": "integer", "format": "int64", - "readOnly": true + "readOnly": true, + "description": "Width of the thumbnail." }, "height": { - "description": "Height of the thumbnail.", "type": "integer", "format": "int64", - "readOnly": true + "readOnly": true, + "description": "Height of the thumbnail." }, "url": { "description": "Public url of media thumbnail.", @@ -5027,14 +4576,14 @@ "description": "Unique identity of media thumbnail size defined." }, "width": { - "description": "Width of the thumbnail.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Width of the thumbnail." }, "height": { - "description": "Height of the thumbnail.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Height of the thumbnail." }, "customFields": { "type": "object", @@ -5226,7 +4775,6 @@ "documents", "orderDate", "stateMachineState", - "price", "id", "billingAddressId", "currencyId", @@ -5247,59 +4795,43 @@ "description": "Unique identity of order version." }, "orderNumber": { - "description": "Unique number associated with every order.", - "type": "string" + "type": "string", + "description": "Unique number associated with every order." }, "billingAddressId": { - "description": "Unique identity of the billing address.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the billing address." }, "billingAddressVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$", "description": "Unique identity of the billing address version." }, - "primaryOrderDeliveryId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "primaryOrderDeliveryVersionId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "primaryOrderTransactionId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "primaryOrderTransactionVersionId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, "currencyId": { - "description": "Unique identity of the currency.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the currency." }, "languageId": { - "description": "Unique identity of the language.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the language." }, "salesChannelId": { - "description": "Unique identity of the sales channel.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the sales channel." }, "orderDateTime": { - "description": "Timestamp when the order was placed.", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "Timestamp when the order was placed." }, "orderDate": { - "description": "Date when the order was placed.", "type": "string", - "readOnly": true + "readOnly": true, + "description": "Date when the order was placed." }, "price": { "required": [ @@ -5341,31 +4873,30 @@ "description": "TaxStatus takes `Free`, `Net` or `Gross` as values." } }, - "type": "object", - "$ref": "#/components/schemas/CalculatedPrice" + "type": "object" }, "amountTotal": { - "description": "Gross price of the order.", "type": "number", "format": "float", - "readOnly": true + "readOnly": true, + "description": "Gross price of the order." }, "amountNet": { - "description": "Net price of the order.", "type": "number", "format": "float", - "readOnly": true + "readOnly": true, + "description": "Net price of the order." }, "positionPrice": { - "description": "Price of each line item in the cart multiplied by its quantity excluding charges like shipping cost, rules, taxes etc.", "type": "number", "format": "float", - "readOnly": true + "readOnly": true, + "description": "Price of each line item in the cart multiplied by its quantity excluding charges like shipping cost, rules, taxes etc." }, "taxStatus": { - "description": "TaxStatus takes `Free`, `Net` or `Gross` as values.", "type": "string", - "readOnly": true + "readOnly": true, + "description": "TaxStatus takes `Free`, `Net` or `Gross` as values." }, "shippingCosts": { "required": [ @@ -5435,35 +4966,35 @@ "type": "object" }, "shippingTotal": { - "description": "Total shipping cost of the ordered product.", "type": "number", "format": "float", - "readOnly": true + "readOnly": true, + "description": "Total shipping cost of the ordered product." }, "currencyFactor": { - "description": "Rate at which currency is exchanged.", "type": "number", - "format": "float" + "format": "float", + "description": "Rate at which currency is exchanged." }, "deepLinkCode": { - "description": "It is a generated special code linked to email. It is used to access orders placed by guest customers.", - "type": "string" + "type": "string", + "description": "It is a generated special code linked to email. It is used to access orders placed by guest customers." }, "affiliateCode": { - "description": "An affiliate code is an identification option with which website operators can mark outgoing links.", - "type": "string" + "type": "string", + "description": "An affiliate code is an identification option with which website operators can mark outgoing links." }, "campaignCode": { - "description": "A campaign code is the globally unique identifier for a campaign.", - "type": "string" + "type": "string", + "description": "A campaign code is the globally unique identifier for a campaign." }, "customerComment": { - "description": "Comments given by comments.", - "type": "string" + "type": "string", + "description": "Comments given by comments." }, "source": { - "description": "Source of orders either via normal order placement or subscriptions.", - "type": "string" + "type": "string", + "description": "Source of orders either via normal order placement or subscriptions." }, "taxCalculationType": { "type": "string" @@ -5473,12 +5004,10 @@ "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, "createdById": { - "description": "Unique identity of createdBy.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "updatedById": { - "description": "Unique identity of updatedBy.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -5493,70 +5022,51 @@ "readOnly": true }, "stateMachineState": { - "$ref": "#/components/schemas/StateMachineState", - "description": "Current order state (e.g., open, in_progress, completed, cancelled)" - }, - "primaryOrderDelivery": { - "$ref": "#/components/schemas/OrderDelivery", - "description": "Primary delivery information for the order" - }, - "primaryOrderTransaction": { - "$ref": "#/components/schemas/OrderTransaction", - "description": "Primary payment transaction for the order" + "$ref": "#/components/schemas/StateMachineState" }, "orderCustomer": { - "$ref": "#/components/schemas/OrderCustomer", - "description": "Customer information associated with the order" + "$ref": "#/components/schemas/OrderCustomer" }, "currency": { - "$ref": "#/components/schemas/Currency", - "description": "Currency used for the order" + "$ref": "#/components/schemas/Currency" }, "language": { - "$ref": "#/components/schemas/Language", - "description": "Language used when placing the order" + "$ref": "#/components/schemas/Language" }, "addresses": { - "description": "All addresses associated with the order (billing and shipping)", "type": "array", "items": { "$ref": "#/components/schemas/OrderAddress" } }, "billingAddress": { - "$ref": "#/components/schemas/OrderAddress", - "description": "Billing address for the order" + "$ref": "#/components/schemas/OrderAddress" }, "deliveries": { - "description": "Delivery information including shipping address and tracking", "type": "array", "items": { "$ref": "#/components/schemas/OrderDelivery" } }, "lineItems": { - "description": "Order line items (products, discounts, fees)", "type": "array", "items": { "$ref": "#/components/schemas/OrderLineItem" } }, "transactions": { - "description": "Payment transactions for the order", "type": "array", "items": { "$ref": "#/components/schemas/OrderTransaction" } }, "documents": { - "description": "Generated documents (invoices, delivery notes, credit notes)", "type": "array", "items": { "$ref": "#/components/schemas/Document" } }, "tags": { - "description": "Tags assigned to the order for organization and filtering", "type": "array", "items": { "$ref": "#/components/schemas/Tag" @@ -5590,58 +5100,62 @@ "description": "Unique identity of OrderAddresses version." }, "countryId": { - "description": "Unique identity of country.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of country." }, "countryStateId": { - "description": "Unique identity of state.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of state." }, "firstName": { - "description": "First name of the customer.", - "type": "string" + "type": "string", + "description": "First name of the customer." }, "lastName": { - "description": "Last name of the customer.", - "type": "string" + "type": "string", + "description": "Last name of the customer." }, "street": { - "description": "Street address", - "type": "string" + "type": "string", + "description": "Street address" }, "zipcode": { - "description": "Zip code of the country.", - "type": "string" + "type": "string", + "description": "Zip code of the country." }, "city": { - "description": "Name of the city.", - "type": "string" + "type": "string", + "description": "Name of the city." }, "company": { - "description": "Name of the company.", - "type": "string" + "type": "string", + "description": "Name of the company." }, "department": { - "description": "Name of the department.", - "type": "string" + "type": "string", + "description": "Name of the department." }, "title": { - "description": "Title name given to customer like DR. , Prof., etc.", - "type": "string" + "type": "string", + "description": "Title name given to customer like DR. , Prof., etc." + }, + "vatId": { + "type": "string", + "description": "Unique identity of VAT." }, "phoneNumber": { - "description": "Phone number of the customer.", - "type": "string" + "type": "string", + "description": "Phone number of the customer." }, "additionalAddressLine1": { - "description": "Additional address input if necessary.", - "type": "string" + "type": "string", + "description": "Additional address input if necessary." }, "additionalAddressLine2": { - "description": "Additional address input if necessary.", - "type": "string" + "type": "string", + "description": "Additional address input if necessary." }, "hash": { "description": "Runtime field, cannot be used as part of the criteria.", @@ -5651,11 +5165,6 @@ "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, - "vatId": { - "description": "Unique identity of VAT.", - "type": "string", - "deprecated": true - }, "createdAt": { "type": "string", "format": "date-time", @@ -5698,29 +5207,29 @@ "description": "Unique identity of OrderCustomer's version." }, "email": { - "description": "Email address of the customer.", - "type": "string" + "type": "string", + "description": "Email address of the customer." }, "salutationId": { - "description": "Unique identity of salutation.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of salutation." }, "firstName": { - "description": "First name of the customer.", - "type": "string" + "type": "string", + "description": "First name of the customer." }, "lastName": { - "description": "Last name of the customer.", - "type": "string" + "type": "string", + "description": "Last name of the customer." }, "company": { - "description": "Name of the company.", - "type": "string" + "type": "string", + "description": "Name of the company." }, "title": { - "description": "Title name given to the customer like Dr, prof. etc.", - "type": "string" + "type": "string", + "description": "Title name given to the customer like Dr, prof. etc." }, "vatIds": { "type": "array", @@ -5730,8 +5239,8 @@ "description": "Unique identity of VAT." }, "customerNumber": { - "description": "Unique number assigned to the customer.", - "type": "string" + "type": "string", + "description": "Unique number assigned to the customer." }, "customFields": { "type": "object", @@ -5776,9 +5285,9 @@ "description": "Unique identity of OrderDelivery's version." }, "orderId": { - "description": "Unique identity of order.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order." }, "orderVersionId": { "type": "string", @@ -5786,9 +5295,9 @@ "description": "Unique identity of order's version." }, "shippingOrderAddressId": { - "description": "Unique identity of order's shipping address.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order's shipping address." }, "shippingOrderAddressVersionId": { "type": "string", @@ -5796,14 +5305,14 @@ "description": "Unique identity of order's shipping address version." }, "shippingMethodId": { - "description": "Unique identity of shipping method.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of shipping method." }, "stateId": { - "description": "Unique identity of state.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of state." }, "trackingCodes": { "type": "array", @@ -5813,14 +5322,14 @@ "description": "Tracking code is a unique URL code assigned to each package, which allows you to monitor the movement of the parcel." }, "shippingDateEarliest": { - "description": "Date and time of earliest delivery of products.", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "Date and time of earliest delivery of products." }, "shippingDateLatest": { - "description": "Date and time of latest delivery of products.", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "Date and time of latest delivery of products." }, "shippingCosts": { "required": [ @@ -5904,19 +5413,15 @@ "readOnly": true }, "stateMachineState": { - "$ref": "#/components/schemas/StateMachineState", - "description": "Current delivery state (e.g., open, shipped, delivered, cancelled)" + "$ref": "#/components/schemas/StateMachineState" }, "shippingOrderAddress": { - "$ref": "#/components/schemas/OrderAddress", - "description": "Shipping address for this delivery" + "$ref": "#/components/schemas/OrderAddress" }, "shippingMethod": { - "$ref": "#/components/schemas/ShippingMethod", - "description": "Shipping method used for this delivery" + "$ref": "#/components/schemas/ShippingMethod" }, "positions": { - "description": "Line items included in this delivery", "type": "array", "items": { "$ref": "#/components/schemas/OrderDeliveryPosition" @@ -5944,9 +5449,9 @@ "description": "Unique identity of OrderDeliveryPosition's version." }, "orderDeliveryId": { - "description": "Unique identity of order delivery.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order delivery." }, "orderDeliveryVersionId": { "type": "string", @@ -5954,9 +5459,9 @@ "description": "Unique identity of order delivery's version." }, "orderLineItemId": { - "description": "Unique identity of line items in an order.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of line items in an order." }, "orderLineItemVersionId": { "type": "string", @@ -6031,19 +5536,19 @@ "type": "object" }, "unitPrice": { - "description": "Price of product per item (where, quantity=1).", "type": "number", - "format": "float" + "format": "float", + "description": "Price of product per item (where, quantity=1)." }, "totalPrice": { - "description": "Cost of product based on quantity.", "type": "number", - "format": "float" + "format": "float", + "description": "Cost of product based on quantity." }, "quantity": { - "description": "Number of items of each product.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Number of items of each product." }, "customFields": { "type": "object", @@ -6071,8 +5576,8 @@ "identifier", "quantity", "label", - "children", - "states" + "states", + "children" ], "properties": { "id": { @@ -6086,9 +5591,9 @@ "description": "Unique identity of OrderLineItem's version." }, "orderId": { - "description": "Unique identity of order.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order." }, "orderVersionId": { "type": "string", @@ -6096,9 +5601,9 @@ "description": "Unique identity of order's version." }, "productId": { - "description": "Unique identity of product.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of product." }, "productVersionId": { "type": "string", @@ -6106,7 +5611,6 @@ "description": "Unique identity of products's version." }, "promotionId": { - "description": "Unique identity of product.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -6121,26 +5625,26 @@ "description": "Unique identity of parent's version." }, "coverId": { - "description": "Unique identity of cover image.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of cover image." }, "identifier": { - "description": "It is a unique identity of an item in cart before its converted to an order.", - "type": "string" + "type": "string", + "description": "It is a unique identity of an item in cart before its converted to an order." }, "referencedId": { - "description": "Unique identity of type of entity.", - "type": "string" + "type": "string", + "description": "Unique identity of type of entity." }, "quantity": { - "description": "Number of items of product.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Number of items of product." }, "label": { - "description": "It is a typical product name given to the line item.", - "type": "string" + "type": "string", + "description": "It is a typical product name given to the line item." }, "payload": { "type": "object", @@ -6206,9 +5710,6 @@ }, "readOnly": true }, - "purchasePrices": { - "type": "string" - }, "releaseDate": { "type": "string", "format": "date-time" @@ -6236,29 +5737,33 @@ "taxId": { "type": "string", "pattern": "^[0-9a-f]{32}$" - }, - "productType": { - "$ref": "#/components/schemas/Product/properties/type" } }, "description": "Any data related to product is passed." }, "good": { - "description": "When set to true, it indicates the line item is physical else it is virtual.", - "type": "boolean" + "type": "boolean", + "description": "When set to true, it indicates the line item is physical else it is virtual." }, "removable": { - "description": "Allows the line item to be removable from the cart when set to true.", - "type": "boolean" + "type": "boolean", + "description": "Allows the line item to be removable from the cart when set to true." }, "stackable": { - "description": "Allows to change the quantity of the line item when set to true.", - "type": "boolean" + "type": "boolean", + "description": "Allows to change the quantity of the line item when set to true." }, "position": { - "description": "Position of line items placed in an order.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Position of line items placed in an order." + }, + "states": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Internal field." }, "priceDefinition": { "type": "object", @@ -6266,44 +5771,27 @@ "description": "Description of how the price has to be calculated. For example, in percentage or absolute value, etc." }, "unitPrice": { - "description": "Price of product per item (where, quantity=1).", "type": "number", - "format": "float" + "format": "float", + "description": "Price of product per item (where, quantity=1)." }, "totalPrice": { - "description": "Cost of product based on quantity.", "type": "number", - "format": "float" + "format": "float", + "description": "Cost of product based on quantity." }, "description": { - "description": "Description of line items in an order.", - "type": "string" + "type": "string", + "description": "Description of line items in an order." }, "type": { - "description": "Type refers to the entity type of an item whether it is product or promotion for instance.", "type": "string", - "enum": [ - "product", - "credit", - "custom", - "promotion", - "container", - "discount", - "quantity" - ] + "description": "Type refers to the entity type of an item whether it is product or promotion for instance." }, "customFields": { "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, - "states": { - "type": "array", - "items": { - "type": "string" - }, - "deprecated": true, - "description": "Internal field." - }, "createdAt": { "type": "string", "format": "date-time", @@ -6315,22 +5803,15 @@ "readOnly": true }, "cover": { - "$ref": "#/components/schemas/Media", - "description": "Line item image or thumbnail" - }, - "product": { - "$ref": "#/components/schemas/Product", - "description": "Referenced product if this is a product line item" + "$ref": "#/components/schemas/Media" }, "orderDeliveryPositions": { - "description": "Delivery positions for this line item", "type": "array", "items": { "$ref": "#/components/schemas/OrderDeliveryPosition" } }, "downloads": { - "description": "Digital downloads associated with this line item", "type": "array", "items": { "$ref": "#/components/schemas/OrderLineItemDownload" @@ -6383,9 +5864,9 @@ "description": "Unique identity of Order line item downloaded version." }, "orderLineItemId": { - "description": "Unique identity of Order line item.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of Order line item." }, "orderLineItemVersionId": { "type": "string", @@ -6393,18 +5874,18 @@ "description": "Unique identity of Order line item's version." }, "mediaId": { - "description": "Unique identity of media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of media." }, "position": { - "description": "The order of downloaded digital products displayed in the storefront by mentioning numerical values like 1,2,3, etc.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The order of downloaded digital products displayed in the storefront by mentioning numerical values like 1,2,3, etc." }, "accessGranted": { - "description": "When boolean value is `true`, the digital product is allowed to download.", - "type": "boolean" + "type": "boolean", + "description": "When boolean value is `true`, the digital product is allowed to download." }, "customFields": { "type": "object", @@ -6486,9 +5967,9 @@ "description": "Unique identity of OrderTransaction's version." }, "orderId": { - "description": "Unique identity of an order.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of an order." }, "orderVersionId": { "type": "string", @@ -6496,9 +5977,9 @@ "description": "Unique identity of an order's version." }, "paymentMethodId": { - "description": "Unique identity of payment method.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of payment method." }, "amount": { "required": [ @@ -6564,9 +6045,9 @@ "type": "object" }, "stateId": { - "description": "Unique identity of state.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of state." }, "customFields": { "type": "object", @@ -6583,15 +6064,12 @@ "readOnly": true }, "stateMachineState": { - "$ref": "#/components/schemas/StateMachineState", - "description": "Current payment transaction state (e.g., open, paid, cancelled)" + "$ref": "#/components/schemas/StateMachineState" }, "paymentMethod": { - "$ref": "#/components/schemas/PaymentMethod", - "description": "Payment method used for this transaction" + "$ref": "#/components/schemas/PaymentMethod" }, "captures": { - "description": "Payment captures for this transaction", "type": "array", "items": { "$ref": "#/components/schemas/OrderTransactionCapture" @@ -6653,9 +6131,9 @@ "description": "Unique identity of order transaction capture's version." }, "orderTransactionId": { - "description": "Unique identity of order transaction.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order transaction." }, "orderTransactionVersionId": { "type": "string", @@ -6663,13 +6141,13 @@ "description": "Unique identity of order transaction version." }, "stateId": { - "description": "Unique identity of order state.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order state." }, "externalReference": { - "description": "External payment provider token.", - "type": "string" + "type": "string", + "description": "External payment provider token." }, "amount": { "required": [ @@ -6813,9 +6291,9 @@ "description": "Unique identity of order transaction capture refund's version." }, "captureId": { - "description": "Unique identity of order transaction capture.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order transaction capture." }, "captureVersionId": { "type": "string", @@ -6823,17 +6301,17 @@ "description": "Unique identity of order transaction capture's version." }, "stateId": { - "description": "Unique identity of order state.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order state." }, "externalReference": { - "description": "External payment provider token. ", - "type": "string" + "type": "string", + "description": "External payment provider token. " }, "reason": { - "description": "Reason for refunding the amount for an order.", - "type": "string" + "type": "string", + "description": "Reason for refunding the amount for an order." }, "amount": { "required": [ @@ -6977,9 +6455,9 @@ "description": "Unique identity of order transaction capture refund position's version." }, "refundId": { - "description": "Unique identity of order transaction capture refund.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order transaction capture refund." }, "refundVersionId": { "type": "string", @@ -6987,9 +6465,9 @@ "description": "Unique identity of order transaction capture refund's version." }, "orderLineItemId": { - "description": "Unique identity of order line item.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of order line item." }, "orderLineItemVersionId": { "type": "string", @@ -6997,17 +6475,17 @@ "description": "Unique identity of order line item version." }, "externalReference": { - "description": "External payment provider token.", - "type": "string" + "type": "string", + "description": "External payment provider token." }, "reason": { - "description": "Reason for refunding the amount for an order.", - "type": "string" + "type": "string", + "description": "Reason for refunding the amount for an order." }, "quantity": { - "description": "Quantity of line item to be refunded.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Quantity of line item to be refunded." }, "amount": { "required": [ @@ -7134,7 +6612,6 @@ { "required": [ "id", - "technicalName", "name" ], "properties": { @@ -7153,33 +6630,54 @@ "type": "string" }, "position": { - "description": "The order of the tabs of your defined payment methods in the storefront by entering numerical values like 1,2,3, etc.", "type": "integer", "format": "int64" }, "active": { - "description": "When boolean value is `true`, the payment methods are available for selection in the storefront.", "type": "boolean" }, "afterOrderEnabled": { - "description": "When set to true, customers are redirected to the payment options page to choose a new payment method on order failure.", "type": "boolean" }, "customFields": { "type": "object" }, "mediaId": { - "description": "Unique identity of media.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, - "technicalName": { - "type": "string" + "synchronous": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true + }, + "asynchronous": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true + }, + "prepared": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true + }, + "refundable": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true + }, + "recurring": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true }, "shortName": { "description": "Runtime field, cannot be used as part of the criteria.", "type": "string" }, + "technicalName": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time", @@ -7196,7 +6694,6 @@ "relationships": { "properties": { "media": { - "description": "Payment method logo or icon image", "properties": { "links": { "type": "object", @@ -7237,7 +6734,6 @@ "description": "Added since version: 6.0.0.0", "required": [ "id", - "technicalName", "name" ], "properties": { @@ -7260,34 +6756,59 @@ "description": "A short description about the payment method." }, "position": { - "description": "The order of the tabs of your defined payment methods in the storefront by entering numerical values like 1,2,3, etc.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The order of the tabs of your defined payment methods in the storefront by entering numerical values like 1,2,3, etc." }, "active": { - "description": "When boolean value is `true`, the payment methods are available for selection in the storefront.", - "type": "boolean" + "type": "boolean", + "description": "When boolean value is `true`, the payment methods are available for selection in the storefront." }, "afterOrderEnabled": { - "description": "When set to true, customers are redirected to the payment options page to choose a new payment method on order failure.", - "type": "boolean" + "type": "boolean", + "description": "When set to true, customers are redirected to the payment options page to choose a new payment method on order failure." }, "customFields": { "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, "mediaId": { - "description": "Unique identity of media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of media." }, - "technicalName": { - "type": "string" + "synchronous": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true + }, + "asynchronous": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true + }, + "prepared": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true + }, + "refundable": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true + }, + "recurring": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean", + "readOnly": true }, "shortName": { "description": "Runtime field, cannot be used as part of the criteria.", "type": "string" }, + "technicalName": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time", @@ -7303,8 +6824,7 @@ "description": "Contains the translations of all translated fields." }, "media": { - "$ref": "#/components/schemas/Media", - "description": "Payment method logo or icon image" + "$ref": "#/components/schemas/Media" } }, "type": "object" @@ -7341,54 +6861,15 @@ "description": "Added since version: 6.0.0.0", "allOf": [ { - "$ref": "#/components/schemas/resource", + "$ref": "#/components/schemas/resource" + }, + { "required": [ - "options" - ], - "properties": { - "options": { - "type": "array", - "items": { - "type": "object", - "required": [ - "group", - "option", - "translated" - ], - "properties": { - "group": { - "type": "string" - }, - "option": { - "type": "string" - }, - "translated": { - "type": "object", - "properties": { - "group": { - "type": "string" - }, - "option": { - "type": "string" - } - }, - "required": [ - "group", - "option" - ] - } - } - } - } - } - }, - { - "required": [ - "id", - "taxId", - "productNumber", - "stock", - "name" + "id", + "taxId", + "productNumber", + "stock", + "name" ], "properties": { "id": { @@ -7408,7 +6889,6 @@ "pattern": "^[0-9a-f]{32}$" }, "manufacturerId": { - "description": "Unique identity of the manufacturer.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -7417,17 +6897,14 @@ "pattern": "^[0-9a-f]{32}$" }, "unitId": { - "description": "Unique identity of the unit.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "taxId": { - "description": "Unique identity of tax.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "coverId": { - "description": "Unique identity of a ProductMedia item used as product cover.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -7436,12 +6913,10 @@ "pattern": "^[0-9a-f]{32}$" }, "deliveryTimeId": { - "description": "Unique identity of delivery time.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "canonicalProductId": { - "description": "Unique identity of canonical product.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -7450,7 +6925,6 @@ "pattern": "^[0-9a-f]{32}$" }, "cmsPageId": { - "description": "Unique identity of CMS page.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, @@ -7459,111 +6933,88 @@ "pattern": "^[0-9a-f]{32}$" }, "productNumber": { - "description": "Unique number assigned to individual products. Define rules for automatic assignment of every product creation as per your number range.", "type": "string" }, "restockTime": { - "description": "The restock time in days indicates how long it will take until a sold out item is back in stock.", "type": "integer", "format": "int64" }, "active": { - "description": "When boolean value is `true`, the products are available for selection in the storefront for purchase.", "type": "boolean" }, "available": { - "description": "Indicates weather the product is available or not.", "type": "boolean", "readOnly": true }, "isCloseout": { - "description": "When the value is set to true, the product is hidden when sold out.", "type": "boolean" }, "availableStock": { - "description": "Indicates the number of products still available. This value results from the stock minus the open orders.", "type": "integer", "format": "int64", "readOnly": true }, "stock": { - "description": "Indicates the number of products available.", "type": "integer", "format": "int64" }, "displayGroup": { - "description": "Runtime field, cannot be used as part of the criteria.", "type": "string", "readOnly": true }, "manufacturerNumber": { - "description": "Unique number that describes the manufacturer.", "type": "string" }, "ean": { - "description": "Indicates EAN of the product.", "type": "string" }, "purchaseSteps": { - "description": "Specifies the scales in which the item is to be offered. For example, a scale of 2 means that your customers can purchase 2, 4, 6 products, etc., but not 1, 3 or 5.", "type": "integer", "format": "int64" }, "maxPurchase": { - "description": "Maximum number of items that can be purchased.", "type": "integer", "format": "int64" }, "minPurchase": { - "description": "Minimum number of items that can be purchased.", "type": "integer", "format": "int64" }, "purchaseUnit": { - "description": "Quantity of the item purchased. For example, 500ml, 2kg, etc.", "type": "number", "format": "float" }, "referenceUnit": { - "description": "Price of purchased item calculated as per the reference unit. Say, you bought 500ml of milk and the price is calculated in reference to 1000ml.", "type": "number", "format": "float" }, "shippingFree": { - "description": "Indicates weather the shipping price is free or not.", "type": "boolean" }, "markAsTopseller": { - "description": "Indicates weather the product is top seller or not.", "type": "boolean" }, "weight": { - "description": "The weight of the product.", "type": "number", "format": "float" }, "width": { - "description": "The width of the product.", "type": "number", "format": "float" }, "height": { - "description": "The height of the product.", "type": "number", "format": "float" }, "length": { - "description": "The length of the product.", "type": "number", "format": "float" }, "releaseDate": { - "description": "The release date of a product or product model. This can be used to distinguish the exact variant of a product.", "type": "string", "format": "date-time" }, "ratingAverage": { - "description": "Average of all the ratings.", "type": "number", "format": "float", "readOnly": true @@ -7622,11 +7073,17 @@ "readOnly": true }, "sales": { - "description": "Frequency of the product sales.", "type": "integer", "format": "int64", "readOnly": true }, + "states": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, "metaDescription": { "type": "string" }, @@ -7651,22 +7108,6 @@ "customFields": { "type": "object" }, - "type": { - "description": "The type of the product, e.g., physical or digital.", - "type": "string", - "enum": [ - "physical", - "digital" - ] - }, - "states": { - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true, - "deprecated": true - }, "calculatedPrice": { "type": "object" }, @@ -7692,9 +7133,6 @@ "sortedProperties": { "type": "object" }, - "measurements": { - "type": "object" - }, "createdAt": { "type": "string", "format": "date-time", @@ -7711,7 +7149,6 @@ "relationships": { "properties": { "downloads": { - "description": "Downloadable files associated with the product (e.g., manuals, digital content)", "properties": { "links": { "type": "object", @@ -7743,7 +7180,6 @@ "type": "object" }, "parent": { - "description": "Unique identity of the product.", "properties": { "links": { "type": "object", @@ -7773,7 +7209,6 @@ "type": "object" }, "children": { - "description": "Product variants that inherit from this parent product", "properties": { "links": { "type": "object", @@ -7805,7 +7240,6 @@ "type": "object" }, "deliveryTime": { - "description": "Estimated delivery time for the product", "properties": { "links": { "type": "object", @@ -7835,7 +7269,6 @@ "type": "object" }, "tax": { - "description": "Tax configuration (rate and calculation rules)", "properties": { "links": { "type": "object", @@ -7865,7 +7298,6 @@ "type": "object" }, "manufacturer": { - "description": "Product manufacturer or brand information", "properties": { "links": { "type": "object", @@ -7895,7 +7327,6 @@ "type": "object" }, "unit": { - "description": "Product unit of measure (e.g., piece, liter, kg)", "properties": { "links": { "type": "object", @@ -7925,7 +7356,6 @@ "type": "object" }, "cover": { - "description": "Main product image displayed in listings and detail pages", "properties": { "links": { "type": "object", @@ -7955,7 +7385,6 @@ "type": "object" }, "cmsPage": { - "description": "Custom CMS page layout for the product detail page", "properties": { "links": { "type": "object", @@ -7985,7 +7414,6 @@ "type": "object" }, "canonicalProduct": { - "description": "Canonical product reference for variant consolidation and SEO purposes", "properties": { "links": { "type": "object", @@ -8015,7 +7443,6 @@ "type": "object" }, "media": { - "description": "Product images and media gallery", "properties": { "links": { "type": "object", @@ -8047,7 +7474,6 @@ "type": "object" }, "crossSellings": { - "description": "Cross-selling configurations (related products, accessories, similar items)", "properties": { "links": { "type": "object", @@ -8079,7 +7505,6 @@ "type": "object" }, "configuratorSettings": { - "description": "Variant configurator settings defining available options for product variants", "properties": { "links": { "type": "object", @@ -8111,7 +7536,6 @@ "type": "object" }, "productReviews": { - "description": "Customer reviews and ratings for the product", "properties": { "links": { "type": "object", @@ -8143,7 +7567,6 @@ "type": "object" }, "mainCategories": { - "description": "Primary category assignments per sales channel for SEO and navigation", "properties": { "links": { "type": "object", @@ -8175,7 +7598,6 @@ "type": "object" }, "seoUrls": { - "description": "SEO-friendly URLs for the product across different sales channels", "properties": { "links": { "type": "object", @@ -8207,7 +7629,6 @@ "type": "object" }, "options": { - "description": "Product variant options (e.g., size, color) that define different variants", "properties": { "links": { "type": "object", @@ -8239,7 +7660,6 @@ "type": "object" }, "properties": { - "description": "Product properties and characteristics for filtering", "properties": { "links": { "type": "object", @@ -8271,7 +7691,6 @@ "type": "object" }, "categories": { - "description": "Categories this product is assigned to", "properties": { "links": { "type": "object", @@ -8303,7 +7722,6 @@ "type": "object" }, "streams": { - "description": "Dynamic product streams this product belongs to based on defined filters", "properties": { "links": { "type": "object", @@ -8335,7 +7753,6 @@ "type": "object" }, "categoriesRo": { - "description": "Read-only category tree including all parent categories for optimized queries", "properties": { "links": { "type": "object", @@ -8367,7 +7784,6 @@ "type": "object" }, "tags": { - "description": "Tags for organizing and filtering products", "properties": { "links": { "type": "object", @@ -8399,7 +7815,6 @@ "type": "object" }, "seoCategory": { - "description": "Main category used for SEO URL generation in the current sales channel", "properties": { "links": { "type": "object", @@ -8443,8 +7858,6 @@ "calculatedPrice", "calculatedPrices", "seoCategory", - "type", - "translated", "id", "taxId", "productNumber", @@ -8473,9 +7886,9 @@ "description": "Unique identity of the parent product's version." }, "manufacturerId": { - "description": "Unique identity of the manufacturer.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the manufacturer." }, "productManufacturerVersionId": { "type": "string", @@ -8483,19 +7896,19 @@ "description": "Unique identity of the product's manufacturer version." }, "unitId": { - "description": "Unique identity of the unit.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the unit." }, "taxId": { - "description": "Unique identifier of tax.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identifier of tax." }, "coverId": { - "description": "Unique identifier of a ProductMedia item used as product cover.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identifier of a ProductMedia item used as product cover." }, "productMediaVersionId": { "type": "string", @@ -8503,23 +7916,23 @@ "description": "Unique identifier of product's media version." }, "deliveryTimeId": { - "description": "Unique identifier of delivery time.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identifier of delivery time." }, "canonicalProductId": { - "description": "Unique identifier of canonical product.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identifier of canonical product." }, "canonicalProductVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, "cmsPageId": { - "description": "Unique identifier of CMS page.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identifier of CMS page." }, "cmsPageVersionId": { "type": "string", @@ -8527,114 +7940,114 @@ "description": "Unique identifier of CMS page's version." }, "productNumber": { - "description": "Unique number assigned to individual products. Define rules for automatic assignment of every product creation as per your number range.", - "type": "string" + "type": "string", + "description": "Unique number assigned to individual products. Define rules for automatic assignment of every product creation as per your number range." }, "restockTime": { - "description": "The restock time in days indicates how long it will take until a sold out item is back in stock.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The restock time in days indicates how long it will take until a sold out item is back in stock." }, "active": { - "description": "When boolean value is `true`, the products are available for selection in the storefront for purchase.", - "type": "boolean" + "type": "boolean", + "description": "When boolean value is `true`, the products are available for selection in the storefront for purchase." }, "available": { - "description": "Indicates weather the product is available or not.", "type": "boolean", - "readOnly": true + "readOnly": true, + "description": "Indicates weather the product is available or not." }, "isCloseout": { - "description": "When the value is set to true, the product is hidden when sold out.", - "type": "boolean" + "type": "boolean", + "description": "When the value is set to true, the product is hidden when sold out." }, "availableStock": { - "description": "Indicates the number of products still available. This value results from the stock minus the open orders.", "type": "integer", "format": "int64", - "readOnly": true + "readOnly": true, + "description": "Indicates the number of products still available. This value results from the stock minus the open orders." }, "stock": { - "description": "Indicate the number of product/s currently in stock. As soon as the order status of an order is set to completed, the stock is reduced.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Indicate the number of product/s currently in stock. As soon as the order status of an order is set to completed, the stock is reduced." }, "displayGroup": { - "description": "Runtime field, cannot be used as part of the criteria.", "type": "string", - "readOnly": true + "readOnly": true, + "description": "Runtime field, cannot be used as part of the criteria." }, "manufacturerNumber": { - "description": "Unique number that describes the manufacturer.", - "type": "string" + "type": "string", + "description": "Unique number that describes the manufacturer." }, "ean": { - "description": "Indicates EAN of the product.", - "type": "string" + "type": "string", + "description": "Indicates EAN of the product." }, "purchaseSteps": { - "description": "Specifies the scales in which the item is to be offered. For example, a scale of 2 means that your customers can purchase 2, 4, 6 products, etc., but not 1, 3 or 5.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Specifies the scales in which the item is to be offered. For example, a scale of 2 means that your customers can purchase 2, 4, 6 products, etc., but not 1, 3 or 5." }, "maxPurchase": { - "description": "Maximum number of items that can be purchased.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Maximum number of items that can be purchased." }, "minPurchase": { - "description": "Minimum number of items that can be purchased.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Minimum number of items that can be purchased." }, "purchaseUnit": { - "description": "Quantity of the item purchased. For example, 500ml, 2kg, etc.", "type": "number", - "format": "float" + "format": "float", + "description": "Quantity of the item purchased. For example, 500ml, 2kg, etc." }, "referenceUnit": { - "description": "Price of purchased item calculated as per the reference unit. Say, you bought 500ml of milk and the price is calculated in reference to 1000ml. ", "type": "number", - "format": "float" + "format": "float", + "description": "Price of purchased item calculated as per the reference unit. Say, you bought 500ml of milk and the price is calculated in reference to 1000ml. " }, "shippingFree": { - "description": "Indicates weather the shipping price is free or not.", - "type": "boolean" + "type": "boolean", + "description": "Indicates weather the shipping price is free or not." }, "markAsTopseller": { - "description": "Indicates weather the product is top seller or not.", - "type": "boolean" + "type": "boolean", + "description": "Indicates weather the product is top seller or not." }, "weight": { - "description": "The weight of the product.", "type": "number", - "format": "float" + "format": "float", + "description": "The weight of the product." }, "width": { - "description": "The width of the product.", "type": "number", - "format": "float" + "format": "float", + "description": "The width of the product." }, "height": { - "description": "The height of the product.", "type": "number", - "format": "float" + "format": "float", + "description": "The height of the product." }, "length": { - "description": "The length of the product.", "type": "number", - "format": "float" + "format": "float", + "description": "The length of the product." }, "releaseDate": { - "description": "The release date of a product or product model. This can be used to distinguish the exact variant of a product.", "type": "string", - "format": "date-time" + "format": "date-time", + "description": "The release date of a product or product model. This can be used to distinguish the exact variant of a product." }, "ratingAverage": { - "description": "Runtime field, cannot be used as part of the criteria.", "type": "number", "format": "float", - "readOnly": true + "readOnly": true, + "description": "Runtime field, cannot be used as part of the criteria." }, "categoryTree": { "type": "array", @@ -8696,10 +8109,18 @@ "description": "Runtime field, cannot be used as part of the criteria." }, "sales": { - "description": "Runtime field, cannot be used as part of the criteria.", "type": "integer", "format": "int64", - "readOnly": true + "readOnly": true, + "description": "Runtime field, cannot be used as part of the criteria." + }, + "states": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true, + "description": "Internal field." }, "metaDescription": { "type": "string", @@ -8733,23 +8154,6 @@ "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, - "type": { - "description": "The type of the product, e.g., physical or digital.", - "type": "string", - "enum": [ - "physical", - "digital" - ] - }, - "states": { - "type": "array", - "items": { - "type": "string" - }, - "readOnly": true, - "deprecated": true, - "description": "Internal field." - }, "calculatedPrice": { "type": "object", "$ref": "#/components/schemas/CalculatedPrice", @@ -8775,39 +8179,43 @@ }, "calculatedCheapestPrice": { "type": "object", - "properties": { - "unitPrice": { - "type": "number" - }, - "quantity": { - "type": "number" - }, - "totalPrice": { - "type": "number" + "allOf": [ + { + "$ref": "#/components/schemas/CalculatedPrice" }, - "referencePrice": { - "oneOf": [ - { - "$ref": "#/components/schemas/ReferencePrice" + { + "type": "object", + "properties": { + "unitPrice": { + "type": "number" }, - { - "type": "null" - } - ] - }, - "listPrice": { - "oneOf": [ - { - "$ref": "#/components/schemas/ListPrice" + "quantity": { + "type": "number" }, - { - "type": "null" - } - ] - }, - "regulationPrice": { - "oneOf": [ - { + "totalPrice": { + "type": "number" + }, + "referencePrice": { + "oneOf": [ + { + "$ref": "#/components/schemas/CartPriceReference" + }, + { + "type": "null" + } + ] + }, + "listPrice": { + "oneOf": [ + { + "$ref": "#/components/schemas/CartListPrice" + }, + { + "type": "null" + } + ] + }, + "regulationPrice": { "type": "object", "properties": { "price": { @@ -8816,34 +8224,26 @@ }, "required": [ "price" - ] + ], + "nullable": true }, - { - "type": "null" - } - ] - }, - "hasRange": { - "type": "boolean" - }, - "variantId": { - "oneOf": [ - { + "hasRange": { + "type": "boolean" + }, + "variantId": { "type": "string", - "format": "" + "format": "", + "nullable": true }, - { - "type": "null" + "apiAlias": { + "type": "string", + "enum": [ + "calculated_cheapest_price" + ] } - ] - }, - "apiAlias": { - "type": "string", - "enum": [ - "calculated_cheapest_price" - ] + } } - }, + ], "description": "Runtime field, cannot be used as part of the criteria." }, "isNew": { @@ -8853,10 +8253,6 @@ "sortedProperties": { "type": "object" }, - "measurements": { - "type": "object", - "$ref": "#/components/schemas/ProductMeasurements" - }, "createdAt": { "type": "string", "format": "date-time", @@ -8872,18 +8268,15 @@ "description": "Contains the translations of all translated fields." }, "downloads": { - "description": "Downloadable files associated with the product (e.g., manuals, digital content)", "type": "array", "items": { "$ref": "#/components/schemas/ProductDownload" } }, "parent": { - "$ref": "#/components/schemas/Product", - "description": "Unique identity of the product." + "$ref": "#/components/schemas/Product" }, "children": { - "description": "Product variants that inherit from this parent product", "type": "array", "items": { "$ref": "#/components/schemas/Product" @@ -8894,116 +8287,97 @@ "description": "Time taken for the product to reach the customer. If a delivery time is defined in the product, it overwrites the delivery time of a shipping method." }, "tax": { - "$ref": "#/components/schemas/Tax", - "description": "Tax configuration (rate and calculation rules)" + "$ref": "#/components/schemas/Tax" }, "manufacturer": { - "$ref": "#/components/schemas/ProductManufacturer", - "description": "Product manufacturer or brand information" + "$ref": "#/components/schemas/ProductManufacturer" }, "unit": { - "$ref": "#/components/schemas/Unit", - "description": "Product unit of measure (e.g., piece, liter, kg)" + "$ref": "#/components/schemas/Unit" }, "cover": { - "$ref": "#/components/schemas/ProductMedia", - "description": "Main product image displayed in listings and detail pages" + "$ref": "#/components/schemas/ProductMedia" }, "cmsPage": { - "$ref": "#/components/schemas/CmsPage", - "description": "Custom CMS page layout for the product detail page" + "$ref": "#/components/schemas/CmsPage" }, "canonicalProduct": { - "$ref": "#/components/schemas/Product", - "description": "Canonical product reference for variant consolidation and SEO purposes" + "$ref": "#/components/schemas/Product" }, "media": { - "description": "Product images and media gallery", "type": "array", "items": { "$ref": "#/components/schemas/ProductMedia" } }, "crossSellings": { - "description": "Cross-selling configurations (related products, accessories, similar items)", "type": "array", "items": { "$ref": "#/components/schemas/ProductCrossSelling" } }, "configuratorSettings": { - "description": "Variant configurator settings defining available options for product variants", "type": "array", "items": { "$ref": "#/components/schemas/ProductConfiguratorSetting" } }, "productReviews": { - "description": "Customer reviews and ratings for the product", "type": "array", "items": { "$ref": "#/components/schemas/ProductReview" } }, "mainCategories": { - "description": "Primary category assignments per sales channel for SEO and navigation", "type": "array", "items": { "$ref": "#/components/schemas/MainCategory" } }, "seoUrls": { - "description": "SEO-friendly URLs for the product across different sales channels", "type": "array", "items": { "$ref": "#/components/schemas/SeoUrl" } }, "options": { - "description": "Product variant options (e.g., size, color) that define different variants", "type": "array", "items": { "$ref": "#/components/schemas/PropertyGroupOption" } }, "properties": { - "description": "Product properties and characteristics for filtering", "type": "array", "items": { "$ref": "#/components/schemas/PropertyGroupOption" } }, "categories": { - "description": "Categories this product is assigned to", "type": "array", "items": { "$ref": "#/components/schemas/Category" } }, "streams": { - "description": "Dynamic product streams this product belongs to based on defined filters", "type": "array", "items": { "$ref": "#/components/schemas/ProductStream" } }, "categoriesRo": { - "description": "Read-only category tree including all parent categories for optimized queries", "type": "array", "items": { "$ref": "#/components/schemas/Category" } }, "tags": { - "description": "Tags for organizing and filtering products", "type": "array", "items": { "$ref": "#/components/schemas/Tag" } }, "seoCategory": { - "$ref": "#/components/schemas/Category", - "description": "Main category used for SEO URL generation in the current sales channel" + "$ref": "#/components/schemas/Category" }, "apiAlias": { "type": "string", @@ -9012,19 +8386,13 @@ ] }, "variantListingConfig": { - "oneOf": [ - { - "type": "object", - "properties": { - "displayParent": { - "type": "boolean" - } - } - }, - { - "type": "null" + "nullable": true, + "type": "object", + "properties": { + "displayParent": { + "type": "boolean" } - ] + } }, "mainVariantId": { "description": "Unique identity of main variant." @@ -9054,9 +8422,9 @@ "description": "Unique identity of Product configurator setting version." }, "productId": { - "description": "Unique identity of product.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of product." }, "productVersionId": { "type": "string", @@ -9064,19 +8432,19 @@ "description": "Unique identity of product version." }, "mediaId": { - "description": "Unique identity of media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of media." }, "optionId": { - "description": "Unique identity of option.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of option." }, "position": { - "description": "The order of the tabs of your defined product configuration settings in the storefront by entering numerical values like 1,2,3, etc.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The order of the tabs of your defined product configuration settings in the storefront by entering numerical values like 1,2,3, etc." }, "customFields": { "type": "object", @@ -9118,30 +8486,30 @@ "description": "Name defined for Product cross selling." }, "position": { - "description": "The order of the tabs of your defined cross-selling actions in the storefront by entering numerical values like 1,2,3, etc.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The order of the tabs of your defined cross-selling actions in the storefront by entering numerical values like 1,2,3, etc." }, "sortBy": { - "description": "To sort the display of products by name, price or publication (descending, ascending) date.", - "type": "string" + "type": "string", + "description": "To sort the display of products by name, price or publication (descending, ascending) date." }, "sortDirection": { - "description": "To sort the display of products by ascending or descending order.", - "type": "string" + "type": "string", + "description": "To sort the display of products by ascending or descending order." }, "type": { - "description": "Type of product assignment for cross-selling. It can either be Dynamic product group or Manual assignment.", - "type": "string" + "type": "string", + "description": "Type of product assignment for cross-selling. It can either be Dynamic product group or Manual assignment." }, "active": { - "description": "When set to active, the cross-selling feature is enabled.", - "type": "boolean" + "type": "boolean", + "description": "When set to active, the cross-selling feature is enabled." }, "limit": { - "description": "The maximum number of products to be displayed in cross-selling on the item detail page of your item.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The maximum number of products to be displayed in cross-selling on the item detail page of your item." }, "createdAt": { "type": "string", @@ -9200,9 +8568,9 @@ "description": "Unique identity of downloaded product's version." }, "productId": { - "description": "Unique identity of Product.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of Product." }, "productVersionId": { "type": "string", @@ -9210,14 +8578,14 @@ "description": "Unique identity of Product version." }, "mediaId": { - "description": "Unique identity of media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of media." }, "position": { - "description": "The order in which the digital products are downloaded, like 1,2,3, etc.to adjust their order of display.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The order in which the digital products are downloaded, like 1,2,3, etc.to adjust their order of display." }, "customFields": { "type": "object", @@ -9304,13 +8672,13 @@ "description": "Unique identity of product keyword." }, "languageId": { - "description": "Unique identity of the language.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the language." }, "keyword": { - "description": "The keywords that help to search the product.", - "type": "string" + "type": "string", + "description": "The keywords that help to search the product." } }, "type": "object" @@ -9333,9 +8701,9 @@ "description": "Unique identity of the ProductManufacturer's version." }, "mediaId": { - "description": "Unique identity of the media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the media." }, "link": { "type": "string", @@ -9376,7 +8744,6 @@ "ProductMedia": { "description": "Added since version: 6.0.0.0", "required": [ - "media", "id", "productId", "mediaId" @@ -9393,9 +8760,9 @@ "description": "Unique identity of the ProductMedia version." }, "productId": { - "description": "Unique identity of the product.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the product." }, "productVersionId": { "type": "string", @@ -9403,14 +8770,14 @@ "description": "Unique identity of the product's version." }, "mediaId": { - "description": "Unique identity of the media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the media." }, "position": { - "description": "The order of the images to be displayed for a product.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The order of the images to be displayed for a product." }, "customFields": { "type": "object", @@ -9428,6 +8795,9 @@ }, "media": { "$ref": "#/components/schemas/Media" + }, + "thumbnails": { + "$ref": "#/components/schemas/MediaThumbnail" } }, "type": "object" @@ -9456,6 +8826,7 @@ "ProductReview": { "description": "Added since version: 6.0.0.0", "required": [ + "points", "id", "productId", "salesChannelId", @@ -9470,9 +8841,9 @@ "description": "Unique identity of the product's review." }, "productId": { - "description": "Unique identity of the product.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the product." }, "productVersionId": { "type": "string", @@ -9480,39 +8851,35 @@ "description": "Unique identity of the product's version." }, "salesChannelId": { - "description": "Unique identity of the sales channel.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the sales channel." }, "languageId": { - "description": "Unique identity of the language.", "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "externalUser": { - "description": "External user name.", - "type": "string" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of the language." }, "title": { - "description": "Title of product review.", - "type": "string" + "type": "string", + "description": "Title of product review." }, "content": { - "description": "Short description or subject of the project review.", - "type": "string" + "type": "string", + "description": "Short description or subject of the project review." }, "points": { - "description": "A floating point number given to rate a product.", "type": "number", - "format": "float" + "format": "float", + "description": "A floating point number given to rate a product." }, "status": { - "description": "When status is set, the rating is made visible.", - "type": "boolean" + "type": "boolean", + "description": "When status is set, the rating is made visible." }, "comment": { - "description": "Detailed review about the product.", - "type": "string" + "type": "string", + "description": "Detailed review about the product." }, "customFields": { "type": "object", @@ -9661,10 +9028,6 @@ "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, - "internal": { - "description": "When the boolean value is `true` indicating that it is for internal use only and will not appear in product stream listings.", - "type": "boolean" - }, "createdAt": { "type": "string", "format": "date-time", @@ -9882,20 +9245,20 @@ "description": "Description on property group." }, "displayType": { - "description": "Property groups can be displayed in the form of text, image, dropdown or color.", - "type": "string" + "type": "string", + "description": "Property groups can be displayed in the form of text, image, dropdown or color." }, "sortingType": { - "description": "Sorting the property group by name or position.", - "type": "string" + "type": "string", + "description": "Sorting the property group by name or position." }, "filterable": { - "description": "When set to true, the property will be displayed in the product filter of product lists.", - "type": "boolean" + "type": "boolean", + "description": "When set to true, the property will be displayed in the product filter of product lists." }, "visibleOnProductDetailPage": { - "description": "When set to true, the property groups are displayed on product detail page.", - "type": "boolean" + "type": "boolean", + "description": "When set to true, the property groups are displayed on product detail page." }, "position": { "type": "integer", @@ -9934,7 +9297,6 @@ "required": [ "group", "option", - "translated", "id", "groupId", "name" @@ -9946,9 +9308,9 @@ "description": "Unique identity of property group option." }, "groupId": { - "description": "Unique identity of property group.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of property group." }, "name": { "type": "string", @@ -9960,17 +9322,13 @@ "description": "The order of the tabs of your defined property group options. Enter numerical values like 1,2,3, etc.to adjust their order of display." }, "colorHexCode": { - "description": "Property group options can be displayed in the form of color. For example: #98e3f5ff.", - "type": "string" + "type": "string", + "description": "Property group options can be displayed in the form of color. For example: #98e3f5ff." }, "mediaId": { - "description": "Unique identity of media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "combinable": { - "description": "Runtime field, cannot be used as part of the criteria.", - "type": "boolean" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of media." }, "customFields": { "type": "object", @@ -10014,12 +9372,12 @@ "description": "Unique identity of rule." }, "name": { - "description": "Name of the rule defined.", - "type": "string" + "type": "string", + "description": "Name of the rule defined." }, "description": { - "description": "Description of the rule.", - "type": "string" + "type": "string", + "description": "Description of the rule." }, "customFields": { "type": "object", @@ -10083,39 +9441,39 @@ "description": "Unique identity of sales channel." }, "languageId": { - "description": "Unique identity of language used.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of language used." }, "customerGroupId": { - "description": "Unique identity of customer group.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of customer group." }, "currencyId": { - "description": "Unique identity of currency used.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of currency used." }, "paymentMethodId": { - "description": "Unique identity of payment method used.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of payment method used." }, "shippingMethodId": { - "description": "Unique identity of shipping method.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of shipping method." }, "countryId": { - "description": "Unique identity of country.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of country." }, "navigationCategoryId": { - "description": "Unique identity of navigation category.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of navigation category." }, "navigationCategoryVersionId": { "type": "string", @@ -10123,14 +9481,14 @@ "description": "Unique identity of navigation category's version." }, "navigationCategoryDepth": { - "description": "It determines the number of levels of subcategories in the storefront category menu.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "It determines the number of levels of subcategories in the storefront category menu." }, "footerCategoryId": { - "description": "Unique identity of footer category.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of footer category." }, "footerCategoryVersionId": { "type": "string", @@ -10138,9 +9496,9 @@ "description": "Unique identity of footer category's version." }, "serviceCategoryId": { - "description": "Unique identity of service category.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of service category." }, "serviceCategoryVersionId": { "type": "string", @@ -10148,44 +9506,41 @@ "description": "Unique identity of service category's version." }, "mailHeaderFooterId": { - "description": "Unique identity of mail header and footer.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of mail header and footer." }, "hreflangDefaultDomainId": { - "description": "Unique identity of hreflangDefaultDomain.", "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "measurementUnits": { - "$ref": "#/components/schemas/MeasurementUnits" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of hreflangDefaultDomain." }, "name": { "type": "string", "description": "Name of the sales channel." }, "shortName": { - "description": "A short name for sales channel.", - "type": "string" + "type": "string", + "description": "A short name for sales channel." }, "taxCalculationType": { - "description": "Tax calculation types are `horizontal` and `vertical`.", - "type": "string" + "type": "string", + "description": "Tax calculation types are `horizontal` and `vertical`." }, "configuration": { "type": "object" }, "active": { - "description": "When boolean value is `true`, the sales channel is enabled.", - "type": "boolean" + "type": "boolean", + "description": "When boolean value is `true`, the sales channel is enabled." }, "hreflangActive": { - "description": "When set to true, the sales channel pages are available in different languages.", - "type": "boolean" + "type": "boolean", + "description": "When set to true, the sales channel pages are available in different languages." }, "maintenance": { - "description": "When `true`, it indicates that the sales channel is undergoing maintenance, and shopping is temporarily unavailable during this period.", - "type": "boolean" + "type": "boolean", + "description": "When `true`, it indicates that the sales channel is undergoing maintenance, and shopping is temporarily unavailable during this period." }, "customFields": { "type": "object", @@ -10206,43 +9561,34 @@ "description": "Contains the translations of all translated fields." }, "language": { - "$ref": "#/components/schemas/Language", - "description": "Default language for the sales channel" + "$ref": "#/components/schemas/Language" }, "currency": { - "$ref": "#/components/schemas/Currency", - "description": "Default currency for the sales channel" + "$ref": "#/components/schemas/Currency" }, "paymentMethod": { - "$ref": "#/components/schemas/PaymentMethod", - "description": "Default payment method for the sales channel" + "$ref": "#/components/schemas/PaymentMethod" }, "shippingMethod": { - "$ref": "#/components/schemas/ShippingMethod", - "description": "Default shipping method for the sales channel" + "$ref": "#/components/schemas/ShippingMethod" }, "country": { - "$ref": "#/components/schemas/Country", - "description": "Default country for the sales channel" + "$ref": "#/components/schemas/Country" }, "domains": { - "description": "Domain URLs configured for the sales channel", "type": "array", "items": { "$ref": "#/components/schemas/SalesChannelDomain" } }, "navigationCategory": { - "$ref": "#/components/schemas/Category", - "description": "Root category for navigation menu" + "$ref": "#/components/schemas/Category" }, "footerCategory": { - "$ref": "#/components/schemas/Category", - "description": "Root category for footer navigation" + "$ref": "#/components/schemas/Category" }, "serviceCategory": { - "$ref": "#/components/schemas/Category", - "description": "Root category for service pages" + "$ref": "#/components/schemas/Category" }, "hreflangDefaultDomain": { "$ref": "#/components/schemas/SalesChannelDomain" @@ -10288,35 +9634,32 @@ "description": "Unique identity of sales channel domain." }, "url": { - "description": "URL of the sales channel domain.", - "type": "string" + "type": "string", + "description": "URL of the sales channel domain." }, "salesChannelId": { - "description": "Unique identity of sales channel.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of sales channel." }, "languageId": { - "description": "Unique identity of language used.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of language used." }, "currencyId": { - "description": "Unique identity of currency.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of currency." }, "snippetSetId": { - "description": "Unique identity of snippet set.", "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "measurementUnits": { - "$ref": "#/components/schemas/MeasurementUnits" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of snippet set." }, "hreflangUseOnlyLocale": { - "description": "This is used to toggle the language configurations, say between DE and DE-DE for instance.", - "type": "boolean" + "type": "boolean", + "description": "This is used to toggle the language configurations, say between DE and DE-DE for instance." }, "customFields": { "type": "object", @@ -10391,7 +9734,6 @@ "pattern": "^[0-9a-f]{32}$" }, "salutationKey": { - "description": "Technical name given to salutation. For example: mr", "type": "string" }, "displayName": { @@ -10436,8 +9778,8 @@ "description": "Unique identity of salutation." }, "salutationKey": { - "description": "Technical name given to salutation. For example: mr", - "type": "string" + "type": "string", + "description": "Technical name given to salutation. For example: mr" }, "displayName": { "type": "string", @@ -10531,47 +9873,33 @@ "pattern": "^[0-9a-f]{32}$" }, "salesChannelId": { - "description": "Unique identity of sales channel.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "languageId": { - "description": "Unique identity of language.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "foreignKey": { - "description": "The key that references to product or category entity ID.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "routeName": { - "description": "A destination routeName that has been registered somewhere in the app's router. For example: \\\\\"frontend.detail.page\\\\\"", - "type": "string", - "enum": [ - "frontend.detail.page", - "frontend.navigation.page", - "frontend.landing.page" - ] + "type": "string" }, "pathInfo": { - "description": "Path to product URL. For example: \\\\\"/detail/bbf36734504741c79a3bbe3795b91564\\\\\"", "type": "string" }, "seoPathInfo": { - "description": "Seo path to product. For example: \\\\\"Pepper-white-ground-pearl/SW10098\\\\\"", "type": "string" }, "isCanonical": { - "description": "When set to true, search redirects to the main URL.", "type": "boolean" }, "isModified": { - "description": "When boolean value is `true`, the seo url is changed.", "type": "boolean" }, "isDeleted": { - "description": "When set to true, the URL is deleted and cannot be used any more but it is still available on table and can be restored later.", "type": "boolean" }, "error": { @@ -10617,48 +9945,48 @@ "description": "Unique identity of Seo Url." }, "salesChannelId": { - "description": "Unique identity of sales channel.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of sales channel." }, "languageId": { - "description": "Unique identity of language.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of language." }, "foreignKey": { - "description": "The key that references to product or category entity ID.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "The key that references to product or category entity ID." }, "routeName": { - "description": "A destination routeName that has been registered somewhere in the app's router. For example: \"frontend.detail.page\"", "type": "string", "enum": [ - "frontend.detail.page", "frontend.navigation.page", - "frontend.landing.page" - ] + "frontend.landing.page", + "frontend.detail.page" + ], + "description": "A destination routeName that has been registered somewhere in the app's router. For example: \"frontend.detail.page\"" }, "pathInfo": { - "description": "Path to product URL. For example: \"/detail/bbf36734504741c79a3bbe3795b91564\"", - "type": "string" + "type": "string", + "description": "Path to product URL. For example: \"/detail/bbf36734504741c79a3bbe3795b91564\"" }, "seoPathInfo": { - "description": "Seo path to product. For example: \"Pepper-white-ground-pearl/SW10098\"", - "type": "string" + "type": "string", + "description": "Seo path to product. For example: \"Pepper-white-ground-pearl/SW10098\"" }, "isCanonical": { - "description": "When set to true, search redirects to the main URL.", - "type": "boolean" + "type": "boolean", + "description": "When set to true, search redirects to the main URL." }, "isModified": { - "description": "When boolean value is `true`, the seo url is changed.", - "type": "boolean" + "type": "boolean", + "description": "When boolean value is `true`, the seo url is changed." }, "isDeleted": { - "description": "When set to true, the URL is deleted and cannot be used any more but it is still available on table and can be restored later.", - "type": "boolean" + "type": "boolean", + "description": "When set to true, the URL is deleted and cannot be used any more but it is still available on table and can be restored later." }, "error": { "description": "Runtime field, cannot be used as part of the criteria.", @@ -10683,7 +10011,8 @@ "readOnly": true } }, - "type": "object" + "type": "object", + "title": "SeoUrlEntity" }, "SeoUrlTemplate": { "description": "Added since version: 6.0.0.0", @@ -10694,13 +10023,13 @@ "description": "Unique identity of Seo Url template." }, "salesChannelId": { - "description": "Unique identity of sales channel.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of sales channel." }, "isValid": { - "description": "Created SEO URL template can be made usable by setting `isValid` to true.", - "type": "boolean" + "type": "boolean", + "description": "Created SEO URL template can be made usable by setting `isValid` to true." }, "customFields": { "type": "object", @@ -10728,7 +10057,6 @@ { "required": [ "id", - "technicalName", "deliveryTimeId", "name" ], @@ -10740,15 +10068,10 @@ "name": { "type": "string" }, - "technicalName": { - "type": "string" - }, "active": { - "description": "When boolean value is `true`, the shipping methods are available for selection in the storefront.", "type": "boolean" }, "position": { - "description": "The order of the tabs of your defined shipping methods in the storefront by entering numerical values like 1,2,3, etc.", "type": "integer", "format": "int64" }, @@ -10756,17 +10079,14 @@ "type": "object" }, "mediaId": { - "description": "Unique identity of media.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "deliveryTimeId": { - "description": "Unique identity of deliveryTime.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, "taxType": { - "description": "Refers `Free`, `Net` or `Gross` type of taxes.", "type": "string" }, "description": { @@ -10775,6 +10095,9 @@ "trackingUrl": { "type": "string" }, + "technicalName": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time", @@ -10791,7 +10114,6 @@ "relationships": { "properties": { "deliveryTime": { - "description": "Estimated delivery time information", "properties": { "links": { "type": "object", @@ -10821,7 +10143,6 @@ "type": "object" }, "availabilityRule": { - "description": "Rule defining when this shipping method is available", "properties": { "links": { "type": "object", @@ -10851,7 +10172,6 @@ "type": "object" }, "prices": { - "description": "Shipping prices based on weight, volume, or cart value", "properties": { "links": { "type": "object", @@ -10883,7 +10203,6 @@ "type": "object" }, "media": { - "description": "Shipping method logo or carrier image", "properties": { "links": { "type": "object", @@ -10913,7 +10232,6 @@ "type": "object" }, "tags": { - "description": "Tags for organizing shipping methods", "properties": { "links": { "type": "object", @@ -10945,7 +10263,6 @@ "type": "object" }, "tax": { - "description": "Tax configuration for shipping costs", "properties": { "links": { "type": "object", @@ -10986,7 +10303,6 @@ "description": "Added since version: 6.0.0.0", "required": [ "id", - "technicalName", "deliveryTimeId", "name" ], @@ -11000,35 +10316,32 @@ "type": "string", "description": "Name of the shipping method." }, - "technicalName": { - "type": "string" - }, "active": { - "description": "When boolean value is `true`, the shipping methods are available for selection in the storefront.", - "type": "boolean" + "type": "boolean", + "description": "When boolean value is `true`, the shipping methods are available for selection in the storefront." }, "position": { - "description": "The order of the tabs of your defined shipping methods in the storefront by entering numerical values like 1,2,3, etc.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "The order of the tabs of your defined shipping methods in the storefront by entering numerical values like 1,2,3, etc." }, "customFields": { "type": "object", "description": "Additional fields that offer a possibility to add own fields for the different program-areas." }, "mediaId": { - "description": "Unique identity of media.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of media." }, "deliveryTimeId": { - "description": "Unique identity of deliveryTime.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of deliveryTime." }, "taxType": { - "description": "Refers `Free`, `Net` or `Gross` type of taxes.", - "type": "string" + "type": "string", + "description": "Refers `Free`, `Net` or `Gross` type of taxes." }, "description": { "type": "string", @@ -11038,6 +10351,9 @@ "type": "string", "description": "This URL allows to track packages." }, + "technicalName": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time", @@ -11053,34 +10369,28 @@ "description": "Contains the translations of all translated fields." }, "deliveryTime": { - "$ref": "#/components/schemas/DeliveryTime", - "description": "Estimated delivery time information" + "$ref": "#/components/schemas/DeliveryTime" }, "availabilityRule": { - "$ref": "#/components/schemas/Rule", - "description": "Rule defining when this shipping method is available" + "$ref": "#/components/schemas/Rule" }, "prices": { - "description": "Shipping prices based on weight, volume, or cart value", "type": "array", "items": { "$ref": "#/components/schemas/ShippingMethodPrice" } }, "media": { - "$ref": "#/components/schemas/Media", - "description": "Shipping method logo or carrier image" + "$ref": "#/components/schemas/Media" }, "tags": { - "description": "Tags for organizing shipping methods", "type": "array", "items": { "$ref": "#/components/schemas/Tag" } }, "tax": { - "$ref": "#/components/schemas/Tax", - "description": "Tax configuration for shipping costs" + "$ref": "#/components/schemas/Tax" } }, "type": "object" @@ -11098,34 +10408,34 @@ "description": "Unique identity of shipping method price." }, "shippingMethodId": { - "description": "Unique identity of shipping method.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of shipping method." }, "ruleId": { - "description": "Unique identity of rule.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of rule." }, "calculation": { - "description": "Shipping price calculated based on quantity, price, weight or volume of items.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "Shipping price calculated based on quantity, price, weight or volume of items." }, "calculationRuleId": { - "description": "Unique identity of rule calculation.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of rule calculation." }, "quantityStart": { - "description": "Starting range of quantity of an item.", "type": "number", - "format": "float" + "format": "float", + "description": "Starting range of quantity of an item." }, "quantityEnd": { - "description": "Ending range of quantity of an item.", "type": "number", - "format": "float" + "format": "float", + "description": "Ending range of quantity of an item." }, "currencyPrice": { "type": "array", @@ -11165,17 +10475,17 @@ "description": "Unique identity of snippet." }, "setId": { - "description": "Unique identity od snippet set.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity od snippet set." }, "translationKey": { - "description": "Reference to the snippet in the template.", - "type": "string" + "type": "string", + "description": "Reference to the snippet in the template." }, "value": { - "description": "Value of the key.", - "type": "string" + "type": "string", + "description": "Value of the key." }, "customFields": { "type": "object", @@ -11207,12 +10517,12 @@ "description": "Unique identity of snippet set." }, "name": { - "description": "Name of snippet set.", - "type": "string" + "type": "string", + "description": "Name of snippet set." }, "iso": { - "description": "ISO nomenclature used to classify languages.", - "type": "string" + "type": "string", + "description": "ISO nomenclature used to classify languages." }, "customFields": { "type": "object", @@ -11307,7 +10617,6 @@ "StateMachineState": { "description": "Added since version: 6.0.0.0", "required": [ - "translated", "technicalName", "name" ], @@ -11318,8 +10627,8 @@ "description": "Unique identity of state machine state." }, "technicalName": { - "description": "Technical name of StateMachineState.", - "type": "string" + "type": "string", + "description": "Technical name of StateMachineState." }, "name": { "type": "string", @@ -11381,8 +10690,8 @@ "description": "Unique identity of system configuration." }, "configurationKey": { - "description": "Config key for shop configurations.", - "type": "string" + "type": "string", + "description": "Config key for shop configurations." }, "configurationValue": { "properties": { @@ -11394,9 +10703,9 @@ "type": "object" }, "salesChannelId": { - "description": "Unique identity of sales channel.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of sales channel." }, "createdAt": { "type": "string", @@ -11456,13 +10765,13 @@ "description": "Unique identity of tax." }, "taxRate": { - "description": "Rate of tax.", "type": "number", - "format": "float" + "format": "float", + "description": "Rate of tax." }, "name": { - "description": "Name defined for a Tax.", - "type": "string" + "type": "string", + "description": "Name defined for a Tax." }, "position": { "description": "The order of the tabs of your defined taxes in the storefront by entering numerical values like 1,2,3, etc.", @@ -11500,26 +10809,26 @@ "description": "Unique identity of tax provider." }, "active": { - "description": "When boolean value is `true`, the tax providers are available for selection in the storefront.", - "type": "boolean" + "type": "boolean", + "description": "When boolean value is `true`, the tax providers are available for selection in the storefront." }, "name": { "type": "string", "description": "Name of the tax provider." }, "priority": { - "description": "A numerical value to prioritize one the tax providers from the list.", "type": "integer", - "format": "int64" + "format": "int64", + "description": "A numerical value to prioritize one the tax providers from the list." }, "processUrl": { - "description": "External URL makes request to get tax info.", - "type": "string" + "type": "string", + "description": "External URL makes request to get tax info." }, "appId": { - "description": "Unique identity of app.", "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of app." }, "customFields": { "type": "object", @@ -11848,329 +11157,476 @@ }, "type": "object" }, - "BreadcrumbCollection": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Breadcrumb" - } - }, - "CartPriceQuantity": { + "Breadcrumb": { "type": "object", "properties": { - "apiAlias": { - "type": "string", - "enum": [ - "cart_price_quantity" - ] + "name": { + "type": "string" }, - "isCalculated": { - "type": "boolean" - }, - "listPrice": { - "$ref": "#/components/schemas/CartListPrice" - }, - "price": { - "type": "number" + "categoryId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" }, - "quantity": { - "type": "number" + "type": { + "type": "string", + "enum": [ + "page", + "link", + "folder" + ] }, - "regulationPrice": { + "translated": { + "type": "object", + "additionalProperties": true, "properties": { - "price": { - "type": "number", - "format": "float" + "customFields": { + "type": "object" + }, + "slotConfig": { + "type": "object" + }, + "linkType": { + "type": "string", + "enum": [ + "external", + "category", + "product", + "landing_page" + ] + }, + "internalLink": { + "type": "string" + }, + "externalLink": { + "type": "string" + }, + "linkNewTab": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "metaTitle": { + "type": "string" + }, + "metaDescription": { + "type": "string" + }, + "keywords": { + "type": "string" } - }, - "type": "object" + } }, - "taxRules": { + "path": { + "type": "string" + }, + "seoUrls": { "type": "array", "items": { - "type": "object", - "properties": { - "taxRate": { - "type": "number", - "format": "float" - }, - "name": { - "type": "string" - } - } + "$ref": "#/components/schemas/SeoUrl" } }, - "type": { - "type": "string" + "apiAlias": { + "type": "string", + "enum": [ + "breadcrumb" + ] } }, "required": [ + "name", + "categoryId", + "type", + "translated", + "path", "apiAlias" ] }, - "CrossSellingElement": { + "AggregationMetrics": { "type": "object", "properties": { - "crossSelling": { - "$ref": "#/components/schemas/ProductCrossSelling" - }, - "products": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Product" - } - }, - "total": { - "type": "integer", - "format": "int32" - }, - "streamId": { - "type": "string", - "format": "uuid" + "name": { + "type": "string" }, - "apiAlias": { + "type": { "type": "string", "enum": [ - "cross_selling_element" + "avg", + "count", + "max", + "min", + "stats", + "sum" ] + }, + "field": { + "type": "string" } }, "required": [ - "crossSelling", - "products", - "total", - "apiAlias" + "name", + "type", + "field" + ] + }, + "LineItemType": { + "type": "string", + "enum": [ + "product", + "credit", + "custom", + "promotion", + "discount", + "container", + "quantity" ] }, - "ProductMeasurements": { + "LineItem": { "type": "object", - "description": "Runtime field, cannot be used as part of the criteria. Measurements of a product, including dimensions and weight.", "properties": { - "width": { - "type": "object", - "properties": { - "unit": { - "type": "string", - "enum": [ - "mm", - "cm", - "m", - "in", - "ft" - ], - "default": "mm" - }, - "value": { - "type": "number" - } + "children": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LineItem" } }, - "height": { - "type": "object", - "properties": { - "unit": { - "type": "string", - "enum": [ - "mm", - "cm", - "m", - "in", - "ft" - ], - "default": "mm" - }, - "value": { - "type": "number" - } - } + "cover": { + "$ref": "#/components/schemas/ProductMedia" }, - "length": { - "type": "object", - "properties": { - "unit": { - "type": "string", - "enum": [ - "mm", - "cm", - "m", - "in", - "ft" - ], - "default": "mm" - }, - "value": { - "type": "number" - } - } + "dataContextHash": { + "type": "string" }, - "weight": { + "dataTimestamp": { + "type": "string" + }, + "deliveryInformation": { + "$ref": "#/components/schemas/CartDeliveryInformation" + }, + "description": { + "type": "string", + "description": "Description of line items in an order." + }, + "good": { + "type": "boolean", + "description": "When set to true, it indicates the line item is physical else it is virtual." + }, + "id": { + "type": "string", + "description": "Unique identity of line item." + }, + "label": { + "type": "string", + "description": "It is a typical product name given to the line item." + }, + "modified": { + "type": "boolean", + "description": "When boolean value is `true`, line items are said to be modified." + }, + "modifiedByApp": { + "type": "boolean" + }, + "payload": { + "$ref": "#/components/schemas/ProductJsonApi" + }, + "price": { "type": "object", "properties": { - "unit": { + "apiAlias": { "type": "string", "enum": [ - "g", - "kg", - "oz", - "lb" - ], - "default": "kg" - }, - "value": { - "type": "number" - } - } - } - } - }, - "ProductListingCriteria": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" - }, - { - "type": "object", - "description": "Additional search parameters for product listings", - "properties": { - "order": { - "description": "Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.", - "type": "string" - }, - "limit": { - "description": "Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings.", - "type": "integer", - "minimum": 0 - }, - "p": { - "description": "Search result page", - "type": "integer", - "default": 1 + "calculated_price" + ] }, - "manufacturer": { - "description": "Filter by manufacturers. List of manufacturer identifiers separated by a `|`.", - "type": "string" - }, - "min-price": { - "description": "Filters by a minimum product price. Has to be lower than the `max-price` filter.", - "type": "integer", - "minimum": 0, - "default": 0 - }, - "max-price": { - "description": "Filters by a maximum product price. Has to be higher than the `min-price` filter.", - "type": "integer", - "minimum": 0, - "default": 0 - }, - "rating": { - "description": "Filter products with a minimum average rating.", - "type": "integer" - }, - "shipping-free": { - "description": "Filters products that are marked as shipping-free.", - "type": "boolean", - "default": false - }, - "properties": { - "description": "Filters products by their properties. List of property identifiers separated by a `|`.", - "type": "string" - }, - "manufacturer-filter": { - "description": "Enables/disabled filtering by manufacturer. If set to false, the `manufacturer` filter will be ignored. Also the `aggregations[manufacturer]` key will be removed from the response.", - "type": "boolean", - "default": true - }, - "price-filter": { - "description": "Enables/disabled filtering by price. If set to false, the `min-price` and `max-price` filter will be ignored. Also the `aggregations[price]` key will be removed from the response.", - "type": "boolean", - "default": true - }, - "rating-filter": { - "description": "Enables/disabled filtering by rating. If set to false, the `rating` filter will be ignored. Also the `aggregations[rating]` key will be removed from the response.", - "type": "boolean", - "default": true - }, - "shipping-free-filter": { - "description": "Enables/disabled filtering by shipping-free products. If set to false, the `shipping-free` filter will be ignored. Also the `aggregations[shipping-free]` key will be removed from the response.", - "type": "boolean", - "default": true + "calculatedTaxes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "apiAlias": { + "type": "string", + "enum": [ + "cart_tax_calculated" + ] + }, + "tax": { + "type": "number" + }, + "taxRate": { + "type": "number" + }, + "price": { + "type": "number" + } + }, + "required": [ + "apiAlias", + "tax", + "taxRate", + "price" + ] + } }, - "property-filter": { - "description": "Enables/disabled filtering by properties products. If set to false, the `properties` filter will be ignored. Also the `aggregations[properties]` key will be removed from the response.", - "type": "boolean", - "default": true + "listPrice": { + "oneOf": [ + { + "$ref": "#/components/schemas/CartListPrice" + }, + { + "type": "null" + } + ] }, - "property-whitelist": { - "description": "A whitelist of property identifiers which can be used for filtering. List of property identifiers separated by a `|`. The `property-filter` must be `true`, otherwise the whitelist has no effect.", - "type": "string" + "quantity": { + "type": "number" }, - "reduce-aggregations": { - "description": "By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.", + "referencePrice": { "oneOf": [ { - "type": "string" + "$ref": "#/components/schemas/CartPriceReference" }, { "type": "null" } ] - } - } - } - ], - "properties": { - "filter": { - "properties": { - "type": { - "description": "To filter the results and aggregations with filter types like ==, >=, etc." }, - "field": { - "description": "To filter the results and aggregations by field like an property identifier." + "regulationPrice": { + "type": "object", + "properties": { + "price": { + "type": "number" + }, + "apiAlias": { + "type": "string", + "enum": [ + "cart_regulation_price" + ] + } + }, + "nullable": true }, - "value": { - "description": "To filter the results and aggregations by value." - } - } - }, - "sort": { - "properties": { - "field": { - "description": "Sort the search results by field like an property identifier." + "totalPrice": { + "type": "number" }, - "order": { - "description": "Sort the search results of orders by ascending or descending." + "unitPrice": { + "type": "number" }, - "naturalSorting": { - "description": "Sorting for special cases such as German letters with umlauts and similar characters etc." + "taxRules": { + "type": "array", + "description": "Currently active tax rules and/or rates", + "items": { + "type": "object", + "properties": { + "taxRate": { + "type": "number", + "format": "float" + }, + "name": { + "type": "string" + } + } + } } - } + }, + "required": [ + "apiAlias", + "totalPrice", + "quantity", + "unitPrice" + ] }, - "post-filter": { + "priceDefinition": { + "$ref": "#/components/schemas/CartPriceQuantity" + }, + "quantity": { + "type": "number", + "description": "Number of items of product." + }, + "quantityInformation": { + "type": "object", "properties": { - "type": { - "description": "To filter only the results but not the aggregations with filter types like ==, >=, etc." + "maxPurchase": { + "type": "number" }, - "field": { - "description": "To filter only the results but not the aggregations by field like an property identifier." + "minPurchase": { + "type": "number" }, - "value": { - "description": "To filter only the results but not the aggregations by value." + "purchaseSteps": { + "type": "number" } } + }, + "referencedId": { + "type": "string", + "description": "Unique identity of type of entity." + }, + "removable": { + "type": "boolean", + "description": "Allows the line item to be removable from the cart when set to true." + }, + "stackable": { + "type": "boolean", + "description": "Allows to change the quantity of the line item when set to true." + }, + "states": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "is-physical", + "is-download" + ] + } + }, + "type": { + "$ref": "#/components/schemas/LineItemType", + "description": "Type refers to the entity type of an item whether it is product or promotion for instance." + }, + "uniqueIdentifier": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "EntitySearchResult": { + "type": "object", + "properties": { + "entity": { + "type": "string" + }, + "total": { + "type": "integer", + "description": "The total number of found entities" + }, + "aggregations": { + "type": "array", + "description": "Contains aggregated data. A simple example is the determination of the average price from a product search query.", + "items": { + "type": "object" + } + }, + "page": { + "type": "integer", + "description": "The actual page. This can be used for pagination." + }, + "limit": { + "type": "integer", + "description": "The actual limit. This is used for pagination and goes together with the page." } } }, - "ShippingMethodPageRouteResponse": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "active": { - "type": "boolean" - }, - "description": { + "Price": { + "type": "object", + "description": "Price object", + "properties": { + "currencyId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "gross": { + "description": "", + "type": "number" + }, + "net": { + "description": "", + "type": "number" + }, + "linked": { + "description": "", + "type": "boolean" + }, + "listPrice": { + "description": "", + "type": "object", + "properties": { + "currencyId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "gross": { + "description": "", + "type": "number" + }, + "net": { + "description": "", + "type": "number" + }, + "linked": { + "description": "", + "type": "boolean" + } + }, + "required": [ + "gross", + "net" + ] + }, + "regulationPrice": { + "description": "", + "type": "object", + "properties": { + "currencyId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "gross": { + "description": "", + "type": "number" + }, + "net": { + "description": "", + "type": "number" + }, + "linked": { + "description": "", + "type": "boolean" + } + }, + "required": [ + "gross", + "net" + ] + } + }, + "required": [ + "currencyId", + "gross", + "net" + ] + }, + "CartItems": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LineItem" + }, + "properties": { + "id": { + "description": "Unique identity of cart item." + }, + "modified": { + "description": "When boolean value is `true`, the cart is said to be modified." + } + } + } + } + }, + "ShippingMethodPageRouteResponse": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "description": { "type": "string" }, "deliveryTimeId": { @@ -12788,1300 +12244,1164 @@ } } }, - "ProductDetailResponse": { + "CartPriceReference": { "type": "object", - "description": "Represents a product along with detailed information required to display a variant selection.", "properties": { - "product": { - "$ref": "#/components/schemas/Product" + "purchaseUnit": { + "type": "number" }, - "configurator": { - "type": "array", - "description": "List of property groups with their corresponding options and information on how to display them.", - "items": { - "$ref": "#/components/schemas/PropertyGroup" - } + "referenceUnit": { + "type": "number" }, - "id": { - "description": "Unique identity of product detail response." + "unitName": { + "type": "string" }, - "available": { - "description": "When boolean value is true, the product is available for purchase." + "price": { + "type": "number" }, - "isCloseout": { - "description": "Boolean value to check if the product is still buyable when stock value is 0." + "apiAlias": { + "type": "string", + "enum": [ + "cart_price_reference" + ] }, - "displayGroup": { - "description": "Internal field." + "listPrice": { + "oneOf": [ + { + "$ref": "#/components/schemas/CartListPrice" + }, + { + "type": "null" + } + ] }, - "manufacturerNumber": { - "description": "Unique number of the product manufacturer." + "regulationPrice": { + "type": "object", + "properties": { + "price": { + "type": "number" + }, + "apiAlias": { + "type": "string", + "enum": [ + "cart_regulation_price" + ] + } + }, + "nullable": true }, - "stock": { - "description": "Quantity of product available." + "hasRange": { + "type": "boolean" }, - "sortedProperties": { - "description": "Properties of the product that are sorted" + "variantId": { + "type": "string", + "format": "^[0-9a-f]{32}$", + "nullable": true } }, "required": [ - "product" + "apiAlias", + "hasRange", + "regulationPrice", + "listPrice", + "calculatedTaxes", + "totalPrice", + "quantity", + "unitName" ] }, - "CartDeliveryPosition": { + "AggregationEntity": { + "title": "AggregationEntity", "type": "object", - "description": "A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.", "properties": { - "deliveryDate": { - "type": "object", - "properties": { - "earliest": { - "type": "string", - "format": "date-time" - }, - "latest": { - "type": "string", - "format": "date-time" - } - } - }, - "identifier": { + "name": { + "description": "Give your aggregation an identifier, so you can find it easier", "type": "string" }, - "lineItem": { - "$ref": "#/components/schemas/LineItem" + "type": { + "description": "The type of aggregation", + "type": "string", + "enum": [ + "entity" + ] }, - "price": { - "$ref": "#/components/schemas/CalculatedPrice" + "field": { + "description": "The field you want to aggregate over.", + "type": "string" + }, + "definition": { + "description": "The entity definition e.g \"product_manufacturer\".", + "type": "string" } - } - }, - "LineItemType": { - "type": "string", - "deprecated": true, - "enum": [ - "product", - "credit", - "custom", - "promotion", - "discount", - "container", - "quantity" + }, + "required": [ + "name", + "type", + "field", + "definition" ] }, - "LineItem": { + "AggregationFilter": { + "title": "AggregationFilter", "type": "object", "properties": { - "children": { + "name": { + "description": "Give your aggregation an identifier, so you can find it easier", + "type": "string" + }, + "type": { + "description": "The type of aggregation", + "type": "string", + "enum": [ + "filter" + ] + }, + "filter": { "type": "array", "items": { - "$ref": "#/components/schemas/LineItem" + "$ref": "#/components/schemas/Filters" } + } + }, + "required": [ + "name", + "type", + "filter" + ] + }, + "AggregationTerms": { + "title": "AggregationTerms", + "type": "object", + "properties": { + "name": { + "description": "Give your aggregation an identifier, so you can find it easier", + "type": "string" }, - "cover": { - "$ref": "#/components/schemas/Media" + "type": { + "description": "The type of aggregation", + "type": "string", + "enum": [ + "terms" + ] }, - "dataContextHash": { + "field": { + "description": "The field you want to aggregate over.", "type": "string" }, - "dataTimestamp": { - "type": "string" + "limit": { + "description": "The number of terms to return", + "type": "number" }, - "deliveryInformation": { - "$ref": "#/components/schemas/CartDeliveryInformation" + "sort": { + "type": "array", + "description": "Sorting the aggregation result.", + "items": { + "$ref": "#/components/schemas/Sort" + } + } + }, + "required": [ + "name", + "type", + "field" + ] + }, + "AggregationHistogram": { + "title": "AggregationHistogram", + "type": "object", + "properties": { + "name": { + "description": "Give your aggregation an identifier, so you can find it easier", + "type": "string" }, - "description": { + "type": { + "description": "The type of aggregation", "type": "string", - "description": "Description of line items in an order." + "enum": [ + "histogram" + ] }, - "good": { - "type": "boolean", - "description": "When set to true, it indicates the line item is physical else it is virtual." + "field": { + "description": "The field you want to aggregate over.", + "type": "string" }, - "id": { - "type": "string", - "description": "Unique identity of line item." + "interval": { + "description": "The interval of the histogram", + "type": "number" }, - "label": { - "type": "string", - "description": "It is a typical product name given to the line item." + "format": { + "description": "The format of the histogram", + "type": "string" }, - "modified": { - "type": "boolean", - "description": "When boolean value is `true`, line items are said to be modified." + "timeZone": { + "description": "The timezone of the histogram", + "type": "string" + } + }, + "required": [ + "name", + "type", + "field" + ] + }, + "AggregationRange": { + "title": "AggregationRange", + "description": "For more information, see [Aggregations Reference > Range Aggregation](https://developer.shopware.com/docs/resources/references/core-reference/dal-reference/aggregations-reference.html#range-aggregations)", + "type": "object", + "properties": { + "name": { + "description": "Give your aggregation an identifier, so you can find it easier", + "type": "string" }, - "modifiedByApp": { - "type": "boolean" + "type": { + "description": "The type of aggregation", + "type": "string", + "enum": [ + "range" + ] }, - "payload": { - "$ref": "#/components/schemas/ProductJsonApi" + "field": { + "description": "The field you want to aggregate over.", + "type": "string" }, - "price": { - "type": "object", - "properties": { - "apiAlias": { - "type": "string", - "enum": [ - "calculated_price" - ] - }, - "calculatedTaxes": { - "type": "array", - "items": { + "ranges": { + "description": "The ranges of the aggregation", + "type": "array", + "items": { + "type": "object", + "anyOf": [ + { "type": "object", + "title": "From and to", "properties": { - "apiAlias": { - "type": "string", - "enum": [ - "cart_tax_calculated" - ] - }, - "tax": { - "type": "number" - }, - "taxRate": { - "type": "number" + "from": { + "type": "number", + "description": "The lower bound of the range" }, - "price": { - "type": "number" + "to": { + "type": "number", + "description": "The upper bound of the range" } }, "required": [ - "apiAlias", - "tax", - "taxRate", - "price" + "from", + "to" ] - } - }, - "listPrice": { - "oneOf": [ - { - "$ref": "#/components/schemas/CartListPrice" - }, - { - "type": "null" - } - ] - }, - "quantity": { - "type": "number" - }, - "referencePrice": { - "oneOf": [ - { - "$ref": "#/components/schemas/CartPriceReference" - }, - { - "type": "null" - } - ] - }, - "regulationPrice": { - "oneOf": [ - { - "type": "object", - "properties": { - "price": { - "type": "number" - }, - "apiAlias": { - "type": "string", - "enum": [ - "cart_regulation_price" - ] - } + }, + { + "type": "object", + "title": "From only", + "properties": { + "from": { + "type": "string", + "description": "The lower bound of the range" } }, - { - "type": "null" - } - ] - }, - "totalPrice": { - "type": "number" - }, - "unitPrice": { - "type": "number" - }, - "taxRules": { - "type": "array", - "description": "Currently active tax rules and/or rates", - "items": { + "required": [ + "from" + ] + }, + { "type": "object", + "title": "To only", "properties": { - "taxRate": { - "type": "number", - "format": "float" - }, - "name": { - "type": "string" + "to": { + "type": "string", + "description": "The upper bound of the range" } - } + }, + "required": [ + "to" + ] } - } - }, - "required": [ - "apiAlias", - "totalPrice", - "quantity", - "unitPrice" - ] - }, - "priceDefinition": { - "$ref": "#/components/schemas/CartPriceQuantity" - }, - "quantity": { - "type": "number", - "description": "Number of items of product." - }, - "quantityInformation": { - "type": "object", - "properties": { - "maxPurchase": { - "type": "number" - }, - "minPurchase": { - "type": "number" - }, - "purchaseSteps": { - "type": "number" - } - } - }, - "referencedId": { - "type": "string", - "description": "Unique identity of type of entity." - }, - "removable": { - "type": "boolean", - "description": "Allows the line item to be removable from the cart when set to true." - }, - "stackable": { - "type": "boolean", - "description": "Allows to change the quantity of the line item when set to true." - }, - "states": { - "deprecated": true, - "type": "array", - "items": { - "type": "string", - "enum": [ - "is-physical", - "is-download" ] } - }, - "type": { - "$ref": "#/components/schemas/OrderLineItem/properties/type", - "description": "Type refers to the entity type of an item whether it is product or promotion for instance." - }, - "uniqueIdentifier": { - "type": "string" } }, "required": [ - "id", + "name", "type", - "deliveryInformation", - "payload", - "quantity", - "states" + "field", + "ranges" ] }, - "CrossSellingElementCollection": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CrossSellingElement" - }, - "properties": { - "total": { - "description": "Number of cross selling elements found." - } - } - }, - "Sitemap": { + "Cart": { "type": "object", "properties": { - "filename": { - "type": "string", - "description": "Name of the file which holds a list of all URL's." + "name": { + "description": "Name of the cart - for example `guest-cart`", + "type": "string" }, - "created": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "filename", - "created" - ] - }, - "CartItems": { - "type": "object", - "required": [ - "items" - ], - "properties": { - "items": { + "token": { + "description": "Context token identifying the cart and the user session", + "type": "string" + }, + "price": { + "$ref": "#/components/schemas/CalculatedPrice" + }, + "lineItems": { + "description": "All items within the cart", "type": "array", "items": { "$ref": "#/components/schemas/LineItem" + } + }, + "errors": { + "type": "array", + "description": "A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.", + "items": { + "$ref": "#/components/schemas/CartError" }, "properties": { - "id": { - "description": "Unique identity of cart item." + "key": { + "description": "Unique key for every message." }, - "modified": { - "description": "When boolean value is `true`, the cart is said to be modified." + "level": { + "description": "Types of level - Notice, warning and error. " + }, + "message": { + "description": "A persistent error passed from the shopping cart calculation processes to the user end." } } - } - } - }, - "CookieEntry": { - "type": "object", - "properties": { - "cookie": { - "type": "string" }, - "value": { - "type": "string" + "deliveries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CartDelivery" + } }, - "expiration": { - "type": "integer" + "transactions": { + "description": "A list of all payment transactions associated with the current cart.", + "type": "array", + "items": { + "type": "object", + "properties": { + "paymentMethodId": { + "type": "string" + }, + "amount": { + "$ref": "#/components/schemas/CalculatedPrice" + } + } + }, + "properties": { + "paymentMethodId": { + "description": "Unique identity of payment method." + } + } }, - "name": { - "type": "string" + "modified": { + "type": "boolean", + "description": "It signifies any changes to cart." }, - "description": { - "type": "string" + "customerComment": { + "type": "string", + "description": "A comment that can be added to the cart.", + "nullable": true }, - "hidden": { - "type": "boolean" + "affiliateCode": { + "type": "string", + "description": "An affiliate tracking code", + "nullable": true }, - "apiAlias": { + "campaignCode": { "type": "string", - "enum": [ - "cookie_entry" - ] + "description": "A campaign tracking code", + "nullable": true + }, + "id": { + "description": "Unique identity of cart." } - }, - "required": [ - "cookie", - "hidden", - "apiAlias" - ] + } }, - "CookieRouteResponse": { + "AccountNewsletterRecipient": { "type": "object", - "description": "Response containing cookie groups and their configuration hash.", "properties": { - "apiAlias": { + "status": { "type": "string", "enum": [ - "cookie_groups_hash" + "undefined", + "notSet", + "direct", + "optIn", + "optOut" ] }, - "elements": { - "type": "array", - "description": "Collection of cookie groups", - "items": { - "$ref": "#/components/schemas/CookieGroup" - } - }, - "hash": { - "type": "string", - "description": "Hash of the current cookie configuration. Can be used to detect changes in cookie configuration.", - "example": "f86b6a872cb83dbd22d838ceda1aa3d4" - }, - "languageId": { + "apiAlias": { "type": "string", - "format": "uuid", - "description": "The language ID for which the cookie configuration was generated. Used to store hashes per language.", - "example": "2fbb5fe2e29a4d70aa5854ce7ce3e20b" + "enum": [ + "account_newsletter_recipient" + ] } }, "required": [ - "elements", - "hash", - "languageId", + "status", "apiAlias" - ], - "example": { - "apiAlias": "cookie_groups_hash", - "elements": [ - { - "isRequired": true, - "description": "Cookies required for this shop to function:", - "name": "Technically required", - "entries": [ - { - "name": "Session", - "hidden": false, - "cookie": "session-", - "apiAlias": "cookie_entry" - }, - { - "name": "Timezone", - "hidden": false, - "cookie": "timezone", - "apiAlias": "cookie_entry" - }, - { - "value": "1", - "expiration": 30, - "name": "Cookie preferences", - "hidden": true, - "cookie": "cookie-preference", - "apiAlias": "cookie_entry" - } - ], - "apiAlias": "cookie_group" - }, - { - "isRequired": false, - "description": "Cookies used for statistics and shop performance metrics.", - "name": "Statistics", - "entries": [ - { - "value": "1", - "expiration": 30, - "name": "Google Analytics", - "hidden": false, - "cookie": "google-analytics-enabled", - "apiAlias": "cookie_entry" - } - ], - "apiAlias": "cookie_group" - }, - { - "isRequired": false, - "description": "Allows Google to collect personal data for online advertising and marketing.", - "name": "Marketing", - "entries": [ - { - "value": "1", - "expiration": 30, - "name": "Google Advertising", - "hidden": false, - "cookie": "google-ads-enabled", - "apiAlias": "cookie_entry" - } - ], - "apiAlias": "cookie_group" - }, - { - "isRequired": false, - "name": "Comfort features", - "entries": [ - { - "value": "1", - "expiration": 30, - "name": "YouTube video", - "hidden": false, - "cookie": "youtube-video", - "apiAlias": "cookie_entry" - } - ], - "apiAlias": "cookie_group" - } - ], - "hash": "f86b6a872cb83dbd22d838ceda1aa3d4", - "languageId": "2fbb5fe2e29a4d70aa5854ce7ce3e20b" - } + ] }, - "CartDelivery": { - "type": "object", - "description": "A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.", - "properties": { - "deliveryDate": { - "type": "object", - "properties": { - "earliest": { - "type": "string", - "format": "date-time" - }, - "latest": { - "type": "string", - "format": "date-time" - } - } + "ProductListingCriteria": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" }, - "location": { + { "type": "object", + "description": "Additional search parameters for product listings", "properties": { - "apiAlias": { - "type": "string", - "enum": [ - "cart_delivery_shipping_location" - ] + "order": { + "description": "Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.", + "type": "string" }, - "country": { - "$ref": "#/components/schemas/Country" + "limit": { + "description": "Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings.", + "type": "integer", + "minimum": 0 }, - "address": { - "$ref": "#/components/schemas/CustomerAddress" + "p": { + "description": "Search result page", + "type": "integer", + "default": 1 }, - "state": { - "$ref": "#/components/schemas/CountryState" - } - } - }, - "positions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CartDeliveryPosition" + "manufacturer": { + "description": "Filter by manufacturers. List of manufacturer identifiers separated by a `|`.", + "type": "string" + }, + "min-price": { + "description": "Filters by a minimum product price. Has to be lower than the `max-price` filter.", + "type": "integer", + "minimum": 0, + "default": 0 + }, + "max-price": { + "description": "Filters by a maximum product price. Has to be higher than the `min-price` filter.", + "type": "integer", + "minimum": 0, + "default": 0 + }, + "rating": { + "description": "Filter products with a minimum average rating.", + "type": "integer" + }, + "shipping-free": { + "description": "Filters products that are marked as shipping-free.", + "type": "boolean", + "default": false + }, + "properties": { + "description": "Filters products by their properties. List of property identifiers separated by a `|`.", + "type": "string" + }, + "manufacturer-filter": { + "description": "Enables/disabled filtering by manufacturer. If set to false, the `manufacturer` filter will be ignored. Also the `aggregations[manufacturer]` key will be removed from the response.", + "type": "boolean", + "default": true + }, + "price-filter": { + "description": "Enables/disabled filtering by price. If set to false, the `min-price` and `max-price` filter will be ignored. Also the `aggregations[price]` key will be removed from the response.", + "type": "boolean", + "default": true + }, + "rating-filter": { + "description": "Enables/disabled filtering by rating. If set to false, the `rating` filter will be ignored. Also the `aggregations[rating]` key will be removed from the response.", + "type": "boolean", + "default": true + }, + "shipping-free-filter": { + "description": "Enables/disabled filtering by shipping-free products. If set to false, the `shipping-free` filter will be ignored. Also the `aggregations[shipping-free]` key will be removed from the response.", + "type": "boolean", + "default": true + }, + "property-filter": { + "description": "Enables/disabled filtering by properties products. If set to false, the `properties` filter will be ignored. Also the `aggregations[properties]` key will be removed from the response.", + "type": "boolean", + "default": true + }, + "property-whitelist": { + "description": "A whitelist of property identifiers which can be used for filtering. List of property identifiers separated by a `|`. The `property-filter` must be `true`, otherwise the whitelist has no effect.", + "type": "string" + }, + "reduce-aggregations": { + "description": "By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.", + "type": "string", + "nullable": true + } + } + } + ], + "properties": { + "filter": { + "properties": { + "type": { + "description": "To filter the results and aggregations with filter types like ==, >=, etc." + }, + "field": { + "description": "To filter the results and aggregations by field like an property identifier." + }, + "value": { + "description": "To filter the results and aggregations by value." + } } }, - "shippingCosts": { - "$ref": "#/components/schemas/CalculatedPrice" + "sort": { + "properties": { + "field": { + "description": "Sort the search results by field like an property identifier." + }, + "order": { + "description": "Sort the search results of orders by ascending or descending." + }, + "naturalSorting": { + "description": "Sorting for special cases such as German letters with umlauts and similar characters etc." + } + } }, - "shippingMethod": { - "$ref": "#/components/schemas/ShippingMethod" + "post-filter": { + "properties": { + "type": { + "description": "To filter only the results but not the aggregations with filter types like ==, >=, etc." + }, + "field": { + "description": "To filter only the results but not the aggregations by field like an property identifier." + }, + "value": { + "description": "To filter only the results but not the aggregations by value." + } + } } } }, - "CookieEntryCollection": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CookieEntry" - } - }, - "NavigationRouteResponse": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Category" - }, + "CartPriceQuantity": { + "type": "object", "properties": { - "id": { - "description": "Unique identity of navigation route response." + "apiAlias": { + "type": "string", + "enum": [ + "cart_price_quantity" + ] + }, + "isCalculated": { + "type": "boolean" + }, + "listPrice": { + "$ref": "#/components/schemas/CartListPrice" + }, + "price": { + "type": "number" + }, + "quantity": { + "type": "number" + }, + "regulationPrice": { + "properties": { + "price": { + "type": "number", + "format": "float" + } + }, + "type": "object" + }, + "taxRules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "taxRate": { + "type": "number", + "format": "float" + }, + "name": { + "type": "string" + } + } + } + }, + "type": { + "type": "string" } - } - }, - "NavigationType": { - "type": "string", - "enum": [ - "main-navigation", - "footer-navigation", - "service-navigation" + }, + "required": [ + "apiAlias" ] }, - "SalesChannelContext": { + "ProductListingFlags": { "type": "object", + "description": "Additional flags for product listings", "properties": { - "token": { - "description": "Context the user session", - "type": "string" + "no-aggregations": { + "description": "Resets all aggregations in the criteria. This parameter is a flag, the value has no effect.", + "type": "string", + "nullable": true }, - "currentCustomerGroup": { + "only-aggregations": { + "description": "If this flag is set, no products are fetched. Sorting and associations are also ignored. This parameter is a flag, the value has no effect.", + "type": "string", + "nullable": true + } + } + }, + "CartDelivery": { + "type": "object", + "description": "A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.", + "properties": { + "deliveryDate": { "type": "object", - "description": "Customer group of the current user", "properties": { - "name": { + "earliest": { "type": "string", - "description": "Name of customer group to which the customer belongs within the specific sales channel they are currently interacting with." + "format": "date-time" }, - "displayGross": { - "type": "boolean", - "description": "When `true`, product's gross price is displayed for that customer group who belongs to the specific sales channel they are currently interacting with." + "latest": { + "type": "string", + "format": "date-time" } } }, - "fallbackCustomerGroup": { - "description": "Fallback group if the default customer group is not applicable", + "location": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "displayGross": { - "type": "boolean" - } - } - }, - "currency": { - "$ref": "#/components/schemas/Currency", - "properties": { - "isoCode": { - "description": "Standard international three digit code to represent currency in a given sales channel. For example, USD." - }, - "factor": { - "description": "Currency exchange rate in a specific sales channel the customer is currently interacting with." - }, - "symbol": { - "description": "A currency symbol is a graphical representation used as shorthand for a currency's name, for example US Dollar - $ in a given sales channel." - }, - "shortName": { - "description": "Acronym for international currencies, for example, USD in a given sales channel." - }, - "name": { - "description": "Full name of the currency in a given sales channel. For example, US-Dollar." + "apiAlias": { + "type": "string", + "enum": [ + "cart_delivery_shipping_location" + ] }, - "position": { - "description": "The order of the tabs for multiple currencies defined in a given sales channel." + "country": { + "$ref": "#/components/schemas/Country" }, - "decimalPrecision": { - "description": "It defines the round off value for currency to the nearest decimal point in a given sales channel. If set to 2, it rounds off to two significant decimal points." + "address": { + "$ref": "#/components/schemas/CustomerAddress" }, - "isSystemDefault": { - "description": "Runtime field, cannot be used as part of the criteria." + "state": { + "$ref": "#/components/schemas/CountryState" } } }, - "salesChannel": { - "$ref": "#/components/schemas/SalesChannel", + "positions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CartDeliveryPosition" + } + }, + "shippingCosts": { + "$ref": "#/components/schemas/CalculatedPrice" + }, + "shippingMethod": { + "$ref": "#/components/schemas/ShippingMethod" + } + } + }, + "ProductDetailResponse": { + "type": "object", + "description": "Represents a product along with detailed information required to display a variant selection.", + "properties": { + "product": { + "$ref": "#/components/schemas/Product" + }, + "configurator": { + "type": "array", + "description": "List of property groups with their corresponding options and information on how to display them.", + "items": { + "$ref": "#/components/schemas/PropertyGroup" + } + }, + "id": { + "description": "Unique identity of product detail response." + }, + "available": { + "description": "When boolean value is true, the product is available for purchase." + }, + "isCloseout": { + "description": "Boolean value to check if the product is still buyable when stock value is 0." + }, + "displayGroup": { + "description": "Internal field." + }, + "manufacturerNumber": { + "description": "Unique number of the product manufacturer." + }, + "stock": { + "description": "Quantity of product available." + }, + "sortedProperties": { + "description": "Properties of the product that are sorted" + } + }, + "required": [ + "product" + ] + }, + "Criteria": { + "type": "object", + "description": "Criteria to query entities.", + "properties": { + "page": { + "description": "Search result page", + "type": "integer" + }, + "term": { + "description": "Search term", + "type": "string" + }, + "limit": { + "description": "Number of items per result page", + "type": "integer" + }, + "filter": { + "type": "array", + "description": "List of filters to restrict the search result. For more information, see [Search Queries > Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#filter)", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/SimpleFilter" + }, + { + "$ref": "#/components/schemas/EqualsFilter" + }, + { + "$ref": "#/components/schemas/MultiNotFilter" + }, + { + "$ref": "#/components/schemas/RangeFilter" + } + ] + }, "properties": { - "typeId": { - "description": "Unique identity of a sales channel's type within a specific sales channel." - }, - "languageId": { - "description": "Unique identity of a sales channel's language within a specific sales channel." - }, - "currencyId": { - "description": "Unique identity of a sales channel's currency within a specific sales channel." - }, - "paymentMethodId": { - "description": "Unique identity of a sales channel's payment method within a specific sales channel." - }, - "shippingMethodId": { - "description": "Unique identity of a sales channel's shipping method within a specific sales channel." - }, - "countryId": { - "description": "Unique identity of a sales channel's country within a specific sales channel." - }, - "navigationCategoryId": { - "description": "Unique identity of a sales channel's navigation category within a specific sales channel." - }, - "navigationCategoryDepth": { - "description": "It determines the number of levels of subcategories in the storefront category menu within a specific sales channel." - }, - "footerCategoryId": { - "description": "Unique identity of a sales channel's footer category within a specific sales channel." - }, - "serviceCategoryId": { - "description": "Unique identity of a sales channel's service category within a specific sales channel." - }, - "name": { - "description": "Name of the sales channel." - }, - "shortName": { - "description": "A short name for sales channel." - }, - "accessKey": { - "description": "Access key to store api." - }, - "active": { - "description": "When `true`, the sales channel is enabled." - }, - "maintenance": { - "description": "When `true`, it indicates that the sales channel is undergoing maintenance, and shopping is temporarily unavailable during this period." - }, - "maintenanceIpWhitelist": { - "description": "Array of IP address allowed to access the sales channel." - }, - "mailHeaderFooterId": { - "description": "Unique identity of a sales channel's mail header and footer within a specific sales channel." - }, - "customerGroupId": { - "description": "Unique identity of a sales channel's customer group within a specific sales channel." - }, - "hreflangActive": { - "description": "When `true`, the sales channel pages are available in different languages within a specific sales channel." + "type": { + "description": "To filter the results and aggregations with filter types like ==, >=, etc." }, - "hreflangDefaultDomainId": { - "description": "Unique identity of a sales channel's hreflangDefaultDomain within a specific sales channel." + "field": { + "description": "To filter the results and aggregations by field like an property identifier." }, - "analyticsId": { - "description": "Unique identity of a sales channel's analytics within a specific sales channel." + "value": { + "description": "To filter the results and aggregations by value." } } }, - "measurementSystem": { - "$ref": "#/components/schemas/ContextMeasurementSystemInfo" + "ids": { + "type": "array", + "description": "List of ids to search for", + "items": { + "type": "string" + } + }, + "query": { + "type": "array", + "description": "List of queries to restrict the search result. For more information, see [Search Queries > Query](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#query)", + "items": { + "$ref": "#/components/schemas/Query" + } }, - "taxRules": { + "associations": { + "$ref": "#/components/schemas/Associations" + }, + "post-filter": { "type": "array", - "description": "Currently active tax rules and/or rates", + "description": "Filters that applied without affecting aggregations. For more information, see [Search Queries > Post Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#post-filter)", "items": { - "type": "object", - "properties": { - "taxRate": { - "type": "number", - "format": "float" + "anyOf": [ + { + "$ref": "#/components/schemas/SimpleFilter" }, - "name": { - "type": "string" + { + "$ref": "#/components/schemas/EqualsFilter" + }, + { + "$ref": "#/components/schemas/MultiNotFilter" + }, + { + "$ref": "#/components/schemas/RangeFilter" } - } + ] }, "properties": { - "taxRate": { - "description": "Rate of tax within a specific sales channel." + "type": { + "description": "To filter only the results but not the aggregations with filter types like ==, >=, etc." }, - "name": { - "description": "Name defined for a Tax within a specific sales channel." + "field": { + "description": "To filter only the results but not the aggregations by field like an property identifier." + }, + "value": { + "description": "To filter only the results but not the aggregations by value." } } }, - "customer": { - "oneOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/Customer" - } - ], + "sort": { + "type": "array", + "description": "Sorting in the search result.", + "items": { + "$ref": "#/components/schemas/Sort" + }, "properties": { - "groupId": { - "description": "Unique identity of a customer's group within a specific sales channel." - }, - "defaultPaymentMethodId": { - "description": "Unique identity of a customer's default payment method within a specific sales channel." - }, - "salesChannelId": { - "description": "Unique identity of sales channel the customer is currently interacting with." - }, - "languageId": { - "description": "Unique identity of language within a specific sales channel the customer is interacting." - }, - "lastPaymentMethodId": { - "description": "Unique identity of customer's last payment method within a specific sales channel." - }, - "defaultBillingAddressId": { - "description": "Unique identity of customer's default billing address within a specific sales channel." - }, - "defaultShippingAddressId": { - "description": "Unique identity of customer's default shipping address within a specific sales channel." - }, - "customerNumber": { - "description": "Name of the customer within a specific sales channel the customer is interacting." - }, - "salutationId": { - "description": "Unique identity of customer's default shipping address within a specific sales channel." - }, - "firstName": { - "description": "First name of the customer within a specific sales channel." - }, - "lastName": { - "description": "Last name of the customer within a specific sales channel." + "field": { + "description": "Sort the search results by field like an property identifier." }, - "company": { - "description": "Company name of the customer within a specific sales channel." + "order": { + "description": "Sort the search results of orders by ascending or descending." }, - "password": { - "description": "Password of the customer within a specific sales channel." - }, - "email": { - "description": "Email of the customer within a specific sales channel." - }, - "title": { - "description": "Customer's title or honorifics like Mr, Mrs, etc within a specific sales channel." - }, - "affiliateCode": { - "description": "An affiliate code is an identification option with which website operators can mark outgoing links within a specific sales channel." - }, - "campaignCode": { - "description": "A unique identifier for a campaign within a specific sales channel." - }, - "active": { - "description": "When `true`, the status of the customer is set active within a specific sales channel." - }, - "doubleOptInRegistration": { - "description": "When `true`, user subscriptions to an email marketing list is allowed within a specific sales channel." - }, - "doubleOptInEmailSentDate": { - "description": "Date and time when the double opt-in email was sent within a specific sales channel." - }, - "doubleOptInConfirmDate": { - "description": "Date and time when the double opt-in email was confirmed within a specific sales channel." - }, - "hash": { - "description": "Password hash for account recovery within a specific sales channel." - }, - "guest": { - "description": "Boolean value is `true` for a guest account within a specific sales channel." - }, - "firstLogin": { - "description": "Captures date and time of customer's first login within a specific sales channel." - }, - "lastLogin": { - "description": "Captures date and time of customer's last login within a specific sales channel." - }, - "newsletter": { - "description": "When `true`, then the customer gets subscribe to the newsletter" - }, - "birthday": { - "description": "Captures customer's birthday details within a specific sales channel." - }, - "lastOrderDate": { - "description": "Captures customer's last order date within a specific sales channel." - }, - "orderCount": { - "description": "Captures the number of orders placed by a customer within a specific sales channel." - }, - "legacyEncoder": { - "description": "encapsulates shop credentials when needed to migrate shop system from old instance to new instance" - }, - "legacyPassword": { - "description": "Hashed password of the old shop system" - }, - "autoIncrement": { - "description": "Internal field. " - }, - "remoteAddress": { - "description": "Anonymous IP address of the customer for last session." + "naturalSorting": { + "description": "Sorting for special cases such as German letters with umlauts and similar characters etc." } } }, - "paymentMethod": { - "$ref": "#/components/schemas/PaymentMethod", - "properties": { - "pluginId": { - "description": "Unique identity of payment plugin within a specific sales channel." - }, - "handlerIdentifier": { - "description": "Internal field that contains system identifier details for payment methods like Paypal." - }, - "name": { - "description": "Name of the payment method within a specific sales channel." - }, - "description": { - "description": "A short description about the payment method within a specific sales channel." - }, - "position": { - "description": "The order of the tabs of your defined payment methods in the storefront by entering numerical values like 1,2,3, etc within a specific sales channel." - }, - "active": { - "description": "When `true`, the payment method is available for usage within a specific sales channel." - }, - "availabilityRuleId": { - "description": "Unique identity of the rule for the payment method." - }, - "mediaId": { - "description": "Unique identity of media used in payment method within a specific sales channel." - }, - "formattedHandlerIdentifier": { - "description": "Internal field that contains system identifier details for payment methods like Paypal." - } + "aggregations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Aggregation" } }, - "shippingLocation": { - "type": "object", - "properties": { - "apiAlias": { - "type": "string", - "enum": [ - "cart_delivery_shipping_location" - ] - }, - "country": { - "$ref": "#/components/schemas/Country" - }, - "address": { - "$ref": "#/components/schemas/CustomerAddress" - } + "fields": { + "type": "array", + "description": "Fields which should be returned in the search result.", + "items": { + "type": "string", + "description": "Name of a field" } }, - "shippingMethod": { - "$ref": "#/components/schemas/ShippingMethod", - "properties": { - "name": { - "description": "Name of the shipping method within a specific sales channel." - }, - "active": { - "description": "When `true`, the shipping method is available for usage within a specific sales channel." - }, - "description": { - "description": "A short description about the shipping method within a specific sales channel." - }, - "trackingUrl": { - "description": "URL that allows to track packages for a specific sales channel." - }, - "deliveryTimeId": { - "description": "Unique identity of deliveryTime within a specific sales channel." - }, - "availabilityRuleId": { - "description": "Unique identity of the rule for the payment method." - }, - "mediaId": { - "description": "Unique identity of media used in shipping method within a specific sales channel." - } + "grouping": { + "type": "array", + "description": "Perform groupings over certain fields", + "items": { + "type": "string", + "description": "Name of a field" } }, - "context": { - "description": "Core context with general configuration values and state", - "type": "object", - "properties": { - "versionId": { - "type": "string", - "description": "Unique identity of context's version in a specific sales channel." - }, - "currencyId": { - "type": "string", - "description": "Unique identity of currency context in a specific sales channel." - }, - "currencyFactor": { - "type": "integer", - "description": "Unique identity of currency factor context in a specific sales channel." - }, - "currencyPrecision": { - "type": "integer", - "format": "int32", - "description": "It defines the round off value of currency to the nearest decimal point. If set to 2, it rounds off to two significant decimal points." - }, - "languageIdChain": { - "type": "array", - "items": { - "type": "string" - } - }, - "scope": { - "type": "string", - "description": "Scope defines if its related to system or user context." - }, - "source": { - "type": "object", - "required": [ - "salesChannelId", - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "sales-channel", - "shop-api" - ] - }, - "salesChannelId": { - "type": "string" - } + "total-count-mode": { + "$ref": "#/components/schemas/TotalCountMode" + }, + "includes": { + "$ref": "#/components/schemas/Includes" + } + } + }, + "NoneFieldsCriteria": { + "type": "object", + "description": "Search parameters. For more information, see our documentation on [Search Queries](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#structure)", + "properties": { + "page": { + "description": "Search result page", + "type": "integer" + }, + "term": { + "description": "Search term", + "type": "string" + }, + "limit": { + "description": "Number of items per result page", + "type": "integer" + }, + "filter": { + "type": "array", + "description": "List of filters to restrict the search result. For more information, see [Search Queries > Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#filter)", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/SimpleFilter" }, - "description": "When context is related to user in the source, then there is userId." - }, - "taxState": { - "type": "string", - "description": "Tax state can either be `gross` or `net`." - }, - "useCache": { - "type": "boolean", - "description": "When boolean value is `true`, caching is used." - } + { + "$ref": "#/components/schemas/EqualsFilter" + }, + { + "$ref": "#/components/schemas/MultiNotFilter" + }, + { + "$ref": "#/components/schemas/RangeFilter" + } + ] } }, - "itemRounding": { - "type": "object", - "required": [ - "decimals", - "interval", - "roundForNet", - "apiAlias" - ], - "properties": { - "apiAlias": { - "type": "string", - "enum": [ - "shopware_core_framework_data_abstraction_layer_pricing_cash_rounding_config" - ] - }, - "decimals": { - "type": "integer", - "format": "int32" - }, - "interval": { - "type": "number", - "format": "float" - }, - "roundForNet": { - "type": "boolean" - } + "ids": { + "type": "array", + "description": "List of ids to search for", + "items": { + "type": "string" } }, - "totalRounding": { - "type": "object", - "required": [ - "decimals", - "interval", - "roundForNet", - "apiAlias" - ], - "properties": { - "apiAlias": { - "type": "string", - "enum": [ - "shopware_core_framework_data_abstraction_layer_pricing_cash_rounding_config" - ] - }, - "decimals": { - "type": "integer", - "format": "int32" - }, - "interval": { - "type": "number", - "format": "float" - }, - "roundForNet": { - "type": "boolean" - } + "query": { + "type": "string", + "description": "The query string to search for" + }, + "associations": { + "$ref": "#/components/schemas/Associations" + }, + "post-filter": { + "type": "array", + "description": "Filters that applied without affecting aggregations. For more information, see [Search Queries > Post Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#post-filter)", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/SimpleFilter" + }, + { + "$ref": "#/components/schemas/EqualsFilter" + }, + { + "$ref": "#/components/schemas/MultiNotFilter" + }, + { + "$ref": "#/components/schemas/RangeFilter" + } + ] } }, - "languageInfo": { - "type": "object", - "required": [ - "localeCode", - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "localeCode": { - "type": "string" - } + "sort": { + "type": "array", + "description": "Sorting in the search result.", + "items": { + "$ref": "#/components/schemas/Sort" } }, - "apiAlias": { - "type": "string", - "enum": [ - "sales_channel_context" - ] - } - }, - "required": [ - "salesChannel", - "apiAlias", - "itemRounding", - "totalRounding", - "languageInfo" - ] - }, - "AggregationMetrics": { - "type": "object", - "properties": { - "name": { - "type": "string" + "aggregations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Aggregation" + } }, - "type": { - "type": "string", - "enum": [ - "avg", - "count", - "max", - "min", - "stats", - "sum" - ] + "grouping": { + "type": "array", + "description": "Perform groupings over certain fields", + "items": { + "type": "string", + "description": "Name of a field" + } }, - "field": { - "type": "string" + "total-count-mode": { + "$ref": "#/components/schemas/TotalCountMode" + }, + "includes": { + "$ref": "#/components/schemas/Includes" } - }, - "required": [ - "name", - "type", - "field" - ] + } }, - "CookieGroupCollection": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CookieGroup" + "Associations": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/Criteria" } }, - "ProductListingFlags": { + "Includes": { "type": "object", - "description": "Additional flags for product listings", - "properties": { - "no-aggregations": { - "description": "Resets all aggregations in the criteria. This parameter is a flag, the value has no effect.", - "oneOf": [ + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "Aggregation": { + "anyOf": [ + { + "$ref": "#/components/schemas/AggregationMetrics" + }, + { + "title": "AggregationEntity", + "allOf": [ { - "type": "string" + "$ref": "#/components/schemas/AggregationEntity" }, { - "type": "null" + "$ref": "#/components/schemas/SubAggregations" } ] }, - "only-aggregations": { - "description": "If this flag is set, no products are fetched. Sorting and associations are also ignored. This parameter is a flag, the value has no effect.", - "oneOf": [ + { + "title": "AggregationFilter", + "allOf": [ { - "type": "string" + "$ref": "#/components/schemas/AggregationFilter" }, { - "type": "null" + "$ref": "#/components/schemas/SubAggregations" } ] - } - } - }, - "Breadcrumb": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "categoryId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" }, - "type": { - "$ref": "#/components/schemas/Category/properties/type" - }, - "translated": { - "type": "object", - "additionalProperties": true, - "properties": { - "customFields": { - "type": "object" - }, - "slotConfig": { - "type": "object" + { + "title": "AggregationTerms", + "allOf": [ + { + "$ref": "#/components/schemas/AggregationTerms" }, - "linkType": { - "$ref": "#/components/schemas/Category/properties/linkType" + { + "$ref": "#/components/schemas/SubAggregations" + } + ] + }, + { + "title": "AggregationHistogram", + "allOf": [ + { + "$ref": "#/components/schemas/AggregationHistogram" }, - "internalLink": { - "type": "string" + { + "$ref": "#/components/schemas/SubAggregations" + } + ] + }, + { + "title": "AggregationRange", + "allOf": [ + { + "$ref": "#/components/schemas/AggregationRange" }, - "externalLink": { - "type": "string" + { + "$ref": "#/components/schemas/SubAggregations" + } + ] + } + ] + }, + "SubAggregations": { + "type": "object", + "properties": { + "aggregation": { + "anyOf": [ + { + "$ref": "#/components/schemas/AggregationMetrics" }, - "linkNewTab": { - "type": "boolean" + { + "$ref": "#/components/schemas/AggregationEntity" }, - "description": { - "type": "string" + { + "$ref": "#/components/schemas/AggregationFilter" }, - "metaTitle": { - "type": "string" + { + "$ref": "#/components/schemas/AggregationTerms" }, - "metaDescription": { - "type": "string" + { + "$ref": "#/components/schemas/AggregationHistogram" }, - "keywords": { - "type": "string" + { + "$ref": "#/components/schemas/AggregationRange" } - } + ] + } + } + }, + "TotalCountMode": { + "description": "Whether the total for the total number of hits should be determined for the search query. none = disabled total count, exact = calculate exact total amount (slow), next-pages = calculate only for next page (fast)", + "type": "string", + "default": "none", + "enum": [ + "none", + "exact", + "next-pages" + ] + }, + "Query": { + "type": "object", + "properties": { + "score": { + "type": "number" }, - "path": { + "query": { + "oneOf": [ + { + "$ref": "#/components/schemas/SimpleFilter" + }, + { + "$ref": "#/components/schemas/EqualsFilter" + }, + { + "$ref": "#/components/schemas/MultiNotFilter" + }, + { + "$ref": "#/components/schemas/RangeFilter" + } + ] + } + }, + "additionalProperties": true + }, + "Sort": { + "type": "object", + "properties": { + "field": { "type": "string" }, - "seoUrls": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SeoUrl" - } - }, - "apiAlias": { + "order": { "type": "string", "enum": [ - "breadcrumb" + "ASC", + "DESC" ] + }, + "naturalSorting": { + "type": "boolean" + }, + "type": { + "type": "string" } }, "required": [ - "name", - "categoryId", - "type", - "translated", - "path", - "apiAlias" + "field", + "order" ] }, - "CartError": { + "Filters": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/SimpleFilter" + }, + { + "$ref": "#/components/schemas/EqualsFilter" + }, + { + "$ref": "#/components/schemas/MultiNotFilter" + }, + { + "$ref": "#/components/schemas/RangeFilter" + } + ] + } + }, + "SimpleFilter": { "type": "object", - "description": "A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.", "properties": { - "key": { - "type": "string" - }, - "level": { - "type": "number", + "type": { + "type": "string", "enum": [ - 0, - 10, - 20 - ], - "description": "* `0` - notice,\n* `10` - warning,\n* `20` - error" + "contains", + "equalsAny", + "prefix", + "suffix" + ] }, - "message": { + "field": { "type": "string" }, - "messageKey": { + "value": { "type": "string" } }, "required": [ - "key", - "level", - "message", - "messageKey" + "type", + "field", + "value" ] }, - "CartPriceReference": { + "EqualsFilter": { "type": "object", "properties": { - "purchaseUnit": { - "type": "number" - }, - "referenceUnit": { - "type": "number" - }, - "unitName": { - "type": "string" - }, - "price": { - "type": "number" - }, - "apiAlias": { + "type": { "type": "string", "enum": [ - "cart_price_reference" + "equals" ] }, - "listPrice": { - "oneOf": [ - { - "$ref": "#/components/schemas/CartListPrice" - }, - { - "type": "null" - } - ] + "field": { + "type": "string" }, - "regulationPrice": { + "value": { "oneOf": [ { - "type": "object", - "properties": { - "price": { - "type": "number" - }, - "apiAlias": { - "type": "string", - "enum": [ - "cart_regulation_price" - ] - } - } + "type": "string" }, { - "type": "null" - } - ] - }, - "hasRange": { - "type": "boolean" - }, - "variantId": { - "oneOf": [ + "type": "number" + }, { - "type": "string", - "format": "^[0-9a-f]{32}$" + "type": "boolean" }, { "type": "null" @@ -14090,76 +13410,178 @@ } }, "required": [ - "apiAlias", - "hasRange", - "regulationPrice", - "listPrice", - "calculatedTaxes", - "totalPrice", - "quantity", - "unitName" + "type", + "field", + "value" ] }, - "AccountNewsletterRecipient": { + "MultiNotFilter": { "type": "object", "properties": { - "status": { + "type": { "type": "string", "enum": [ - "undefined", - "notSet", - "direct", - "optIn", - "optOut" + "multi", + "not" ] }, - "apiAlias": { + "operator": { "type": "string", "enum": [ - "account_newsletter_recipient" + "and", + "or", + "nor", + "nand" ] + }, + "queries": { + "$ref": "#/components/schemas/Filters" } }, "required": [ - "status", - "apiAlias" + "type", + "operator", + "queries" ] }, - "SuccessResponse": { + "RangeFilter": { "type": "object", "properties": { - "success": { - "type": "boolean" + "type": { + "type": "string", + "enum": [ + "range" + ] + }, + "field": { + "type": "string" + }, + "parameters": { + "type": "object", + "properties": { + "gte": { + "type": "number" + }, + "gt": { + "type": "number" + }, + "lte": { + "type": "number" + }, + "lt": { + "type": "number" + } + } } - } + }, + "required": [ + "type", + "field", + "parameters" + ] }, - "EntitySearchResult": { + "CartDeliveryPosition": { "type": "object", + "description": "A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.", "properties": { - "entity": { - "type": "string" - }, - "total": { - "type": "integer", - "description": "The total number of found entities" - }, - "aggregations": { - "type": "array", - "description": "Contains aggregated data. A simple example is the determination of the average price from a product search query.", - "items": { - "type": "object" + "deliveryDate": { + "type": "object", + "properties": { + "earliest": { + "type": "string", + "format": "date-time" + }, + "latest": { + "type": "string", + "format": "date-time" + } } }, - "page": { - "type": "integer", - "description": "The actual page. This can be used for pagination." + "identifier": { + "type": "string" }, - "limit": { - "type": "integer", - "description": "The actual limit. This is used for pagination and goes together with the page." + "lineItem": { + "$ref": "#/components/schemas/LineItem" + }, + "price": { + "$ref": "#/components/schemas/CalculatedPrice" + } + } + }, + "OrderRouteResponse": { + "type": "object", + "properties": { + "orders": { + "allOf": [ + { + "type": "array", + "items": { + "$ref": "#/components/schemas/Order" + } + }, + { + "$ref": "#/components/schemas/EntitySearchResult" + } + ] + }, + "paymentChangeable": { + "type": "object", + "description": "The key-value pairs contain the uuid of the order as key and a boolean as value, indicating that the payment method can still be changed.", + "additionalProperties": { + "type": "boolean" + } + } + }, + "required": [ + "orders" + ] + }, + "WishlistLoadRouteResponse": { + "type": "object", + "properties": { + "wishlist": { + "type": "object", + "properties": { + "customerId": { + "type": "string", + "description": "Unique identity of the customer." + }, + "salesChannelId": { + "type": "string", + "description": "Unique identity of the sales channel." + } + } + }, + "products": { + "$ref": "#/components/schemas/ProductListingResult" } } }, + "Sitemap": { + "type": "object", + "properties": { + "filename": { + "type": "string", + "description": "Name of the file which holds a list of all URL's." + }, + "created": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "filename", + "created" + ] + }, + "NavigationType": { + "type": "string", + "enum": [ + "main-navigation", + "footer-navigation", + "service-navigation" + ] + }, "CalculatedPrice": { "type": "object", "description": "Represents a product along with detailed information required to display a variant selection.", @@ -14176,13 +13598,6 @@ "totalPrice": { "type": "number" }, - "taxStatus": { - "type": "string", - "enum": [ - "net", - "tax-free" - ] - }, "calculatedTaxes": { "type": "array", "items": { @@ -14239,39 +13654,27 @@ "type": "number" }, "regulationPrice": { - "oneOf": [ - { - "type": "object", - "properties": { - "price": { - "type": "number" - }, - "apiAlias": { - "type": "string", - "enum": [ - "cart_regulation_price" - ] - } - } + "type": "object", + "properties": { + "price": { + "type": "number" }, - { - "type": "null" + "apiAlias": { + "type": "string", + "enum": [ + "cart_regulation_price" + ] } - ] + }, + "nullable": true }, "hasRange": { "type": "boolean" }, "variantId": { - "oneOf": [ - { - "type": "string", - "format": "^[0-9a-f]{32}$" - }, - { - "type": "null" - } - ] + "type": "string", + "format": "^[0-9a-f]{32}$", + "nullable": true }, "apiAlias": { "type": "string", @@ -14308,9 +13711,31 @@ "unitPrice", "positionPrice", "netPrice", - "taxRules", - "rawTotal", - "taxStatus" + "taxRules" + ] + }, + "CartListPrice": { + "type": "object", + "description": "", + "properties": { + "discount": { + "type": "number" + }, + "percentage": { + "type": "number" + }, + "price": { + "type": "number" + }, + "apiAlias": { + "type": "string", + "enum": [ + "cart_list_price" + ] + } + }, + "required": [ + "apiAlias" ] }, "CustomerAddressBody": { @@ -14383,83 +13808,6 @@ }, "type": "object" }, - "ReferencePrice": { - "type": "object", - "properties": { - "purchaseUnit": { - "type": "number" - }, - "referenceUnit": { - "type": "number" - }, - "unitName": { - "type": "string" - }, - "price": { - "type": "number" - }, - "apiAlias": { - "type": "string", - "enum": [ - "cart_price_reference" - ] - }, - "listPrice": { - "oneOf": [ - { - "$ref": "#/components/schemas/ListPrice" - }, - { - "type": "null" - } - ] - }, - "regulationPrice": { - "oneOf": [ - { - "type": "object", - "properties": { - "price": { - "type": "number" - }, - "apiAlias": { - "type": "string", - "enum": [ - "cart_regulation_price" - ] - } - } - }, - { - "type": "null" - } - ] - }, - "hasRange": { - "type": "boolean" - }, - "variantId": { - "oneOf": [ - { - "type": "string", - "format": "^[0-9a-f]{32}$" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "hasRange", - "regulationPrice", - "listPrice", - "calculatedTaxes", - "totalPrice", - "quantity", - "unitName" - ] - }, "CustomerAddressRead": { "type": "object", "properties": { @@ -14478,28 +13826,16 @@ "format": "date-time" }, "updatedAt": { - "oneOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] + "type": "string", + "format": "date-time", + "nullable": true }, "country": { "$ref": "#/components/schemas/Country" }, "countryState": { - "oneOf": [ - { - "$ref": "#/components/schemas/CountryState" - }, - { - "type": "null" - } - ] + "$ref": "#/components/schemas/CountryState", + "nullable": true }, "salutation": { "$ref": "#/components/schemas/Salutation" @@ -14513,620 +13849,472 @@ "salutation" ] }, - "Criteria": { + "CrossSellingElement": { "type": "object", - "description": "Criteria to query entities.", "properties": { - "page": { - "description": "Search result page", - "type": "integer" - }, - "term": { - "description": "Search term", - "type": "string" - }, - "limit": { - "description": "Number of items per result page", - "type": "integer" + "crossSelling": { + "$ref": "#/components/schemas/ProductCrossSelling" }, - "filter": { + "products": { "type": "array", - "description": "List of filters to restrict the search result. For more information, see [Search Queries > Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#filter)", "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SimpleFilter" - }, - { - "$ref": "#/components/schemas/EqualsFilter" - }, - { - "$ref": "#/components/schemas/MultiNotFilter" - }, - { - "$ref": "#/components/schemas/RangeFilter" - } - ] - }, - "properties": { - "type": { - "description": "To filter the results and aggregations with filter types like ==, >=, etc." - }, - "field": { - "description": "To filter the results and aggregations by field like an property identifier." - }, - "value": { - "description": "To filter the results and aggregations by value." - } + "$ref": "#/components/schemas/Product" } }, - "ids": { - "type": "array", - "description": "List of ids to search for", - "items": { - "type": "string" - } + "total": { + "type": "integer", + "format": "int32" }, - "query": { + "streamId": { "type": "string", - "description": "The query string to search for" + "format": "uuid" }, - "associations": { - "$ref": "#/components/schemas/Associations" + "apiAlias": { + "type": "string", + "enum": [ + "cross_selling_element" + ] + } + }, + "required": [ + "crossSelling", + "products", + "total", + "apiAlias" + ] + }, + "SalesChannelContext": { + "type": "object", + "properties": { + "token": { + "description": "Context the user session", + "type": "string" }, - "post-filter": { - "type": "array", - "description": "Filters that applied without affecting aggregations. For more information, see [Search Queries > Post Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#post-filter)", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SimpleFilter" - }, - { - "$ref": "#/components/schemas/EqualsFilter" - }, - { - "$ref": "#/components/schemas/MultiNotFilter" - }, - { - "$ref": "#/components/schemas/RangeFilter" - } - ] - }, + "currentCustomerGroup": { + "type": "object", + "description": "Customer group of the current user", "properties": { - "type": { - "description": "To filter only the results but not the aggregations with filter types like ==, >=, etc." + "name": { + "type": "string", + "description": "Name of customer group to which the customer belongs within the specific sales channel they are currently interacting with." }, - "field": { - "description": "To filter only the results but not the aggregations by field like an property identifier." + "displayGross": { + "type": "boolean", + "description": "When `true`, product's gross price is displayed for that customer group who belongs to the specific sales channel they are currently interacting with." + } + } + }, + "fallbackCustomerGroup": { + "description": "Fallback group if the default customer group is not applicable", + "type": "object", + "properties": { + "name": { + "type": "string" }, - "value": { - "description": "To filter only the results but not the aggregations by value." + "displayGross": { + "type": "boolean" } } }, - "sort": { - "type": "array", - "description": "Sorting in the search result.", - "items": { - "$ref": "#/components/schemas/Sort" - }, + "currency": { + "$ref": "#/components/schemas/Currency", "properties": { - "field": { - "description": "Sort the search results by field like an property identifier." + "isoCode": { + "description": "Standard international three digit code to represent currency in a given sales channel. For example, USD." }, - "order": { - "description": "Sort the search results of orders by ascending or descending." + "factor": { + "description": "Currency exchange rate in a specific sales channel the customer is currently interacting with." }, - "naturalSorting": { - "description": "Sorting for special cases such as German letters with umlauts and similar characters etc." + "symbol": { + "description": "A currency symbol is a graphical representation used as shorthand for a currency's name, for example US Dollar - $ in a given sales channel." + }, + "shortName": { + "description": "Acronym for international currencies, for example, USD in a given sales channel." + }, + "name": { + "description": "Full name of the currency in a given sales channel. For example, US-Dollar." + }, + "position": { + "description": "The order of the tabs for multiple currencies defined in a given sales channel." + }, + "decimalPrecision": { + "description": "It defines the round off value for currency to the nearest decimal point in a given sales channel. If set to 2, it rounds off to two significant decimal points." + }, + "isSystemDefault": { + "description": "Runtime field, cannot be used as part of the criteria." } } }, - "aggregations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Aggregation" + "salesChannel": { + "description": "Information about the current sales channel", + "type": "object", + "properties": { + "typeId": { + "type": "string", + "description": "Unique identity of a sales channel's type within a specific sales channel." + }, + "languageId": { + "type": "string", + "description": "Unique identity of a sales channel's language within a specific sales channel." + }, + "currencyId": { + "type": "string", + "description": "Unique identity of a sales channel's currency within a specific sales channel." + }, + "paymentMethodId": { + "type": "string", + "description": "Unique identity of a sales channel's payment method within a specific sales channel." + }, + "shippingMethodId": { + "type": "string", + "description": "Unique identity of a sales channel's shipping method within a specific sales channel." + }, + "countryId": { + "type": "string", + "description": "Unique identity of a sales channel's country within a specific sales channel." + }, + "navigationCategoryId": { + "type": "string", + "description": "Unique identity of a sales channel's navigation category within a specific sales channel." + }, + "navigationCategoryDepth": { + "type": "integer", + "format": "int32", + "description": "It determines the number of levels of subcategories in the storefront category menu within a specific sales channel." + }, + "footerCategoryId": { + "type": "string", + "description": "Unique identity of a sales channel's footer category within a specific sales channel." + }, + "serviceCategoryId": { + "type": "string", + "description": "Unique identity of a sales channel's service category within a specific sales channel." + }, + "name": { + "type": "string", + "description": "Name of the sales channel." + }, + "shortName": { + "type": "string", + "description": "A short name for sales channel." + }, + "accessKey": { + "type": "string", + "description": "Access key to store api." + }, + "active": { + "type": "boolean", + "description": "When `true`, the sales channel is enabled." + }, + "maintenance": { + "type": "boolean", + "description": "When `true`, it indicates that the sales channel is undergoing maintenance, and shopping is temporarily unavailable during this period." + }, + "maintenanceIpWhitelist": { + "type": "string", + "description": "Array of IP address allowed to access the sales channel." + }, + "mailHeaderFooterId": { + "type": "string", + "description": "Unique identity of a sales channel's mail header and footer within a specific sales channel." + }, + "customerGroupId": { + "type": "string", + "description": "Unique identity of a sales channel's customer group within a specific sales channel." + }, + "hreflangActive": { + "type": "boolean", + "description": "When `true`, the sales channel pages are available in different languages within a specific sales channel." + }, + "hreflangDefaultDomainId": { + "type": "string", + "description": "Unique identity of a sales channel's hreflangDefaultDomain within a specific sales channel." + }, + "analyticsId": { + "type": "string", + "description": "Unique identity of a sales channel's analytics within a specific sales channel." + } } }, - "fields": { + "taxRules": { "type": "array", - "description": "Fields which should be returned in the search result.", - "items": { - "type": "string", - "description": "Name of a field" - } - }, - "grouping": { - "type": "array", - "description": "Perform groupings over certain fields", - "items": { - "type": "string", - "description": "Name of a field" - } - }, - "total-count-mode": { - "$ref": "#/components/schemas/TotalCountMode" - }, - "includes": { - "$ref": "#/components/schemas/Includes" - }, - "excludes": { - "$ref": "#/components/schemas/Excludes" - } - } - }, - "NoneFieldsCriteria": { - "type": "object", - "description": "Search parameters. For more information, see our documentation on [Search Queries](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#structure)", - "properties": { - "page": { - "description": "Search result page", - "type": "integer" - }, - "term": { - "description": "Search term", - "type": "string" - }, - "limit": { - "description": "Number of items per result page", - "type": "integer" - }, - "filter": { - "type": "array", - "description": "List of filters to restrict the search result. For more information, see [Search Queries > Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#filter)", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SimpleFilter" - }, - { - "$ref": "#/components/schemas/EqualsFilter" - }, - { - "$ref": "#/components/schemas/MultiNotFilter" - }, - { - "$ref": "#/components/schemas/RangeFilter" - } - ] - } - }, - "ids": { - "type": "array", - "description": "List of ids to search for", - "items": { - "type": "string" - } - }, - "query": { - "type": "string", - "description": "The query string to search for" - }, - "associations": { - "$ref": "#/components/schemas/Associations" - }, - "post-filter": { - "type": "array", - "description": "Filters that applied without affecting aggregations. For more information, see [Search Queries > Post Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#post-filter)", + "description": "Currently active tax rules and/or rates", "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SimpleFilter" - }, - { - "$ref": "#/components/schemas/EqualsFilter" - }, - { - "$ref": "#/components/schemas/MultiNotFilter" + "type": "object", + "properties": { + "taxRate": { + "type": "number", + "format": "float" }, - { - "$ref": "#/components/schemas/RangeFilter" + "name": { + "type": "string" } - ] - } - }, - "sort": { - "type": "array", - "description": "Sorting in the search result.", - "items": { - "$ref": "#/components/schemas/Sort" - } - }, - "aggregations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Aggregation" - } - }, - "grouping": { - "type": "array", - "description": "Perform groupings over certain fields", - "items": { - "type": "string", - "description": "Name of a field" - } - }, - "total-count-mode": { - "$ref": "#/components/schemas/TotalCountMode" - }, - "includes": { - "$ref": "#/components/schemas/Includes" - }, - "excludes": { - "$ref": "#/components/schemas/Excludes" - } - } - }, - "Associations": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Criteria" - } - }, - "Includes": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "Excludes": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "Aggregation": { - "anyOf": [ - { - "$ref": "#/components/schemas/AggregationMetrics" - }, - { - "title": "AggregationEntity", - "allOf": [ - { - "$ref": "#/components/schemas/AggregationEntity" - }, - { - "$ref": "#/components/schemas/SubAggregations" } - ] - }, - { - "title": "AggregationFilter", - "allOf": [ - { - "$ref": "#/components/schemas/AggregationFilter" + }, + "properties": { + "taxRate": { + "description": "Rate of tax within a specific sales channel." }, - { - "$ref": "#/components/schemas/SubAggregations" + "name": { + "description": "Name defined for a Tax within a specific sales channel." } - ] + } }, - { - "title": "AggregationTerms", - "allOf": [ - { - "$ref": "#/components/schemas/AggregationTerms" + "customer": { + "$ref": "#/components/schemas/Customer", + "properties": { + "groupId": { + "description": "Unique identity of a customer's group within a specific sales channel." }, - { - "$ref": "#/components/schemas/SubAggregations" - } - ] - }, - { - "title": "AggregationHistogram", - "allOf": [ - { - "$ref": "#/components/schemas/AggregationHistogram" + "defaultPaymentMethodId": { + "description": "Unique identity of a customer's default payment method within a specific sales channel." }, - { - "$ref": "#/components/schemas/SubAggregations" - } - ] - }, - { - "title": "AggregationRange", - "allOf": [ - { - "$ref": "#/components/schemas/AggregationRange" + "salesChannelId": { + "description": "Unique identity of sales channel the customer is currently interacting with." }, - { - "$ref": "#/components/schemas/SubAggregations" - } - ] - } - ] - }, - "SubAggregations": { - "type": "object", - "properties": { - "aggregation": { - "anyOf": [ - { - "$ref": "#/components/schemas/AggregationMetrics" + "languageId": { + "description": "Unique identity of language within a specific sales channel the customer is interacting." }, - { - "$ref": "#/components/schemas/AggregationEntity" + "lastPaymentMethodId": { + "description": "Unique identity of customer's last payment method within a specific sales channel." }, - { - "$ref": "#/components/schemas/AggregationFilter" + "defaultBillingAddressId": { + "description": "Unique identity of customer's default billing address within a specific sales channel." }, - { - "$ref": "#/components/schemas/AggregationTerms" + "defaultShippingAddressId": { + "description": "Unique identity of customer's default shipping address within a specific sales channel." }, - { - "$ref": "#/components/schemas/AggregationHistogram" + "customerNumber": { + "description": "Name of the customer within a specific sales channel the customer is interacting." }, - { - "$ref": "#/components/schemas/AggregationRange" - } - ] - } - } - }, - "TotalCountMode": { - "description": "Whether the total for the total number of hits should be determined for the search query. none = disabled total count, exact = calculate exact total amount (slow), next-pages = calculate only for next page (fast)", - "type": "string", - "default": "none", - "enum": [ - "none", - "exact", - "next-pages" - ] - }, - "Query": { - "type": "object", - "properties": { - "score": { - "type": "number" + "salutationId": { + "description": "Unique identity of customer's default shipping address within a specific sales channel." + }, + "firstName": { + "description": "First name of the customer within a specific sales channel." + }, + "lastName": { + "description": "Last name of the customer within a specific sales channel." + }, + "company": { + "description": "Company name of the customer within a specific sales channel." + }, + "password": { + "description": "Password of the customer within a specific sales channel." + }, + "email": { + "description": "Email of the customer within a specific sales channel." + }, + "title": { + "description": "Customer's title or honorifics like Mr, Mrs, etc within a specific sales channel." + }, + "affiliateCode": { + "description": "An affiliate code is an identification option with which website operators can mark outgoing links within a specific sales channel." + }, + "campaignCode": { + "description": "A unique identifier for a campaign within a specific sales channel." + }, + "active": { + "description": "When `true`, the status of the customer is set active within a specific sales channel." + }, + "doubleOptInRegistration": { + "description": "When `true`, user subscriptions to an email marketing list is allowed within a specific sales channel." + }, + "doubleOptInEmailSentDate": { + "description": "Date and time when the double opt-in email was sent within a specific sales channel." + }, + "doubleOptInConfirmDate": { + "description": "Date and time when the double opt-in email was confirmed within a specific sales channel." + }, + "hash": { + "description": "Password hash for account recovery within a specific sales channel." + }, + "guest": { + "description": "Boolean value is `true` for a guest account within a specific sales channel." + }, + "firstLogin": { + "description": "Captures date and time of customer's first login within a specific sales channel." + }, + "lastLogin": { + "description": "Captures date and time of customer's last login within a specific sales channel." + }, + "newsletter": { + "description": "When `true`, then the customer gets subscribe to the newsletter" + }, + "birthday": { + "description": "Captures customer's birthday details within a specific sales channel." + }, + "lastOrderDate": { + "description": "Captures customer's last order date within a specific sales channel." + }, + "orderCount": { + "description": "Captures the number of orders placed by a customer within a specific sales channel." + }, + "legacyEncoder": { + "description": "encapsulates shop credentials when needed to migrate shop system from old instance to new instance" + }, + "legacyPassword": { + "description": "Hashed password of the old shop system" + }, + "autoIncrement": { + "description": "Internal field. " + }, + "remoteAddress": { + "description": "Anonymous IP address of the customer for last session." + } + } }, - "query": { - "oneOf": [ - { - "$ref": "#/components/schemas/SimpleFilter" + "paymentMethod": { + "$ref": "#/components/schemas/PaymentMethod", + "properties": { + "pluginId": { + "description": "Unique identity of payment plugin within a specific sales channel." }, - { - "$ref": "#/components/schemas/EqualsFilter" + "handlerIdentifier": { + "description": "Internal field that contains system identifier details for payment methods like Paypal." }, - { - "$ref": "#/components/schemas/MultiNotFilter" + "name": { + "description": "Name of the payment method within a specific sales channel." }, - { - "$ref": "#/components/schemas/RangeFilter" + "description": { + "description": "A short description about the payment method within a specific sales channel." + }, + "position": { + "description": "The order of the tabs of your defined payment methods in the storefront by entering numerical values like 1,2,3, etc within a specific sales channel." + }, + "active": { + "description": "When `true`, the payment method is available for usage within a specific sales channel." + }, + "availabilityRuleId": { + "description": "Unique identity of the rule for the payment method." + }, + "mediaId": { + "description": "Unique identity of media used in payment method within a specific sales channel." + }, + "formattedHandlerIdentifier": { + "description": "Internal field that contains system identifier details for payment methods like Paypal." } - ] + } + }, + "shippingLocation": { + "type": "object", + "properties": { + "apiAlias": { + "type": "string", + "enum": [ + "cart_delivery_shipping_location" + ] + }, + "country": { + "$ref": "#/components/schemas/Country" + }, + "address": { + "$ref": "#/components/schemas/CustomerAddress" + } + } + }, + "shippingMethod": { + "$ref": "#/components/schemas/ShippingMethod", + "properties": { + "name": { + "description": "Name of the shipping method within a specific sales channel." + }, + "active": { + "description": "When `true`, the shipping method is available for usage within a specific sales channel." + }, + "description": { + "description": "A short description about the shipping method within a specific sales channel." + }, + "trackingUrl": { + "description": "URL that allows to track packages for a specific sales channel." + }, + "deliveryTimeId": { + "description": "Unique identity of deliveryTime within a specific sales channel." + }, + "availabilityRuleId": { + "description": "Unique identity of the rule for the payment method." + }, + "mediaId": { + "description": "Unique identity of media used in shipping method within a specific sales channel." + } + } + }, + "context": { + "description": "Core context with general configuration values and state", + "type": "object", + "properties": { + "versionId": { + "type": "string", + "description": "Unique identity of context's version in a specific sales channel." + }, + "currencyId": { + "type": "string", + "description": "Unique identity of currency context in a specific sales channel." + }, + "currencyFactor": { + "type": "integer", + "description": "Unique identity of currency factor context in a specific sales channel." + }, + "currencyPrecision": { + "type": "integer", + "format": "int32", + "description": "It defines the round off value of currency to the nearest decimal point. If set to 2, it rounds off to two significant decimal points." + }, + "languageIdChain": { + "type": "array", + "items": { + "type": "string" + } + }, + "scope": { + "type": "string", + "description": "Scope defines if its related to system or user context." + }, + "source": { + "type": "string", + "description": "When context is related to user in the source, then there is userId." + }, + "taxState": { + "type": "string", + "description": "Tax state can either be `gross` or `net`." + }, + "useCache": { + "type": "boolean", + "description": "When boolean value is `true`, caching is used." + } + } + } + } + }, + "SuccessResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean" } + } + }, + "NavigationRouteResponse": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Category" }, - "additionalProperties": true + "properties": { + "id": { + "description": "Unique identity of navigation route response." + } + } }, - "Sort": { + "CartDeliveryInformation": { "type": "object", "properties": { - "field": { - "type": "string" - }, - "order": { + "apiAlias": { "type": "string", "enum": [ - "ASC", - "DESC" + "cart_delivery_information" ] }, - "naturalSorting": { - "type": "boolean" - }, - "type": { - "type": "string" - } - }, - "required": [ - "field", - "order" - ] - }, - "Filters": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SimpleFilter" - }, - { - "$ref": "#/components/schemas/EqualsFilter" - }, - { - "$ref": "#/components/schemas/MultiNotFilter" - }, - { - "$ref": "#/components/schemas/RangeFilter" - } - ] - } - }, - "SimpleFilter": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "contains", - "equalsAny", - "prefix", - "suffix" - ] - }, - "field": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "type", - "field", - "value" - ] - }, - "EqualsFilter": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "equals" - ] - }, - "field": { - "type": "string" - }, - "value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "required": [ - "type", - "field", - "value" - ] - }, - "MultiNotFilter": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "multi", - "not" - ] - }, - "operator": { - "type": "string", - "enum": [ - "and", - "or", - "nor", - "nand" - ] - }, - "queries": { - "$ref": "#/components/schemas/Filters" - } - }, - "required": [ - "type", - "operator", - "queries" - ] - }, - "RangeFilter": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "range" - ] - }, - "field": { - "type": "string" - }, - "parameters": { - "type": "object", - "properties": { - "gte": { - "type": "number" - }, - "gt": { - "type": "number" - }, - "lte": { - "type": "number" - }, - "lt": { - "type": "number" - } - } - } - }, - "required": [ - "type", - "field", - "parameters" - ] - }, - "Association": { - "additionalProperties": { - "$ref": "#/components/schemas/Association" - } - }, - "OrderRouteResponse": { - "type": "object", - "properties": { - "orders": { - "type": "object", - "allOf": [ - { - "type": "object", - "required": [ - "elements" - ], - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Order" - } - } - } - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - }, - "paymentChangeable": { - "type": "object", - "description": "The key-value pairs contain the uuid of the order as key and a boolean as value, indicating that the payment method can still be changed.", - "additionalProperties": { - "type": "boolean" - } - } - }, - "required": [ - "orders" - ] - }, - "CartDeliveryInformation": { - "type": "object", - "properties": { - "apiAlias": { - "type": "string", - "enum": [ - "cart_delivery_information" - ] - }, - "freeDelivery": { + "freeDelivery": { "type": "boolean" }, "deliveryTime": { @@ -15175,1109 +14363,492 @@ "apiAlias" ] }, - "WishlistLoadRouteResponse": { + "FindProductVariantRouteResponse": { "type": "object", - "required": [ - "products" - ], "properties": { - "wishlist": { + "foundCombination": { "type": "object", "properties": { - "customerId": { + "variantId": { "type": "string", - "description": "Unique identity of the customer." + "pattern": "^[0-9a-f]{32}$", + "description": "Unique identity of a variant." }, - "salesChannelId": { - "type": "string", - "description": "Unique identity of the sales channel." + "options": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Available product variant options. For example, for variant `Size`, option would be `XS`, `S`, `M`, `L`, `XL`." } } - }, - "products": { - "$ref": "#/components/schemas/ProductListingResult" } } }, - "AggregationEntity": { - "title": "AggregationEntity", - "type": "object", + "CrossSellingElementCollection": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CrossSellingElement" + }, "properties": { - "name": { - "description": "Give your aggregation an identifier, so you can find it easier", - "type": "string" - }, - "type": { - "description": "The type of aggregation", - "type": "string", - "enum": [ - "entity" - ] - }, - "field": { - "description": "The field you want to aggregate over.", - "type": "string" - }, - "definition": { - "description": "The entity definition e.g \"product_manufacturer\".", - "type": "string" + "total": { + "description": "Number of cross selling elements found." } - }, - "required": [ - "name", - "type", - "field", - "definition" - ] + } }, - "AggregationFilter": { - "title": "AggregationFilter", + "CartError": { "type": "object", + "description": "A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.", "properties": { - "name": { - "description": "Give your aggregation an identifier, so you can find it easier", - "type": "string" - }, - "type": { - "description": "The type of aggregation", - "type": "string", - "enum": [ - "filter" - ] - }, - "filter": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Filters" - } - } - }, - "required": [ - "name", - "type", - "filter" - ] - }, - "AggregationTerms": { - "title": "AggregationTerms", - "type": "object", - "properties": { - "name": { - "description": "Give your aggregation an identifier, so you can find it easier", - "type": "string" - }, - "type": { - "description": "The type of aggregation", - "type": "string", - "enum": [ - "terms" - ] - }, - "field": { - "description": "The field you want to aggregate over.", - "type": "string" - }, - "limit": { - "description": "The number of terms to return", - "type": "number" - }, - "sort": { - "type": "array", - "description": "Sorting the aggregation result.", - "items": { - "$ref": "#/components/schemas/Sort" + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "level": { + "type": "number", + "enum": [ + 0, + 10, + 20 + ], + "description": "* `0` - notice,\n* `10` - warning,\n* `20` - error" + }, + "message": { + "type": "string" + }, + "messageKey": { + "type": "string" + } } } - }, - "required": [ - "name", - "type", - "field" - ] - }, - "AggregationHistogram": { - "title": "AggregationHistogram", - "type": "object", - "properties": { - "name": { - "description": "Give your aggregation an identifier, so you can find it easier", - "type": "string" - }, - "type": { - "description": "The type of aggregation", - "type": "string", - "enum": [ - "histogram" - ] - }, - "field": { - "description": "The field you want to aggregate over.", - "type": "string" - }, - "interval": { - "description": "The interval of the histogram", - "type": "number" - }, - "format": { - "description": "The format of the histogram", - "type": "string" - }, - "timeZone": { - "description": "The timezone of the histogram", - "type": "string" - } - }, - "required": [ - "name", - "type", - "field" - ] + } }, - "AggregationRange": { - "title": "AggregationRange", - "description": "For more information, see [Aggregations Reference > Range Aggregation](https://developer.shopware.com/docs/resources/references/core-reference/dal-reference/aggregations-reference.html#range-aggregations)", - "type": "object", - "properties": { - "name": { - "description": "Give your aggregation an identifier, so you can find it easier", - "type": "string" - }, - "type": { - "description": "The type of aggregation", - "type": "string", - "enum": [ - "range" - ] - }, - "field": { - "description": "The field you want to aggregate over.", - "type": "string" + "ProductListingResult": { + "allOf": [ + { + "$ref": "#/components/schemas/EntitySearchResult" }, - "ranges": { - "description": "The ranges of the aggregation", - "type": "array", - "items": { - "type": "object", - "anyOf": [ - { - "type": "object", - "title": "From and to", - "properties": { - "from": { - "type": "number", - "description": "The lower bound of the range" - }, - "to": { - "type": "number", - "description": "The upper bound of the range" + { + "type": "object", + "properties": { + "currentFilters": { + "type": "object", + "description": "Contains the state of the filters. These can be used to create listing filters.", + "properties": { + "navigationId": { + "type": "string" + }, + "manufacturer": { + "type": "array", + "items": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" } }, - "required": [ - "from", - "to" - ] - }, - { - "type": "object", - "title": "From only", + "price": { + "type": "object", + "properties": { + "min": { + "type": "integer", + "default": 0 + }, + "max": { + "type": "integer", + "default": 0 + } + }, + "required": [ + "min", + "max" + ] + }, + "rating": { + "type": "integer", + "nullable": true + }, + "shipping-free": { + "type": "boolean", + "default": false + }, "properties": { - "from": { + "type": "array", + "items": { "type": "string", - "description": "The lower bound of the range" + "pattern": "^[0-9a-f]{32}$" } }, - "required": [ - "from" - ] + "search": { + "type": "string" + } }, - { + "required": [ + "manufacturer", + "navigationId", + "price", + "properties", + "rating", + "shipping-free" + ] + }, + "availableSortings": { + "type": "array", + "description": "Contains the available sorting. These can be used to show a sorting select-box in the product listing.", + "items": { "type": "object", - "title": "To only", "properties": { - "to": { + "label": { + "type": "string" + }, + "translated": { + "type": "object", + "properties": { + "label": { + "type": "string" + } + }, + "required": [ + "label" + ] + }, + "key": { + "type": "string" + }, + "priority": { + "type": "number" + }, + "apiAlias": { "type": "string", - "description": "The upper bound of the range" + "enum": [ + "product_sorting" + ] } }, "required": [ - "to" + "label", + "translated", + "key", + "priority", + "apiAlias" ] } - ] - } + }, + "sorting": { + "type": "string" + }, + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Product" + } + }, + "entity": { + "type": "string", + "enum": [ + "product" + ] + }, + "apiAlias": { + "type": "string", + "enum": [ + "product_listing" + ] + } + }, + "required": [ + "elements", + "availableSortings", + "currentFilters", + "apiAlias" + ] } - }, - "required": [ - "name", - "type", - "field", - "ranges" ] }, - "CartListPrice": { - "type": "object", - "description": "", + "BreadcrumbCollection": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Breadcrumb" + } + }, + "AccountNewsletterRecipientResult": { "properties": { - "discount": { - "type": "number" - }, - "percentage": { - "type": "number" - }, - "price": { - "type": "number" - }, - "apiAlias": { - "type": "string", - "enum": [ - "cart_list_price" - ] + "status": { + "description": "Status indicates if the customer has subscribed to the news letter or not." } - }, - "required": [ - "apiAlias" - ] + } }, - "Cart": { - "type": "object", + "OrderProductWarehouse": { "properties": { - "name": { - "description": "Name of the cart - for example `guest-cart`", - "type": "string" + "id": { + "description": "Unique identity of order's product warehouse." + } + } + }, + "OrderReturn": { + "properties": { + "id": { + "description": "Unique identity of order return." }, - "token": { - "description": "Context token identifying the cart and the user session", - "type": "string" + "versionId": { + "description": "Unique identity of order return's version." }, - "price": { - "$ref": "#/components/schemas/CalculatedPrice" + "orderId": { + "description": "Unique identity of order." }, - "lineItems": { - "description": "All items within the cart", - "type": "array", - "items": { - "$ref": "#/components/schemas/LineItem" - } + "orderVersionId": { + "description": "Unique identity of order return version." }, - "errors": { - "type": "object", - "description": "A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.", - "anyOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/CartError" - } - }, - { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "code": { - "type": "number" - }, - "key": { - "type": "string" - }, - "level": { - "type": "number" - }, - "message": { - "type": "string" - }, - "messageKey": { - "type": "string" - } - }, - "required": [ - "code", - "key", - "level", - "message", - "messageKey" - ] - } - } - ], + "price": { "properties": { - "key": { - "description": "Unique key for every message." + "netPrice": { + "description": "Net price of the product." }, - "level": { - "description": "Types of level - Notice, warning and error. " + "totalPrice": { + "description": "Gross price of the product." }, - "message": { - "description": "A persistent error passed from the shopping cart calculation processes to the user end." + "calculatedTaxes": { + "description": "Contains calculated tax on order delivery price." + }, + "taxRules": { + "description": "Pricing based on multiple taxes." + }, + "positionPrice": { + "description": "Price of each line item in the cart multiplied by its quantity excluding charges like shipping cost, rules, taxes etc." + }, + "rawTotal": { + "description": "The total value before rounding off." + }, + "taxStatus": { + "description": "TaxStatus takes `Free`, `Net` or `Gross` as values." } } }, - "deliveries": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CartDelivery" - } - }, - "transactions": { - "description": "A list of all payment transactions associated with the current cart.", - "type": "array", - "items": { - "type": "object", - "properties": { - "paymentMethodId": { - "type": "string" - }, - "amount": { - "$ref": "#/components/schemas/CalculatedPrice" - } - } - }, + "shippingCosts": { "properties": { - "paymentMethodId": { - "description": "Unique identity of payment method." - } - } - }, - "modified": { - "type": "boolean", - "description": "It signifies any changes to cart." - }, - "customerComment": { - "description": "A comment that can be added to the cart.", - "oneOf": [ - { - "type": "string" + "unitPrice": { + "description": "Shipping cost of product per item (where, quantity=1)." }, - { - "type": "null" - } - ] - }, - "affiliateCode": { - "description": "An affiliate tracking code", - "oneOf": [ - { - "type": "string" + "totalPrice": { + "description": "Shipping cost of product based on quantity." }, - { - "type": "null" - } - ] - }, - "campaignCode": { - "description": "A campaign tracking code", - "oneOf": [ - { - "type": "string" + "quantity": { + "description": "Number of items of each product." }, - { - "type": "null" + "calculatedTaxes": { + "description": "Contains calculated taxes based on shipping costs/methods." + }, + "taxRules": { + "description": "Pricing based on multiple taxes." + }, + "referencePrice": { + "description": "Original cost price of the product." + }, + "listPrice": { + "properties": { + "price": { + "description": "Price of each line item." + }, + "discount": { + "description": "Absolute discount on each line item." + }, + "percentage": { + "description": "Discount in percentage." + } + } + }, + "regulationPrice": { + "properties": { + "price": { + "description": "Contains cheapest price from last 30 days as per EU law." + } + } } - ] + } }, - "apiAlias": { - "type": "string", - "enum": [ - "cart" - ] + "stateId": { + "description": "Unique identity of state." }, - "id": { - "description": "Unique identity of cart." + "returnNumber": { + "description": "Reference number for returning order." + }, + "requestedAt": { + "description": "Date and time when the order return was requested." + }, + "amountTotal": { + "description": "Gross price of the order." + }, + "amountNet": { + "description": "Net price of the order." } - }, - "required": [ - "price", - "apiAlias" - ] + } }, - "CookieGroup": { - "type": "object", + "OrderReturnLineItem": { "properties": { - "isRequired": { - "type": "boolean" + "id": { + "description": "Unique identity of order return line item." }, - "name": { - "type": "string" + "versionId": { + "description": "Unique identity of order return line item's version." }, - "description": { - "type": "string" + "orderReturnId": { + "description": "Unique identity of order return." }, - "cookie": { - "type": "string" + "orderReturnVersionId": { + "description": "Unique identity of order return version." }, - "value": { - "type": "string" + "orderLineItemId": { + "description": "Unique identity of order line item." }, - "expiration": { - "type": "integer" + "orderLineItemVersionId": { + "description": "Unique identity of order line items's version." }, - "entries": { - "$ref": "#/components/schemas/CookieEntryCollection" + "reasonId": { + "description": "Unique identity of reason for return." }, - "apiAlias": { - "type": "string", - "enum": [ - "cookie_group" - ] + "quantity": { + "description": "Number of line items returned." + }, + "refundAmount": { + "description": "Amount to be refunded." + }, + "restockQuantity": { + "description": "Update of stock quantity after the return of certain line items are initiated." + }, + "customFields": { + "description": "Additional fields that offer a possibility to add own fields for the different program-areas." + }, + "stateId": { + "description": "Unique identity of state." } - }, - "not": { - "allOf": [ - { - "required": [ - "cookie" - ] - }, - { - "required": [ - "entries" - ] - } - ] - }, - "required": [ - "name", - "isRequired", - "apiAlias" - ] + } }, - "MeasurementUnits": { - "type": "object", - "description": "Configuration of the measurement system", + "OrderReturnLineItemReason": { "properties": { - "system": { - "type": "string", - "enum": [ - "metric", - "imperial" - ], - "default": "metric", - "description": "The measurement system used in the store. 'metric' for metric system, 'imperial' for imperial system." + "id": { + "description": "Unique identity for reason of return." }, - "units": { - "type": "object", - "description": "Units used in the measurement system.", - "properties": { - "length": { - "type": "string", - "enum": [ - "mm", - "cm", - "m", - "in", - "ft" - ], - "default": "mm", - "description": "Unit of length." - }, - "weight": { - "type": "string", - "enum": [ - "g", - "kg", - "oz", - "lb" - ], - "default": "kg", - "description": "Unit of weight." - } - } + "reasonKey": { + "description": "Unique key associated with reason for the order return. " + }, + "content": { + "description": "Description of the reason of return." + }, + "translated": { + "description": "Contains the translations of all translated fields." } } }, - "Price": { - "type": "object", - "description": "Price object", + "OrderWarehouseGroup": { "properties": { - "currencyId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "gross": { - "description": "", - "type": "number" + "id": { + "description": "Unique identity of order warehouse group." + } + } + }, + "ProductReviewSummary": { + "properties": { + "id": { + "description": "Unique identity of products's review summary." }, - "net": { - "description": "", - "type": "number" + "productId": { + "description": "Unique identity of products." }, - "linked": { - "description": "", - "type": "boolean" + "salesChannelId": { + "description": "Unique identity of sales channel." }, - "listPrice": { - "description": "", - "type": "object", - "properties": { - "currencyId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "gross": { - "description": "", - "type": "number" - }, - "net": { - "description": "", - "type": "number" - }, - "linked": { - "description": "", - "type": "boolean" - } - }, - "required": [ - "gross", - "net" - ] + "summary": { + "description": "Unique identity of products's review summary." }, - "regulationPrice": { - "description": "", - "type": "object", - "properties": { - "currencyId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "gross": { - "description": "", - "type": "number" - }, - "net": { - "description": "", - "type": "number" - }, - "linked": { - "description": "", - "type": "boolean" - } - }, - "required": [ - "gross", - "net" - ] - } - }, - "required": [ - "currencyId", - "gross", - "net" - ] - }, - "ContextMeasurementSystemInfo": { - "type": "object", - "description": "Configuration of the measurement system used in the store, by default including units for length and weight.", - "properties": { - "system": { - "type": "string", - "enum": [ - "metric", - "imperial" - ], - "default": "metric", - "description": "The measurement system used in the store. 'metric' for metric system, 'imperial' for imperial system." + "visible": { + "description": "When boolean value is `true`, the review is displayed to the customer." }, - "units": { - "type": "object", - "description": "Units used in the measurement system.", - "properties": { - "length": { - "type": "string", - "enum": [ - "mm", - "cm", - "m", - "in", - "ft" - ], - "default": "mm", - "description": "Unit of length." - }, - "weight": { - "type": "string", - "enum": [ - "g", - "kg", - "oz", - "lb" - ], - "default": "kg", - "description": "Unit of weight." - } - } + "translated": { + "description": "Contains the translations of all translated fields." } } }, - "FindProductVariantRouteResponse": { - "type": "object", + "ProductWarehouse": { "properties": { - "foundCombination": { - "type": "object", - "properties": { - "variantId": { - "type": "string", - "pattern": "^[0-9a-f]{32}$", - "description": "Unique identity of a variant." - }, - "options": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Available product variant options. For example, for variant `Size`, option would be `XS`, `S`, `M`, `L`, `XL`." - } - } + "id": { + "description": "Unique identity of warehouse of product." } } }, - "ListPrice": { - "type": "object", - "description": "", + "Subscription": { "properties": { - "discount": { - "type": "number" + "id": { + "description": "Unique identity of subscription." }, - "percentage": { - "type": "number" + "convertedOrder": { + "description": "An array loaded with persistent information related to cart data." }, - "price": { - "type": "number" + "subscriptionNumber": { + "description": "Unique number associated with subscription." }, - "apiAlias": { - "type": "string", - "enum": [ - "cart_list_price" - ] - } - }, - "required": [ - "apiAlias" - ] - }, - "ProductListingResult": { - "allOf": [ - { - "$ref": "#/components/schemas/EntitySearchResult" + "nextSchedule": { + "description": "Date and time of next scheduled subscription for example: `yyyy-mm-dd hh:mm:ss` - `2023-08-15 15:25:32`." }, - { - "type": "object", - "properties": { - "currentFilters": { - "type": "object", - "description": "Contains the state of the filters. These can be used to create listing filters.", - "properties": { - "navigationId": { - "type": "string" - }, - "manufacturer": { - "type": "array", - "items": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - "price": { - "type": "object", - "properties": { - "min": { - "type": "integer", - "default": 0 - }, - "max": { - "type": "integer", - "default": 0 - } - }, - "required": [ - "min", - "max" - ] - }, - "rating": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "shipping-free": { - "type": "boolean", - "default": false - }, - "properties": { - "type": "array", - "items": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - "search": { - "type": "string" - } - }, - "required": [ - "manufacturer", - "navigationId", - "price", - "properties", - "rating", - "shipping-free" - ] - }, - "availableSortings": { - "type": "array", - "description": "Contains the available sorting. These can be used to show a sorting select-box in the product listing.", - "items": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "translated": { - "type": "object", - "properties": { - "label": { - "type": "string" - } - }, - "required": [ - "label" - ] - }, - "key": { - "type": "string" - }, - "priority": { - "type": "number" - }, - "apiAlias": { - "type": "string", - "enum": [ - "product_sorting" - ] - } - }, - "required": [ - "label", - "translated", - "key", - "priority", - "apiAlias" - ] - } - }, - "sorting": { - "type": "string" - }, - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Product" - } - }, - "entity": { - "type": "string", - "enum": [ - "product" - ] - }, - "apiAlias": { - "type": "string", - "enum": [ - "product_listing" - ] - } - }, - "required": [ - "elements", - "availableSortings", - "currentFilters", - "apiAlias" - ] - } - ] - }, - "AccountNewsletterRecipientResult": { - "properties": { - "status": { - "description": "Status indicates if the customer has subscribed to the news letter or not." - } - } - }, - "OrderProductWarehouse": { - "properties": { - "id": { - "description": "Unique identity of order's product warehouse." + "salesChannelId": { + "description": "Unique identity of sales channel." + }, + "subscriptionPlanId": { + "description": "Unique identity of subscription plan." + }, + "subscriptionPlanName": { + "description": "Unique name for subscription plan." + }, + "subscriptionIntervalId": { + "description": "Unique identity for subscription interval." + }, + "subscriptionIntervalName": { + "description": "Unique name for subscription interval." + }, + "dateInterval": { + "description": "Relative interval data. For example, `every 3 days`, `every 2 months`, etc." + }, + "cronInterval": { + "description": "Absolute interval data. For example, `only on January`, `only on Mondays`, etc." + }, + "billingAddressId": { + "description": "Unique identity of billing address." + }, + "shippingAddressId": { + "description": "Unique identity of shipping address." + }, + "shippingMethodId": { + "description": "Unique identity of shipping method." + }, + "paymentMethodId": { + "description": "Unique identity of payment method." + }, + "currencyId": { + "description": "Unique identity of currency." + }, + "languageId": { + "description": "Unique identity of language." + }, + "customFields": { + "description": "Additional fields that offer a possibility to add own fields for the different program-areas." } } }, - "OrderReturn": { + "SubscriptionAddress": { "properties": { "id": { - "description": "Unique identity of order return." + "description": "Unique identity of subscription address." }, - "versionId": { - "description": "Unique identity of order return's version." + "countryId": { + "description": "Unique identity of country." }, - "orderId": { - "description": "Unique identity of order." + "subscriptionId": { + "description": "Unique identity of subscription." }, - "orderVersionId": { - "description": "Unique identity of order return version." + "countryStateId": { + "description": "Unique identity of state of the country." }, - "price": { - "properties": { - "netPrice": { - "description": "Net price of the product." - }, - "totalPrice": { - "description": "Gross price of the product." - }, - "calculatedTaxes": { - "description": "Contains calculated tax on order delivery price." - }, - "taxRules": { - "description": "Pricing based on multiple taxes." - }, - "positionPrice": { - "description": "Price of each line item in the cart multiplied by its quantity excluding charges like shipping cost, rules, taxes etc." - }, - "rawTotal": { - "description": "The total value before rounding off." - }, - "taxStatus": { - "description": "TaxStatus takes `Free`, `Net` or `Gross` as values." - } - } - }, - "shippingCosts": { - "properties": { - "unitPrice": { - "description": "Shipping cost of product per item (where, quantity=1)." - }, - "totalPrice": { - "description": "Shipping cost of product based on quantity." - }, - "quantity": { - "description": "Number of items of each product." - }, - "calculatedTaxes": { - "description": "Contains calculated taxes based on shipping costs/methods." - }, - "taxRules": { - "description": "Pricing based on multiple taxes." - }, - "referencePrice": { - "description": "Original cost price of the product." - }, - "listPrice": { - "properties": { - "price": { - "description": "Price of each line item." - }, - "discount": { - "description": "Absolute discount on each line item." - }, - "percentage": { - "description": "Discount in percentage." - } - } - }, - "regulationPrice": { - "properties": { - "price": { - "description": "Contains cheapest price from last 30 days as per EU law." - } - } - } - } - }, - "stateId": { - "description": "Unique identity of state." - }, - "returnNumber": { - "description": "Reference number for returning order." - }, - "requestedAt": { - "description": "Date and time when the order return was requested." - }, - "amountTotal": { - "description": "Gross price of the order." - }, - "amountNet": { - "description": "Net price of the order." - } - } - }, - "OrderReturnLineItem": { - "properties": { - "id": { - "description": "Unique identity of order return line item." - }, - "versionId": { - "description": "Unique identity of order return line item's version." - }, - "orderReturnId": { - "description": "Unique identity of order return." - }, - "orderReturnVersionId": { - "description": "Unique identity of order return version." - }, - "orderLineItemId": { - "description": "Unique identity of order line item." - }, - "orderLineItemVersionId": { - "description": "Unique identity of order line items's version." - }, - "reasonId": { - "description": "Unique identity of reason for return." - }, - "quantity": { - "description": "Number of line items returned." - }, - "refundAmount": { - "description": "Amount to be refunded." - }, - "restockQuantity": { - "description": "Update of stock quantity after the return of certain line items are initiated." - }, - "customFields": { - "description": "Additional fields that offer a possibility to add own fields for the different program-areas." - }, - "stateId": { - "description": "Unique identity of state." - } - } - }, - "OrderReturnLineItemReason": { - "properties": { - "id": { - "description": "Unique identity for reason of return." - }, - "reasonKey": { - "description": "Unique key associated with reason for the order return. " - }, - "content": { - "description": "Description of the reason of return." - }, - "translated": { - "description": "Contains the translations of all translated fields." - } - } - }, - "OrderWarehouseGroup": { - "properties": { - "id": { - "description": "Unique identity of order warehouse group." - } - } - }, - "ProductReviewSummary": { - "properties": { - "id": { - "description": "Unique identity of products's review summary." - }, - "productId": { - "description": "Unique identity of products." - }, - "salesChannelId": { - "description": "Unique identity of sales channel." - }, - "summary": { - "description": "Unique identity of products's review summary." - }, - "visible": { - "description": "When boolean value is `true`, the review is displayed to the customer." - }, - "translated": { - "description": "Contains the translations of all translated fields." - } - } - }, - "ProductWarehouse": { - "properties": { - "id": { - "description": "Unique identity of warehouse of product." - } - } - }, - "Subscription": { - "properties": { - "id": { - "description": "Unique identity of subscription." - }, - "convertedOrder": { - "description": "An array loaded with persistent information related to cart data." - }, - "subscriptionNumber": { - "description": "Unique number associated with subscription." - }, - "nextSchedule": { - "description": "Date and time of next scheduled subscription for example: `yyyy-mm-dd hh:mm:ss` - `2023-08-15 15:25:32`." - }, - "salesChannelId": { - "description": "Unique identity of sales channel." - }, - "subscriptionPlanId": { - "description": "Unique identity of subscription plan." - }, - "subscriptionPlanName": { - "description": "Unique name for subscription plan." - }, - "subscriptionIntervalId": { - "description": "Unique identity for subscription interval." - }, - "subscriptionIntervalName": { - "description": "Unique name for subscription interval." - }, - "dateInterval": { - "description": "Relative interval data. For example, `every 3 days`, `every 2 months`, etc." - }, - "cronInterval": { - "description": "Absolute interval data. For example, `only on January`, `only on Mondays`, etc." - }, - "billingAddressId": { - "description": "Unique identity of billing address." - }, - "shippingAddressId": { - "description": "Unique identity of shipping address." - }, - "shippingMethodId": { - "description": "Unique identity of shipping method." - }, - "paymentMethodId": { - "description": "Unique identity of payment method." - }, - "currencyId": { - "description": "Unique identity of currency." - }, - "languageId": { - "description": "Unique identity of language." - }, - "customFields": { - "description": "Additional fields that offer a possibility to add own fields for the different program-areas." - } - } - }, - "SubscriptionAddress": { - "properties": { - "id": { - "description": "Unique identity of subscription address." - }, - "countryId": { - "description": "Unique identity of country." - }, - "subscriptionId": { - "description": "Unique identity of subscription." - }, - "countryStateId": { - "description": "Unique identity of state of the country." - }, - "salutationId": { - "description": "Unique identity of salutation." + "salutationId": { + "description": "Unique identity of salutation." }, "firstName": { "description": "First name of the subscribed customer." @@ -16658,271 +15229,14 @@ "204": { "description": "No Content" }, - "CurrencyListResponse": { - "description": "Entity search result containing currencies.", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Currency" - } - } - } - } - }, - "ProductListResponse": { - "description": "Entity search result containing products", + "OpenApi3": { + "description": "Returns information about the store API.", "content": { "application/json": { "schema": { - "allOf": [ - { - "required": [ - "elements" - ], - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Product" - } - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - } - } - } - }, - "SeoUrlListResponse": { - "description": "Entity search result containing seo urls.", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SeoUrl" - } - } - }, - "type": "object", - "required": [ - "elements" - ] - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - } - } - } - }, - "CategoryListResponse": { - "description": "Entity search result containing categories.", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "type": "object", - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Category" - } - } - } - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - } - } - } - }, - "LanguageListResponse": { - "description": "Entity search result containing languages.", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Language" - } - } - }, - "required": [ - "elements" - ], - "type": "object" - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - } - } - } - }, - "CountryStateListResponse": { - "description": "Entity search result containing countries.", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CountryState" - } - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - } - } - } - }, - "ContextTokenResponse": { - "description": "Returns the context token. Use that as your `sw-context-token` header for subsequent requests. Redirect if getRedirectUrl is set.", - "headers": { - "sw-context-token": { - "description": "Contains sw-context-token value", - "schema": { - "type": "string" - } - } - }, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "redirectUrl": { - "description": "Define the URL which browser will be redirected to", - "type": "string" - } - } - } - } - } - }, - "SalutationListResponse": { - "description": "Entity search result containing salutations.", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Salutation" - } - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - } - } - } - }, - "ShippingMethodListResponse": { - "description": "Entity search result containing shipping methods.", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "required": [ - "elements" - ], - "properties": { - "total": { - "description": "Total amount", - "type": "integer" - }, - "aggregations": { - "description": "aggregation result", - "type": "object" - }, - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ShippingMethod" - } - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - } - } - } - }, - "CountryListResponse": { - "description": "Entity search result containing countries.", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Country" - } - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - } - } - } - }, - "OpenApi3": { - "description": "Returns information about the store API.", - "content": { - "application/json": { - "schema": { - "properties": { - "openapi": { - "type": "string" + "properties": { + "openapi": { + "type": "string" }, "info": { "type": "object", @@ -17079,3083 +15393,116 @@ ] } }, - "externalDocs": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - } - }, - "required": [ - "url" - ] - } - }, - "type": "object", - "required": [ - "openapi", - "info" - ] - } - } - } - }, - "PaymentMethodListResponse": { - "description": "", - "content": { - "application/json": { - "schema": { - "properties": { - "total": { - "description": "Total amount", - "type": "integer" - }, - "aggregations": { - "description": "aggregation result", - "type": "object" - }, - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentMethod" - } - } - }, - "type": "object" - } - } - } - } - }, - "parameters": { - "contentType": { - "name": "Content-Type", - "in": "header", - "description": "Content type of the request", - "required": true, - "schema": { - "type": "string", - "default": "application/json" - } - }, - "accept": { - "name": "Accept", - "in": "header", - "description": "Accepted response content types", - "required": true, - "schema": { - "type": "string", - "default": "application/json" - } - }, - "noAggregations": { - "name": "no-aggregations", - "in": "query", - "description": "Resets all aggregations in the criteria. This parameter is a flag, the value has no effect.", - "required": false, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "onlyAggregations": { - "name": "only-aggregations", - "in": "query", - "description": "If this flag is set, no products are fetched. Sorting and associations are also ignored. This parameter is a flag, the value has no effect.", - "required": false, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "criteriaPage": { - "name": "page", - "in": "query", - "description": "Search result page", - "schema": { - "type": "integer" - } - }, - "criteriaLimit": { - "name": "limit", - "in": "query", - "description": "Number of items per result page", - "schema": { - "type": "integer" - } - }, - "criteriaTerm": { - "name": "term", - "in": "query", - "description": "Search term", - "schema": { - "type": "string" - } - }, - "criteriaFilter": { - "name": "filter[]", - "in": "query", - "description": "List of filters to restrict the search result. For more information, see [Search Queries > Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#filter)", - "schema": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SimpleFilter" - }, - { - "$ref": "#/components/schemas/EqualsFilter" - }, - { - "$ref": "#/components/schemas/MultiNotFilter" - }, - { - "$ref": "#/components/schemas/RangeFilter" - } - ] - } - } - }, - "criteriaIds": { - "name": "ids[]", - "in": "query", - "description": "List of ids to search for", - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "criteriaQuery": { - "name": "query", - "in": "query", - "description": "The query string to search for", - "schema": { - "type": "string" - } - }, - "criteriaAssociations": { - "name": "associations", - "in": "query", - "description": "", - "schema": { - "$ref": "#/components/schemas/Associations" - }, - "style": "deepObject", - "explode": true - }, - "criteriaPostFilter": { - "name": "post-filter[]", - "in": "query", - "description": "Filters that applied without affecting aggregations. For more information, see [Search Queries > Post Filter](https://shopware.stoplight.io/docs/store-api/docs/concepts/search-queries.md#post-filter)", - "schema": { - "type": "array", - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/SimpleFilter" - }, - { - "$ref": "#/components/schemas/EqualsFilter" - }, - { - "$ref": "#/components/schemas/MultiNotFilter" - }, - { - "$ref": "#/components/schemas/RangeFilter" - } - ] - } - } - }, - "criteriaSort": { - "name": "sort[]", - "in": "query", - "description": "Sorting in the search result.", - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sort" - } - } - }, - "criteriaAggregations": { - "name": "aggregations[]", - "in": "query", - "description": "", - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Aggregation" - } - } - }, - "criteriaFields": { - "name": "fields[]", - "in": "query", - "description": "Fields which should be returned in the search result.", - "schema": { - "type": "array", - "items": { - "type": "string", - "description": "Name of a field" - } - } - }, - "criteriaGrouping": { - "name": "grouping[]", - "in": "query", - "description": "Perform groupings over certain fields", - "schema": { - "type": "array", - "items": { - "type": "string", - "description": "Name of a field" - } - } - }, - "criteriaTotalCountMode": { - "name": "total-count-mode", - "in": "query", - "description": "", - "schema": { - "$ref": "#/components/schemas/TotalCountMode" - } - }, - "criteriaIncludes": { - "name": "includes", - "in": "query", - "description": "Specify the fields that should be returned for the given entities. Object key needs to be the entity name, and the list of fields needs to be the value. Fields will not be included, if they are also specified in the excludes. Note that the include fields will only be stripped on the API-Level, consider using the `fields` parameter for performance reasons.", - "schema": { - "$ref": "#/components/schemas/Includes" - }, - "style": "deepObject", - "explode": true - }, - "criteriaExcludes": { - "name": "excludes", - "in": "query", - "description": "Specify the fields that should be excluded from the response for the given entities. Object key needs to be the entity name, and the list of fields needs to be the value. Note that the exclude fields will only be stripped on the API-Level, consider using the `fields` parameter for performance reasons.", - "schema": { - "$ref": "#/components/schemas/Excludes" - }, - "style": "deepObject", - "explode": true - }, - "CompressedCriteria": { - "name": "_criteria", - "in": "query", - "description": "Compressed and encoded criteria object. Format: base64url(gzip(json_encode(criteria))). This parameter allows passing complex criteria as a single encoded string instead of multiple query parameters. The criteria object should be JSON-encoded, then gzipped, and finally base64url-encoded. The criteria object structure is defined in the Criteria schema (see #/components/schemas/Criteria).", - "required": false, - "schema": { - "type": "string", - "format": "base64url", - "example": "H4sIAAAAAAAAA6tWykpNzFGyqlbKz8lPTSxRslJKSi0pzSsFAGcQr7sHAAAA" - } - }, - "CompressedNoneFieldsCriteria": { - "name": "_criteria", - "in": "query", - "description": "Compressed and encoded criteria object. Format: base64url(gzip(json_encode(criteria))). This parameter allows passing complex criteria as a single encoded string instead of multiple query parameters. The criteria object should be JSON-encoded, then gzipped, and finally base64url-encoded. The criteria object structure is defined in the NoneFieldsCriteria schema (see #/components/schemas/NoneFieldsCriteria).", - "required": false, - "schema": { - "type": "string", - "format": "base64url", - "example": "H4sIAAAAAAAAA6tWykpNzFGyqlbKz8lPTSxRslJKSi0pzSsFAGcQr7sHAAAA" - } - } - }, - "securitySchemes": { - "ApiKey": { - "type": "apiKey", - "description": "Identifies the sales channel you want to access the API through", - "name": "sw-access-key", - "in": "header" - }, - "ContextToken": { - "type": "apiKey", - "description": "Identifies an anonymous or identified user session", - "name": "sw-context-token", - "in": "header" - } - } - }, - "security": [ - { - "ApiKey": [] - } - ], - "paths": { - "/country": { - "post": { - "tags": [ - "System & Context", - "Endpoints supporting Criteria " - ], - "summary": "Fetch countries", - "description": "Perform a filtered search for countries\n\n**Available Associations:**\n- `states` - States/provinces/regions within the country", - "operationId": "readCountry", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - } - ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" - } - ] - } - } - } - }, - "responses": { - "200": { - "$ref": "#/components/responses/CountryListResponse" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - }, - "get": { - "tags": [ - "System & Context", - "Endpoints supporting Criteria " - ], - "summary": "Fetch countries", - "description": "Perform a filtered search for countries\n\n**Available Associations:**\n- `states` - States/provinces/regions within the country", - "operationId": "readCountryGet", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/CountryListResponse" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/account/newsletter-recipient": { - "post": { - "tags": [ - "Profile", - "Newsletter", - "Endpoints supporting Criteria" - ], - "summary": "Fetch newsletter recipients", - "description": "Perform a filtered search for newsletter recipients.", - "operationId": "readNewsletterRecipient", - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" - } - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AccountNewsletterRecipient" - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ], - "parameters": [ - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - } - ] - } - }, - "/account/change-profile": { - "post": { - "tags": [ - "Profile" - ], - "summary": "Change the customer's information", - "description": "Make changes to a customer's account, like changing their name, salutation or title.", - "operationId": "changeProfile", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "firstName", - "lastName" - ], - "properties": { - "salutationId": { - "description": "Id of the salutation for the customer account. Fetch options using `salutation` endpoint.", - "type": "string" - }, - "title": { - "description": "(Academic) title of the customer", - "type": "string" - }, - "firstName": { - "description": "Customer first name. Value will be reused for shipping and billing address if not provided explicitly.", - "type": "string" - }, - "lastName": { - "description": "Customer last name. Value will be reused for shipping and billing address if not provided explicitly.", - "type": "string" - }, - "birthdayDay": { - "description": "Birthday day", - "type": "integer" - }, - "birthdayMonth": { - "description": "Birthday month", - "type": "integer" - }, - "birthdayYear": { - "description": "Birthday year", - "type": "integer" - } - }, - "oneOf": [ - { - "properties": { - "accountType": { - "description": "Type of the customer account. Default value is 'private'.", - "type": "string", - "enum": [ - "private" - ], - "default": "private" - }, - "company": { - "type": "null" - }, - "vatIds": { - "type": "null" - } - } - }, - { - "required": [ - "accountType", - "company", - "vatIds" - ], - "properties": { - "accountType": { - "description": "Type of the customer account. Can be `private` or `business`.", - "type": "string", - "enum": [ - "business" - ] - }, - "company": { - "description": "Company of the customer. Only required when `accountType` is `business`.", - "type": "string" - }, - "vatIds": { - "description": "VAT IDs of the customer's company. Only valid when `accountType` is `business`.", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1 - } - } - } - ] - } - } - } - }, - "responses": { - "200": { - "description": "Returns a success response indicating a successful update", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/change-email": { - "post": { - "tags": [ - "Profile" - ], - "summary": "Change the customer's email address", - "description": "Changes a customer's email address to a new email address, using their current password as a validation.", - "operationId": "changeEmail", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "email", - "emailConfirmation", - "password" - ], - "properties": { - "email": { - "description": "New email address. Has to be unique amongst all customers", - "type": "string" - }, - "emailConfirmation": { - "description": "Confirmation of the new email address.", - "type": "string" - }, - "password": { - "description": "Customer's current password", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Returns a success response indicating a successful update", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/change-language": { - "post": { - "tags": [ - "Profile" - ], - "summary": "Change the customer's language.", - "description": "Changes the language of the logged in customer", - "operationId": "changeLanguage", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "languageId" - ], - "properties": { - "language": { - "description": "New languageId", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Returns a success response indicating a successful update", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/change-password": { - "post": { - "tags": [ - "Profile" - ], - "summary": "Change the customer's password", - "description": "Changes a customer's password using their current password as a validation.", - "operationId": "changePassword", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "password", - "newPassword", - "newPasswordConfirm" - ], - "properties": { - "password": { - "description": "Current password of the customer", - "type": "string" - }, - "newPassword": { - "description": "New Password for the customer", - "type": "string" - }, - "newPasswordConfirm": { - "description": "Confirmation of the new password", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Returns a success response indicating a successful update.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/convert-guest": { - "post": { - "tags": [ - "Profile" - ], - "summary": "Convert a guest customer to a registered customer", - "description": "Takes a password to convert a guest customer to a registered customer. The customer can then log in with the provided password in the future.", - "operationId": "convertGuest", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "password" - ], - "properties": { - "password": { - "description": "New Password for the customer", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Returns a success response indicating a successful update.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/customer-recovery-is-expired": { - "post": { - "tags": [ - "Profile" - ], - "summary": "Checks if the customer recovery entry for a given hash is expired.", - "description": "This can be used to validate a provided hash has a valid and not expired customer recovery hash.", - "operationId": "getCustomerRecoveryIsExpired", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "hash" - ], - "properties": { - "hash": { - "description": "Parameter from the link in the confirmation mail sent in Step 1", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Returns a CustomerRecoveryIsExpiredResponse that indicates if the hash is expired or not.", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "isExpired": { - "type": "boolean" - } - }, - "required": [ - "isExpired" - ] - } - }, - "apiAlias": { - "enum": [ - "array_struct" - ], - "type": "string" - } - } - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/account/customer": { - "post": { - "tags": [ - "Profile", - "Endpoints supporting Criteria " - ], - "summary": "Get information about current customer", - "description": "Returns information about the current customer.\n\n**Available Associations:**\n- `group` - Customer group determining pricing and permissions\n- `language` - Preferred language for customer communication\n- `lastPaymentMethod` - Last used payment method by the customer\n- `defaultBillingAddress` - Default billing address for the customer\n- `activeBillingAddress` - Currently active billing address in the session\n- `defaultShippingAddress` - Default shipping address for the customer\n- `activeShippingAddress` - Currently active shipping address in the session\n- `salutation` - Customer salutation (e.g., Mr., Mrs., Ms.)\n- `addresses` - All addresses saved for the customer\n- `tags` - Tags assigned to the customer for organization and segmentation", - "operationId": "readCustomer", - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/NoneFieldsCriteria" - } - ] - } - } - } - }, - "responses": { - "200": { - "description": "Returns the logged in customer, also for guest sessions. Check for the value of `guest` field to see whether the customer is a guest.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Customer" - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ], - "parameters": [ - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - } - ] - }, - "delete": { - "tags": [ - "Profile" - ], - "summary": "Delete the customer's profile", - "description": "Deletes a customer profile along with their addresses, wishlists and associated data. Created orders and their payment/shipping information (addresses) and reviews are not deleted.", - "operationId": "deleteCustomer", - "responses": { - "204": { - "description": "Returns a no content response indicating a successful removal of the customer profile" - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/address/{addressId}": { - "delete": { - "tags": [ - "Address" - ], - "summary": "Delete an address of a customer", - "description": "Delete an address of customer.\n\n Only addresses which are not set as default addresses for shipping or billing can be deleted. You can check the current default addresses of your customer using the profile information endpoint and change them using the default address endpoint.\n\n **A customer must have at least one address (which can be used for shipping and billing).**\n\n An automatic fallback is not applied.", - "operationId": "deleteCustomerAddress", - "parameters": [ - { - "name": "addressId", - "in": "path", - "description": "ID of the address to be deleted.", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "No Content response, when the address has been deleted" - }, - "400": { - "description": "Response containing a list of errors, most likely due to the address being in use" - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - }, - "patch": { - "tags": [ - "Address" - ], - "summary": "Modify an address of a customer", - "description": "Modifies an existing address of a customer.", - "operationId": "updateCustomerAddress", - "parameters": [ - { - "name": "addressId", - "in": "path", - "description": "Address ID", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomerAddressBody" - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/CustomerAddress" - }, - { - "$ref": "#/components/schemas/CustomerAddressRead" - } - ] - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/list-address": { - "post": { - "tags": [ - "Address", - "Endpoints supporting Criteria " - ], - "summary": "Fetch addresses of a customer", - "description": "Lists all addresses of the current customer and allows filtering them based on a criteria.", - "operationId": "listAddress", - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" - } - ] - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "type": "object", - "required": [ - "elements" - ], - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CustomerAddress" - } - } - } - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ], - "parameters": [ - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - } - ] - } - }, - "/account/login": { - "post": { - "tags": [ - "Login & Registration" - ], - "summary": "Log in a customer", - "description": "Logs in customers given their credentials.", - "operationId": "loginCustomer", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "username", - "password" - ], - "properties": { - "username": { - "description": "Email", - "type": "string" - }, - "password": { - "description": "Password", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "$ref": "#/components/responses/ContextTokenResponse" - }, - "401": { - "description": "If credentials are incorrect an error is returned", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/failure" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/account/login/imitate-customer": { - "post": { - "tags": [ - "Login & Registration" - ], - "summary": "Imitate the log in as a customer", - "description": "Imitate the log in as a customer given a generated token.", - "operationId": "imitateCustomerLogin", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "token", - "customerId", - "userId" - ], - "properties": { - "token": { - "description": "Generated customer impersonation token", - "type": "string" - }, - "customerId": { - "description": "ID of the customer", - "type": "string" - }, - "userId": { - "description": "ID of the user who generated the token", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "$ref": "#/components/responses/ContextTokenResponse" - }, - "400": { - "description": "If the token is incorrect an error is returned", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/failure" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/account/logout": { - "post": { - "tags": [ - "Login & Registration" - ], - "summary": "Log out a customer", - "description": "Logs out a customer.", - "operationId": "logoutCustomer", - "responses": { - "200": { - "$ref": "#/components/responses/ContextTokenResponse" - }, - "403": { - "$ref": "#/components/responses/403" - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/register-confirm": { - "post": { - "tags": [ - "Login & Registration" - ], - "summary": "Confirm a customer registration", - "description": "Confirms a customer registration when double opt-in is activated.\n\nLearn more about double opt-in registration in our guide \"Register a customer\".", - "operationId": "registerConfirm", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "hash", - "em" - ], - "properties": { - "hash": { - "description": "Hash from the email received", - "type": "string" - }, - "em": { - "description": "Email hash from the email received", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Returns the logged in customer. The customer is automatically logged in with the `sw-context-token` header provided, which can be reused for subsequent requests." - }, - "404": { - "description": "No hash provided" - }, - "412": { - "description": "The customer has already been confirmed" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/account/register": { - "post": { - "tags": [ - "Login & Registration" - ], - "summary": "Register a customer", - "description": "Registers a customer. Used both for normal customers and guest customers.See the Guide \"Register a customer\" for more information on customer registration.", - "operationId": "register", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "properties": { - "email": { - "description": "Email of the customer. Has to be unique, unless `guest` is `true`", - "type": "string" - }, - "password": { - "description": "Password for the customer. Required, unless `guest` is `true`", - "type": "string" - }, - "salutationId": { - "description": "Id of the salutation for the customer account. Fetch options using `salutation` endpoint.", - "type": "string" - }, - "firstName": { - "description": "Customer first name. Value will be reused for shipping and billing address if not provided explicitly.", - "type": "string" - }, - "lastName": { - "description": "Customer last name. Value will be reused for shipping and billing address if not provided explicitly.", - "type": "string" - }, - "acceptedDataProtection": { - "description": "Flag indicating accepted data protection", - "type": "boolean" - }, - "storefrontUrl": { - "description": "URL of the storefront for that registration. Used in confirmation emails. Has to be one of the configured domains of the sales channel.", - "type": "string" - }, - "billingAddress": { - "$ref": "#/components/schemas/CustomerAddress" - }, - "shippingAddress": { - "$ref": "#/components/schemas/CustomerAddress" - }, - "guest": { - "description": "If set, will create a guest customer. Guest customers can re-use an email address and don't need a password.", - "type": "boolean", - "default": false - }, - "birthdayDay": { - "description": "Birthday day", - "type": "integer" - }, - "birthdayMonth": { - "description": "Birthday month", - "type": "integer" - }, - "birthdayYear": { - "description": "Birthday year", - "type": "integer" - }, - "title": { - "description": "(Academic) title of the customer", - "type": "string" - }, - "affiliateCode": { - "description": "Field can be used to store an affiliate tracking code", - "type": "string" - }, - "campaignCode": { - "description": "Field can be used to store a campaign tracking code", - "type": "string" - } - }, - "required": [ - "email", - "password", - "firstName", - "lastName", - "acceptedDataProtection", - "storefrontUrl", - "billingAddress" - ], - "oneOf": [ - { - "properties": { - "accountType": { - "description": "Type of the customer account. Default value is 'private'.", - "type": "string", - "enum": [ - "private" - ], - "default": "private" - }, - "company": { - "type": "null" - }, - "vatIds": { - "type": "null" - } - } - }, - { - "required": [ - "accountType", - "company", - "vatIds" - ], - "properties": { - "accountType": { - "description": "Type of the customer account. Can be `private` or `business`.", - "type": "string", - "enum": [ - "business" - ] - }, - "company": { - "description": "Company of the customer. Only required when `accountType` is `business`.", - "type": "string" - }, - "vatIds": { - "description": "VAT IDs of the customer's company. Only valid when `accountType` is `business`.", - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1 - } - } - } - ], - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Customer" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/account/recovery-password-confirm": { - "post": { - "tags": [ - "Profile" - ], - "summary": "Reset a password with recovery credentials", - "description": "This operation is Step 2 of the password reset flow. It is required to conduct Step 1 \"Send a password recovery mail\" in order to obtain the required credentials for this step.Resets a customer's password using credentials from a password recovery mail as a validation.", - "operationId": "recoveryPassword", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "hash", - "newPassword", - "newPasswordConfirm" - ], - "properties": { - "hash": { - "description": "Parameter from the link in the confirmation mail sent in Step 1", - "type": "string" - }, - "newPassword": { - "description": "New password for the customer", - "type": "string" - }, - "newPasswordConfirm": { - "description": "Confirmation of the new password", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Returns a success response indicating a successful update.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/account/recovery-password": { - "post": { - "tags": [ - "Profile" - ], - "summary": "Send a password recovery mail", - "description": "This operation is Step 1 of the password reset flow. Make sure to implement Step 2 \"Reset password with recovery credentials\" in order to allow for the complete flow in your application. Sends a recovery mail containing a link with credentials that allows a customer to reset their password.", - "operationId": "sendRecoveryMail", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "email", - "storefrontUrl" - ], - "properties": { - "email": { - "description": "E-Mail address to identify the customer", - "type": "string" - }, - "storefrontUrl": { - "description": "URL of the storefront to use for the generated reset link. It has to be a domain that is configured in the sales channel domain settings.", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "If email corresponds to an existing customer, a mail will be sent out to that customer containing a link assembled using the following schema:\n\nReturns a success indicating a successful initialisation of the reset flow.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/account/address/default-shipping/{addressId}": { - "patch": { - "tags": [ - "Address" - ], - "summary": "Change a customer's default shipping address", - "description": "Updates the default (preselected) shipping addresses of a customer.", - "operationId": "defaultShippingAddress", - "parameters": [ - { - "name": "addressId", - "in": "path", - "description": "Address ID", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/address/default-billing/{addressId}": { - "patch": { - "tags": [ - "Address" - ], - "summary": "Change a customer's default billing address", - "description": "Updates the default (preselected) billing addresses of a customer.", - "operationId": "defaultBillingAddress", - "parameters": [ - { - "name": "addressId", - "in": "path", - "description": "Address ID", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/account/address": { - "post": { - "tags": [ - "Address" - ], - "summary": "Create a new address for a customer", - "description": "Creates a new address for a customer.", - "operationId": "createCustomerAddress", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomerAddressBody" - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/CustomerAddress" - }, - { - "$ref": "#/components/schemas/CustomerAddressRead" - } - ] - } - } - } - } - }, - "security": [ - { - "ApiKey": [], - "ContextToken": [] - } - ] - } - }, - "/seo-url": { - "post": { - "tags": [ - "Sitemap & Routes", - "Endpoints supporting Criteria " - ], - "summary": "Fetch SEO routes", - "description": "Perform a filtered search for seo urls.", - "operationId": "readSeoUrl", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - } - ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" - } - ] - } - } - } - }, - "responses": { - "200": { - "$ref": "#/components/responses/SeoUrlListResponse" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - }, - "get": { - "tags": [ - "Sitemap & Routes", - "Endpoints supporting Criteria " - ], - "summary": "Fetch SEO routes", - "description": "Perform a filtered search for seo urls.", - "operationId": "readSeoUrlGet", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/SeoUrlListResponse" - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/sitemap": { - "get": { - "tags": [ - "Sitemap & Routes" - ], - "summary": "Fetch sitemaps", - "description": "Fetches a list of compressed sitemap files, which are often used by search engines.", - "operationId": "readSitemap", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } - ], - "responses": { - "200": { - "description": "Returns a list of available sitemaps.", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Sitemap" - } - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/sitemap/{filePath}": { - "get": { - "tags": [ - "Sitemap & Routes" - ], - "summary": "Download sitemap file", - "description": "Downloads the sitemap file from the configured sitemap storage.", - "operationId": "getSitemapFile", - "parameters": [ - { - "name": "filePath", - "in": "path", - "description": "The path to the sitemap file", - "required": true, - "schema": { - "type": "string", - "pattern": ".*\\.(xml|gz)$" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } - ], - "responses": { - "200": { - "description": "Returns the blob to download.", - "content": { - "application/xml": { - "schema": { - "type": "string", - "format": "binary" - } - }, - "application/gzip": { - "schema": { - "type": "string", - "format": "binary" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/app-system/{name}/generate-token": { - "post": { - "tags": [ - "App system" - ], - "summary": "Generate JWT token for app system backend", - "description": "Generate JWT token for authenticated communication with the app server", - "operationId": "generateJWTAppSystemAppServer", - "parameters": [ - { - "in": "path", - "name": "name", - "required": true, - "description": "Name of the app", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "expires": { - "type": "string", - "format": "date-time" - }, - "shopId": { - "type": "string" - } - } - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/media": { - "post": { - "tags": [ - "Content" - ], - "summary": "Fetch and resolve Media Entities", - "description": "Fetch one or multiple Media Entities with the corresponding Identifier.", - "operationId": "readMedia", - "requestBody": { - "content": { - "application/json": { - "schema": { - "properties": { - "ids": { - "description": "Identifier (UUID) of the media entity to be fetched.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } - }, - "type": "object", - "required": [ - "ids" - ] - } - } - } - }, - "responses": { - "200": { - "description": "The loaded MediaCollection containing the requested Media Entities.", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Media" - } - } - } - } - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - }, - "get": { - "tags": [ - "Content" - ], - "summary": "Fetch and resolve Media Entities", - "description": "Fetch one or multiple Media Entities with the corresponding Identifier.", - "operationId": "readMediaGet", - "parameters": [ - { - "name": "ids[]", - "in": "query", - "description": "Identifier (UUID) of the media entity to be fetched.", - "required": true, - "schema": { - "type": "array", - "items": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } - } - ], - "responses": { - "200": { - "description": "The loaded MediaCollection containing the requested Media Entities.", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Media" - } - } - } - } - }, - "404": { - "$ref": "#/components/responses/404" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/category": { - "post": { - "tags": [ - "Category", - "Endpoints supporting Criteria " - ], - "summary": "Fetch a list of categories", - "description": "Perform a filtered search for categories.\n\n**Available Associations:**\n- `children` - Child categories within this category for hierarchical navigation\n- `media` - Category image or banner\n- `tags` - Tags for organizing and filtering categories\n- `cmsPage` - CMS page layout for the category\n- `seoUrls` - SEO-friendly URLs for the category across different sales channels", - "operationId": "readCategoryList", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - } - ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" - } - ] - } - } - } - }, - "responses": { - "200": { - "$ref": "#/components/responses/CategoryListResponse" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - }, - "get": { - "tags": [ - "Category", - "Endpoints supporting Criteria " - ], - "summary": "Fetch a list of categories", - "description": "Perform a filtered search for categories.\n\n**Available Associations:**\n- `children` - Child categories within this category for hierarchical navigation\n- `media` - Category image or banner\n- `tags` - Tags for organizing and filtering categories\n- `cmsPage` - CMS page layout for the category\n- `seoUrls` - SEO-friendly URLs for the category across different sales channels", - "operationId": "readCategoryListGet", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/CategoryListResponse" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/category/{navigationId}": { - "post": { - "tags": [ - "Category", - "Endpoints supporting Criteria " - ], - "summary": "Fetch a single category", - "description": "This endpoint returns information about the category, as well as a fully resolved (hydrated with mapping values) CMS page, if one is assigned to the category. You can pass slots which should be resolved exclusively.\n\n**Available Associations:**\n- `children` - Child categories within this category for hierarchical navigation\n- `media` - Category image or banner\n- `tags` - Tags for organizing and filtering categories\n- `cmsPage` - CMS page layout for the category\n- `seoUrls` - SEO-friendly URLs for the category across different sales channels", - "operationId": "readCategory", - "parameters": [ - { - "name": "sw-include-seo-urls", - "in": "header", - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - }, - { - "name": "navigationId", - "in": "path", - "description": "Identifier of the category to be fetched", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "slots", - "in": "query", - "description": "Resolves only the given slot identifiers. The identifiers have to be seperated by a '|' character", - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/ProductListingCriteria" - } - ] - } - } - } - }, - "responses": { - "200": { - "description": "The loaded category with cms page", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Category" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - }, - "get": { - "tags": [ - "Category", - "Endpoints supporting Criteria " - ], - "summary": "Fetch a single category", - "description": "This endpoint returns information about the category, as well as a fully resolved (hydrated with mapping values) CMS page, if one is assigned to the category. You can pass slots which should be resolved exclusively.\n\n**Available Associations:**\n- `children` - Child categories within this category for hierarchical navigation\n- `media` - Category image or banner\n- `tags` - Tags for organizing and filtering categories\n- `cmsPage` - CMS page layout for the category\n- `seoUrls` - SEO-friendly URLs for the category across different sales channels", - "operationId": "readCategoryGet", - "parameters": [ - { - "name": "sw-include-seo-urls", - "in": "header", - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "navigationId", - "in": "path", - "description": "Identifier of the category to be fetched", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "slots", - "in": "query", - "description": "Resolves only the given slot identifiers. The identifiers have to be seperated by a '|' character", - "schema": { - "type": "string" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "name": "limit", - "in": "query", - "description": "Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings.", - "schema": { - "type": "integer", - "minimum": 0 - } - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "name": "order", - "in": "query", - "description": "Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.", - "schema": { - "type": "string" - } - }, - { - "name": "p", - "in": "query", - "description": "Search result page", - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "manufacturer", - "in": "query", - "description": "Filter by manufacturers. List of manufacturer identifiers separated by a `|`.", - "schema": { - "type": "string" - } - }, - { - "name": "min-price", - "in": "query", - "description": "Filters by a minimum product price. Has to be lower than the `max-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 - } - }, - { - "name": "max-price", - "in": "query", - "description": "Filters by a maximum product price. Has to be higher than the `min-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 - } - }, - { - "name": "rating", - "in": "query", - "description": "Filter products with a minimum average rating.", - "schema": { - "type": "integer" - } - }, - { - "name": "shipping-free", - "in": "query", - "description": "Filters products that are marked as shipping-free.", - "schema": { - "type": "boolean", - "default": false - } - }, - { - "name": "properties", - "in": "query", - "description": "Filters products by their properties. List of property identifiers separated by a `|`.", - "schema": { - "type": "string" - } - }, - { - "name": "reduce-aggregations", - "in": "query", - "description": "By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.", - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - } - ], - "responses": { - "200": { - "description": "The loaded category with cms page", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Category" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/customer-group-registration/config/{customerGroupId}": { - "get": { - "tags": [ - "Login & Registration" - ], - "summary": "Fetch registration settings for customer group", - "operationId": "getCustomerGroupRegistrationInfo", - "parameters": [ - { - "name": "customerGroupId", - "in": "path", - "description": "Customer group id", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } - ], - "responses": { - "200": { - "description": "Returns the customer group including registration settings.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomerGroup" - } - } - } - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/revocation-request-form": { - "post": { - "tags": [ - "Content" - ], - "summary": "Submit a revocation request form message", - "description": "Used for submitting revocation request forms. Be aware that there can be more required fields, depending on the system settings.", - "operationId": "sendRevocationRequestMail", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "email", - "contractNumber" - ], - "properties": { - "firstName": { - "description": "First name. This field may be required depending on the system settings.", - "type": "string" - }, - "lastName": { - "description": "Last name. This field may be required depending on the system settings.", - "type": "string" - }, - "email": { - "description": "Email address.", - "type": "string" - }, - "contractNumber": { - "description": "The number of the contract.", - "type": "string" - }, - "comment": { - "description": "The message of the revocation request form.", - "type": "string" - }, - "navigationId": { - "description": "Identifier of the navigation page. Can be used to override the configuration.\nTake a look at the settings of a category containing a revocation form in the administration.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "slotId": { - "description": "Identifier of the cms element.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "cmsPageType": { - "description": "Type of the content management page.", - "type": "string" - }, - "entityName": { - "description": "Entity name for slot config.", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Message sent successfully." - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/payment-method": { - "post": { - "tags": [ - "Payment Method", - "Endpoints supporting Criteria " - ], - "summary": "Loads all available payment methods", - "operationId": "readPaymentMethod", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" - }, - { - "properties": { - "onlyAvailable": { - "description": "List only available", - "type": "boolean" - } - }, - "type": "object" - } - ] - } - } - } - }, - "responses": { - "200": { - "$ref": "#/components/responses/PaymentMethodListResponse" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - }, - "get": { - "tags": [ - "Payment Method", - "Endpoints supporting Criteria " - ], - "summary": "Loads all available payment methods", - "operationId": "readPaymentMethodGet", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/PaymentMethodListResponse" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/newsletter/confirm": { - "post": { - "tags": [ - "Newsletter" - ], - "summary": "Confirm a newsletter registration", - "description": "You have to use the hash from the link sent out via email to confirm the user registration.", - "operationId": "confirmNewsletter", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "hash", - "em" - ], - "properties": { - "hash": { - "description": "Hash parameter from link the in the confirmation mail", - "type": "string" - }, - "em": { - "description": "Email hash parameter from the link in the confirmation mail", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "The newsletter confirmation was successful.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" - } - } - } - }, - "400": { - "$ref": "#/components/responses/400" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/newsletter/subscribe": { - "post": { - "tags": [ - "Newsletter" - ], - "summary": "Create or remove a newsletter subscription", - "description": "This route is used to create/remove/confirm a newsletter subscription.\n\nThe `option` property controls what should happen:\n* `direct`: The subscription is directly active and does not need a confirmation.\n* `subscribe`: An email will be send to the provided email address containing a link to the /newsletter/confirm route.\nThe subscription is only successful, if the /newsletter/confirm route is called with the generated hashes.\n* `unsubscribe`: The email address will be removed from the newsletter subscriptions.\n* `confirmSubscribe`: Confirms the newsletter subscription for the provided email address.", - "operationId": "subscribeToNewsletter", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "email", - "option", - "storefrontUrl" - ], - "properties": { - "email": { - "description": "Email address that will receive the confirmation and the newsletter.", - "type": "string" - }, - "option": { - "description": "Defines what should be done.", - "type": "string" - }, - "storefrontUrl": { - "description": "Url of the storefront of the shop. This will be used for generating the link to the /newsletter/confirm inside the confirm email.", - "type": "string" - }, - "salutationId": { - "description": "Identifier of the salutation.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "firstName": { - "description": "First name", - "type": "string" - }, - "lastName": { - "description": "Last name", - "type": "string" - }, - "street": { - "description": "Street", - "type": "string" - }, - "city": { - "description": "City", - "type": "string" - }, - "zipCode": { - "description": "Zip code", - "type": "string" - }, - "languageId": { - "description": "Identifier of the language.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "customFields": { - "description": "Custom field data that should be added to the subscription.", - "type": "string" - } - }, - "type": "object" - } - } - } - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "required": [ - "success", - "status" - ], + "externalDocs": { + "type": "object", "properties": { - "success": { - "description": "Indicates whether the subscribe request was successful.", - "type": "boolean" + "description": { + "type": "string" }, - "status": { - "description": "The subscription status.", + "url": { "type": "string", - "enum": [ - "notSet", - "optIn", - "optOut", - "direct" - ] + "format": "uri" } }, - "type": "object" + "required": [ + "url" + ] } - } + }, + "type": "object", + "required": [ + "openapi", + "info" + ] } - }, - "400": { - "$ref": "#/components/responses/400" - } - }, - "security": [ - { - "ApiKey": [] } - ] - } - }, - "/newsletter/unsubscribe": { - "post": { - "tags": [ - "Newsletter" - ], - "summary": "Remove a newsletter subscription", - "description": "Removes a newsletter recipient from the mailing lists.", - "operationId": "unsubscribeToNewsletter", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "required": [ - "email" - ], - "properties": { - "email": { - "description": "Email address that should be removed from the mailing lists.", - "type": "string" - } - }, - "type": "object" - } + } + }, + "ContextTokenResponse": { + "description": "Returns the context token. Use that as your `sw-context-token` header for subsequent requests. Redirect if getRedirectUrl is set.", + "headers": { + "sw-context-token": { + "description": "Contains sw-context-token value", + "schema": { + "type": "string" } } }, - "responses": { - "200": { - "description": "Unsubscribing was successful.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "redirectUrl": { + "description": "Define the URL which browser will be redirected to", + "type": "string" } } } - }, - "400": { - "$ref": "#/components/responses/400" - } - }, - "security": [ - { - "ApiKey": [] } - ] + } } }, - "/product/{productId}/cross-selling": { + "parameters": { + "contentType": { + "name": "Content-Type", + "in": "header", + "description": "Content type of the request", + "required": true, + "schema": { + "type": "string", + "default": "application/json" + } + }, + "accept": { + "name": "Accept", + "in": "header", + "description": "Accepted response content types", + "required": true, + "schema": { + "type": "string", + "default": "application/json" + } + } + }, + "securitySchemes": { + "ApiKey": { + "type": "apiKey", + "description": "Identifies the sales channel you want to access the API through", + "name": "sw-access-key", + "in": "header" + }, + "ContextToken": { + "type": "apiKey", + "description": "Identifies an anonymous or identified user session", + "name": "sw-context-token", + "in": "header" + } + } + }, + "security": [ + { + "ApiKey": [] + } + ], + "paths": { + "/navigation/{activeId}/{rootId}": { "post": { "tags": [ - "Product" + "Category", + "Endpoints supporting Criteria " ], - "summary": "Fetch cross-selling groups of a product", - "description": "This route is used to load the cross sellings for a product. A product has several cross selling definitions in which several products are linked. The route returns the cross sellings together with the linked products", - "operationId": "readProductCrossSellings", + "summary": "Fetch a navigation menu", + "description": "This endpoint returns categories that can be used as a page navigation. You can either return them as a tree or as a flat list. You can also control the depth of the tree.\n\n Instead of passing uuids, you can also use one of the following aliases for the activeId and rootId parameters to get the respective navigations of your sales channel.\n\n * main-navigation\n * service-navigation\n * footer-navigation", + "operationId": "readNavigation", "parameters": [ { - "name": "productId", - "in": "path", - "description": "Product ID", - "required": true, + "name": "sw-include-seo-urls", + "in": "header", + "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", + "required": false, "schema": { - "type": "string" + "type": "boolean" } }, { @@ -20169,22 +15516,78 @@ } }, { - "name": "sw-include-seo-urls", - "in": "header", - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "required": false, + "name": "activeId", + "in": "path", + "description": "Identifier of the active category in the navigation tree (if not used, just set to the same as rootId).", + "required": true, "schema": { - "type": "boolean" + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + { + "$ref": "#/components/schemas/NavigationType" + } + ] + } + }, + { + "name": "rootId", + "in": "path", + "description": "Identifier of the root category for your desired navigation tree. You can use it to fetch sub-trees of your navigation tree.", + "required": true, + "schema": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + { + "$ref": "#/components/schemas/NavigationType" + } + ] } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/NoneFieldsCriteria" + }, + { + "properties": { + "depth": { + "description": "Determines the depth of fetched navigation levels.", + "type": "integer", + "format": "int32" + }, + "buildTree": { + "description": "Return the categories as a tree or as a flat list.", + "type": "array", + "items": { + "type": "object" + } + } + }, + "type": "object" + } + ] + } + } + } + }, "responses": { "200": { - "description": "Found cross sellings", + "description": "All available navigations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CrossSellingElementCollection" + "$ref": "#/components/schemas/NavigationRouteResponse" } } } @@ -20195,24 +15598,17 @@ "ApiKey": [] } ] - }, - "get": { + } + }, + "/revocation-request-form": { + "post": { "tags": [ - "Product" + "Content" ], - "summary": "Fetch cross-selling groups of a product", - "description": "This route is used to load the cross sellings for a product. A product has several cross selling definitions in which several products are linked. The route returns the cross sellings together with the linked products", - "operationId": "readProductCrossSellingsGet", + "summary": "Submit a revocation request form message", + "description": "Used for submitting revocation request forms. Be aware that there can be more required fields, depending on the system settings.", + "operationId": "sendRevocationRequestMail", "parameters": [ - { - "name": "productId", - "in": "path", - "description": "Product ID", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "sw-language-id", "in": "header", @@ -20222,29 +15618,67 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "sw-include-seo-urls", - "in": "header", - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "required": false, - "schema": { - "type": "boolean" - } } ], - "responses": { - "200": { - "description": "Found cross sellings", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CrossSellingElementCollection" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": [ + "email", + "contractNumber" + ], + "properties": { + "firstName": { + "description": "First name. This field may be required depending on the system settings.", + "type": "string" + }, + "lastName": { + "description": "Last name. This field may be required depending on the system settings.", + "type": "string" + }, + "email": { + "description": "Email address.", + "type": "string" + }, + "contractNumber": { + "description": "The number of the contract.", + "type": "string" + }, + "comment": { + "description": "The message of the revocation request form.", + "type": "string" + }, + "navigationId": { + "description": "Identifier of the navigation page. Can be used to override the configuration.\nTake a look at the settings of a category containing a revocation form in the administration.", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "slotId": { + "description": "Identifier of the cms element.", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "cmsPageType": { + "description": "Type of the content management page.", + "type": "string" + }, + "entityName": { + "description": "Entity name for slot config.", + "type": "string" + } + }, + "type": "object" } } } }, + "responses": { + "200": { + "description": "Message sent successfully." + } + }, "security": [ { "ApiKey": [] @@ -20252,25 +15686,15 @@ ] } }, - "/product/{productId}": { + "/payment-method": { "post": { "tags": [ - "Product" + "Payment Method", + "Endpoints supporting Criteria " ], - "summary": "Fetch a single product", - "description": "This route is used to load a single product with the corresponding details. In addition to loading the data, the best variant of the product is determined when a parent id is passed.\n\n**Available Associations:**\n- `downloads` - Downloadable files associated with the product (e.g., manuals, digital content)\n- `children` - Product variants that inherit from this parent product\n- `deliveryTime` - Estimated delivery time for the product\n- `tax` - Tax configuration (rate and calculation rules)\n- `manufacturer` - Product manufacturer or brand information\n- `unit` - Product unit of measure (e.g., piece, liter, kg)\n- `cover` - Main product image displayed in listings and detail pages\n- `cmsPage` - Custom CMS page layout for the product detail page\n- `canonicalProduct` - Canonical product reference for variant consolidation and SEO purposes\n- `media` - Product images and media gallery\n- `crossSellings` - Cross-selling configurations (related products, accessories, similar items)\n- `configuratorSettings` - Variant configurator settings defining available options for product variants\n- `productReviews` - Customer reviews and ratings for the product\n- `mainCategories` - Primary category assignments per sales channel for SEO and navigation\n- `seoUrls` - SEO-friendly URLs for the product across different sales channels\n- `options` - Product variant options (e.g., size, color) that define different variants\n- `properties` - Product properties and characteristics for filtering\n- `categories` - Categories this product is assigned to\n- `streams` - Dynamic product streams this product belongs to based on defined filters\n- `categoriesRo` - Read-only category tree including all parent categories for optimized queries\n- `tags` - Tags for organizing and filtering products\n- `seoCategory` - Main category used for SEO URL generation in the current sales channel", - "operationId": "readProductDetail", + "summary": "Loads all available payment methods", + "operationId": "readPaymentMethod", "parameters": [ - { - "name": "productId", - "in": "path", - "description": "Product ID", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$'" - } - }, { "name": "sw-language-id", "in": "header", @@ -20280,57 +15704,25 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "in": "header", - "name": "sw-include-seo-urls", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - }, - { - "description": "Instructs Shopware to skip loading the configurator data", - "in": "query", - "name": "skipConfigurator", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "description": "Instructs Shopware to skip loading the CMS page data", - "in": "query", - "name": "skipCmsPage", - "required": false, - "schema": { - "type": "boolean" - } } ], "requestBody": { - "required": false, + "required": true, "content": { "application/json": { "schema": { "allOf": [ { - "$ref": "#/components/schemas/NoneFieldsCriteria" + "$ref": "#/components/schemas/Criteria" + }, + { + "properties": { + "onlyAvailable": { + "description": "List only available", + "type": "boolean" + } + }, + "type": "object" } ] } @@ -20339,11 +15731,27 @@ }, "responses": { "200": { - "description": "Product information along with variant groups and options", + "description": "", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductDetailResponse" + "properties": { + "total": { + "description": "Total amount", + "type": "integer" + }, + "aggregations": { + "description": "aggregation result", + "type": "object" + }, + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PaymentMethod" + } + } + }, + "type": "object" } } } @@ -20354,25 +15762,17 @@ "ApiKey": [] } ] - }, + } + }, + "/sitemap": { "get": { "tags": [ - "Product" + "Sitemap & Routes" ], - "summary": "Fetch a single product", - "description": "This route is used to load a single product with the corresponding details. In addition to loading the data, the best variant of the product is determined when a parent id is passed.\n\n**Available Associations:**\n- `downloads` - Downloadable files associated with the product (e.g., manuals, digital content)\n- `children` - Product variants that inherit from this parent product\n- `deliveryTime` - Estimated delivery time for the product\n- `tax` - Tax configuration (rate and calculation rules)\n- `manufacturer` - Product manufacturer or brand information\n- `unit` - Product unit of measure (e.g., piece, liter, kg)\n- `cover` - Main product image displayed in listings and detail pages\n- `cmsPage` - Custom CMS page layout for the product detail page\n- `canonicalProduct` - Canonical product reference for variant consolidation and SEO purposes\n- `media` - Product images and media gallery\n- `crossSellings` - Cross-selling configurations (related products, accessories, similar items)\n- `configuratorSettings` - Variant configurator settings defining available options for product variants\n- `productReviews` - Customer reviews and ratings for the product\n- `mainCategories` - Primary category assignments per sales channel for SEO and navigation\n- `seoUrls` - SEO-friendly URLs for the product across different sales channels\n- `options` - Product variant options (e.g., size, color) that define different variants\n- `properties` - Product properties and characteristics for filtering\n- `categories` - Categories this product is assigned to\n- `streams` - Dynamic product streams this product belongs to based on defined filters\n- `categoriesRo` - Read-only category tree including all parent categories for optimized queries\n- `tags` - Tags for organizing and filtering products\n- `seoCategory` - Main category used for SEO URL generation in the current sales channel", - "operationId": "readProductDetailGet", + "summary": "Fetch sitemaps", + "description": "Fetches a list of compressed sitemap files, which are often used by search engines.", + "operationId": "readSitemap", "parameters": [ - { - "name": "productId", - "in": "path", - "description": "Product ID", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$'" - } - }, { "name": "sw-language-id", "in": "header", @@ -20382,87 +15782,74 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "in": "header", - "name": "sw-include-seo-urls", - "required": false, - "schema": { - "type": "boolean" + } + ], + "responses": { + "200": { + "description": "Returns a list of available sitemaps.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sitemap" + } + } + } } - }, + } + }, + "security": [ { - "description": "Instructs Shopware to skip loading the configurator data", - "in": "query", - "name": "skipConfigurator", - "required": false, - "schema": { - "type": "boolean" - } - }, + "ApiKey": [] + } + ] + } + }, + "/sitemap/{filePath}": { + "get": { + "tags": [ + "Sitemap & Routes" + ], + "summary": "Download sitemap file", + "description": "Downloads the sitemap file from the configured sitemap storage.", + "operationId": "getSitemapFile", + "parameters": [ { - "description": "Instructs Shopware to skip loading the CMS page data", - "in": "query", - "name": "skipCmsPage", - "required": false, + "name": "filePath", + "in": "path", + "description": "The path to the sitemap file", + "required": true, "schema": { - "type": "boolean" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" + "type": "string", + "pattern": ".*\\.(xml|gz)$" + } }, { - "$ref": "#/components/parameters/CompressedNoneFieldsCriteria" + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, + "schema": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } } ], "responses": { "200": { - "description": "Product information along with variant groups and options", + "description": "Returns the blob to download.", "content": { - "application/json": { + "application/xml": { "schema": { - "$ref": "#/components/schemas/ProductDetailResponse" + "type": "string", + "format": "binary" + } + }, + "application/gzip": { + "schema": { + "type": "string", + "format": "binary" } } } @@ -20475,49 +15862,58 @@ ] } }, - "/product": { + "/search-suggest": { "post": { "tags": [ - "Product", - "Endpoints supporting Criteria " + "Product" ], - "summary": "Fetch a list of products", - "description": "List products that match the given criteria. For performance reasons a limit should always be set.\n\n**Available Associations:**\n- `downloads` - Downloadable files associated with the product (e.g., manuals, digital content)\n- `children` - Product variants that inherit from this parent product\n- `deliveryTime` - Estimated delivery time for the product\n- `tax` - Tax configuration (rate and calculation rules)\n- `manufacturer` - Product manufacturer or brand information\n- `unit` - Product unit of measure (e.g., piece, liter, kg)\n- `cover` - Main product image displayed in listings and detail pages\n- `cmsPage` - Custom CMS page layout for the product detail page\n- `canonicalProduct` - Canonical product reference for variant consolidation and SEO purposes\n- `media` - Product images and media gallery\n- `crossSellings` - Cross-selling configurations (related products, accessories, similar items)\n- `configuratorSettings` - Variant configurator settings defining available options for product variants\n- `productReviews` - Customer reviews and ratings for the product\n- `mainCategories` - Primary category assignments per sales channel for SEO and navigation\n- `seoUrls` - SEO-friendly URLs for the product across different sales channels\n- `options` - Product variant options (e.g., size, color) that define different variants\n- `properties` - Product properties and characteristics for filtering\n- `categories` - Categories this product is assigned to\n- `streams` - Dynamic product streams this product belongs to based on defined filters\n- `categoriesRo` - Read-only category tree including all parent categories for optimized queries\n- `tags` - Tags for organizing and filtering products\n- `seoCategory` - Main category used for SEO URL generation in the current sales channel", - "operationId": "readProduct", + "summary": "Search for products (suggest)", + "description": "Can be used to implement search previews or suggestion listings, that don’t require any interaction.", + "operationId": "searchSuggest", "parameters": [ { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", + "name": "p", + "in": "query", + "description": "The page number to fetch.", "required": false, "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "type": "integer" } }, { - "name": "sw-include-search-info", + "name": "sw-language-id", "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", + "description": "Instructs Shopware to return the response in the given language.", "required": false, "schema": { "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" + "pattern": "^[0-9a-f]{32}$" } } ], "requestBody": { - "required": false, + "required": true, "content": { "application/json": { "schema": { "allOf": [ { - "$ref": "#/components/schemas/Criteria" + "required": [ + "search" + ], + "properties": { + "search": { + "description": "Using the search parameter, the server performs a text search on all records based on their data model and weighting as defined in the entity definition using the SearchRanking flag.", + "type": "string" + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/ProductListingCriteria" + }, + { + "$ref": "#/components/schemas/ProductListingFlags" } ] } @@ -20526,7 +15922,14 @@ }, "responses": { "200": { - "$ref": "#/components/responses/ProductListResponse" + "description": "Returns a product listing containing all products and additional fields.\n\nNote: Aggregations, currentFilters and availableSortings are empty in this response. If you need them to display a listing, use the /search route instead.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductListingResult" + } + } + } } }, "security": [ @@ -20534,78 +15937,54 @@ "ApiKey": [] } ] - }, - "get": { + } + }, + "/media": { + "post": { "tags": [ - "Product", - "Endpoints supporting Criteria " + "Content" ], - "summary": "Fetch a list of products", - "description": "List products that match the given criteria. For performance reasons a limit should always be set.\n\n**Available Associations:**\n- `downloads` - Downloadable files associated with the product (e.g., manuals, digital content)\n- `children` - Product variants that inherit from this parent product\n- `deliveryTime` - Estimated delivery time for the product\n- `tax` - Tax configuration (rate and calculation rules)\n- `manufacturer` - Product manufacturer or brand information\n- `unit` - Product unit of measure (e.g., piece, liter, kg)\n- `cover` - Main product image displayed in listings and detail pages\n- `cmsPage` - Custom CMS page layout for the product detail page\n- `canonicalProduct` - Canonical product reference for variant consolidation and SEO purposes\n- `media` - Product images and media gallery\n- `crossSellings` - Cross-selling configurations (related products, accessories, similar items)\n- `configuratorSettings` - Variant configurator settings defining available options for product variants\n- `productReviews` - Customer reviews and ratings for the product\n- `mainCategories` - Primary category assignments per sales channel for SEO and navigation\n- `seoUrls` - SEO-friendly URLs for the product across different sales channels\n- `options` - Product variant options (e.g., size, color) that define different variants\n- `properties` - Product properties and characteristics for filtering\n- `categories` - Categories this product is assigned to\n- `streams` - Dynamic product streams this product belongs to based on defined filters\n- `categoriesRo` - Read-only category tree including all parent categories for optimized queries\n- `tags` - Tags for organizing and filtering products\n- `seoCategory` - Main category used for SEO URL generation in the current sales channel", - "operationId": "readProductGet", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "summary": "Fetch and resolve Media Entities", + "description": "Fetch one or multiple Media Entities with the corresponding Identifier.", + "operationId": "readMedia", + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "ids": { + "description": "Identifier (UUID) of the media entity to be fetched.", + "type": "array", + "items": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + } + }, + "type": "object", + "required": [ + "ids" + ] + } } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" } - ], + }, "responses": { "200": { - "$ref": "#/components/responses/ProductListResponse" + "description": "The loaded MediaCollection containing the requested Media Entities.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Media" + } + } + } + } + }, + "404": { + "$ref": "#/components/responses/404" } }, "security": [ @@ -20615,86 +15994,62 @@ ] } }, - "/product/{productId}/reviews": { + "/_info/openapi3.json": { + "get": { + "tags": [ + "System Info & Health Check" + ], + "summary": "Get OpenAPI Specification", + "description": "Get information about the store API in OpenAPI format.", + "operationId": "api-info", + "parameters": [ + { + "name": "type", + "in": "query", + "description": "Type of the api", + "schema": { + "type": "string", + "enum": [ + "jsonapi", + "json" + ] + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/OpenApi3" + } + } + } + }, + "/customer/wishlist/add/{productId}": { "post": { "tags": [ - "Product", - "Endpoints supporting Criteria " + "Wishlist" ], - "summary": "Fetch product reviews", - "description": "Perform a filtered search for product reviews.", - "operationId": "readProductReviews", + "summary": "Add a product to a wishlist", + "description": "Adds a product to a customers wishlist.\n\n **Important constraints**\n\n * Anonymous (not logged-in) customers can not have wishlists.\n * The wishlist feature has to be activated.", + "operationId": "addProductOnWishlist", "parameters": [ { "name": "productId", "in": "path", - "description": "Identifier of the product.", + "description": "Identifier of the product to be added.", "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } } ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" - } - ] - } - } - } - }, "responses": { "200": { - "description": "Entity search result containing product reviews", - "content": { - "application/json": { - "schema": { - "allOf": [ - { - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProductReview" - } - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] + "description": "Returns a success response.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" } } } @@ -20702,28 +16057,22 @@ }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] - }, - "get": { + } + }, + "/customer/wishlist": { + "post": { "tags": [ - "Product", + "Wishlist", "Endpoints supporting Criteria " ], - "summary": "Fetch product reviews", - "description": "Perform a filtered search for product reviews.", - "operationId": "readProductReviewsGet", + "summary": "Fetch a wishlist", + "description": "Fetch a customer's wishlist. Products on the wishlist can be filtered using a criteria object.\n\n **Important constraints**\n\n * Anonymous (not logged-in) customers can not have wishlists.\n * The wishlist feature has to be activated.", + "operationId": "readCustomerWishlist", "parameters": [ - { - "name": "productId", - "in": "path", - "description": "Identifier of the product.", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "sw-language-id", "in": "header", @@ -20733,78 +16082,29 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" } ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + } + ] + } + } + } + }, "responses": { "200": { - "description": "Entity search result containing product reviews", + "description": "", "content": { "application/json": { "schema": { - "allOf": [ - { - "properties": { - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProductReview" - } - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/EntitySearchResult" - } - ] + "$ref": "#/components/schemas/WishlistLoadRouteResponse" } } } @@ -20812,71 +16112,34 @@ }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] } }, - "/product/{productId}/review": { + "/customer/wishlist/merge": { "post": { "tags": [ - "Product" - ], - "summary": "Save a product review", - "description": "Saves a review for a product. Reviews have to be activated in the settings.", - "operationId": "saveProductReview", - "parameters": [ - { - "name": "productId", - "in": "path", - "description": "Identifier of the product which is reviewed.", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } + "Wishlist" ], + "summary": "Create a wishlist for a customer", + "description": "Create a new wishlist for a logged in customer or extend the existing wishlist given a set of products.\n\n **Important constraints**\n\n * Anonymous (not logged-in) customers can not have wishlists.\n * A customer can only have a single wishlist.\n * The wishlist feature has to be activated.", + "operationId": "mergeProductOnWishlist", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "required": [ - "title", - "content", - "points" - ], "properties": { - "name": { - "description": "The name of the review author. If not set, the first name of the customer is chosen.", - "type": "string" - }, - "email": { - "description": "The email address of the review author. If not set, the email of the customer is chosen.", - "type": "string" - }, - "title": { - "description": "The title of the review.", - "type": "string" - }, - "content": { - "description": "The content of review.", - "type": "string" - }, - "points": { - "description": "The review rating for the product.", - "type": "number", - "format": "double" + "productIds": { + "description": "List product id", + "type": "array", + "items": { + "description": "product id", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } } }, "type": "object" @@ -20886,7 +16149,14 @@ }, "responses": { "200": { - "description": "Success response indicating the review was saved successfully." + "description": "Returns a success response.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" + } + } + } } }, "security": [ @@ -20897,78 +16167,113 @@ ] } }, - "/product/{productId}/find-variant": { - "post": { + "/customer/wishlist/delete/{productId}": { + "delete": { "tags": [ - "Product" + "Wishlist" ], - "summary": "Search for a matching variant by product options.", - "description": "Performs a search for product variants and returns the best matching variant.", - "operationId": "searchProductVariantIds", + "summary": "Remove a product from a wishlist", + "description": "Removes a product from a customer's wishlist.\n\n **Important constraints**\n\n * Anonymous (not logged-in) customers can not have wishlists.\n * The wishlist feature has to be activated.", + "operationId": "deleteProductOnWishlist", "parameters": [ { "name": "productId", "in": "path", - "description": "Product ID", + "description": "The identifier of the product to be removed from the wishlist.", "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "required": [ - "options" - ], - "properties": { - "options": { - "oneOf": [ - { - "description": "The options parameter for the variant to find.", - "type": "array", - "items": { - "type": "string" - } - }, - { - "description": "The options parameter as a map of groupId => optionId.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - ] - }, - "switchedGroup": { - "description": "The id of the option group that has been switched.", - "type": "string" + "responses": { + "200": { + "description": "Returns a success response indicating a successful removal.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" + } + } + } + }, + "404": { + "description": "The removal of the product failed. Probably because the product could not be found on the wishlist.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/failure" + } + } + } + } + }, + "security": [ + { + "ApiKey": [], + "ContextToken": [] + } + ] + } + }, + "/category": { + "post": { + "tags": [ + "Category", + "Endpoints supporting Criteria " + ], + "summary": "Fetch a list of categories", + "description": "Perform a filtered search for categories.", + "operationId": "readCategoryList", + "parameters": [ + { + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, + "schema": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" } - }, - "type": "object" + ] } } } }, "responses": { "200": { - "description": "Returns an FoundCombination struct containing the ids matching the search.", + "description": "Entity search result containing categories.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FindProductVariantRouteResponse" + "allOf": [ + { + "type": "object", + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Category" + } + } + } + }, + { + "$ref": "#/components/schemas/EntitySearchResult" + } + ] } } } @@ -20979,22 +16284,25 @@ "ApiKey": [] } ] - }, - "get": { + } + }, + "/category/{navigationId}": { + "post": { "tags": [ - "Product" + "Category", + "Endpoints supporting Criteria " ], - "summary": "Search for a matching variant by product options.", - "description": "Performs a search for product variants and returns the best matching variant.", - "operationId": "searchProductVariantIdsGet", + "summary": "Fetch a single category", + "description": "This endpoint returns information about the category, as well as a fully resolved (hydrated with mapping values) CMS page, if one is assigned to the category. You can pass slots which should be resolved exclusively.", + "operationId": "readCategory", "parameters": [ { - "name": "productId", - "in": "path", - "description": "Product ID", - "required": true, + "name": "sw-include-seo-urls", + "in": "header", + "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", + "required": false, "schema": { - "type": "string" + "type": "boolean" } }, { @@ -21008,34 +16316,47 @@ } }, { - "name": "options[]", - "in": "query", - "description": "The options parameter for the variant to find. Array of option IDs.", + "name": "navigationId", + "in": "path", + "description": "Identifier of the category to be fetched", "required": true, "schema": { - "type": "array", - "items": { - "type": "string" - } + "type": "string", + "pattern": "^[0-9a-f]{32}$" } }, { - "name": "switchedGroup", + "name": "slots", "in": "query", - "description": "The id of the option group that has been switched.", - "required": false, + "description": "Resolves only the given slot identifiers. The identifiers have to be seperated by a '|' character", "schema": { "type": "string" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + }, + { + "$ref": "#/components/schemas/ProductListingCriteria" + } + ] + } + } + } + }, "responses": { "200": { - "description": "Returns an FoundCombination struct containing the ids matching the search.", + "description": "The loaded category with cms page", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FindProductVariantRouteResponse" + "$ref": "#/components/schemas/Category" } } } @@ -21048,89 +16369,138 @@ ] } }, - "/customer/wishlist/add/{productId}": { + "/seo-url": { "post": { "tags": [ - "Wishlist" + "Sitemap & Routes", + "Endpoints supporting Criteria " ], - "summary": "Add a product to a wishlist", - "description": "Adds a product to a customers wishlist.\n\n **Important constraints**\n\n * Anonymous (not logged-in) customers can not have wishlists.\n * The wishlist feature has to be activated.", - "operationId": "addProductOnWishlist", + "summary": "Fetch SEO routes", + "description": "Perform a filtered search for seo urls.", + "operationId": "readSeoUrl", "parameters": [ { - "name": "productId", - "in": "path", - "description": "Identifier of the product to be added.", - "required": true, + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } } ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + } + ] + } + } + } + }, "responses": { "200": { - "description": "Returns a success response.", + "description": "Entity search result containing seo urls.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SuccessResponse" + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SeoUrl" + } + } + }, + "type": "object", + "required": [ + "elements" + ] + }, + { + "$ref": "#/components/schemas/EntitySearchResult" + } + ] } } } + }, + "404": { + "$ref": "#/components/responses/404" } }, "security": [ { - "ApiKey": [], - "ContextToken": [] + "ApiKey": [] } ] } }, - "/customer/wishlist": { + "/product-listing/{categoryId}": { "post": { "tags": [ - "Wishlist", - "Endpoints supporting Criteria " + "Product" ], - "summary": "Fetch a wishlist", - "description": "Fetch a customer's wishlist. Products on the wishlist can be filtered using a criteria object.\n\n **Important constraints**\n\n * Anonymous (not logged-in) customers can not have wishlists.\n * The wishlist feature has to be activated.", - "operationId": "readCustomerWishlist", + "summary": "Fetch a product listing by category", + "description": "Fetches a product listing for a specific category. It also provides filters, sortings and property aggregations, analogous to the /search endpoint.", + "operationId": "readProductListing", "parameters": [ { - "name": "sw-language-id", + "name": "categoryId", + "in": "path", + "description": "Identifier of a category.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "p", + "in": "query", + "description": "The page number to fetch.", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "sw-include-seo-urls", "in": "header", - "description": "Instructs Shopware to return the response in the given language.", + "description": "Determines if the response must contain a SeoUrl entity for a product entity", "required": false, "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "type": "boolean" } }, { - "name": "sw-include-search-info", + "name": "sw-language-id", "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", + "description": "Instructs Shopware to return the response in the given language.", "required": false, "schema": { "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" + "pattern": "^[0-9a-f]{32}$" } } ], "requestBody": { - "required": false, "content": { "application/json": { "schema": { "allOf": [ { - "$ref": "#/components/schemas/Criteria" + "$ref": "#/components/schemas/ProductListingCriteria" + }, + { + "$ref": "#/components/schemas/ProductListingFlags" } ] } @@ -21139,11 +16509,11 @@ }, "responses": { "200": { - "description": "", + "description": "Returns a product listing containing all products and additional fields to display a listing.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/WishlistLoadRouteResponse" + "$ref": "#/components/schemas/ProductListingResult" } } } @@ -21151,36 +16521,35 @@ }, "security": [ { - "ApiKey": [], - "ContextToken": [] + "ApiKey": [] } ] } }, - "/customer/wishlist/merge": { + "/app-system/{name}/generate-token": { "post": { "tags": [ - "Wishlist" + "App system" + ], + "summary": "Generate JWT token for app system backend", + "description": "Generate JWT token for authenticated communication with the app server", + "operationId": "generateJWTAppSystemAppServer", + "parameters": [ + { + "in": "path", + "name": "name", + "required": true, + "description": "Name of the app", + "schema": { + "type": "string" + } + } ], - "summary": "Create a wishlist for a customer", - "description": "Create a new wishlist for a logged in customer or extend the existing wishlist given a set of products.\n\n **Important constraints**\n\n * Anonymous (not logged-in) customers can not have wishlists.\n * A customer can only have a single wishlist.\n * The wishlist feature has to be activated.", - "operationId": "mergeProductOnWishlist", "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { - "properties": { - "productIds": { - "description": "List product id", - "type": "array", - "items": { - "description": "product id", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } - }, "type": "object" } } @@ -21188,11 +16557,23 @@ }, "responses": { "200": { - "description": "Returns a success response.", + "description": "", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SuccessResponse" + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "expires": { + "type": "string", + "format": "date-time" + }, + "shopId": { + "type": "string" + } + } } } } @@ -21200,49 +16581,68 @@ }, "security": [ { - "ApiKey": [], - "ContextToken": [] + "ApiKey": [] } ] } }, - "/customer/wishlist/delete/{productId}": { - "delete": { + "/country": { + "post": { "tags": [ - "Wishlist" + "System & Context", + "Endpoints supporting Criteria " ], - "summary": "Remove a product from a wishlist", - "description": "Removes a product from a customer's wishlist.\n\n **Important constraints**\n\n * Anonymous (not logged-in) customers can not have wishlists.\n * The wishlist feature has to be activated.", - "operationId": "deleteProductOnWishlist", + "summary": "Fetch countries", + "description": "Perform a filtered search for countries", + "operationId": "readCountry", "parameters": [ { - "name": "productId", - "in": "path", - "description": "The identifier of the product to be removed from the wishlist.", - "required": true, + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } } ], - "responses": { - "200": { - "description": "Returns a success response indicating a successful removal.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SuccessResponse" - } + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + } + ] } } - }, - "404": { - "description": "The removal of the product failed. Probably because the product could not be found on the wishlist.", + } + }, + "responses": { + "200": { + "description": "Entity search result containing countries.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/failure" + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Country" + } + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/EntitySearchResult" + } + ] } } } @@ -21250,20 +16650,19 @@ }, "security": [ { - "ApiKey": [], - "ContextToken": [] + "ApiKey": [] } ] } }, - "/order/state/cancel": { + "/contact-form": { "post": { "tags": [ - "Order" + "Content" ], - "summary": "Cancel an order", - "description": "Cancels an order. The order state will be set to 'cancelled'.", - "operationId": "cancelOrder", + "summary": "Submit a contact form message", + "description": "Used for submitting contact forms. Be aware that there can be more required fields, depending on the system settings.", + "operationId": "sendContactMail", "parameters": [ { "name": "sw-language-id", @@ -21281,51 +16680,96 @@ "content": { "application/json": { "schema": { + "required": [ + "salutationId", + "email", + "subject", + "comment" + ], "properties": { - "orderId": { - "description": "The identifier of the order to be canceled.", + "salutationId": { + "description": "Identifier of the salutation. Use `/api/salutation` endpoint to fetch possible values.", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "firstName": { + "description": "Firstname. This field may be required depending on the system settings.", + "type": "string" + }, + "lastName": { + "description": "Lastname. This field may be required depending on the system settings.", + "type": "string" + }, + "email": { + "description": "Email address", + "type": "string" + }, + "phone": { + "description": "Phone. This field may be required depending on the system settings.", + "type": "string" + }, + "subject": { + "description": "The subject of the contact form.", + "type": "string" + }, + "comment": { + "description": "The message of the contact form", + "type": "string" + }, + "navigationId": { + "description": "Identifier of the navigation page. Can be used to override the configuration.\nTake a look at the settings of a category containing a concat form in the administration.", "type": "string", "pattern": "^[0-9a-f]{32}$" + }, + "slotId": { + "description": "Identifier of the cms element", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "cmsPageType": { + "description": "Type of the content management page", + "type": "string" + }, + "entityName": { + "description": "Entity name for slot config", + "type": "string" } }, - "type": "object", - "required": [ - "orderId" - ] + "type": "object" } } } }, "responses": { "200": { - "description": "Returns the state of the state machine\n\n example: More information about the state machine can be found in the corresponding guide: [Using the state machine](https://developer.shopware.com/docs/guides/plugins/plugins/checkout/order/using-the-state-machine)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/StateMachineState" - } - } - } + "description": "Message sent successful." } }, "security": [ { - "ApiKey": [], - "ContextToken": [] + "ApiKey": [] } ] } }, - "/order": { + "/search": { "post": { "tags": [ - "Order", - "Endpoints supporting Criteria " + "Product" ], - "summary": "Fetch a list of orders", - "description": "List orders of a customer.\n\n**Available Associations:**\n- `stateMachineState` - Current order state (e.g., open, in_progress, completed, cancelled)\n- `primaryOrderDelivery` - Primary delivery information for the order\n- `primaryOrderTransaction` - Primary payment transaction for the order\n- `orderCustomer` - Customer information associated with the order\n- `currency` - Currency used for the order\n- `language` - Language used when placing the order\n- `addresses` - All addresses associated with the order (billing and shipping)\n- `billingAddress` - Billing address for the order\n- `deliveries` - Delivery information including shipping address and tracking\n- `lineItems` - Order line items (products, discounts, fees)\n- `transactions` - Payment transactions for the order\n- `documents` - Generated documents (invoices, delivery notes, credit notes)\n- `tags` - Tags assigned to the order for organization and filtering", - "operationId": "readOrder", + "summary": "Search for products", + "description": "Performs a search for products which can be used to display a product listing.", + "operationId": "searchPage", "parameters": [ + { + "name": "p", + "in": "query", + "description": "The page number to fetch.", + "required": false, + "schema": { + "type": "integer" + } + }, { "name": "sw-language-id", "in": "header", @@ -21337,83 +16781,34 @@ } }, { - "name": "sw-include-search-info", + "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", + "name": "sw-include-seo-urls", "required": false, "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" + "type": "boolean" } } ], "requestBody": { - "required": true, "content": { "application/json": { "schema": { "allOf": [ - { - "$ref": "#/components/schemas/NoneFieldsCriteria" - }, { "properties": { - "checkPromotion": { - "description": "Check if the payment method of the order is still changeable.", - "type": "boolean" - }, - "filter": { - "type": "array", - "description": "Pass the deepLinkCode criteria filter to allow for guest user authentification. Not required, if a user (guest or not) is already logged in.", - "items": { - "allOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "equals" - ] - }, - "field": { - "type": "string", - "enum": [ - "deepLinkCode" - ] - }, - "value": { - "type": "string" - } - }, - "required": [ - "type", - "field", - "value" - ] - } - ] - } - }, - "email": { - "description": "The email address of the customer. Pass this value to allow for guest user authentification. Not required, if a user (guest or not) is already logged in.", - "type": "string", - "format": "email" - }, - "zipcode": { - "description": "The zip/postal code of the billing address of the customer. Pass this value to allow for guest user authentification. Not required, if a user (guest or not) is already logged in.", + "search": { + "description": "Using the search parameter, the server performs a text search on all records based on their data model and weighting as defined in the entity definition using the SearchRanking flag.", "type": "string" - }, - "login": { - "description": "If set and when handling a guest order, a context token will be returned in the response header with a logged-in session.", - "type": "boolean" } }, "type": "object" + }, + { + "$ref": "#/components/schemas/ProductListingCriteria" + }, + { + "$ref": "#/components/schemas/ProductListingFlags" } ] } @@ -21422,19 +16817,11 @@ }, "responses": { "200": { - "description": "An array of orders and an indicator if the payment of the order can be changed.", - "headers": { - "sw-context-token": { - "description": "Contains sw-context-token value, if login parameter is set to true and a guest order was found and the correct credentials were provided.", - "schema": { - "type": "string" - } - } - }, + "description": "Returns a product listing containing all products and additional fields to display a listing.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OrderRouteResponse" + "$ref": "#/components/schemas/ProductListingResult" } } } @@ -21442,65 +16829,42 @@ }, "security": [ { - "ApiKey": [], - "ContextToken": [] + "ApiKey": [] } ] } }, - "/order/payment": { + "/account/newsletter-recipient": { "post": { "tags": [ - "Order" - ], - "summary": "Update the payment method of an order", - "description": "Changes the payment method of a specific order. You can use the /order route to find out if the payment method of an order can be changed - take a look at the `paymentChangeable`- array in the response.", - "operationId": "orderSetPayment", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } + "Profile", + "Newsletter", + "Endpoints supporting Criteria" ], + "summary": "Fetch newsletter recipients", + "description": "Perform a filtered search for newsletter recipients.", + "operationId": "readNewsletterRecipient", "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { - "required": [ - "paymentMethodId", - "orderId" - ], - "properties": { - "paymentMethodId": { - "description": "The identifier of the paymentMethod to be set", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "orderId": { - "description": "The identifier of the order.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" } - }, - "type": "object" + ] } } } }, "responses": { "200": { - "description": "Successfully updated the payment method of the order.", + "description": "", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SuccessResponse" + "$ref": "#/components/schemas/AccountNewsletterRecipient" } } } @@ -21514,52 +16878,114 @@ ] } }, - "/order/download/{orderId}/{downloadId}": { - "get": { + "/account/change-profile": { + "post": { "tags": [ - "Order" + "Profile" ], - "summary": "Download a purchased file", - "description": "Download a file included in the given order and with the given id. Access must be granted.", - "operationId": "orderDownloadFile", - "parameters": [ - { - "name": "orderId", - "in": "path", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "downloadId", - "in": "path", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "summary": "Change the customer's information", + "description": "Make changes to a customer's account, like changing their name, salutation or title.", + "operationId": "changeProfile", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "salutationId", + "firstName", + "lastName" + ], + "properties": { + "salutationId": { + "description": "Id of the salutation for the customer account. Fetch options using `salutation` endpoint.", + "type": "string" + }, + "title": { + "description": "(Academic) title of the customer", + "type": "string" + }, + "firstName": { + "description": "Customer first name. Value will be reused for shipping and billing address if not provided explicitly.", + "type": "string" + }, + "lastName": { + "description": "Customer last name. Value will be reused for shipping and billing address if not provided explicitly.", + "type": "string" + }, + "birthdayDay": { + "description": "Birthday day", + "type": "integer" + }, + "birthdayMonth": { + "description": "Birthday month", + "type": "integer" + }, + "birthdayYear": { + "description": "Birthday year", + "type": "integer" + } + }, + "oneOf": [ + { + "properties": { + "accountType": { + "description": "Type of the customer account. Default value is 'private'.", + "type": "string", + "enum": [ + "private" + ], + "default": "private" + }, + "company": { + "type": "null" + }, + "vatIds": { + "type": "null" + } + } + }, + { + "required": [ + "accountType", + "company", + "vatIds" + ], + "properties": { + "accountType": { + "description": "Type of the customer account. Can be `private` or `business`.", + "type": "string", + "enum": [ + "business" + ] + }, + "company": { + "description": "Company of the customer. Only required when `accountType` is `business`.", + "type": "string" + }, + "vatIds": { + "description": "VAT IDs of the customer's company. Only valid when `accountType` is `business`.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 + } + } + } + ] + } } } - ], + }, "responses": { "200": { - "description": "An arbitrary binary file.", + "description": "Returns a success response indicating a successful update", "content": { - "application/octet-stream": { + "application/json": { "schema": { - "type": "string", - "format": "binary" + "$ref": "#/components/schemas/SuccessResponse" } } } @@ -21573,161 +16999,50 @@ ] } }, - "/language": { + "/account/change-email": { "post": { "tags": [ - "System & Context", - "Endpoints supporting Criteria " - ], - "summary": "Fetch languages", - "description": "Perform a filtered search for languages.\n\n**Available Associations:**\n- `locale` - Locale defining regional settings (date, time, number formats)\n- `translationCode` - Locale used for translating content\n- `children` - Child languages inheriting from this parent language", - "operationId": "readLanguages", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - } + "Profile" ], + "summary": "Change the customer's email address", + "description": "Changes a customer's email address to a new email address, using their current password as a validation.", + "operationId": "changeEmail", "requestBody": { - "required": false, + "required": true, "content": { "application/json": { "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" - } - ] - } - } - } - }, - "responses": { - "200": { - "$ref": "#/components/responses/LanguageListResponse" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - }, - "get": { - "tags": [ - "System & Context", - "Endpoints supporting Criteria " - ], - "summary": "Fetch languages", - "description": "Perform a filtered search for languages.\n\n**Available Associations:**\n- `locale` - Locale defining regional settings (date, time, number formats)\n- `translationCode` - Locale used for translating content\n- `children` - Child languages inheriting from this parent language", - "operationId": "readLanguagesGet", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/LanguageListResponse" + "required": [ + "email", + "emailConfirmation", + "password" + ], + "properties": { + "email": { + "description": "New email address. Has to be unique amongst all customers", + "type": "string" + }, + "emailConfirmation": { + "description": "Confirmation of the new email address.", + "type": "string" + }, + "password": { + "description": "Customer's current password", + "type": "string" + } + }, + "type": "object" + } + } } }, - "security": [ - { - "ApiKey": [] - } - ] - } - }, - "/context": { - "get": { - "tags": [ - "System & Context" - ], - "summary": "Fetch the current context", - "description": "Fetches the current context. This includes for example the `customerGroup`, `currency`, `taxRules` and many more.", - "operationId": "readContext", "responses": { "200": { - "description": "Returns the current context.", + "description": "Returns a success response indicating a successful update", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SalesChannelContext" + "$ref": "#/components/schemas/SuccessResponse" } } } @@ -21735,62 +17050,32 @@ }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] - }, - "patch": { + } + }, + "/account/change-language": { + "post": { "tags": [ - "System & Context" + "Profile" ], - "summary": "Modify the current context", - "description": "Used for switching the context. A typical example would be changing the language or changing the currency.", - "operationId": "updateContext", + "summary": "Change the customer's language.", + "description": "Changes the language of the logged in customer", + "operationId": "changeLanguage", "requestBody": { "required": true, "content": { "application/json": { "schema": { + "required": [ + "languageId" + ], "properties": { - "currencyId": { - "description": "Currency", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "languageId": { - "description": "Language", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "billingAddressId": { - "description": "Billing Address", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "shippingAddressId": { - "description": "Shipping Address", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "paymentMethodId": { - "description": "Payment Method", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "shippingMethodId": { - "description": "Shipping Method", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "countryId": { - "description": "Country", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "countryStateId": { - "description": "Country State", - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "language": { + "description": "New languageId", + "type": "string" } }, "type": "object" @@ -21800,32 +17085,54 @@ }, "responses": { "200": { - "$ref": "#/components/responses/ContextTokenResponse" + "description": "Returns a success response indicating a successful update", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" + } + } + } } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] } }, - "/context/gateway": { + "/account/change-password": { "post": { + "tags": [ + "Profile" + ], + "summary": "Change the customer's password", + "description": "Changes a customer's password using their current password as a validation.", + "operationId": "changePassword", "requestBody": { "required": true, "content": { "application/json": { "schema": { "required": [ - "appName" + "password", + "newPassword", + "newPasswordConfirm" ], "properties": { - "appName": { + "password": { + "description": "Current password of the customer", "type": "string" }, - "data": { - "type": "object" + "newPassword": { + "description": "New Password for the customer", + "type": "string" + }, + "newPasswordConfirm": { + "description": "Confirmation of the new password", + "type": "string" } }, "type": "object" @@ -21833,129 +17140,124 @@ } } }, - "tags": [ - "Gateway" - ], - "summary": "Call the context gateway", - "description": "Call the context gateway, which is used to manipulate certain aspects of context (e.g. selected payment methods, register customer, etc.).", - "operationId": "contextGateway", "responses": { "200": { - "$ref": "#/components/responses/ContextTokenResponse" - }, - "400": { - "description": "App server communication error" - }, - "422": { - "description": "Error provided by App Server with message to show customer" + "description": "Returns a success response indicating a successful update.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" + } + } + } } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] - }, - "get": { + } + }, + "/account/change-payment-method/{paymentMethodId}": { + "post": { "tags": [ - "Gateway" + "Profile" ], - "summary": "Call the context gateway", - "description": "Call the context gateway, which is used to manipulate certain aspects of context (e.g. selected payment methods, register customer, etc.). Please prefer using the POST version of this endpoint.", - "operationId": "contextGatewayGet", + "summary": "Change the customer's default payment method", + "description": "Changes a customer's default (preselected) payment method.", + "operationId": "changePaymentMethod", "parameters": [ { - "name": "appName", - "in": "query", + "name": "paymentMethodId", + "in": "path", + "description": "Identifier of the desired default payment method", "required": true, "schema": { "type": "string" } - }, - { - "name": "data", - "in": "query", - "schema": { - "type": "object" - }, - "style": "deepObject" } ], "responses": { "200": { - "$ref": "#/components/responses/ContextTokenResponse" - }, - "400": { - "description": "App server communication error" - }, - "422": { - "description": "Error provided by App Server with message to show customer" + "description": "Returns a success response indicating a successful update.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" + } + } + } } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] } }, - "/breadcrumb/{id}": { - "get": { + "/account/customer-recovery-is-expired": { + "post": { "tags": [ - "Experimental", - "Breadcrumb" + "Profile" ], - "summary": "Fetch a breadcrumb", - "description": "Perform search to get category or product breadcrumb. \n\nExperimental API, not part of our backwards compatibility promise, thus this API can introduce breaking changes at any time.", - "operationId": "readBreadcrumb", - "parameters": [ - { - "name": "id", - "in": "path", - "description": "UUID for product or category", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "type", - "in": "query", - "description": "Type: category or product (optional - default: product)", - "required": false, - "schema": { - "type": "string", - "enum": [ - "product", - "category" - ] - } - }, - { - "name": "referrerCategoryId", - "in": "query", - "description": "UUID for referrer category only used for product breadcrumb", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "summary": "Checks if the customer recovery entry for a given hash is expired.", + "description": "This can be used to validate a provided hash has a valid and not expired customer recovery hash.", + "operationId": "getCustomerRecoveryIsExpired", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": [ + "hash" + ], + "properties": { + "hash": { + "description": "Parameter from the link in the confirmation mail sent in Step 1", + "type": "string" + } + }, + "type": "object" + } } } - ], + }, "responses": { "200": { - "description": "Search result containing SeoUrl\\'s to be used as breadcrumb.", + "description": "Returns a CustomerRecoveryIsExpiredResponse that indicates if the hash is expired or not.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BreadcrumbCollection" + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "isExpired": { + "type": "boolean" + } + }, + "required": [ + "isExpired" + ] + } + }, + "apiAlias": { + "enum": [ + "array_struct" + ], + "type": "string" + } + } } } } - }, - "400": { - "$ref": "#/components/responses/400" } }, "security": [ @@ -21965,59 +17267,81 @@ ] } }, - "/product-export/{accessKey}/{fileName}": { - "get": { + "/account/customer": { + "post": { "tags": [ - "Product" + "Profile", + "Endpoints supporting Criteria " ], - "summary": "Export product export", - "operationId": "readProductExport", - "parameters": [ - { - "name": "accessKey", - "in": "path", - "description": "Access Key", - "required": true, - "schema": { - "type": "string" + "summary": "Get information about current customer", + "description": "Returns information about the current customer.", + "operationId": "readCustomer", + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/NoneFieldsCriteria" + } + ] + } } - }, - { - "name": "fileName", - "in": "path", - "description": "File Name", - "required": true, - "schema": { - "type": "string" + } + }, + "responses": { + "200": { + "description": "Returns the logged in customer, also for guest sessions. Check for the value of `guest` field to see whether the customer is a guest.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Customer" + } + } } } + }, + "security": [ + { + "ApiKey": [], + "ContextToken": [] + } + ] + }, + "delete": { + "tags": [ + "Profile" ], + "summary": "Delete the customer's profile", + "description": "Deletes a customer profile along with their addresses, wishlists and associated data. Created orders and their payment/shipping information (addresses) and reviews are not deleted.", + "operationId": "deleteCustomer", "responses": { - "200": { - "description": "" + "204": { + "description": "Returns a no content response indicating a successful removal of the customer profile" } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] } }, - "/script/{hook}": { - "get": { + "/account/address/{addressId}": { + "delete": { "tags": [ - "API", - "Script", - "App" + "Address" ], - "summary": "Access point for different api logics which are provided by apps over script hooks", - "operationId": "getScriptStoreApiRoute", + "summary": "Delete an address of a customer", + "description": "Delete an address of customer.\n\n Only addresses which are not set as default addresses for shipping or billing can be deleted. You can check the current default addresses of your customer using the profile information endpoint and change them using the default address endpoint.\n\n **A customer must have at least one address (which can be used for shipping and billing).**\n\n An automatic fallback is not applied.", + "operationId": "deleteCustomerAddress", "parameters": [ { - "name": "hook", + "name": "addressId", "in": "path", - "description": "Dynamic hook which used to build the hook name", + "description": "ID of the address to be deleted.", "required": true, "schema": { "type": "string" @@ -22025,161 +17349,162 @@ } ], "responses": { - "200": { - "description": "Returns different structures of results based on the called script.", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "type": "object", - "additionalProperties": true - }, - { - "type": "null" - } - ] - } - }, - "application/vnd.api+json": { - "schema": { - "oneOf": [ - { - "type": "object", - "additionalProperties": true - }, - { - "type": "null" - } - ] - } - } - } - }, "204": { - "description": "No data by default" + "description": "No Content response, when the address has been deleted" + }, + "400": { + "description": "Response containing a list of errors, most likely due to the address being in use" } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] }, - "post": { + "patch": { "tags": [ - "API", - "Script", - "App" + "Address" ], - "summary": "Access point for different api logics which are provided by apps over script hooks", - "operationId": "postScriptStoreApiRoute", + "summary": "Modify an address of a customer", + "description": "Modifies an existing address of a customer.", + "operationId": "updateCustomerAddress", "parameters": [ { - "name": "hook", + "name": "addressId", "in": "path", - "description": "Dynamic hook which used to build the hook name", + "description": "Address ID", "required": true, "schema": { "type": "string" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerAddressBody" + } + } + } + }, "responses": { "200": { - "description": "Returns different structures of results based on the called script.", + "description": "", "content": { "application/json": { "schema": { - "oneOf": [ - { - "type": "object", - "additionalProperties": true - }, - { - "type": "null" - } - ] - } - }, - "application/vnd.api+json": { - "schema": { - "oneOf": [ + "allOf": [ { - "type": "object", - "additionalProperties": true + "$ref": "#/components/schemas/CustomerAddress" }, { - "type": "null" + "$ref": "#/components/schemas/CustomerAddressRead" } ] } } } - }, - "204": { - "description": "No data by default" } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] } }, - "/checkout/cart": { - "get": { + "/account/list-address": { + "post": { "tags": [ - "Cart" + "Address", + "Endpoints supporting Criteria " ], - "summary": "Fetch or create a cart", - "description": "Used to fetch the current cart or for creating a new one.", - "operationId": "readCart", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "summary": "Fetch addresses of a customer", + "description": "Lists all addresses of the current customer and allows filtering them based on a criteria.", + "operationId": "listAddress", + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + } + ] + } } } - ], + }, "responses": { "200": { - "description": "Cart", + "description": "", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Cart" + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomerAddress" + } } } } } }, - "security": [ - { - "ApiKey": [] - } - ] - }, - "delete": { - "tags": [ - "Cart" - ], - "summary": "Delete a cart", - "description": "This route deletes the cart of the customer.", - "operationId": "deleteCart", + "security": [ + { + "ApiKey": [], + "ContextToken": [] + } + ] + } + }, + "/account/login": { + "post": { + "tags": [ + "Login & Registration" + ], + "summary": "Log in a customer", + "description": "Logs in customers given their credentials.", + "operationId": "loginCustomer", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": [ + "username", + "password" + ], + "properties": { + "username": { + "description": "Email", + "type": "string" + }, + "password": { + "description": "Password", + "type": "string" + } + }, + "type": "object" + } + } + } + }, "responses": { - "204": { - "description": "Successfully deleted the cart", + "200": { + "$ref": "#/components/responses/ContextTokenResponse" + }, + "401": { + "description": "If credentials are incorrect an error is returned", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SuccessResponse" + "$ref": "#/components/schemas/failure" } } } @@ -22192,48 +17517,56 @@ ] } }, - "/checkout/cart/line-item": { + "/account/login/imitate-customer": { "post": { "tags": [ - "Cart" - ], - "summary": "Add items to the cart", - "description": "This route adds items to the cart. An item can be a product or promotion for example. They are referenced by the `referencedId`-parameter.\n\nExample: [Working with the cart - Guide](https://developer.shopware.com/docs/guides/integrations-api/store-api-guide/work-with-the-cart#adding-new-items-to-the-cart)", - "operationId": "addLineItem", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } + "Login & Registration" ], + "summary": "Imitate the log in as a customer", + "description": "Imitate the log in as a customer given a generated token.", + "operationId": "imitateCustomerLogin", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CartItems" + "required": [ + "token", + "customerId", + "userId" + ], + "properties": { + "token": { + "description": "Generated customer impersonation token", + "type": "string" + }, + "customerId": { + "description": "ID of the customer", + "type": "string" + }, + "userId": { + "description": "ID of the user who generated the token", + "type": "string" + } + }, + "type": "object" } } } }, "responses": { "200": { - "description": "The updated cart.", + "$ref": "#/components/responses/ContextTokenResponse" + }, + "400": { + "description": "If the token is incorrect an error is returned", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Cart" + "$ref": "#/components/schemas/failure" } } } - }, - "400": { - "$ref": "#/components/responses/400" } }, "security": [ @@ -22241,93 +17574,230 @@ "ApiKey": [] } ] - }, - "delete": { + } + }, + "/account/logout": { + "post": { "tags": [ - "Cart" + "Login & Registration" ], - "summary": "Remove items from the cart", - "description": "DEPRECATED: use removeLineItem instead. This route removes items from the cart and recalculates it.\n\nExample: [Working with the cart - Guide](https://developer.shopware.com/docs/guides/integrations-api/store-api-guide/work-with-the-cart#deleting-items-in-the-cart)", - "operationId": "removeLineItemDeprecated", - "deprecated": true, - "parameters": [ - { - "name": "ids", - "in": "query", - "description": "A list of product identifiers.", - "required": true, - "schema": { - "type": "array", - "items": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } + "summary": "Log out a customer", + "description": "Logs out a customer.", + "operationId": "logoutCustomer", + "responses": { + "200": { + "$ref": "#/components/responses/ContextTokenResponse" }, + "403": { + "$ref": "#/components/responses/403" + } + }, + "security": [ { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } + "ApiKey": [], + "ContextToken": [] } + ] + } + }, + "/account/register-confirm": { + "post": { + "tags": [ + "Login & Registration" ], - "responses": { - "200": { - "description": "The updated cart.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Cart" - } + "summary": "Confirm a customer registration", + "description": "Confirms a customer registration when double opt-in is activated.\n\nLearn more about double opt-in registration in our guide \"Register a customer\".", + "operationId": "registerConfirm", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": [ + "hash", + "em" + ], + "properties": { + "hash": { + "description": "Hash from the email received", + "type": "string" + }, + "em": { + "description": "Email hash from the email received", + "type": "string" + } + }, + "type": "object" } } } }, + "responses": { + "200": { + "description": "Returns the logged in customer. The customer is automatically logged in with the `sw-context-token` header provided, which can be reused for subsequent requests." + }, + "404": { + "description": "No hash provided" + }, + "412": { + "description": "The customer has already been confirmed" + } + }, "security": [ { "ApiKey": [] } ] - }, - "patch": { + } + }, + "/account/register": { + "post": { "tags": [ - "Cart" - ], - "summary": "Update items in the cart", - "description": "This route updates items in the cart. A typical example is updating the quantity of an item.\n\nExample: [Working with the cart - Guide](https://developer.shopware.com/docs/guides/integrations-api/store-api-guide/work-with-the-cart#updating-items-in-the-cart)", - "operationId": "updateLineItem", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } + "Login & Registration" ], + "summary": "Register a customer", + "description": "Registers a customer. Used both for normal customers and guest customers.See the Guide \"Register a customer\" for more information on customer registration.", + "operationId": "register", "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CartItems" + "properties": { + "email": { + "description": "Email of the customer. Has to be unique, unless `guest` is `true`", + "type": "string" + }, + "password": { + "description": "Password for the customer. Required, unless `guest` is `true`", + "type": "string" + }, + "salutationId": { + "description": "Id of the salutation for the customer account. Fetch options using `salutation` endpoint.", + "type": "string" + }, + "firstName": { + "description": "Customer first name. Value will be reused for shipping and billing address if not provided explicitly.", + "type": "string" + }, + "lastName": { + "description": "Customer last name. Value will be reused for shipping and billing address if not provided explicitly.", + "type": "string" + }, + "acceptedDataProtection": { + "description": "Flag indicating accepted data protection", + "type": "boolean" + }, + "storefrontUrl": { + "description": "URL of the storefront for that registration. Used in confirmation emails. Has to be one of the configured domains of the sales channel.", + "type": "string" + }, + "billingAddress": { + "$ref": "#/components/schemas/CustomerAddress" + }, + "shippingAddress": { + "$ref": "#/components/schemas/CustomerAddress" + }, + "guest": { + "description": "If set, will create a guest customer. Guest customers can re-use an email address and don't need a password.", + "type": "boolean", + "default": false + }, + "birthdayDay": { + "description": "Birthday day", + "type": "integer" + }, + "birthdayMonth": { + "description": "Birthday month", + "type": "integer" + }, + "birthdayYear": { + "description": "Birthday year", + "type": "integer" + }, + "title": { + "description": "(Academic) title of the customer", + "type": "string" + }, + "affiliateCode": { + "description": "Field can be used to store an affiliate tracking code", + "type": "string" + }, + "campaignCode": { + "description": "Field can be used to store a campaign tracking code", + "type": "string" + } + }, + "required": [ + "email", + "password", + "salutationId", + "firstName", + "lastName", + "acceptedDataProtection", + "storefrontUrl", + "billingAddress" + ], + "oneOf": [ + { + "properties": { + "accountType": { + "description": "Type of the customer account. Default value is 'private'.", + "type": "string", + "enum": [ + "private" + ], + "default": "private" + }, + "company": { + "type": "null" + }, + "vatIds": { + "type": "null" + } + } + }, + { + "required": [ + "accountType", + "company", + "vatIds" + ], + "properties": { + "accountType": { + "description": "Type of the customer account. Can be `private` or `business`.", + "type": "string", + "enum": [ + "business" + ] + }, + "company": { + "description": "Company of the customer. Only required when `accountType` is `business`.", + "type": "string" + }, + "vatIds": { + "description": "VAT IDs of the customer's company. Only valid when `accountType` is `business`.", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 + } + } + } + ], + "type": "object" } } } }, "responses": { "200": { - "description": "The updated cart.", + "description": "Success", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Cart" + "$ref": "#/components/schemas/Customer" } } } @@ -22340,43 +17810,36 @@ ] } }, - "/checkout/cart/line-item/delete": { + "/account/recovery-password-confirm": { "post": { "tags": [ - "Cart" - ], - "summary": "Remove items from the cart", - "description": "This route removes items from the cart and recalculates it.\n\nExample: [Working with the cart - Guide](https://developer.shopware.com/docs/guides/integrations-api/store-api-guide/work-with-the-cart#deleting-items-in-the-cart)", - "operationId": "removeLineItem", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } + "Profile" ], + "summary": "Reset a password with recovery credentials", + "description": "This operation is Step 2 of the password reset flow. It is required to conduct Step 1 \"Send a password recovery mail\" in order to obtain the required credentials for this step.Resets a customer's password using credentials from a password recovery mail as a validation.", + "operationId": "recoveryPassword", "requestBody": { "required": true, "content": { "application/json": { "schema": { "required": [ - "ids" + "hash", + "newPassword", + "newPasswordConfirm" ], "properties": { - "ids": { - "description": "A list of product identifiers.", - "type": "array", - "minItems": 1, - "items": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } + "hash": { + "description": "Parameter from the link in the confirmation mail sent in Step 1", + "type": "string" + }, + "newPassword": { + "description": "New password for the customer", + "type": "string" + }, + "newPasswordConfirm": { + "description": "Confirmation of the new password", + "type": "string" } }, "type": "object" @@ -22386,11 +17849,11 @@ }, "responses": { "200": { - "description": "The updated cart.", + "description": "Returns a success response indicating a successful update.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Cart" + "$ref": "#/components/schemas/SuccessResponse" } } } @@ -22403,42 +17866,30 @@ ] } }, - "/checkout/order": { + "/account/recovery-password": { "post": { "tags": [ - "Order" - ], - "summary": "Create an order from a cart", - "description": "Creates a new order from the current cart and deletes the cart.\n\nIf you are using the [prepared payment flow](https://developer.shopware.com/docs/concepts/commerce/checkout-concept/payments#2.1-prepare-payment-optional), this endpoint also receives additional transaction details. The exact name of the parameters depends on the implementation of the corresponding *payment handler*.", - "operationId": "createOrder", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - } + "Profile" ], + "summary": "Send a password recovery mail", + "description": "This operation is Step 1 of the password reset flow. Make sure to implement Step 2 \"Reset password with recovery credentials\" in order to allow for the complete flow in your application. Sends a recovery mail containing a link with credentials that allows a customer to reset their password.", + "operationId": "sendRecoveryMail", "requestBody": { - "description": "Contains additional metadata which is stored together with the order. It can also contain payment transaction details.", + "required": true, "content": { "application/json": { "schema": { + "required": [ + "email", + "storefrontUrl" + ], "properties": { - "customerComment": { - "description": "Adds a comment from the customer to the order.", - "type": "string" - }, - "affiliateCode": { - "description": "The affiliate code can be used to track which referrer the customer came through. An example could be `Price-comparison-company-XY`.", + "email": { + "description": "E-Mail address to identify the customer", "type": "string" }, - "campaignCode": { - "description": "The campaign code is used to track which action the customer came from. An example could be `Summer-Deals`", + "storefrontUrl": { + "description": "URL of the storefront to use for the generated reset link. It has to be a domain that is configured in the sales channel domain settings.", "type": "string" } }, @@ -22449,11 +17900,11 @@ }, "responses": { "200": { - "description": "Order", + "description": "If email corresponds to an existing customer, a mail will be sent out to that customer containing a link assembled using the following schema:\n\nReturns a success indicating a successful initialisation of the reset flow.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Order" + "$ref": "#/components/schemas/SuccessResponse" } } } @@ -22461,202 +17912,128 @@ }, "security": [ { - "ApiKey": [], - "ContextToken": [] + "ApiKey": [] } ] } }, - "/checkout/gateway": { - "get": { + "/account/address/default-shipping/{addressId}": { + "patch": { "tags": [ - "Gateway" + "Address" + ], + "summary": "Change a customer's default shipping address", + "description": "Updates the default (preselected) shipping addresses of a customer.", + "operationId": "defaultShippingAddress", + "parameters": [ + { + "name": "addressId", + "in": "path", + "description": "Address ID", + "required": true, + "schema": { + "type": "string" + } + } ], - "summary": "Call the checkout gateway", - "description": "Call the checkout gateway, which is used to manipulate certain aspects of the checkout process (e.g. available payment methods).", - "operationId": "checkoutGateway", "responses": { "200": { - "description": "Checkout gateway response", - "content": { - "application/json": { - "schema": { - "properties": { - "paymentMethods": { - "properties": { - "total": { - "description": "Total amount", - "type": "integer" - }, - "aggregations": { - "description": "aggregation result", - "type": "object" - }, - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PaymentMethod" - } - } - }, - "type": "object" - }, - "shippingMethods": { - "properties": { - "total": { - "description": "Total amount", - "type": "integer" - }, - "aggregations": { - "description": "aggregation result", - "type": "object" - }, - "elements": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ShippingMethod" - } - } - }, - "type": "object" - }, - "errors": { - "type": "array", - "items": { - "properties": { - "code": { - "description": "Error code", - "type": "string" - }, - "detail": { - "description": "Error detail", - "type": "string" - }, - "blocking": { - "description": "If the error is blocking", - "type": "boolean" - } - } - } - } - } - } - } - } + "description": "" } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] } }, - "/cms/{id}": { - "post": { + "/account/address/default-billing/{addressId}": { + "patch": { "tags": [ - "Content" + "Address" ], - "summary": "Fetch and resolve a CMS page", - "description": "Loads a content management page by its identifier and resolve the slot data. This could be media files, product listing and so on.\n\n**Important notice**\n\nThe criteria passed with this route also affects the listing, if there is one within the cms page.\n\n**Available Associations:**\n- `sections` - Content sections within the CMS page (layout blocks containing slots)\n- `previewMedia` - Preview image for the CMS page in admin panel and page selection\n- `landingPages` - Landing pages using this CMS layout", - "operationId": "readCms", + "summary": "Change a customer's default billing address", + "description": "Updates the default (preselected) billing addresses of a customer.", + "operationId": "defaultBillingAddress", "parameters": [ { - "name": "id", + "name": "addressId", "in": "path", - "description": "Identifier of the CMS page to be resolved", + "description": "Address ID", "required": true, "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "type": "string" } - }, + } + ], + "responses": { + "200": { + "description": "" + } + }, + "security": [ { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } + "ApiKey": [], + "ContextToken": [] } + ] + } + }, + "/account/address": { + "post": { + "tags": [ + "Address" ], + "summary": "Create a new address for a customer", + "description": "Creates a new address for a customer.", + "operationId": "createCustomerAddress", "requestBody": { "content": { "application/json": { "schema": { - "allOf": [ - { - "properties": { - "slots": { - "description": "Resolves only the given slot identifiers. The identifiers have to be seperated by a `|` character.", - "type": "string" - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/ProductListingCriteria" - } - ] + "$ref": "#/components/schemas/CustomerAddress" } } } }, "responses": { "200": { - "description": "The loaded cms page", + "description": "", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CmsPage" + "allOf": [ + { + "$ref": "#/components/schemas/CustomerAddress" + }, + { + "$ref": "#/components/schemas/CustomerAddressRead" + } + ] } } } - }, - "404": { - "$ref": "#/components/responses/404" } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] - }, + } + }, + "/checkout/cart": { "get": { "tags": [ - "Content" + "Cart" ], - "summary": "Fetch and resolve a CMS page", - "description": "Loads a content management page by its identifier and resolve the slot data. This could be media files, product listing and so on.\n\n**Important notice**\n\nThe criteria passed with this route also affects the listing, if there is one within the cms page.\n\n**Available Associations:**\n- `sections` - Content sections within the CMS page (layout blocks containing slots)\n- `previewMedia` - Preview image for the CMS page in admin panel and page selection\n- `landingPages` - Landing pages using this CMS layout", - "operationId": "readCmsGet", + "summary": "Fetch or create a cart", + "description": "Used to fetch the current cart or for creating a new one.", + "operationId": "readCart", "parameters": [ - { - "name": "id", - "in": "path", - "description": "Identifier of the CMS page to be resolved", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, { "name": "sw-language-id", "in": "header", @@ -22666,165 +18043,91 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "slots", - "in": "query", - "description": "Resolves only the given slot identifiers. The identifiers have to be seperated by a `|` character.", - "schema": { - "type": "string" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "name": "limit", - "in": "query", - "description": "Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings.", - "schema": { - "type": "integer", - "minimum": 0 - } - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "name": "order", - "in": "query", - "description": "Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.", - "schema": { - "type": "string" - } - }, - { - "name": "p", - "in": "query", - "description": "Search result page", - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "manufacturer", - "in": "query", - "description": "Filter by manufacturers. List of manufacturer identifiers separated by a `|`.", - "schema": { - "type": "string" - } - }, - { - "name": "min-price", - "in": "query", - "description": "Filters by a minimum product price. Has to be lower than the `max-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 - } - }, - { - "name": "max-price", - "in": "query", - "description": "Filters by a maximum product price. Has to be higher than the `min-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 - } - }, - { - "name": "rating", - "in": "query", - "description": "Filter products with a minimum average rating.", - "schema": { - "type": "integer" + } + ], + "responses": { + "200": { + "description": "Cart", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Cart" + } + } } - }, + } + }, + "security": [ { - "name": "shipping-free", - "in": "query", - "description": "Filters products that are marked as shipping-free.", - "schema": { - "type": "boolean", - "default": false + "ApiKey": [] + } + ] + }, + "delete": { + "tags": [ + "Cart" + ], + "summary": "Delete a cart", + "description": "This route deletes the cart of the customer.", + "operationId": "deleteCart", + "responses": { + "204": { + "description": "Successfully deleted the cart", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" + } + } } - }, + } + }, + "security": [ { - "name": "properties", - "in": "query", - "description": "Filters products by their properties. List of property identifiers separated by a `|`.", - "schema": { - "type": "string" - } - }, + "ApiKey": [] + } + ] + } + }, + "/checkout/cart/line-item": { + "post": { + "tags": [ + "Cart" + ], + "summary": "Add items to the cart", + "description": "This route adds items to the cart. An item can be a product or promotion for example. They are referenced by the `referencedId`-parameter.\n\nExample: [Working with the cart - Guide](https://developer.shopware.com/docs/guides/integrations-api/store-api-guide/work-with-the-cart#adding-new-items-to-the-cart)", + "operationId": "addLineItem", + "parameters": [ { - "name": "reduce-aggregations", - "in": "query", - "description": "By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.", + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "type": "string", + "pattern": "^[0-9a-f]{32}$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CartItems" + } + } + } + }, "responses": { "200": { - "description": "The loaded cms page", + "description": "The updated cart.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CmsPage" + "$ref": "#/components/schemas/Cart" } } } - }, - "404": { - "$ref": "#/components/responses/404" } }, "security": [ @@ -22832,24 +18135,27 @@ "ApiKey": [] } ] - } - }, - "/search": { - "post": { + }, + "delete": { "tags": [ - "Product" + "Cart" ], - "summary": "Search for products", - "description": "Performs a search for products which can be used to display a product listing.", - "operationId": "searchPage", + "summary": "Remove items from the cart", + "description": "DEPRECATED: use removeLineItem instead. This route removes items from the cart and recalculates it.\n\nExample: [Working with the cart - Guide](https://developer.shopware.com/docs/guides/integrations-api/store-api-guide/work-with-the-cart#deleting-items-in-the-cart)", + "operationId": "removeLineItemDeprecated", + "deprecated": true, "parameters": [ { - "name": "p", + "name": "ids", "in": "query", - "description": "The page number to fetch.", - "required": false, + "description": "A list of product identifiers.", + "required": true, "schema": { - "type": "integer" + "type": "array", + "items": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } } }, { @@ -22861,28 +18167,42 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "in": "header", - "name": "sw-include-seo-urls", - "required": false, - "schema": { - "type": "boolean" + } + ], + "responses": { + "200": { + "description": "The updated cart.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Cart" + } + } } - }, + } + }, + "security": [ + { + "ApiKey": [] + } + ] + }, + "patch": { + "tags": [ + "Cart" + ], + "summary": "Update items in the cart", + "description": "This route updates items in the cart. A typical example is updating the quantity of an item.\n\nExample: [Working with the cart - Guide](https://developer.shopware.com/docs/guides/integrations-api/store-api-guide/work-with-the-cart#updating-items-in-the-cart)", + "operationId": "updateLineItem", + "parameters": [ { - "name": "sw-include-search-info", + "name": "sw-language-id", "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", + "description": "Instructs Shopware to return the response in the given language.", "required": false, "schema": { "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" + "pattern": "^[0-9a-f]{32}$" } } ], @@ -22890,34 +18210,18 @@ "content": { "application/json": { "schema": { - "allOf": [ - { - "properties": { - "search": { - "description": "Using the search parameter, the server performs a text search on all records based on their data model and weighting as defined in the entity definition using the SearchRanking flag.", - "type": "string" - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/ProductListingCriteria" - }, - { - "$ref": "#/components/schemas/ProductListingFlags" - } - ] + "$ref": "#/components/schemas/CartItems" } } } }, "responses": { "200": { - "description": "Returns a product listing containing all products and additional fields to display a listing.", + "description": "The updated cart.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductListingResult" + "$ref": "#/components/schemas/Cart" } } } @@ -22928,14 +18232,16 @@ "ApiKey": [] } ] - }, - "get": { + } + }, + "/checkout/cart/line-item/delete": { + "post": { "tags": [ - "Product" + "Cart" ], - "summary": "Search for products", - "description": "Performs a search for products which can be used to display a product listing.", - "operationId": "searchPageGet", + "summary": "Remove items from the cart", + "description": "This route removes items from the cart and recalculates it.\n\nExample: [Working with the cart - Guide](https://developer.shopware.com/docs/guides/integrations-api/store-api-guide/work-with-the-cart#deleting-items-in-the-cart)", + "operationId": "removeLineItem", "parameters": [ { "name": "sw-language-id", @@ -22946,175 +18252,39 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "in": "header", - "name": "sw-include-seo-urls", - "required": false, - "schema": { - "type": "boolean" - } - }, - { - "name": "search", - "in": "query", - "description": "Using the search parameter, the server performs a text search on all records based on their data model and weighting as defined in the entity definition using the SearchRanking flag.", - "required": false, - "schema": { - "type": "string" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "name": "limit", - "in": "query", - "description": "Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings.", - "schema": { - "type": "integer", - "minimum": 0 - } - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "name": "order", - "in": "query", - "description": "Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.", - "schema": { - "type": "string" - } - }, - { - "name": "p", - "in": "query", - "description": "Search result page", - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "manufacturer", - "in": "query", - "description": "Filter by manufacturers. List of manufacturer identifiers separated by a `|`.", - "schema": { - "type": "string" - } - }, - { - "name": "min-price", - "in": "query", - "description": "Filters by a minimum product price. Has to be lower than the `max-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 - } - }, - { - "name": "max-price", - "in": "query", - "description": "Filters by a maximum product price. Has to be higher than the `min-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 - } - }, - { - "name": "rating", - "in": "query", - "description": "Filter products with a minimum average rating.", - "schema": { - "type": "integer" - } - }, - { - "name": "shipping-free", - "in": "query", - "description": "Filters products that are marked as shipping-free.", - "schema": { - "type": "boolean", - "default": false - } - }, - { - "name": "properties", - "in": "query", - "description": "Filters products by their properties. List of property identifiers separated by a `|`.", - "schema": { - "type": "string" - } - }, - { - "name": "reduce-aggregations", - "in": "query", - "description": "By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.", - "schema": { - "oneOf": [ - { - "type": "string" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": [ + "ids" + ], + "properties": { + "ids": { + "description": "A list of product identifiers.", + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + } }, - { - "type": "null" - } - ] + "type": "object" + } } - }, - { - "$ref": "#/components/parameters/noAggregations" - }, - { - "$ref": "#/components/parameters/onlyAggregations" } - ], + }, "responses": { "200": { - "description": "Returns a product listing containing all products and additional fields to display a listing.", + "description": "The updated cart.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductListingResult" + "$ref": "#/components/schemas/Cart" } } } @@ -23127,25 +18297,15 @@ ] } }, - "/landing-page/{landingPageId}": { + "/checkout/order": { "post": { "tags": [ - "Content", - "Endpoints supporting Criteria " + "Order" ], - "summary": "Fetch a landing page with the resolved CMS page", - "description": "Loads a landing page by its identifier and resolves the CMS page.\n\n**Important notice**\n\nThe criteria passed with this route also affects the listing, if there is one within the cms page.\n\n**Available Associations:**\n- `cmsPage` - CMS page layout for the landing page\n- `seoUrls` - SEO-friendly URLs for the landing page across different sales channels", - "operationId": "readLandingPage", + "summary": "Create an order from a cart", + "description": "Creates a new order from the current cart and deletes the cart.\n\nIf you are using the [prepared payment flow](https://developer.shopware.com/docs/concepts/commerce/checkout-concept/payments#2.1-prepare-payment-optional), this endpoint also receives additional transaction details. The exact name of the parameters depends on the implementation of the corresponding *payment handler*.", + "operationId": "createOrder", "parameters": [ - { - "name": "landingPageId", - "in": "path", - "description": "Identifier of the landing page.", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "sw-language-id", "in": "header", @@ -23155,264 +18315,206 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } } ], "requestBody": { + "description": "Contains additional metadata which is stored together with the order. It can also contain payment transaction details.", "content": { "application/json": { "schema": { - "allOf": [ - { - "$ref": "#/components/schemas/Criteria" + "properties": { + "customerComment": { + "description": "Adds a comment from the customer to the order.", + "type": "string" }, - { - "allOf": [ - { - "properties": { - "slots": { - "description": "Resolves only the given slot identifiers. The identifiers have to be seperated by a `|` character.", - "type": "string" - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/ProductListingCriteria" - } - ] + "affiliateCode": { + "description": "The affiliate code can be used to track which referrer the customer came through. An example could be `Price-comparison-company-XY`.", + "type": "string" + }, + "campaignCode": { + "description": "The campaign code is used to track which action the customer came from. An example could be `Summer-Deals`", + "type": "string" } - ] + }, + "type": "object" } } } }, "responses": { "200": { - "description": "The loaded landing page with cms page", + "description": "Order", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LandingPage" + "$ref": "#/components/schemas/Order" } } } - }, - "404": { - "$ref": "#/components/responses/404" } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] - }, + } + }, + "/checkout/gateway": { "get": { "tags": [ - "Content", - "Endpoints supporting Criteria " + "Gateway" ], - "summary": "Fetch a landing page with the resolved CMS page", - "description": "Loads a landing page by its identifier and resolves the CMS page.\n\n**Important notice**\n\nThe criteria passed with this route also affects the listing, if there is one within the cms page.\n\n**Available Associations:**\n- `cmsPage` - CMS page layout for the landing page\n- `seoUrls` - SEO-friendly URLs for the landing page across different sales channels", - "operationId": "readLandingPageGet", - "parameters": [ - { - "name": "landingPageId", - "in": "path", - "description": "Identifier of the landing page.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "name": "limit", - "in": "query", - "description": "Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings.", - "schema": { - "type": "integer", - "minimum": 0 - } - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "name": "order", - "in": "query", - "description": "Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.", - "schema": { - "type": "string" - } - }, - { - "name": "p", - "in": "query", - "description": "Search result page", - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "manufacturer", - "in": "query", - "description": "Filter by manufacturers. List of manufacturer identifiers separated by a `|`.", - "schema": { - "type": "string" - } - }, - { - "name": "min-price", - "in": "query", - "description": "Filters by a minimum product price. Has to be lower than the `max-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 - } - }, - { - "name": "max-price", - "in": "query", - "description": "Filters by a maximum product price. Has to be higher than the `min-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 - } - }, - { - "name": "rating", - "in": "query", - "description": "Filter products with a minimum average rating.", - "schema": { - "type": "integer" + "summary": "Call the checkout gateway", + "description": "Call the checkout gateway, which is used to manipulate certain aspects of the checkout process (e.g. available payment methods).", + "operationId": "checkoutGateway", + "responses": { + "200": { + "description": "Checkout gateway response", + "content": { + "application/json": { + "schema": { + "properties": { + "paymentMethods": { + "properties": { + "total": { + "description": "Total amount", + "type": "integer" + }, + "aggregations": { + "description": "aggregation result", + "type": "object" + }, + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PaymentMethod" + } + } + }, + "type": "object" + }, + "shippingMethods": { + "properties": { + "total": { + "description": "Total amount", + "type": "integer" + }, + "aggregations": { + "description": "aggregation result", + "type": "object" + }, + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ShippingMethod" + } + } + }, + "type": "object" + }, + "errors": { + "type": "array", + "items": { + "properties": { + "code": { + "description": "Error code", + "type": "string" + }, + "detail": { + "description": "Error detail", + "type": "string" + }, + "blocking": { + "description": "If the error is blocking", + "type": "boolean" + } + } + } + } + } + } + } } - }, + } + }, + "security": [ { - "name": "shipping-free", - "in": "query", - "description": "Filters products that are marked as shipping-free.", - "schema": { - "type": "boolean", - "default": false - } - }, + "ApiKey": [] + } + ] + } + }, + "/country-state/{countryId}": { + "post": { + "tags": [ + "System & Context", + "Endpoints supporting Criteria " + ], + "summary": "Fetch the states of a country", + "description": "Perform a filtered search the states for a country", + "operationId": "readCountryState", + "parameters": [ { - "name": "properties", - "in": "query", - "description": "Filters products by their properties. List of property identifiers separated by a `|`.", + "name": "countryId", + "in": "path", + "required": true, "schema": { - "type": "string" + "type": "string", + "pattern": "^[0-9a-f]{32}$" } }, { - "name": "reduce-aggregations", - "in": "query", - "description": "By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.", + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "type": "string", + "pattern": "^[0-9a-f]{32}$" } } ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + } + ] + } + } + } + }, "responses": { "200": { - "description": "The loaded landing page with cms page", + "description": "Entity search result containing countries.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LandingPage" + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CountryState" + } + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/EntitySearchResult" + } + ] } } } - }, - "404": { - "$ref": "#/components/responses/404" } }, "security": [ @@ -23422,57 +18524,60 @@ ] } }, - "/_info/openapi3.json": { - "get": { + "/handle-payment": { + "post": { "tags": [ - "System Info & Health Check" + "Payment & Shipping" ], - "summary": "Get OpenAPI Specification", - "description": "Get information about the store API in OpenAPI format.", - "operationId": "api-info", - "parameters": [ - { - "name": "type", - "in": "query", - "description": "Type of the api", - "schema": { - "type": "string", - "enum": [ - "jsonapi", - "json" - ] + "summary": "Initiate a payment for an order", + "description": "This generic endpoint is should be called to initiate a payment flow after an order has been created. The details of the payment flow can differ depending on the payment integration and might require calling additional operations or the setup of webhooks.\n\nThe endpoint internally calls the payment handler of the payment method currently set for the order.", + "operationId": "handlePaymentMethod", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": [ + "orderId" + ], + "properties": { + "orderId": { + "description": "Identifier of an order", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "finishUrl": { + "description": "URL to which the client should be redirected after successful payment", + "type": "string" + }, + "errorUrl": { + "description": "URL to which the client should be redirected after erroneous payment", + "type": "string" + } + }, + "type": "object" + } } } - ], - "responses": { - "200": { - "$ref": "#/components/responses/OpenApi3" - } - } - } - }, - "/cookie-groups": { - "get": { - "tags": [ - "Experimental", - "Cookies" - ], - "summary": "Fetch all cookie groups", - "description": "Fetch all cookie groups available in the system with configuration hash. Experimental API, not part of our backwards compatibility promise, thus this API can introduce breaking changes at any time.", - "operationId": "readCookieGroups", + }, "responses": { "200": { - "description": "Successful response with a collection of cookie groups and their configuration hash.", + "description": "Redirect to external payment provider", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CookieRouteResponse" + "type": "object", + "properties": { + "redirectUrl": { + "type": "string" + } + }, + "required": [ + "redirectUrl" + ] } } } - }, - "400": { - "$ref": "#/components/responses/400" } }, "security": [ @@ -23482,15 +18587,15 @@ ] } }, - "/shipping-method": { + "/currency": { "post": { "tags": [ - "Payment & Shipping", + "System & Context", "Endpoints supporting Criteria " ], - "summary": "Fetch shipping methods", - "description": "Perform a filtered search for shipping methods.\n\n**Available Associations:**\n- `prices` - Shipping method price configurations (based on current cart and context)\n- `deliveryTime` - Delivery time information (min/max days, unit)\n- `media` - Media/images associated with the shipping method (loaded by default)\n- `availabilityRule` - Availability rule determining when this method is available\n- `tax` - Tax configuration for the shipping method\n\n**Example with associations:**\n```json\n{\n \"associations\": {\n \"prices\": {},\n \"deliveryTime\": {}\n }\n}\n```\n\nNote: The `prices` association is essential for accessing shipping cost configurations.", - "operationId": "readShippingMethod", + "summary": "Fetch currencies", + "description": "Perform a filtered search for currencies.", + "operationId": "readCurrency", "parameters": [ { "name": "sw-language-id", @@ -23501,28 +18606,6 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - }, - { - "name": "onlyAvailable", - "in": "query", - "description": "List only available shipping methods. This filters shipping methods methods which can not be used in the actual context because of their availability rule.", - "schema": { - "type": "boolean" - } } ], "requestBody": { @@ -23532,7 +18615,7 @@ "schema": { "allOf": [ { - "$ref": "#/components/schemas/Criteria" + "$ref": "#/components/schemas/NoneFieldsCriteria" } ] } @@ -23541,28 +18624,17 @@ }, "responses": { "200": { - "description": "", + "description": "Entity search result containing currencies.", "content": { "application/json": { "schema": { "allOf": [ { - "required": [ - "elements" - ], "properties": { - "total": { - "description": "Total amount", - "type": "integer" - }, - "aggregations": { - "description": "aggregation result", - "type": "object" - }, "elements": { "type": "array", "items": { - "$ref": "#/components/schemas/ShippingMethod" + "$ref": "#/components/schemas/Currency" } } }, @@ -23582,16 +18654,26 @@ "ApiKey": [] } ] - }, + } + }, + "/customer-group-registration/config/{customerGroupId}": { "get": { "tags": [ - "Payment & Shipping", - "Endpoints supporting Criteria " + "Login & Registration" ], - "summary": "Fetch shipping methods", - "description": "Perform a filtered search for shipping methods.\n\n**Available Associations:**\n- `prices` - Shipping method price configurations (graduated prices, quantity-based pricing)\n- `deliveryTime` - Delivery time information (min/max days, unit)\n- `media` - Media/images associated with the shipping method (loaded by default)\n- `availabilityRule` - Availability rule determining when this method is available\n- `tax` - Tax configuration for the shipping method\n\nNote: The `prices` association is essential for accessing shipping cost configurations.", - "operationId": "readShippingMethodGet", + "summary": "Fetch registration settings for customer group", + "operationId": "getCustomerGroupRegistrationInfo", "parameters": [ + { + "name": "customerGroupId", + "in": "path", + "description": "Customer group id", + "required": true, + "schema": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + }, { "name": "sw-language-id", "in": "header", @@ -23601,87 +18683,81 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" } ], "responses": { "200": { - "$ref": "#/components/responses/ShippingMethodListResponse" + "description": "Returns the customer group including registration settings.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerGroup" + } + } + } } }, "security": [ { "ApiKey": [] } - ] + ] + } + }, + "/_info/routes": { + "get": { + "summary": "Get API routes", + "operationId": "getRoutes", + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "endpoints" + ], + "properties": { + "endpoints": { + "type": "array", + "items": { + "type": "object", + "required": [ + "methods", + "path" + ], + "properties": { + "methods": { + "type": "array", + "items": { + "type": "string" + } + }, + "path": { + "type": "string" + } + } + } + } + } + } + } + } + } + } } }, - "/navigation/{activeId}/{rootId}": { + "/shipping-method": { "post": { "tags": [ - "Category", + "Payment & Shipping", "Endpoints supporting Criteria " ], - "summary": "Fetch a navigation menu", - "description": "This endpoint returns categories that can be used as a page navigation. You can either return them as a tree or as a flat list. You can also control the depth of the tree.\n\n Instead of passing uuids, you can also use one of the following aliases for the activeId and rootId parameters to get the respective navigations of your sales channel.\n\n * main-navigation\n * service-navigation\n * footer-navigation", - "operationId": "readNavigation", + "summary": "Fetch shipping methods", + "description": "Perform a filtered search for shipping methods.", + "operationId": "readShippingMethod", "parameters": [ - { - "name": "sw-include-seo-urls", - "in": "header", - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "required": false, - "schema": { - "type": "boolean" - } - }, { "name": "sw-language-id", "in": "header", @@ -23693,79 +18769,22 @@ } }, { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } - }, - { - "name": "activeId", - "in": "path", - "description": "Identifier of the active category in the navigation tree (if not used, just set to the same as rootId).", - "required": true, - "schema": { - "oneOf": [ - { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - { - "$ref": "#/components/schemas/NavigationType" - } - ] - } - }, - { - "name": "rootId", - "in": "path", - "description": "Identifier of the root category for your desired navigation tree. You can use it to fetch sub-trees of your navigation tree.", - "required": true, + "name": "onlyAvailable", + "in": "query", + "description": "List only available shipping methods. This filters shipping methods methods which can not be used in the actual context because of their availability rule.", "schema": { - "oneOf": [ - { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - { - "$ref": "#/components/schemas/NavigationType" - } - ] + "type": "boolean" } } ], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { "allOf": [ { - "$ref": "#/components/schemas/NoneFieldsCriteria" - }, - { - "properties": { - "depth": { - "description": "Determines the depth of fetched navigation levels.", - "type": "integer", - "format": "int32" - }, - "buildTree": { - "description": "Return the categories as a tree or as a flat list.", - "type": "array", - "items": { - "type": "object" - } - } - }, - "type": "object" + "$ref": "#/components/schemas/Criteria" } ] } @@ -23774,11 +18793,34 @@ }, "responses": { "200": { - "description": "All available navigations", + "description": "", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NavigationRouteResponse" + "allOf": [ + { + "properties": { + "total": { + "description": "Total amount", + "type": "integer" + }, + "aggregations": { + "description": "aggregation result", + "type": "object" + }, + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ShippingMethod" + } + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/EntitySearchResult" + } + ] } } } @@ -23789,25 +18831,17 @@ "ApiKey": [] } ] - }, - "get": { + } + }, + "/order/state/cancel": { + "post": { "tags": [ - "Category", - "Endpoints supporting Criteria " + "Order" ], - "summary": "Fetch a navigation menu", - "description": "This endpoint returns categories that can be used as a page navigation. You can either return them as a tree or as a flat list. You can also control the depth of the tree.\n\n Instead of passing uuids, you can also use one of the following aliases for the activeId and rootId parameters to get the respective navigations of your sales channel.\n\n * main-navigation\n * service-navigation\n * footer-navigation", - "operationId": "readNavigationGet", + "summary": "Cancel an order", + "description": "Cancels an order. The order state will be set to 'cancelled'.", + "operationId": "cancelOrder", "parameters": [ - { - "name": "sw-include-seo-urls", - "in": "header", - "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", - "required": false, - "schema": { - "type": "boolean" - } - }, { "name": "sw-language-id", "in": "header", @@ -23817,118 +18851,35 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "activeId", - "in": "path", - "description": "Identifier of the active category in the navigation tree (if not used, just set to the same as rootId).", - "required": true, - "schema": { - "oneOf": [ - { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - { - "$ref": "#/components/schemas/NavigationType" - } - ] - } - }, - { - "name": "rootId", - "in": "path", - "description": "Identifier of the root category for your desired navigation tree. You can use it to fetch sub-trees of your navigation tree.", - "required": true, - "schema": { - "oneOf": [ - { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "orderId": { + "description": "The identifier of the order to be canceled.", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } }, - { - "$ref": "#/components/schemas/NavigationType" - } - ] - } - }, - { - "name": "depth", - "in": "query", - "description": "Determines the depth of fetched navigation levels.", - "required": false, - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "buildTree", - "in": "query", - "description": "Return the categories as a tree or as a flat list.", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "object" - } - }, - "style": "deepObject", - "explode": true - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedNoneFieldsCriteria" + "type": "object", + "required": [ + "orderId" + ] + } + } } - ], + }, "responses": { "200": { - "description": "All available navigations", + "description": "Returns the state of the state machine\n\n example: More information about the state machine can be found in the corresponding guide: [Using the state machine](https://developer.shopware.com/docs/guides/plugins/plugins/checkout/order/using-the-state-machine)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NavigationRouteResponse" + "$ref": "#/components/schemas/StateMachineState" } } } @@ -23936,47 +18887,22 @@ }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] } }, - "/product-listing/{categoryId}": { + "/order": { "post": { "tags": [ - "Product" + "Order", + "Endpoints supporting Criteria " ], - "summary": "Fetch a product listing by category", - "description": "Fetches a product listing for a specific category. It also provides filters, sortings and property aggregations, analogous to the /search endpoint.\n\n**Available Associations:**\n- `downloads` - Downloadable files associated with the product (e.g., manuals, digital content)\n- `children` - Product variants that inherit from this parent product\n- `deliveryTime` - Estimated delivery time for the product\n- `tax` - Tax configuration (rate and calculation rules)\n- `manufacturer` - Product manufacturer or brand information\n- `unit` - Product unit of measure (e.g., piece, liter, kg)\n- `cover` - Main product image displayed in listings and detail pages\n- `cmsPage` - Custom CMS page layout for the product detail page\n- `canonicalProduct` - Canonical product reference for variant consolidation and SEO purposes\n- `media` - Product images and media gallery\n- `crossSellings` - Cross-selling configurations (related products, accessories, similar items)\n- `configuratorSettings` - Variant configurator settings defining available options for product variants\n- `productReviews` - Customer reviews and ratings for the product\n- `mainCategories` - Primary category assignments per sales channel for SEO and navigation\n- `seoUrls` - SEO-friendly URLs for the product across different sales channels\n- `options` - Product variant options (e.g., size, color) that define different variants\n- `properties` - Product properties and characteristics for filtering\n- `categories` - Categories this product is assigned to\n- `streams` - Dynamic product streams this product belongs to based on defined filters\n- `categoriesRo` - Read-only category tree including all parent categories for optimized queries\n- `tags` - Tags for organizing and filtering products\n- `seoCategory` - Main category used for SEO URL generation in the current sales channel", - "operationId": "readProductListing", + "summary": "Fetch a list of orders", + "description": "List orders of a customer.", + "operationId": "readOrder", "parameters": [ - { - "name": "categoryId", - "in": "path", - "description": "Identifier of a category.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "p", - "in": "query", - "description": "The page number to fetch.", - "required": false, - "schema": { - "type": "integer" - } - }, - { - "name": "sw-include-seo-urls", - "in": "header", - "description": "Determines if the response must contain a SeoUrl entity for a product entity", - "required": false, - "schema": { - "type": "boolean" - } - }, { "name": "sw-language-id", "in": "header", @@ -23986,32 +18912,25 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } } ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { "allOf": [ { - "$ref": "#/components/schemas/ProductListingCriteria" + "$ref": "#/components/schemas/NoneFieldsCriteria" }, { - "$ref": "#/components/schemas/ProductListingFlags" + "properties": { + "checkPromotion": { + "description": "Check if the payment method of the order is still changeable.", + "type": "boolean" + } + }, + "type": "object" } ] } @@ -24020,11 +18939,11 @@ }, "responses": { "200": { - "description": "Returns a product listing containing all products and additional fields to display a listing.", + "description": "An array of orders and an indicator if the payment of the order can be changed.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductListingResult" + "$ref": "#/components/schemas/OrderRouteResponse" } } } @@ -24032,36 +18951,21 @@ }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] - }, - "get": { + } + }, + "/order/payment": { + "post": { "tags": [ - "Product" + "Order" ], - "summary": "Fetch a product listing by category", - "description": "Fetches a product listing for a specific category. It also provides filters, sortings and property aggregations, analogous to the /search endpoint.\n\n**Available Associations:**\n- `downloads` - Downloadable files associated with the product (e.g., manuals, digital content)\n- `children` - Product variants that inherit from this parent product\n- `deliveryTime` - Estimated delivery time for the product\n- `tax` - Tax configuration (rate and calculation rules)\n- `manufacturer` - Product manufacturer or brand information\n- `unit` - Product unit of measure (e.g., piece, liter, kg)\n- `cover` - Main product image displayed in listings and detail pages\n- `cmsPage` - Custom CMS page layout for the product detail page\n- `canonicalProduct` - Canonical product reference for variant consolidation and SEO purposes\n- `media` - Product images and media gallery\n- `crossSellings` - Cross-selling configurations (related products, accessories, similar items)\n- `configuratorSettings` - Variant configurator settings defining available options for product variants\n- `productReviews` - Customer reviews and ratings for the product\n- `mainCategories` - Primary category assignments per sales channel for SEO and navigation\n- `seoUrls` - SEO-friendly URLs for the product across different sales channels\n- `options` - Product variant options (e.g., size, color) that define different variants\n- `properties` - Product properties and characteristics for filtering\n- `categories` - Categories this product is assigned to\n- `streams` - Dynamic product streams this product belongs to based on defined filters\n- `categoriesRo` - Read-only category tree including all parent categories for optimized queries\n- `tags` - Tags for organizing and filtering products\n- `seoCategory` - Main category used for SEO URL generation in the current sales channel", - "operationId": "readProductListingGet", + "summary": "Update the payment method of an order", + "description": "Changes the payment method of a specific order. You can use the /order route to find out if the payment method of an order can be changed - take a look at the `paymentChangeable`- array in the response.", + "operationId": "orderSetPayment", "parameters": [ - { - "name": "categoryId", - "in": "path", - "description": "Identifier of a category.", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "sw-include-seo-urls", - "in": "header", - "description": "Determines if the response must contain a SeoUrl entity for a product entity", - "required": false, - "schema": { - "type": "boolean" - } - }, { "name": "sw-language-id", "in": "header", @@ -24071,157 +18975,100 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "name": "limit", - "in": "query", - "description": "Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings.", - "schema": { - "type": "integer", - "minimum": 0 - } - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "name": "order", - "in": "query", - "description": "Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.", - "schema": { - "type": "string" - } - }, - { - "name": "p", - "in": "query", - "description": "Search result page", - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "manufacturer", - "in": "query", - "description": "Filter by manufacturers. List of manufacturer identifiers separated by a `|`.", - "schema": { - "type": "string" - } - }, - { - "name": "min-price", - "in": "query", - "description": "Filters by a minimum product price. Has to be lower than the `max-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": [ + "paymentMethodId", + "orderId" + ], + "properties": { + "paymentMethodId": { + "description": "The identifier of the paymentMethod to be set", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "orderId": { + "description": "The identifier of the order.", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + }, + "type": "object" + } } - }, - { - "name": "max-price", - "in": "query", - "description": "Filters by a maximum product price. Has to be higher than the `min-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 + } + }, + "responses": { + "200": { + "description": "Successfully updated the payment method of the order.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SuccessResponse" + } + } } - }, + } + }, + "security": [ { - "name": "rating", - "in": "query", - "description": "Filter products with a minimum average rating.", - "schema": { - "type": "integer" - } - }, + "ApiKey": [], + "ContextToken": [] + } + ] + } + }, + "/order/download/{orderId}/{downloadId}": { + "get": { + "tags": [ + "Order" + ], + "summary": "Download a purchased file", + "description": "Download a file included in the given order and with the given id. Access must be granted.", + "operationId": "orderDownloadFile", + "parameters": [ { - "name": "shipping-free", - "in": "query", - "description": "Filters products that are marked as shipping-free.", + "name": "orderId", + "in": "path", + "required": true, "schema": { - "type": "boolean", - "default": false + "type": "string", + "pattern": "^[0-9a-f]{32}$" } }, { - "name": "properties", - "in": "query", - "description": "Filters products by their properties. List of property identifiers separated by a `|`.", + "name": "downloadId", + "in": "path", + "required": true, "schema": { - "type": "string" + "type": "string", + "pattern": "^[0-9a-f]{32}$" } }, { - "name": "reduce-aggregations", - "in": "query", - "description": "By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.", + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "type": "string", + "pattern": "^[0-9a-f]{32}$" } - }, - { - "$ref": "#/components/parameters/noAggregations" - }, - { - "$ref": "#/components/parameters/onlyAggregations" } ], "responses": { "200": { - "description": "Returns a product listing containing all products and additional fields to display a listing.", + "description": "An arbitrary binary file.", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/ProductListingResult" + "type": "string", + "format": "binary" } } } @@ -24229,54 +19076,58 @@ }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] } }, - "/salutation": { + "/cms/{id}": { "post": { "tags": [ - "System & Context", - "Endpoints supporting Criteria " + "Content" ], - "summary": "Fetch salutations", - "description": "Fetches salutations with a criteria obj.", - "operationId": "readSalutation", + "summary": "Fetch and resolve a CMS page", + "description": "Loads a content management page by its identifier and resolve the slot data. This could be media files, product listing and so on.\n\n**Important notice**\n\nThe criteria passed with this route also affects the listing, if there is one within the cms page.", + "operationId": "readCms", "parameters": [ { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, + "name": "id", + "in": "path", + "description": "Identifier of the CMS page to be resolved", + "required": true, "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } }, { - "name": "sw-include-search-info", + "name": "sw-language-id", "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", + "description": "Instructs Shopware to return the response in the given language.", "required": false, "schema": { "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" + "pattern": "^[0-9a-f]{32}$" } } ], "requestBody": { - "required": false, "content": { "application/json": { "schema": { "allOf": [ { - "$ref": "#/components/schemas/Criteria" + "properties": { + "slots": { + "description": "Resolves only the given slot identifiers. The identifiers have to be seperated by a `|` character.", + "type": "string" + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/ProductListingCriteria" } ] } @@ -24285,86 +19136,17 @@ }, "responses": { "200": { - "$ref": "#/components/responses/SalutationListResponse" - } - }, - "security": [ - { - "ApiKey": [] - } - ] - }, - "get": { - "tags": [ - "System & Context", - "Endpoints supporting Criteria " - ], - "summary": "Fetch salutations", - "description": "Perform a filtered search for salutations.", - "operationId": "readSalutationGet", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "description": "The loaded cms page", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CmsPage" + } + } } }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/SalutationListResponse" + "404": { + "$ref": "#/components/responses/404" } }, "security": [ @@ -24374,15 +19156,15 @@ ] } }, - "/currency": { + "/salutation": { "post": { "tags": [ "System & Context", "Endpoints supporting Criteria " ], - "summary": "Fetch currencies", - "description": "Perform a filtered search for currencies.", - "operationId": "readCurrency", + "summary": "Fetch salutations", + "description": "Fetches salutations with a criteria obj.", + "operationId": "readSalutation", "parameters": [ { "name": "sw-language-id", @@ -24393,20 +19175,6 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } } ], "requestBody": { @@ -24416,7 +19184,7 @@ "schema": { "allOf": [ { - "$ref": "#/components/schemas/NoneFieldsCriteria" + "$ref": "#/components/schemas/Criteria" } ] } @@ -24425,7 +19193,29 @@ }, "responses": { "200": { - "$ref": "#/components/responses/CurrencyListResponse" + "description": "Entity search result containing salutations.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Salutation" + } + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/EntitySearchResult" + } + ] + } + } + } } }, "security": [ @@ -24433,75 +19223,99 @@ "ApiKey": [] } ] - }, + } + }, + "/script/{hook}": { "get": { "tags": [ - "System & Context", - "Endpoints supporting Criteria " + "API", + "Script", + "App" ], - "summary": "Fetch currencies", - "description": "Perform a filtered search for currencies.", - "operationId": "readCurrencyGet", + "summary": "Access point for different api logics which are provided by apps over script hooks", + "operationId": "getScriptStoreApiRoute", "parameters": [ { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, + "name": "hook", + "in": "path", + "description": "Dynamic hook which used to build the hook name", + "required": true, "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Returns different structures of results based on the called script.", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": true, + "nullable": true + } + }, + "application/vnd.api+json": { + "schema": { + "type": "object", + "additionalProperties": true, + "nullable": true + } + } } }, + "204": { + "description": "No data by default" + } + }, + "security": [ { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, + "ApiKey": [] + } + ] + }, + "post": { + "tags": [ + "API", + "Script", + "App" + ], + "summary": "Access point for different api logics which are provided by apps over script hooks", + "operationId": "postScriptStoreApiRoute", + "parameters": [ { - "$ref": "#/components/parameters/CompressedNoneFieldsCriteria" + "name": "hook", + "in": "path", + "description": "Dynamic hook which used to build the hook name", + "required": true, + "schema": { + "type": "string" + } } ], "responses": { "200": { - "$ref": "#/components/responses/CurrencyListResponse" + "description": "Returns different structures of results based on the called script.", + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": true, + "nullable": true + } + }, + "application/vnd.api+json": { + "schema": { + "type": "object", + "additionalProperties": true, + "nullable": true + } + } + } + }, + "204": { + "description": "No data by default" } }, "security": [ @@ -24511,24 +19325,16 @@ ] } }, - "/search-suggest": { + "/language": { "post": { "tags": [ - "Product" + "System & Context", + "Endpoints supporting Criteria " ], - "summary": "Search for products (suggest)", - "description": "Can be used to implement search previews or suggestion listings, that don’t require any interaction.", - "operationId": "searchSuggest", + "summary": "Fetch languages", + "description": "Perform a filtered search for languages.", + "operationId": "readLanguages", "parameters": [ - { - "name": "p", - "in": "query", - "description": "The page number to fetch.", - "required": false, - "schema": { - "type": "integer" - } - }, { "name": "sw-language-id", "in": "header", @@ -24538,45 +19344,16 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "sw-include-search-info", - "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", - "required": false, - "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" - } } ], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { "allOf": [ { - "required": [ - "search" - ], - "properties": { - "search": { - "description": "Using the search parameter, the server performs a text search on all records based on their data model and weighting as defined in the entity definition using the SearchRanking flag.", - "type": "string" - } - }, - "type": "object" - }, - { - "$ref": "#/components/schemas/ProductListingCriteria" - }, - { - "$ref": "#/components/schemas/ProductListingFlags" + "$ref": "#/components/schemas/Criteria" } ] } @@ -24585,11 +19362,29 @@ }, "responses": { "200": { - "description": "Returns a product listing containing all products and additional fields.\n\nNote: Aggregations, currentFilters and availableSortings are empty in this response. If you need them to display a listing, use the /search route instead.", + "description": "Entity search result containing languages.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductListingResult" + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Language" + } + } + }, + "required": [ + "elements" + ], + "type": "object" + }, + { + "$ref": "#/components/schemas/EntitySearchResult" + } + ] } } } @@ -24600,189 +19395,280 @@ "ApiKey": [] } ] - }, + } + }, + "/context": { "get": { "tags": [ - "Product" + "System & Context" ], - "summary": "Search for products (suggest)", - "description": "Can be used to implement search previews or suggestion listings, that don’t require any interaction.", - "operationId": "searchSuggestGet", - "parameters": [ - { - "name": "sw-language-id", - "in": "header", - "description": "Instructs Shopware to return the response in the given language.", - "required": false, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "search", - "in": "query", - "description": "Using the search parameter, the server performs a text search on all records based on their data model and weighting as defined in the entity definition using the SearchRanking flag.", - "required": true, - "schema": { - "type": "string" + "summary": "Fetch the current context", + "description": "Fetches the current context. This includes for example the `customerGroup`, `currency`, `taxRules` and many more.", + "operationId": "readContext", + "responses": { + "200": { + "description": "Returns the current context.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SalesChannelContext" + } + } } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, + } + }, + "security": [ { - "name": "limit", - "in": "query", - "description": "Number of items per result page. If not set, the limit will be set according to the default products per page, defined in the system settings.", - "schema": { - "type": "integer", - "minimum": 0 + "ApiKey": [] + } + ] + }, + "patch": { + "tags": [ + "System & Context" + ], + "summary": "Modify the current context", + "description": "Used for switching the context. A typical example would be changing the language or changing the currency.", + "operationId": "updateContext", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "currencyId": { + "description": "Currency", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "languageId": { + "description": "Language", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "billingAddressId": { + "description": "Billing Address", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "shippingAddressId": { + "description": "Shipping Address", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "paymentMethodId": { + "description": "Payment Method", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "shippingMethodId": { + "description": "Shipping Method", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "countryId": { + "description": "Country", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "countryStateId": { + "description": "Country State", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + }, + "type": "object" + } } - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/ContextTokenResponse" + } + }, + "security": [ { - "name": "order", - "in": "query", - "description": "Specifies the sorting of the products by `availableSortings`. If not set, the default sorting will be set according to the shop settings. The available sorting options are sent within the response under the `availableSortings` key. In order to sort by a field, consider using the `sort` parameter from the listing criteria. Do not use both parameters together, as it might lead to unexpected results.", - "schema": { - "type": "string" - } - }, + "ApiKey": [] + } + ] + } + }, + "/breadcrumb/{id}": { + "get": { + "tags": [ + "Experimental", + "Breadcrumb" + ], + "summary": "Fetch a breadcrumb", + "description": "Perform search to get category or product breadcrumb. \n\nExperimental API, not part of our backwards compatibility promise, thus this API can introduce breaking changes at any time.", + "operationId": "readBreadcrumb", + "parameters": [ { - "name": "p", - "in": "query", - "description": "Search result page", + "name": "id", + "in": "path", + "description": "UUID for product or category", + "required": true, "schema": { - "type": "integer", - "default": 1 + "type": "string", + "pattern": "^[0-9a-f]{32}$" } }, { - "name": "manufacturer", + "name": "type", "in": "query", - "description": "Filter by manufacturers. List of manufacturer identifiers separated by a `|`.", + "description": "Type: category or product (optional - default: product)", + "required": false, "schema": { - "type": "string" + "type": "string", + "enum": [ + "product", + "category" + ] } }, { - "name": "min-price", + "name": "referrerCategoryId", "in": "query", - "description": "Filters by a minimum product price. Has to be lower than the `max-price` filter.", + "description": "UUID for referrer category only used for product breadcrumb", + "required": false, "schema": { - "type": "integer", - "minimum": 0, - "default": 0 + "type": "string", + "pattern": "^[0-9a-f]{32}$" } - }, - { - "name": "max-price", - "in": "query", - "description": "Filters by a maximum product price. Has to be higher than the `min-price` filter.", - "schema": { - "type": "integer", - "minimum": 0, - "default": 0 + } + ], + "responses": { + "200": { + "description": "Search result containing SeoUrl\\'s to be used as breadcrumb.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BreadcrumbCollection" + } + } } }, + "400": { + "$ref": "#/components/responses/400" + } + }, + "security": [ { - "name": "rating", - "in": "query", - "description": "Filter products with a minimum average rating.", - "schema": { - "type": "integer" - } - }, + "ApiKey": [] + } + ] + } + }, + "/document/download/{documentId}/{deepLinkCode}": { + "post": { + "tags": [ + "Document", + "Endpoints supporting Criteria " + ], + "summary": "Download generated document", + "description": "Returns blob file of a generated document to download.", + "operationId": "download", + "parameters": [ { - "name": "shipping-free", - "in": "query", - "description": "Filters products that are marked as shipping-free.", + "name": "documentId", + "in": "path", + "required": true, "schema": { - "type": "boolean", - "default": false + "type": "string", + "pattern": "^[0-9a-f]{32}$" } }, { - "name": "properties", - "in": "query", - "description": "Filters products by their properties. List of property identifiers separated by a `|`.", + "name": "deepLinkCode", + "required": true, + "in": "path", "schema": { "type": "string" } }, { - "name": "reduce-aggregations", - "in": "query", - "description": "By sending the parameter `reduce-aggregations` , the post-filters that were applied by the customer, are also applied to the aggregations. This has the consequence that only values are returned in the aggregations that would lead to further filter results. This parameter is a flag, the value has no effect.", + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "type": "string", + "pattern": "^[0-9a-f]{32}$" } - }, - { - "$ref": "#/components/parameters/noAggregations" - }, - { - "$ref": "#/components/parameters/onlyAggregations" } ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + } + ] + } + } + } + }, "responses": { "200": { - "description": "Returns a product listing containing all products and additional fields.\n\nNote: Aggregations, currentFilters and availableSortings are empty in this response. If you need them to display a listing, use the /search route instead.", + "description": "Returns the document information and blob to download.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProductListingResult" + "$ref": "#/components/schemas/Document" } } } } }, + "security": [ + { + "ApiKey": [], + "ContextToken": [] + } + ] + } + }, + "/newsletter/confirm": { + "post": { + "tags": [ + "Newsletter" + ], + "summary": "Confirm a newsletter registration", + "description": "You have to use the hash from the link sent out via email to confirm the user registration.", + "operationId": "confirmNewsletter", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": [ + "hash", + "em" + ], + "properties": { + "hash": { + "description": "Hash parameter from link the in the confirmation mail", + "type": "string" + }, + "em": { + "description": "Email hash parameter from the link in the confirmation mail", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "The newsletter confirmation was successful." + } + }, "security": [ { "ApiKey": [] @@ -24790,34 +19676,112 @@ ] } }, - "/handle-payment": { + "/newsletter/subscribe": { "post": { "tags": [ - "Payment & Shipping" + "Newsletter" ], - "summary": "Initiate a payment for an order", - "description": "This generic endpoint is should be called to initiate a payment flow after an order has been created. The details of the payment flow can differ depending on the payment integration and might require calling additional operations or the setup of webhooks.\n\nThe endpoint internally calls the payment handler of the payment method currently set for the order.", - "operationId": "handlePaymentMethod", + "summary": "Create or remove a newsletter subscription", + "description": "This route is used to create/remove/confirm a newsletter subscription.\n\nThe `option` property controls what should happen:\n* `direct`: The subscription is directly active and does not need a confirmation.\n* `subscribe`: An email will be send to the provided email address containing a link to the /newsletter/confirm route.\nThe subscription is only successful, if the /newsletter/confirm route is called with the generated hashes.\n* `unsubscribe`: The email address will be removed from the newsletter subscriptions.\n* `confirmSubscribe`: Confirms the newsletter subscription for the provided email address.", + "operationId": "subscribeToNewsletter", "requestBody": { "required": true, "content": { "application/json": { "schema": { "required": [ - "orderId" + "email", + "option", + "storefrontUrl" ], "properties": { - "orderId": { - "description": "Identifier of an order", + "email": { + "description": "Email address that will receive the confirmation and the newsletter.", + "type": "string" + }, + "option": { + "description": "Defines what should be done.", + "type": "string" + }, + "storefrontUrl": { + "description": "Url of the storefront of the shop. This will be used for generating the link to the /newsletter/confirm inside the confirm email.", + "type": "string" + }, + "salutationId": { + "description": "Identifier of the salutation.", "type": "string", "pattern": "^[0-9a-f]{32}$" }, - "finishUrl": { - "description": "URL to which the client should be redirected after successful payment", + "firstName": { + "description": "First name", "type": "string" }, - "errorUrl": { - "description": "URL to which the client should be redirected after erroneous payment", + "lastName": { + "description": "Last name", + "type": "string" + }, + "street": { + "description": "Street", + "type": "string" + }, + "city": { + "description": "City", + "type": "string" + }, + "zipCode": { + "description": "Zip code", + "type": "string" + }, + "tags": { + "description": "Zip code", + "type": "string" + }, + "languageId": { + "description": "Identifier of the language.", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "customFields": { + "description": "Custom field data that should be added to the subscription.", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Success" + } + }, + "security": [ + { + "ApiKey": [] + } + ] + } + }, + "/newsletter/unsubscribe": { + "post": { + "tags": [ + "Newsletter" + ], + "summary": "Remove a newsletter subscription", + "description": "Removes a newsletter recipient from the mailing lists.", + "operationId": "unsubscribeToNewsletter", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": [ + "email" + ], + "properties": { + "email": { + "description": "Email address that should be removed from the mailing lists.", "type": "string" } }, @@ -24825,25 +19789,49 @@ } } } - }, + }, + "responses": { + "200": { + "description": "Unsubscribing was successful." + } + }, + "security": [ + { + "ApiKey": [] + } + ] + } + }, + "/product-export/{accessKey}/{fileName}": { + "get": { + "tags": [ + "Product" + ], + "summary": "Export product export", + "operationId": "readProductExport", + "parameters": [ + { + "name": "accessKey", + "in": "path", + "description": "Access Key", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "fileName", + "in": "path", + "description": "File Name", + "required": true, + "schema": { + "type": "string" + } + } + ], "responses": { "200": { - "description": "Redirect to external payment provider", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "redirectUrl": { - "type": "string" - } - }, - "required": [ - "redirectUrl" - ] - } - } - } + "description": "" } }, "security": [ @@ -24851,57 +19839,44 @@ "ApiKey": [] } ] - }, - "get": { + } + }, + "/product/{productId}/cross-selling": { + "post": { "tags": [ - "Payment & Shipping" + "Product" ], - "summary": "Initiate a payment for an order", - "description": "This generic endpoint is should be called to initiate a payment flow after an order has been created. The details of the payment flow can differ depending on the payment integration and might require calling additional operations or the setup of webhooks.\n\nThe endpoint internally calls the payment handler of the payment method currently set for the order. Please prefer the POST version of this endpoint.", - "operationId": "handlePaymentMethodGet", + "summary": "Fetch cross-selling groups of a product", + "description": "This route is used to load the cross sellings for a product. A product has several cross selling definitions in which several products are linked. The route returns the cross sellings together with the linked products", + "operationId": "readProductCrossSellings", "parameters": [ { - "name": "orderId", - "in": "query", + "name": "productId", + "in": "path", + "description": "Product ID", "required": true, - "description": "Identifier of an order", - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "finishUrl", - "in": "query", - "description": "URL to which the client should be redirected after successful payment", "schema": { "type": "string" } }, { - "name": "errorUrl", - "in": "query", - "description": "URL to which the client should be redirected after erroneous payment", + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, "schema": { - "type": "string" + "type": "string", + "pattern": "^[0-9a-f]{32}$" } } ], "responses": { "200": { - "description": "Redirect to external payment provider", + "description": "Found cross sellings", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "redirectUrl": { - "type": "string" - } - }, - "required": [ - "redirectUrl" - ] + "$ref": "#/components/schemas/CrossSellingElementCollection" } } } @@ -24914,23 +19889,23 @@ ] } }, - "/country-state/{countryId}": { + "/product/{productId}": { "post": { "tags": [ - "System & Context", - "Endpoints supporting Criteria " + "Product" ], - "summary": "Fetch the states of a country", - "description": "Perform a filtered search the states for a country", - "operationId": "readCountryState", + "summary": "Fetch a single product", + "description": "This route is used to load a single product with the corresponding details. In addition to loading the data, the best variant of the product is determined when a parent id is passed.", + "operationId": "readProductDetail", "parameters": [ { - "name": "countryId", + "name": "productId", "in": "path", + "description": "Product ID", "required": true, "schema": { "type": "string", - "pattern": "^[0-9a-f]{32}$" + "pattern": "^[0-9a-f]{32}$'" } }, { @@ -24944,17 +19919,12 @@ } }, { - "name": "sw-include-search-info", + "description": "Instructs Shopware to try and resolve SEO URLs for the given navigation item", "in": "header", - "description": "Controls whether API search information is included in the response. Default is 1 (enabled), will be 0 (disabled) in the next major version.", + "name": "sw-include-seo-urls", "required": false, "schema": { - "type": "string", - "enum": [ - "0", - "1" - ], - "default": "1" + "type": "boolean" } } ], @@ -24965,7 +19935,7 @@ "schema": { "allOf": [ { - "$ref": "#/components/schemas/Criteria" + "$ref": "#/components/schemas/NoneFieldsCriteria" } ] } @@ -24974,7 +19944,14 @@ }, "responses": { "200": { - "$ref": "#/components/responses/CountryStateListResponse" + "description": "Product information along with variant groups and options", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductDetailResponse" + } + } + } } }, "security": [ @@ -24982,25 +19959,18 @@ "ApiKey": [] } ] - }, - "get": { + } + }, + "/product": { + "post": { "tags": [ - "System & Context", + "Product", "Endpoints supporting Criteria " ], - "summary": "Fetch the states of a country", - "description": "Perform a filtered search the states for a country", - "operationId": "readCountryStateGet", + "summary": "Fetch a list of products", + "description": "List products that match the given criteria. For performance reasons a limit should always be set.", + "operationId": "readProduct", "parameters": [ - { - "name": "countryId", - "in": "path", - "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, { "name": "sw-language-id", "in": "header", @@ -25010,59 +19980,47 @@ "type": "string", "pattern": "^[0-9a-f]{32}$" } - }, - { - "$ref": "#/components/parameters/criteriaPage" - }, - { - "$ref": "#/components/parameters/criteriaLimit" - }, - { - "$ref": "#/components/parameters/criteriaTerm" - }, - { - "$ref": "#/components/parameters/criteriaFilter" - }, - { - "$ref": "#/components/parameters/criteriaIds" - }, - { - "$ref": "#/components/parameters/criteriaQuery" - }, - { - "$ref": "#/components/parameters/criteriaAssociations" - }, - { - "$ref": "#/components/parameters/criteriaPostFilter" - }, - { - "$ref": "#/components/parameters/criteriaSort" - }, - { - "$ref": "#/components/parameters/criteriaAggregations" - }, - { - "$ref": "#/components/parameters/criteriaFields" - }, - { - "$ref": "#/components/parameters/criteriaGrouping" - }, - { - "$ref": "#/components/parameters/criteriaTotalCountMode" - }, - { - "$ref": "#/components/parameters/criteriaIncludes" - }, - { - "$ref": "#/components/parameters/criteriaExcludes" - }, - { - "$ref": "#/components/parameters/CompressedCriteria" } ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + } + ] + } + } + } + }, "responses": { "200": { - "$ref": "#/components/responses/CountryStateListResponse" + "description": "Entity search result containing products", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Product" + } + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/EntitySearchResult" + } + ] + } + } + } } }, "security": [ @@ -25072,62 +20030,103 @@ ] } }, - "/_info/routes": { - "get": { - "summary": "Get API routes", - "operationId": "getRoutes", + "/product/{productId}/reviews": { + "post": { "tags": [ - "System Info & Health Check" + "Product", + "Endpoints supporting Criteria " ], + "summary": "Fetch product reviews", + "description": "Perform a filtered search for product reviews.", + "operationId": "readProductReviews", + "parameters": [ + { + "name": "productId", + "in": "path", + "description": "Identifier of the product.", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "sw-language-id", + "in": "header", + "description": "Instructs Shopware to return the response in the given language.", + "required": false, + "schema": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + } + ] + } + } + } + }, "responses": { "200": { - "description": "Successful operation", + "description": "Entity search result containing product reviews", "content": { - "application/json": { - "schema": { - "type": "object", - "required": [ - "endpoints" - ], - "properties": { - "endpoints": { - "type": "array", - "items": { - "type": "object", - "required": [ - "methods", - "path" - ], - "properties": { - "methods": { - "type": "array", - "items": { - "type": "string" - } - }, - "path": { - "type": "string" + "application/json": { + "schema": { + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductReview" } } - } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/EntitySearchResult" } - } + ] } } } } - } + }, + "security": [ + { + "ApiKey": [] + } + ] } }, - "/contact-form": { + "/product/{productId}/review": { "post": { "tags": [ - "Content" + "Product" ], - "summary": "Submit a contact form message", - "description": "Used for submitting contact forms. Be aware that there can be more required fields, depending on the system settings.", - "operationId": "sendContactMail", + "summary": "Save a product review", + "description": "Saves a review for a product. Reviews have to be activated in the settings.", + "operationId": "saveProductReview", "parameters": [ + { + "name": "productId", + "in": "path", + "description": "Identifier of the product which is reviewed.", + "required": true, + "schema": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + }, { "name": "sw-language-id", "in": "header", @@ -25140,62 +20139,35 @@ } ], "requestBody": { - "required": true, "content": { "application/json": { "schema": { "required": [ - "email", - "subject", - "comment" + "title", + "content", + "points" ], "properties": { - "salutationId": { - "description": "Identifier of the salutation. Use `/api/salutation` endpoint to fetch possible values.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "firstName": { - "description": "Firstname. This field may be required depending on the system settings.", - "type": "string" - }, - "lastName": { - "description": "Lastname. This field may be required depending on the system settings.", + "name": { + "description": "The name of the review author. If not set, the first name of the customer is chosen.", "type": "string" }, "email": { - "description": "Email address", - "type": "string" - }, - "phone": { - "description": "Phone. This field may be required depending on the system settings.", - "type": "string" - }, - "subject": { - "description": "The subject of the contact form.", + "description": "The email address of the review author. If not set, the email of the customer is chosen.", "type": "string" }, - "comment": { - "description": "The message of the contact form", + "title": { + "description": "The title of the review.", "type": "string" }, - "navigationId": { - "description": "Identifier of the navigation page. Can be used to override the configuration.\nTake a look at the settings of a category containing a concat form in the administration.", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "slotId": { - "description": "Identifier of the cms element", - "type": "string", - "pattern": "^[0-9a-f]{32}$" - }, - "cmsPageType": { - "description": "Type of the content management page", + "content": { + "description": "The content of review.", "type": "string" }, - "entityName": { - "description": "Entity name for slot config", - "type": "string" + "points": { + "description": "The review rating for the product.", + "type": "number", + "format": "double" } }, "type": "object" @@ -25205,38 +20177,31 @@ }, "responses": { "200": { - "description": "Message sent successful." + "description": "Success response indicating the review was saved successfully." } }, "security": [ { - "ApiKey": [] + "ApiKey": [], + "ContextToken": [] } ] } }, - "/document/download/{documentId}/{deepLinkCode}": { + "/product/{productId}/find-variant": { "post": { "tags": [ - "Document" + "Product" ], - "summary": "Download generated document", - "description": "Returns generated document to download.", - "operationId": "download", + "summary": "Search for a matching variant by product options.", + "description": "Performs a search for product variants and returns the best matching variant.", + "operationId": "searchProductVariantIds", "parameters": [ { - "name": "documentId", + "name": "productId", "in": "path", + "description": "Product ID", "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "deepLinkCode", - "required": true, - "in": "path", "schema": { "type": "string" } @@ -25244,7 +20209,7 @@ { "name": "sw-language-id", "in": "header", - "description": "If a document is rendered on the fly the provided language id is added to fallback languages while the order language has priority. It does not change already generated documents.", + "description": "Instructs Shopware to return the response in the given language.", "required": false, "schema": { "type": "string", @@ -25253,113 +20218,72 @@ } ], "requestBody": { - "required": false, "content": { "application/json": { "schema": { - "type": "object", + "required": [ + "options" + ], "properties": { - "email": { - "type": "string" + "options": { + "description": "The options parameter for the variant to find.", + "type": "array", + "items": { + "type": "string" + } }, - "zipcode": { + "switchedGroup": { + "description": "The id of the option group that has been switched.", "type": "string" } }, - "description": "Required for guest orders to verify the user; ignored for orders with logged-in user." + "type": "object" } } } }, "responses": { "200": { - "description": "Success", + "description": "Returns an FoundCombination struct containing the ids matching the search.", "content": { - "application/pdf": { - "schema": { - "type": "string", - "format": "binary" - } - }, - "text/html": { - "schema": { - "type": "string" - } - }, - "application/xml": { + "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/FindProductVariantRouteResponse" } } } - }, - "204": { - "description": "DEPRECATED: Returns a no content response when no document is found. Will be changed in v6.8.0.0 and returns a 404 response instead." - }, - "403": { - "description": "Forbidden." - }, - "404": { - "description": "Document not found." - }, - "406": { - "description": "The requested mime type is not supported." } }, "security": [ { - "ApiKey": [], - "ContextToken": [] + "ApiKey": [] } ] - }, - "get": { + } + }, + "/landing-page/{landingPageId}": { + "post": { "tags": [ - "Document" + "Content", + "Endpoints supporting Criteria " ], - "summary": "Download generated document", - "description": "Returns generated document to download.", - "operationId": "downloadGet", + "summary": "Fetch a landing page with the resolved CMS page", + "description": "Loads a landing page by its identifier and resolves the CMS page.\n\n**Important notice**\n\nThe criteria passed with this route also affects the listing, if there is one within the cms page.", + "operationId": "readLandingPage", "parameters": [ { - "name": "documentId", + "name": "landingPageId", "in": "path", + "description": "Identifier of the landing page.", "required": true, - "schema": { - "type": "string", - "pattern": "^[0-9a-f]{32}$" - } - }, - { - "name": "deepLinkCode", - "required": true, - "in": "path", "schema": { "type": "string" } }, - { - "name": "email", - "required": false, - "in": "query", - "schema": { - "type": "string" - }, - "description": "Required for guest orders to verify the user; ignored for orders with logged-in user." - }, - { - "name": "zipcode", - "required": false, - "in": "query", - "schema": { - "type": "string" - }, - "description": "Required for guest orders to verify the user; ignored for orders with logged-in user." - }, { "name": "sw-language-id", "in": "header", - "description": "If a document is rendered on the fly the provided language id is added to fallback languages while the order language has priority. It does not change already generated documents.", + "description": "Instructs Shopware to return the response in the given language.", "required": false, "schema": { "type": "string", @@ -25367,45 +20291,53 @@ } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Criteria" + }, + { + "allOf": [ + { + "properties": { + "slots": { + "description": "Resolves only the given slot identifiers. The identifiers have to be seperated by a `|` character.", + "type": "string" + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/ProductListingCriteria" + } + ] + } + ] + } + } + } + }, "responses": { "200": { - "description": "Success", + "description": "The loaded landing page with cms page", "content": { - "application/pdf": { - "schema": { - "type": "string", - "format": "binary" - } - }, - "text/html": { - "schema": { - "type": "string" - } - }, - "application/xml": { + "application/json": { "schema": { - "type": "string" + "$ref": "#/components/schemas/LandingPage" } } } }, - "204": { - "description": "DEPRECATED: Returns a no content response when no document is found. Will be changed in v6.8.0.0 and returns a 404 response instead." - }, - "403": { - "description": "Forbidden." - }, "404": { - "description": "Document not found." - }, - "406": { - "description": "The requested mime type is not supported." + "$ref": "#/components/responses/404" } }, "security": [ { - "ApiKey": [], - "ContextToken": [] + "ApiKey": [] } ] } diff --git a/storeapi.summary.json b/storeapi.summary.json index 43f1758..41ed3e4 100644 --- a/storeapi.summary.json +++ b/storeapi.summary.json @@ -9,8 +9,8 @@ "/account/change-email", "/account/change-language", "/account/change-password", + "/account/change-payment-method/{paymentMethodId}", "/account/change-profile", - "/account/convert-guest", "/account/customer", "/account/customer-recovery-is-expired", "/account/list-address", @@ -34,8 +34,6 @@ "/cms/{id}", "/contact-form", "/context", - "/context/gateway", - "/cookie-groups", "/country", "/country-state/{countryId}", "/currency", @@ -97,7 +95,6 @@ "AppScriptCondition", "AppShippingMethod", "AppTemplate", - "Association", "Associations", "Breadcrumb", "BreadcrumbCollection", @@ -117,12 +114,6 @@ "CmsPage", "CmsSection", "CmsSlot", - "ContextMeasurementSystemInfo", - "CookieEntry", - "CookieEntryCollection", - "CookieGroup", - "CookieGroupCollection", - "CookieRouteResponse", "Country", "CountryJsonApi", "CountryState", @@ -141,7 +132,6 @@ "Customer", "CustomerAddress", "CustomerAddressBody", - "CustomerAddressJsonApi", "CustomerAddressRead", "CustomerGroup", "CustomerRecovery", @@ -156,7 +146,6 @@ "DocumentType", "EntitySearchResult", "EqualsFilter", - "Excludes", "Filters", "FindProductVariantRouteResponse", "Flow", @@ -173,7 +162,6 @@ "LanguageJsonApi", "LineItem", "LineItemType", - "ListPrice", "Locale", "LogEntry", "MailHeaderFooter", @@ -182,9 +170,6 @@ "MailTemplateType", "MainCategory", "MainCategoryJsonApi", - "MeasurementDisplayUnit", - "MeasurementSystem", - "MeasurementUnits", "Media", "MediaAiTag", "MediaDefaultFolder", @@ -240,7 +225,6 @@ "ProductListingFlags", "ProductListingResult", "ProductManufacturer", - "ProductMeasurements", "ProductMedia", "ProductPrice", "ProductReview", @@ -263,7 +247,6 @@ "PropertyGroupOption", "Query", "RangeFilter", - "ReferencePrice", "Rule", "RuleCondition", "SalesChannel",