From 1171d33a087b8c515f3052907fd846bff4879273 Mon Sep 17 00:00:00 2001 From: Rahul Varghese Date: Thu, 29 Oct 2026 01:51:55 +0530 Subject: [PATCH] SW1: the storefront on Workers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit shopwareLabs/nextjs-shopware-starter (7066aa7, MIT in license.md) in apps/web, built by @opennextjs/cloudflare 1.20.11 into one Worker with Static Assets: the R2 incremental cache (infra/terraform/cloudflare-r2), the sharded Durable Object tag cache and the Durable Object revalidation queue, as the commerce baseline has them. Cache Components are off and experimental.useCache keeps every "use cache" read with its cacheLife("hours") and its collections/products tag — a Cache Components page answers 500 then hangs on workerd (opennextjs-cloudflare#1450); Next is 16.3.8, the lowest 16.x the adapter accepts. next.config.ts env inlines the store's domain, access key, API type, SEO-URL switch, origin and company name at build. With no domain or key (lib/shopware/connection.ts) the Store API client refuses to be made, every reader answers empty, every page carries the connect note and / says "Connect your Shopware store"; the two are optional build secrets. /api/revalidate is a bearer-checked route (SHOPWARE_REVALIDATION_SECRET, a Worker secret the deploy sets after the build, never inlined) revalidating products and/or collections. SITE_NAME (app/site.ts) is the one store-name seam; the Open Graph images draw on workerd; /api/health. Upstream's check (oxlint, oxfmt) is the app's test, and its Playwright suite is carried in apps/web/e2e-tests. typecheck, lint, test (upstream's check and tests/web's 17) and build are green; the Worker is 2.48 MiB gzipped (Workers Free). Co-Authored-By: Claude Orun-Task: SW-2 --- README.md | 113 +- apps/web/.env.example | 19 + apps/web/.gitignore | 48 + apps/web/.oxfmtrc.json | 8 + apps/web/.oxlintrc.json | 8 + apps/web/.prettierignore | 6 + apps/web/README.md | 49 + apps/web/api-gen.config.json | 3 + apps/web/api-types/storeApiSchema.json | 20636 ++++++++++++++++ apps/web/api-types/storeApiTypes.d.ts | 9249 +++++++ .../api-types/storeApiTypes.overrides.json | 54 + apps/web/api-types/storeApiTypes.overrides.ts | 27 + apps/web/app/(cms)/[...cms]/page.tsx | 51 + apps/web/app/(cms)/layout.tsx | 12 + apps/web/app/(cms)/opengraph-image.tsx | 12 + apps/web/app/api/health/route.ts | 12 + apps/web/app/api/revalidate/route.ts | 6 + apps/web/app/error.tsx | 19 + apps/web/app/favicon.ico | Bin 0 -> 15086 bytes apps/web/app/globals.css | 32 + apps/web/app/layout.tsx | 44 + apps/web/app/opengraph-image.tsx | 7 + apps/web/app/page.tsx | 31 + apps/web/app/product/[...handle]/page.tsx | 149 + apps/web/app/robots.ts | 13 + .../(collection)/[...collection]/page.tsx | 104 + .../search/(collection)/opengraph-image.tsx | 20 + apps/web/app/search/children-wrapper.tsx | 10 + apps/web/app/search/layout.tsx | 18 + apps/web/app/search/loading.tsx | 28 + apps/web/app/search/page.tsx | 57 + apps/web/app/site.ts | 9 + apps/web/app/sitemap.ts | 60 + apps/web/cloudflare-env.d.ts | 12 + apps/web/component.yaml | 124 + apps/web/components/carousel.tsx | 45 + apps/web/components/cart/actions.ts | 232 + apps/web/components/cart/add-to-cart.tsx | 96 + apps/web/components/cart/cart-context.tsx | 214 + .../components/cart/delete-item-button.tsx | 39 + .../cart/edit-item-quantity-button.tsx | 63 + apps/web/components/cart/modal.tsx | 253 + apps/web/components/cart/open-cart.tsx | 24 + apps/web/components/collection/pagination.tsx | 104 + apps/web/components/connect-store.tsx | 44 + apps/web/components/grid/index.tsx | 21 + apps/web/components/grid/three-items.tsx | 61 + apps/web/components/grid/tile.tsx | 51 + apps/web/components/icons/github.tsx | 13 + apps/web/components/icons/logo.tsx | 18 + apps/web/components/label.tsx | 34 + apps/web/components/layout/copyright-date.tsx | 6 + apps/web/components/layout/footer-menu.tsx | 58 + apps/web/components/layout/footer.tsx | 79 + apps/web/components/layout/navbar/index.tsx | 52 + .../components/layout/navbar/mobile-menu.tsx | 100 + apps/web/components/layout/navbar/search.tsx | 40 + .../components/layout/product-grid-items.tsx | 28 + .../components/layout/search/collections.tsx | 45 + .../layout/search/filter/dropdown.tsx | 75 + .../components/layout/search/filter/index.tsx | 41 + .../components/layout/search/filter/item.tsx | 77 + apps/web/components/loading-dots.tsx | 15 + apps/web/components/logo-square.tsx | 25 + apps/web/components/opengraph-image.tsx | 65 + apps/web/components/price.tsx | 24 + apps/web/components/product/gallery.tsx | 101 + .../product/product-description.tsx | 36 + .../components/product/variant-selector.tsx | 126 + apps/web/components/prose.tsx | 15 + apps/web/components/welcome-toast.tsx | 35 + apps/web/docs/architecture.md | 36 + apps/web/docs/overview.md | 20 + apps/web/docs/runbook.md | 41 + apps/web/e2e-tests/.gitignore | 5 + apps/web/e2e-tests/package.json | 21 + .../e2e-tests/page-objects/AbstractPage.ts | 13 + .../e2e-tests/page-objects/CategoryPage.ts | 19 + apps/web/e2e-tests/page-objects/HomePage.ts | 33 + .../web/e2e-tests/page-objects/ProductPage.ts | 47 + apps/web/e2e-tests/playwright.config.ts | 77 + apps/web/e2e-tests/pnpm-lock.yaml | 132 + .../e2e-tests/tests/category-tests.spec.ts | 39 + .../e2e-tests/tests/homepage-tests.spec.ts | 27 + .../tests/product-add-to-cart.spec.ts | 36 + apps/web/e2e-tests/tsconfig.json | 17 + apps/web/lib/constants.ts | 31 + apps/web/lib/shopware/api.ts | 282 + apps/web/lib/shopware/connection.ts | 21 + apps/web/lib/shopware/criteria.ts | 314 + apps/web/lib/shopware/helpers.ts | 31 + apps/web/lib/shopware/index.ts | 421 + apps/web/lib/shopware/transform.ts | 425 + apps/web/lib/shopware/types.ts | 128 + apps/web/lib/type-guards.ts | 3 + apps/web/lib/utils.ts | 44 + apps/web/license.md | 21 + apps/web/next.config.ts | 57 + apps/web/open-next.config.ts | 31 + apps/web/package.json | 46 + apps/web/postcss.config.mjs | 6 + apps/web/public/fonts/Inter-Bold.ttf | Bin 0 -> 316100 bytes apps/web/public/logo-next.svg | 9 + apps/web/public/slack.svg | 35 + apps/web/shopware.d.ts | 18 + apps/web/tsconfig.json | 34 + apps/web/turbo.json | 18 + apps/web/wiring.fixture.json | 11 + apps/web/wrangler.jsonc | 52 + apps/web/wrangler.template.jsonc | 60 + infra/terraform/cloudflare-r2/component.yaml | 62 + .../cloudflare-r2/docs/architecture.md | 29 + .../terraform/cloudflare-r2/docs/overview.md | 19 + infra/terraform/cloudflare-r2/docs/runbook.md | 20 + .../cloudflare-r2/terraform/adopt.tf | 38 + .../cloudflare-r2/terraform/backend.tf | 5 + .../terraform/cloudflare-r2/terraform/main.tf | 120 + .../cloudflare-r2/terraform/outputs.tf | 2 + .../cloudflare-r2/terraform/variables.tf | 2 + pnpm-lock.yaml | 6628 ++++- specs/epics/README.md | 2 +- .../IMPLEMENTATION-STATUS.md | 38 +- specs/epics/shopware-commerce/README.md | 2 +- tests/web/component.yaml | 31 + tests/web/docs/architecture.md | 11 + tests/web/docs/overview.md | 20 + tests/web/docs/runbook.md | 26 + tests/web/eslint.config.js | 2 + tests/web/package.json | 24 + tests/web/src/connection.test.ts | 97 + tests/web/src/health.test.ts | 35 + tests/web/src/revalidate.test.ts | 91 + tests/web/src/site.test.ts | 29 + tests/web/src/utils.test.ts | 21 + tests/web/tsconfig.json | 21 + tests/web/vitest.config.ts | 21 + tooling/catalog/gen-component-docs.py | 550 + 137 files changed, 43584 insertions(+), 428 deletions(-) create mode 100644 apps/web/.env.example create mode 100644 apps/web/.gitignore create mode 100644 apps/web/.oxfmtrc.json create mode 100644 apps/web/.oxlintrc.json create mode 100644 apps/web/.prettierignore create mode 100644 apps/web/README.md create mode 100644 apps/web/api-gen.config.json create mode 100644 apps/web/api-types/storeApiSchema.json create mode 100644 apps/web/api-types/storeApiTypes.d.ts create mode 100644 apps/web/api-types/storeApiTypes.overrides.json create mode 100644 apps/web/api-types/storeApiTypes.overrides.ts create mode 100644 apps/web/app/(cms)/[...cms]/page.tsx create mode 100644 apps/web/app/(cms)/layout.tsx create mode 100644 apps/web/app/(cms)/opengraph-image.tsx create mode 100644 apps/web/app/api/health/route.ts create mode 100644 apps/web/app/api/revalidate/route.ts create mode 100644 apps/web/app/error.tsx create mode 100644 apps/web/app/favicon.ico create mode 100644 apps/web/app/globals.css create mode 100644 apps/web/app/layout.tsx create mode 100644 apps/web/app/opengraph-image.tsx create mode 100644 apps/web/app/page.tsx create mode 100644 apps/web/app/product/[...handle]/page.tsx create mode 100644 apps/web/app/robots.ts create mode 100644 apps/web/app/search/(collection)/[...collection]/page.tsx create mode 100644 apps/web/app/search/(collection)/opengraph-image.tsx create mode 100644 apps/web/app/search/children-wrapper.tsx create mode 100644 apps/web/app/search/layout.tsx create mode 100644 apps/web/app/search/loading.tsx create mode 100644 apps/web/app/search/page.tsx create mode 100644 apps/web/app/site.ts create mode 100644 apps/web/app/sitemap.ts create mode 100644 apps/web/cloudflare-env.d.ts create mode 100644 apps/web/component.yaml create mode 100644 apps/web/components/carousel.tsx create mode 100644 apps/web/components/cart/actions.ts create mode 100644 apps/web/components/cart/add-to-cart.tsx create mode 100644 apps/web/components/cart/cart-context.tsx create mode 100644 apps/web/components/cart/delete-item-button.tsx create mode 100644 apps/web/components/cart/edit-item-quantity-button.tsx create mode 100644 apps/web/components/cart/modal.tsx create mode 100644 apps/web/components/cart/open-cart.tsx create mode 100644 apps/web/components/collection/pagination.tsx create mode 100644 apps/web/components/connect-store.tsx create mode 100644 apps/web/components/grid/index.tsx create mode 100644 apps/web/components/grid/three-items.tsx create mode 100644 apps/web/components/grid/tile.tsx create mode 100644 apps/web/components/icons/github.tsx create mode 100644 apps/web/components/icons/logo.tsx create mode 100644 apps/web/components/label.tsx create mode 100644 apps/web/components/layout/copyright-date.tsx create mode 100644 apps/web/components/layout/footer-menu.tsx create mode 100644 apps/web/components/layout/footer.tsx create mode 100644 apps/web/components/layout/navbar/index.tsx create mode 100644 apps/web/components/layout/navbar/mobile-menu.tsx create mode 100644 apps/web/components/layout/navbar/search.tsx create mode 100644 apps/web/components/layout/product-grid-items.tsx create mode 100644 apps/web/components/layout/search/collections.tsx create mode 100644 apps/web/components/layout/search/filter/dropdown.tsx create mode 100644 apps/web/components/layout/search/filter/index.tsx create mode 100644 apps/web/components/layout/search/filter/item.tsx create mode 100644 apps/web/components/loading-dots.tsx create mode 100644 apps/web/components/logo-square.tsx create mode 100644 apps/web/components/opengraph-image.tsx create mode 100644 apps/web/components/price.tsx create mode 100644 apps/web/components/product/gallery.tsx create mode 100644 apps/web/components/product/product-description.tsx create mode 100644 apps/web/components/product/variant-selector.tsx create mode 100644 apps/web/components/prose.tsx create mode 100644 apps/web/components/welcome-toast.tsx create mode 100644 apps/web/docs/architecture.md create mode 100644 apps/web/docs/overview.md create mode 100644 apps/web/docs/runbook.md create mode 100644 apps/web/e2e-tests/.gitignore create mode 100644 apps/web/e2e-tests/package.json create mode 100644 apps/web/e2e-tests/page-objects/AbstractPage.ts create mode 100644 apps/web/e2e-tests/page-objects/CategoryPage.ts create mode 100644 apps/web/e2e-tests/page-objects/HomePage.ts create mode 100644 apps/web/e2e-tests/page-objects/ProductPage.ts create mode 100644 apps/web/e2e-tests/playwright.config.ts create mode 100644 apps/web/e2e-tests/pnpm-lock.yaml create mode 100644 apps/web/e2e-tests/tests/category-tests.spec.ts create mode 100644 apps/web/e2e-tests/tests/homepage-tests.spec.ts create mode 100644 apps/web/e2e-tests/tests/product-add-to-cart.spec.ts create mode 100644 apps/web/e2e-tests/tsconfig.json create mode 100644 apps/web/lib/constants.ts create mode 100644 apps/web/lib/shopware/api.ts create mode 100644 apps/web/lib/shopware/connection.ts create mode 100644 apps/web/lib/shopware/criteria.ts create mode 100644 apps/web/lib/shopware/helpers.ts create mode 100644 apps/web/lib/shopware/index.ts create mode 100644 apps/web/lib/shopware/transform.ts create mode 100644 apps/web/lib/shopware/types.ts create mode 100644 apps/web/lib/type-guards.ts create mode 100644 apps/web/lib/utils.ts create mode 100644 apps/web/license.md create mode 100644 apps/web/next.config.ts create mode 100644 apps/web/open-next.config.ts create mode 100644 apps/web/package.json create mode 100644 apps/web/postcss.config.mjs create mode 100644 apps/web/public/fonts/Inter-Bold.ttf create mode 100644 apps/web/public/logo-next.svg create mode 100644 apps/web/public/slack.svg create mode 100644 apps/web/shopware.d.ts create mode 100644 apps/web/tsconfig.json create mode 100644 apps/web/turbo.json create mode 100644 apps/web/wiring.fixture.json create mode 100644 apps/web/wrangler.jsonc create mode 100644 apps/web/wrangler.template.jsonc create mode 100644 infra/terraform/cloudflare-r2/component.yaml create mode 100644 infra/terraform/cloudflare-r2/docs/architecture.md create mode 100644 infra/terraform/cloudflare-r2/docs/overview.md create mode 100644 infra/terraform/cloudflare-r2/docs/runbook.md create mode 100644 infra/terraform/cloudflare-r2/terraform/adopt.tf create mode 100644 infra/terraform/cloudflare-r2/terraform/backend.tf create mode 100644 infra/terraform/cloudflare-r2/terraform/main.tf create mode 100644 infra/terraform/cloudflare-r2/terraform/outputs.tf create mode 100644 infra/terraform/cloudflare-r2/terraform/variables.tf create mode 100644 tests/web/component.yaml create mode 100644 tests/web/docs/architecture.md create mode 100644 tests/web/docs/overview.md create mode 100644 tests/web/docs/runbook.md create mode 100644 tests/web/eslint.config.js create mode 100644 tests/web/package.json create mode 100644 tests/web/src/connection.test.ts create mode 100644 tests/web/src/health.test.ts create mode 100644 tests/web/src/revalidate.test.ts create mode 100644 tests/web/src/site.test.ts create mode 100644 tests/web/src/utils.test.ts create mode 100644 tests/web/tsconfig.json create mode 100644 tests/web/vitest.config.ts create mode 100644 tooling/catalog/gen-component-docs.py diff --git a/README.md b/README.md index 1082b31..27be1e5 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,107 @@ # shopware-commerce -[Next.js Shopware Starter](https://github.com/shopwareLabs/nextjs-shopware-starter) on -**Cloudflare Workers**, deployed by [Orun](https://github.com/sourceplane/orun) to stage -and prod on every merge, and then packaged as an Orun baseline. - -This commit is the repository's frame: `intent.yaml` (with the placeholder -workspace `ws_CHANGE_ME`, so CI plans nothing until it is linked), the Orun -CI workflow, the shared TypeScript and ESLint configuration, and the spec -index. The work is tracked as an epic under [`specs/epics`](specs/epics/README.md). +[Shopware's Next.js starter](https://github.com/shopwareLabs/nextjs-shopware-starter) +— a fork of Vercel's Next.js Commerce on Shopware 6's Store API: a home page +with a featured grid and a carousel, the shop's categories with sorting and +filters, search, product pages with variants, a cart and CMS pages, every +Store API read a `"use cache"` entry dropped by tag when the shop changes — +running on **Cloudflare Workers + Static Assets** through +[`@opennextjs/cloudflare`](https://opennext.js.org/cloudflare), with the +Next.js data cache in an **R2 bucket** provisioned by Terraform through +[Orun](https://github.com/sourceplane/orun) and the tag cache and revalidation +queue in **Durable Objects** the Worker itself exports, deployed by +[Orun](https://github.com/sourceplane/orun) to stage and prod on every merge. +Packaging it as an Orun baseline is the next milestone (SW2). + +A fresh build needs no Shopware store: until its owner connects one, `/` says +"Connect your Shopware store" and every other page answers with an empty +catalogue and the same note — never a 500. The owner connects a shop by +setting its domain and its sales channel's access key as Orun secrets and +redeploying. The Worker is about 2.5 MiB gzipped, inside Workers Free's +3 MiB. See [`specs/epics/shopware-commerce`](specs/epics/shopware-commerce/README.md) +for the design, the milestones and the as-built status. + +## What is here (the product) + +| Surface | Where | +|---|---| +| The storefront's routes: `/`, `/search`, `/search/`, `/product/`, `/cms/`, `/api/revalidate`, `/api/health`, the sitemap and the Open Graph images | `apps/web/app` | +| The store's name and its source link | `apps/web/app/site.ts` (`SITE_NAME`, `SOURCE_URL`) | +| Whether a Shopware store is connected, and what the storefront says until one is | `apps/web/lib/shopware/connection.ts`, `apps/web/components/connect-store.tsx` | +| The Store API client, its cached reads and their tags, the revalidation route's logic | `apps/web/lib/shopware` | +| The Store API's types (`@shopware/api-gen`) | `apps/web/api-types`, `apps/web/shopware.d.ts` | +| Workers build, cache bindings and deploy contract | `apps/web/next.config.ts`, `open-next.config.ts`, `wrangler.template.jsonc` + `wiring.fixture.json` (→ the committed `wrangler.jsonc`), `component.yaml` | +| The R2 bucket (stage, prod) | `infra/terraform/cloudflare-r2` | +| The wrangler renderer, and the step that puts the revalidation secret on the Worker | `tooling/wire` | +| Tests | `tests/web` (the port's seams: the store name, the connection, health, the store domain, revalidation) | + +## Getting started + +```bash +pnpm install +pnpm run wire:fixture # render apps/web/wrangler.jsonc from the offline fixture +pnpm typecheck +pnpm lint +pnpm test +pnpm build # next build + opennextjs-cloudflare build → apps/web/.open-next +``` + +```bash +pnpm --filter @app/web dev # http://localhost:3000, Next's dev server +pnpm --filter @app/web preview # wrangler dev over the built Worker, a local R2 bucket and local Durable Objects +``` + +With no `SHOPWARE_STORE_DOMAIN` both serve the "connect your Shopware store" +storefront. To run against a shop, put its domain and access key in +`apps/web/.env.local` (from `apps/web/.env.example`). Offline, the e2e's +stand-in Store API answers the storefront's calls from a three-product +catalogue: `node testing/lib/fake-shopware.mjs --port 4010 --key `, +then `SHOPWARE_STORE_DOMAIN=http://127.0.0.1:4010`. + +## How it maps to Vercel + +| Vercel | Here | +|---|---| +| Next.js hosting (SSR, server actions, route handlers, `next/og`) | One Cloudflare Worker (`.open-next/worker.js`) + Static Assets (`ASSETS`) | +| Cache Components with `"use cache"`, `cacheLife` and `cacheTag` | `"use cache"`, its lifetimes and its tags kept through `experimental.useCache`; every route renders per request from those cached reads | +| Data Cache entries | The R2 bucket bound as `NEXT_INC_CACHE_R2_BUCKET` | +| `revalidateTag` | A sharded Durable Object tag cache (`NEXT_TAG_CACHE_DO_SHARDED`) consulted on every cache read | +| Stale-while-revalidate | A Durable Object queue (`NEXT_CACHE_DO_QUEUE`) that re-renders stale entries through the Worker's `WORKER_SELF_REFERENCE` binding | +| Image Optimization | Off (`images.unoptimized`): images come from the shop's media URLs | +| `SHOPWARE_STORE_DOMAIN`, `SHOPWARE_ACCESS_TOKEN` | Orun secrets (optional build env) — and, unset, the "connect your Shopware store" storefront instead of a failed build | +| `SHOPWARE_REVALIDATION_SECRET` | An Orun secret each deploy puts on the Worker; the build never sees it, and the route answers 503 until it is set | +| `VERCEL_PROJECT_PRODUCTION_URL` | Each environment's `SITE_URL`, else its workers.dev URL, set by the build as `NEXT_PUBLIC_SITE_URL` | +| Deploy on push | Orun applies the bucket and deploys `-web-{stage,prod}` on merge to `main` (`apps/web/component.yaml`) | +| "Deploy with Vercel" (clone the template) | `orun new --blueprint repo-blueprint.yaml` — a new repository, branded, deployed | + +Cache Components are off: `@opennextjs/cloudflare` 1.20 cannot run Next 16's +Cache Components on workerd yet (a Cache Components page answers 500 and then +hangs — opennextjs-cloudflare#1450), so the storefront keeps upstream's +`"use cache"` reads through `experimental.useCache` and renders every route at +request time. The epic's [IMPLEMENTATION-STATUS](specs/epics/shopware-commerce/IMPLEMENTATION-STATUS.md) +has the evidence. + +## How the bucket reaches the Worker + +``` +infra/terraform/cloudflare-r2 ──apply (r2-data token)──► orun secret WIRING_CLOUDFLARE_R2 (stage, prod) + │ (each deploy resolves it as it starts; + │ a missing one fails the lane) + ▼ +apps/web dependsOn cloudflare-r2 (enforced on main) · secretEnv WIRING_CLOUDFLARE_R2_ + build: tooling/wire/live.mjs → wrangler.jsonc with the environment's bucket name + (dev, verify-only, renders the fixture) → next build → opennextjs-cloudflare + → tooling/wire/worker-secrets.mjs puts SHOPWARE_REVALIDATION_SECRET on the Worker + deploy: workers-deploy token → -web-, its Durable Objects migrated on first deploy +``` + +`wrangler.jsonc` is committed as the fixture render of +`wrangler.template.jsonc`, because the deploy lane's `verify-app-structure` +step checks the config exists before it builds; `testing/e2e.test.sh` fails +if the two disagree. + +## CI + +| Workflow | What it runs | Ships to a product | +|---|---|---| +| `ci.yml` | the Orun pipeline, and the only workflow a product carries: `orun plan --changed`, then one job per lane. A pull request runs the verify lanes (the R2 root planned for stage and prod, the storefront built and dry-deployed per environment; they neither lint nor run the tests, which `baseline.yml`'s e2e tier runs before every tag), except the bootstrap's own landings (`orun/BASE-*`), where `plan` alone runs and nothing waits for it (the landing checked its commit in the box); a merge applies the R2 bucket, then deploys stage → prod. It plans nothing while `intent.yaml` names the placeholder workspace `ws_CHANGE_ME`, as this repository does. A manual run (Orunbase's Deploy button, or Run workflow on `main`) plans the environment and components it names under the push-to-main trigger, so they deploy as a merge deploys them | yes | diff --git a/apps/web/.env.example b/apps/web/.env.example new file mode 100644 index 0000000..09bf846 --- /dev/null +++ b/apps/web/.env.example @@ -0,0 +1,19 @@ +# Local development. Every value is optional: with no Shopware store the +# storefront builds and serves an empty catalogue that says how to connect +# one. The store's name is apps/web/app/site.ts. +# +# Next's dev server (`pnpm dev`) and `pnpm build` → copy to .env.local +# +# It is git-ignored. On the deployed Workers these are this repository's Orun +# secrets, one value per environment (the README, "Connecting Shopware"): +# SHOPWARE_STORE_DOMAIN and SHOPWARE_ACCESS_TOKEN are read by the build, and +# each deploy puts SHOPWARE_REVALIDATION_SECRET on the Worker as a secret — +# for the Worker preview (`pnpm preview`) put that one in .dev.vars instead. +COMPANY_NAME="" +# The shop's domain (shop.example.com; https:// unless you write http://). +SHOPWARE_STORE_DOMAIN="" +# The sales channel's Store API access key. +SHOPWARE_ACCESS_TOKEN="" +SHOPWARE_API_TYPE="store-api" +SHOPWARE_USE_SEO_URLS="true" +SHOPWARE_REVALIDATION_SECRET="" diff --git a/apps/web/.gitignore b/apps/web/.gitignore new file mode 100644 index 0000000..466ce6f --- /dev/null +++ b/apps/web/.gitignore @@ -0,0 +1,48 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +e2e-tests/node_modules +/.pnp +.pnp.js + +# testing +/coverage +.playwright +e2e-tests/reports + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# local env files +.env* +!.env.example + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts +.env*.local + +# Cloudflare Workers: OpenNext's build, wrangler's local state and secrets +/.open-next/ +/.wrangler/ +/.turbo/ +.dev.vars +.dev.vars.* diff --git a/apps/web/.oxfmtrc.json b/apps/web/.oxfmtrc.json new file mode 100644 index 0000000..04e09e4 --- /dev/null +++ b/apps/web/.oxfmtrc.json @@ -0,0 +1,8 @@ +{ + "printWidth": 100, + "tabWidth": 2, + "useTabs": false, + "semi": true, + "singleQuote": false, + "trailingComma": "all" +} diff --git a/apps/web/.oxlintrc.json b/apps/web/.oxlintrc.json new file mode 100644 index 0000000..f5138a2 --- /dev/null +++ b/apps/web/.oxlintrc.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json", + "rules": { + "no-unused-vars": "warn", + "no-console": "off" + }, + "ignorePatterns": ["node_modules", ".next", "e2e-tests"] +} diff --git a/apps/web/.prettierignore b/apps/web/.prettierignore new file mode 100644 index 0000000..ca73276 --- /dev/null +++ b/apps/web/.prettierignore @@ -0,0 +1,6 @@ +# Generated, with their generators' own layout: wrangler.jsonc is the +# template rendered (`pnpm run wire:fixture`), docs/ is the component's +# generated pages; both carry names a new product's rename makes longer. +wrangler.jsonc +wrangler.template.jsonc +docs/ diff --git a/apps/web/README.md b/apps/web/README.md new file mode 100644 index 0000000..ca406d9 --- /dev/null +++ b/apps/web/README.md @@ -0,0 +1,49 @@ +# apps/web — the storefront + +Shopware's Next.js starter (MIT, `license.md`) — a fork of Vercel's Next.js +Commerce on Shopware 6's Store API — on Cloudflare Workers + Static Assets: +server components over the Store API, a server-action cart kept in your +shop, `"use cache"` reads revalidated by tag. The starter's pages and +components are kept; what this app adds is the Workers build, the cache +bindings, a storefront that says how to connect a shop while none is, a +bearer-checked revalidation route and `/api/health`. + +- `app/` — the routes: home, `/search`, `/search/`, + `/product/`, `/cms/` (the `(cms)/[...cms]` catch-all), the + Open Graph images, + `robots.txt`, `sitemap.xml`, `/api/revalidate` and `/api/health` +- `app/site.ts` — the store's name and the repository its footer links to +- `lib/shopware/` — the Store API client (`@shopware/api-client`), its cached + readers and their tags, the transforms to the page's types, and the + revalidation route's logic; `connection.ts` says whether a shop is + connected, and while none is every reader answers empty without a call +- `api-types/`, `shopware.d.ts` — the Store API's types + (`pnpm generate-types` regenerates them from your shop) +- `components/` — cart (server actions, modal), navbar, grid, carousel, + product gallery and variants, the connect-store note +- `e2e-tests/` — upstream's Playwright suite, run by hand against a deployed + storefront connected to a shop (`BASE_E2E_URL=https:// pnpm test:e2e` + inside it); upstream ran it on Vercel's deployment events + +```bash +pnpm dev # next dev on http://localhost:3000 +pnpm build # next build + opennextjs-cloudflare build → .open-next/ +pnpm test # upstream's check: oxlint and the oxfmt format check +pnpm preview # wrangler dev over the built Worker: a local R2 bucket, local Durable Objects +``` + +The cache's bucket is not hand-written. `wrangler.template.jsonc` names it as +a wiring token; `wrangler.jsonc` is that template rendered from +`wiring.fixture.json` (placeholder names, for local work and verification), +and every deploy renders it again from the name the `cloudflare-r2` Terraform +root published for the environment (`component.yaml`'s `buildCommand`). + +## Store backend + +| `SHOPWARE_STORE_DOMAIN` + `SHOPWARE_ACCESS_TOKEN` | catalogue, menus, pages | cart | +| ------------------------------------------------- | ---------------------------------------------------------------------------------- | ----------------------------------------------- | +| unset (a fresh deploy) | empty; `/` says "Connect your Shopware store" and every page carries the note | none | +| set (read by the build) | the Store API, cached in R2 (`"use cache"`), revalidated through `/api/revalidate` | the shop's own cart (`sw-context-token` cookie) | + +Connecting a shop is two Orun secrets and a redeploy, and revalidation a +third — the repository's README, "Connecting Shopware". diff --git a/apps/web/api-gen.config.json b/apps/web/api-gen.config.json new file mode 100644 index 0000000..5f0b372 --- /dev/null +++ b/apps/web/api-gen.config.json @@ -0,0 +1,3 @@ +{ + "patches": "./api-types/storeApiTypes.overrides.json" +} diff --git a/apps/web/api-types/storeApiSchema.json b/apps/web/api-types/storeApiSchema.json new file mode 100644 index 0000000..3fcfc49 --- /dev/null +++ b/apps/web/api-types/storeApiSchema.json @@ -0,0 +1,20636 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Shopware Store API", + "description": "This endpoint reference contains an overview of all endpoints comprising the Shopware Store API", + "license": { + "name": "MIT", + "url": "https://github.com/shopware/shopware/blob/trunk/LICENSE" + }, + "version": "6.6.6.0" + }, + "servers": [{ "url": "https://demo-frontends.shopware.store/store-api" }], + "components": { + "schemas": { + "success": { + "required": ["data"], + "properties": { + "meta": { "$ref": "#/components/schemas/meta" }, + "links": { + "description": "Link members related to the primary data.", + "allOf": [ + { "$ref": "#/components/schemas/links" }, + { "$ref": "#/components/schemas/pagination" } + ] + }, + "data": { "$ref": "#/components/schemas/data" }, + "included": { + "description": "To reduce the number of HTTP requests, servers **MAY** allow responses that include related resources along with the requested primary resources. Such responses are called \"compound documents\".", + "type": "array", + "items": { "$ref": "#/components/schemas/resource" }, + "uniqueItems": true + } + }, + "type": "object", + "additionalProperties": false + }, + "failure": { + "required": ["errors"], + "properties": { + "meta": { "$ref": "#/components/schemas/meta" }, + "links": { "$ref": "#/components/schemas/links" }, + "errors": { + "type": "array", + "items": { "$ref": "#/components/schemas/error" }, + "uniqueItems": true + } + }, + "type": "object", + "additionalProperties": false + }, + "info": { + "required": ["meta"], + "properties": { + "meta": { "$ref": "#/components/schemas/meta" }, + "links": { "$ref": "#/components/schemas/links" }, + "jsonapi": { "$ref": "#/components/schemas/jsonapi" } + }, + "type": "object" + }, + "meta": { + "description": "Non-standard meta-information that can not be represented as an attribute or relationship.", + "type": "object", + "additionalProperties": true + }, + "data": { + "description": "The document's \"primary data\" is a representation of the resource or collection of resources targeted by a request.", + "oneOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "description": "An array of resource objects, an array of resource identifier objects, or an empty array ([]), for requests that target resource collections.", + "type": "array", + "items": { "$ref": "#/components/schemas/resource" }, + "uniqueItems": true + } + ] + }, + "resource": { + "description": "\"Resource objects\" appear in a JSON API document to represent resources.", + "required": ["type", "id"], + "properties": { + "type": { "type": "string" }, + "id": { "type": "string" }, + "attributes": { "$ref": "#/components/schemas/attributes" }, + "relationships": { "$ref": "#/components/schemas/relationships" }, + "links": { "$ref": "#/components/schemas/links" }, + "meta": { "$ref": "#/components/schemas/meta" } + }, + "type": "object" + }, + "relationshipLinks": { + "description": "A resource object **MAY** contain references to other resource objects (\"relationships\"). Relationships may be to-one or to-many. Relationships can be specified by including a member in a resource's links object.", + "properties": { + "self": { + "allOf": [ + { + "description": "A `self` member, whose value is a URL for the relationship itself (a \"relationship URL\"). This URL allows the client to directly manipulate the relationship. For example, it would allow a client to remove an `author` from an `article` without deleting the people resource itself.", + "type": "array", + "items": { "type": "object" } + }, + { "$ref": "#/components/schemas/link" } + ] + }, + "related": { "$ref": "#/components/schemas/link" } + }, + "type": "object", + "additionalProperties": true + }, + "links": { + "type": "object", + "additionalProperties": { "$ref": "#/components/schemas/link" } + }, + "link": { + "description": "A link **MUST** be represented as either: a string containing the link's URL or a link object.", + "oneOf": [ + { + "description": "A string containing the link's URL.", + "type": "string", + "format": "uri-reference" + }, + { + "type": "object", + "required": ["href"], + "properties": { + "href": { + "description": "A string containing the link's URL.", + "type": "string", + "format": "uri-reference" + }, + "meta": { "$ref": "#/components/schemas/meta" } + } + } + ] + }, + "attributes": { + "description": "Members of the attributes object (\"attributes\") represent information about the resource object in which it's defined.", + "type": "object", + "additionalProperties": true + }, + "relationships": { + "description": "Members of the relationships object (\"relationships\") represent references from the resource object in which it's defined to other resource objects.", + "type": "object", + "anyOf": [ + { "required": ["data"] }, + { "required": ["meta"] }, + { "required": ["links"] }, + { + "type": "object", + "properties": { + "links": { "$ref": "#/components/schemas/relationshipLinks" }, + "data": { + "description": "Member, whose value represents \"resource linkage\".", + "oneOf": [ + { "$ref": "#/components/schemas/relationshipToOne" }, + { "$ref": "#/components/schemas/relationshipToMany" } + ] + } + } + } + ], + "additionalProperties": false + }, + "relationshipToOne": { + "allOf": [ + { + "description": "References to other resource objects in a to-one (\"relationship\"). Relationships can be specified by including a member in a resource's links object." + }, + { "$ref": "#/components/schemas/linkage" } + ] + }, + "relationshipToMany": { + "description": "An array of objects each containing \\\"type\\\" and \\\"id\\\" members for to-many relationships.", + "type": "array", + "items": { "$ref": "#/components/schemas/linkage" }, + "uniqueItems": true + }, + "linkage": { + "description": "The \"type\" and \"id\" to non-empty members.", + "required": ["type", "id"], + "properties": { + "type": { "type": "string" }, + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "meta": { "$ref": "#/components/schemas/meta" } + }, + "type": "object", + "additionalProperties": false + }, + "pagination": { + "properties": { + "first": { + "description": "The first page of data", + "type": "string", + "format": "uri-reference" + }, + "last": { + "description": "The last page of data", + "type": "string", + "format": "uri-reference" + }, + "prev": { + "description": "The previous page of data", + "type": "string", + "format": "uri-reference" + }, + "next": { + "description": "The next page of data", + "type": "string", + "format": "uri-reference" + } + }, + "type": "object" + }, + "jsonapi": { + "description": "An object describing the server's implementation", + "properties": { + "version": { "type": "string" }, + "meta": { "$ref": "#/components/schemas/meta" } + }, + "type": "object", + "additionalProperties": false + }, + "error": { + "properties": { + "id": { + "type": "string", + "description": "A unique identifier for this particular occurrence of the problem." + }, + "links": { "$ref": "#/components/schemas/links" }, + "status": { + "type": "string", + "description": "The HTTP status code applicable to this problem, expressed as a string value." + }, + "code": { + "type": "string", + "description": "An application-specific error code, expressed as a string value." + }, + "title": { + "type": "string", + "description": "A short, human-readable summary of the problem. It **SHOULD NOT** change from occurrence to occurrence of the problem, except for purposes of localization." + }, + "detail": { + "type": "string", + "description": "A human-readable explanation specific to this occurrence of the problem." + }, + "description": { + "type": "string", + "description": "A human-readable description of the problem." + }, + "source": { + "type": "object", + "properties": { + "pointer": { + "type": "string", + "description": "A JSON Pointer [RFC6901] to the associated entity in the request document [e.g. \"/data\" for a primary data object, or \"/data/attributes/title\" for a specific attribute]." + }, + "parameter": { + "type": "string", + "description": "A string indicating which query parameter caused the error." + } + } + }, + "meta": { "$ref": "#/components/schemas/meta" } + }, + "type": "object", + "additionalProperties": false + }, + "AclRole": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AdvancedSearchAction": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AdvancedSearchActionSearchTerm": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AdvancedSearchBoosting": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AdvancedSearchConfig": { + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "hitCount": { + "properties": { + "product": { + "properties": { + "maxSuggestCount": { "type": "integer", "format": "int64" }, + "maxSearchCount": { "type": "integer", "format": "int64" } + }, + "type": "object" + }, + "product_manufacturer": { + "properties": { + "maxSuggestCount": { "type": "integer", "format": "int64" }, + "maxSearchCount": { "type": "integer", "format": "int64" } + }, + "type": "object" + }, + "category": { + "properties": { + "maxSuggestCount": { "type": "integer", "format": "int64" }, + "maxSearchCount": { "type": "integer", "format": "int64" } + }, + "type": "object" + } + }, + "type": "object" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "AdvancedSearchConfigField": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AdvancedSearchEntityStream": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AdvancedSearchEntityStreamFilter": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AdvancedSearchSynonym": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "App": { + "description": "Added since version: 6.3.1.0", + "required": ["createdAt", "label"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "AppActionButton": { + "description": "Added since version: 6.3.1.0", + "required": ["createdAt", "label"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "AppAdministrationSnippet": { + "description": "Added since version: 6.4.15.0", + "required": ["value", "appId", "localeId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "value": { "type": "string" }, + "appId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "localeId": { "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" + }, + "AppCmsBlock": { + "description": "Added since version: 6.4.2.0", + "required": ["createdAt", "label"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "AppFlowAction": { + "description": "Added since version: 6.4.10.0", + "required": ["createdAt", "label"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "AppFlowEvent": { + "description": "Added since version: 6.5.2.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AppPaymentMethod": { + "description": "Added since version: 6.4.1.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AppScriptCondition": { + "description": "Added since version: 6.4.10.3", + "required": ["createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "AppShippingMethod": { + "description": "Added since version: 6.5.7.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AppTemplate": { + "description": "Added since version: 6.3.1.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "B2bBusinessPartner": { + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "B2bComponentsApprovalRule": { + "description": "Added since version: 6.6.0.0", + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "reviewerRoleId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "affectedRoleId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "reviewerRole": { "$ref": "#/components/schemas/B2bComponentsRole" }, + "affectedRole": { "$ref": "#/components/schemas/B2bComponentsRole" } + }, + "type": "object" + }, + "B2bComponentsApprovalRuleAppScriptCondition": { + "description": "Added since version: 6.6.3.0", + "required": ["createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "B2bComponentsPendingOrder": { + "description": "Added since version: 6.6.0.0", + "required": [ + "billingAddressId", + "customerId", + "employeeId", + "stateId", + "currencyId", + "countryId", + "salesChannelId", + "shippingMethodId", + "paymentMethodId", + "languageId", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "billingAddressId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "employeeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "decidedById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "approvalRuleId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "stateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "currencyId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shippingMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "paymentMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "price": { + "required": ["netPrice", "totalPrice", "positionPrice", "rawTotal", "taxStatus"], + "properties": { + "netPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "positionPrice": { "type": "number", "format": "float" }, + "rawTotal": { "type": "number", "format": "float" }, + "taxStatus": { "type": "string" } + }, + "type": "object" + }, + "originalPrice": { "type": "number", "format": "float" }, + "taxStatus": { "type": "string", "readOnly": true }, + "amountTotal": { + "type": "number", + "format": "float", + "readOnly": true + }, + "amountNet": { + "type": "number", + "format": "float", + "readOnly": true + }, + "reason": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "order": { "$ref": "#/components/schemas/Order" }, + "billingAddress": { + "$ref": "#/components/schemas/B2bComponentsPendingOrderAddress" + }, + "customer": { "$ref": "#/components/schemas/Customer" }, + "employee": { "$ref": "#/components/schemas/B2bEmployee" }, + "decidedBy": { "$ref": "#/components/schemas/B2bEmployee" }, + "approvalRule": { + "$ref": "#/components/schemas/B2bComponentsApprovalRule" + }, + "stateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "currency": { "$ref": "#/components/schemas/Currency" }, + "country": { "$ref": "#/components/schemas/Country" }, + "language": { "$ref": "#/components/schemas/Language" }, + "paymentMethod": { "$ref": "#/components/schemas/PaymentMethod" }, + "shippingMethod": { "$ref": "#/components/schemas/ShippingMethod" }, + "addresses": { + "type": "array", + "items": { + "$ref": "#/components/schemas/B2bComponentsPendingOrderAddress" + } + } + }, + "type": "object" + }, + "B2bComponentsPendingOrderAddress": { + "description": "Added since version: 6.6.0.0", + "required": ["id", "countryId", "firstName", "lastName", "street", "city", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryStateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "street": { "type": "string" }, + "zipcode": { "type": "string" }, + "city": { "type": "string" }, + "company": { "type": "string" }, + "department": { "type": "string" }, + "title": { "type": "string" }, + "vatId": { "type": "string" }, + "phoneNumber": { "type": "string" }, + "additionalAddressLine1": { "type": "string" }, + "additionalAddressLine2": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "country": { "$ref": "#/components/schemas/Country" }, + "countryState": { "$ref": "#/components/schemas/CountryState" }, + "pendingOrder": { + "$ref": "#/components/schemas/B2bComponentsPendingOrder" + }, + "salutation": { "$ref": "#/components/schemas/Salutation" } + }, + "type": "object" + }, + "B2bComponentsRole": { + "required": ["id", "name", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "permissions": { + "type": "array", + "items": { "type": "object", "additionalProperties": false } + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "B2bComponentsShoppingListJsonApi": { + "description": "Added since version: 6.6.2.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "salesChannelId", "customerId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "active": { "type": "boolean" }, + "salesChannelId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "updatedById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "employeeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "relationships": { + "properties": { + "customer": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/b2b-components-shopping-list/23cb3bfda723e05b43cb25a427ee5a25/customer" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "customer" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "91ec1f9324753048c0096d036a694f86" + } + } + } + }, + "type": "object" + }, + "employee": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/b2b-components-shopping-list/23cb3bfda723e05b43cb25a427ee5a25/employee" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "b2b_employee" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "fa5473530e4d1a5a1e1eb53d2fedb10c" + } + } + } + }, + "type": "object" + }, + "lineItems": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/b2b-components-shopping-list/23cb3bfda723e05b43cb25a427ee5a25/lineItems" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "b2b_components_shopping_list_line_item" + }, + "id": { + "type": "string", + "example": "a042af1aa9f3853fe3cd7dabc065568f" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "B2bComponentsShoppingList": { + "description": "Added since version: 6.6.2.0", + "required": ["id", "salesChannelId", "customerId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "active": { "type": "boolean" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "updatedById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "employeeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "customer": { "$ref": "#/components/schemas/Customer" }, + "employee": { "$ref": "#/components/schemas/B2bEmployee" }, + "lineItems": { + "type": "array", + "items": { + "$ref": "#/components/schemas/B2bComponentsShoppingListLineItem" + } + } + }, + "type": "object" + }, + "B2bComponentsShoppingListLineItemJsonApi": { + "description": "Added since version: 6.6.2.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "quantity", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "quantity": { "type": "integer", "format": "int64" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "relationships": { + "properties": { + "product": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/b2b-components-shopping-list-line-item/30d48c8d92682de24e11d3f72c5dd1ea/product" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "product" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "f5bf48aa40cad7891eb709fcf1fde128" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "B2bComponentsShoppingListLineItem": { + "description": "Added since version: 6.6.2.0", + "required": ["id", "quantity", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "quantity": { "type": "integer", "format": "int64" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "product": { "$ref": "#/components/schemas/Product" } + }, + "type": "object" + }, + "B2bEmployee": { + "required": ["id", "languageId", "firstName", "lastName", "email", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "active": { "type": "boolean" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "email": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "role": { "$ref": "#/components/schemas/B2bComponentsRole" }, + "language": { "$ref": "#/components/schemas/Language" } + }, + "type": "object" + }, + "B2bOrderEmployee": { + "required": ["firstName", "lastName", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "B2bPermission": { + "required": ["id", "name", "group", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "group": { "type": "string" }, + "dependencies": { "type": "array", "items": { "type": "string" } }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "CategoryJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": [ + "id", + "displayNestedProducts", + "type", + "productAssignmentType", + "createdAt", + "name" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "afterCategoryId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "afterCategoryVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "displayNestedProducts": { "type": "boolean" }, + "breadcrumb": { + "type": "array", + "items": { "type": "object", "additionalProperties": false }, + "readOnly": true + }, + "level": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "path": { "type": "string", "readOnly": true }, + "childCount": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "type": { "type": "string" }, + "productAssignmentType": { "type": "string" }, + "visible": { "type": "boolean" }, + "active": { "type": "boolean" }, + "cmsPageIdSwitched": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean" + }, + "visibleChildCount": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "integer", + "format": "int64" + }, + "name": { "type": "string" }, + "customFields": { "type": "object" }, + "linkType": { "type": "string" }, + "internalLink": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "externalLink": { "type": "string" }, + "linkNewTab": { "type": "boolean" }, + "description": { "type": "string" }, + "metaTitle": { "type": "string" }, + "metaDescription": { "type": "string" }, + "keywords": { "type": "string" }, + "cmsPageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsPageVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "customEntityTypeId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "relationships": { + "properties": { + "parent": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/category/3adbdb3ac060038aa0e6e6c138ef9873/parent" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "category" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "d0e45878043844ffc41aac437e86b602" + } + } + } + }, + "type": "object" + }, + "children": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/category/3adbdb3ac060038aa0e6e6c138ef9873/children" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "category" }, + "id": { + "type": "string", + "example": "268184c12df027f536154d099d497b31" + } + } + } + } + }, + "type": "object" + }, + "media": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/category/3adbdb3ac060038aa0e6e6c138ef9873/media" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "media" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "62933a2951ef01f4eafd9bdf4d3cd2f0" + } + } + } + }, + "type": "object" + }, + "tags": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/category/3adbdb3ac060038aa0e6e6c138ef9873/tags" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "tag" }, + "id": { + "type": "string", + "example": "d57ac45256849d9b13e2422d91580fb9" + } + } + } + } + }, + "type": "object" + }, + "cmsPage": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/category/3adbdb3ac060038aa0e6e6c138ef9873/cmsPage" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "cms_page" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "7b1460918b1abb93311108f3dc021c9b" + } + } + } + }, + "type": "object" + }, + "seoUrls": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/category/3adbdb3ac060038aa0e6e6c138ef9873/seoUrls" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "seo_url" }, + "id": { + "type": "string", + "example": "5321b5a71127b8b98cdd4b068ad56c4c" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "Category": { + "description": "Added since version: 6.0.0.0", + "required": [ + "apiAlias", + "breadcrumb", + "children", + "childCount", + "translated", + "id", + "displayNestedProducts", + "type", + "productAssignmentType", + "createdAt", + "name" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "afterCategoryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "afterCategoryVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "displayNestedProducts": { "type": "boolean" }, + "breadcrumb": { + "type": "array", + "items": { "type": "string", "additionalProperties": false }, + "readOnly": true + }, + "level": { "type": "integer", "format": "int64", "readOnly": true }, + "path": { "type": "string", "readOnly": true }, + "childCount": { + "type": "number", + "format": "int64", + "readOnly": true + }, + "type": { "type": "string" }, + "productAssignmentType": { "type": "string" }, + "visible": { "type": "boolean" }, + "active": { "type": "boolean" }, + "cmsPageIdSwitched": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean" + }, + "visibleChildCount": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "integer", + "format": "int64" + }, + "name": { "type": "string" }, + "customFields": { "type": "object" }, + "linkType": { "type": "string" }, + "internalLink": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "externalLink": { "type": "string" }, + "linkNewTab": { "type": "boolean" }, + "description": { "type": "string" }, + "metaTitle": { "type": "string" }, + "metaDescription": { "type": "string" }, + "keywords": { "type": "string" }, + "cmsPageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsPageVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customEntityTypeId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { + "type": "object", + "additionalProperties": true, + "properties": { + "breadcrumb": { "type": "array", "items": { "type": "string" } } + }, + "required": ["breadcrumb"] + }, + "parent": { "$ref": "#/components/schemas/Category" }, + "children": { + "type": "array", + "items": { "$ref": "#/components/schemas/Category" } + }, + "media": { "$ref": "#/components/schemas/Media" }, + "tags": { + "type": "array", + "items": { "$ref": "#/components/schemas/Tag" } + }, + "cmsPage": { "$ref": "#/components/schemas/CmsPage" }, + "seoUrls": { + "type": "array", + "items": { "$ref": "#/components/schemas/SeoUrl" } + }, + "apiAlias": { "type": "string", "enum": ["category"] } + }, + "type": "object" + }, + "CmsBlock": { + "description": "Added since version: 6.0.0.0", + "required": ["apiAlias", "slots", "position", "type", "sectionId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "position": { "type": "integer", "format": "int64" }, + "type": { "type": "string" }, + "name": { "type": "string" }, + "sectionPosition": { "type": "string" }, + "marginTop": { "type": "string" }, + "marginBottom": { "type": "string" }, + "marginLeft": { "type": "string" }, + "marginRight": { "type": "string" }, + "backgroundColor": { "type": "string" }, + "backgroundMediaId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "backgroundMediaMode": { "type": "string" }, + "cssClass": { "type": "string" }, + "visibility": { + "properties": { + "mobile": { "type": "boolean" }, + "desktop": { "type": "boolean" }, + "tablet": { "type": "boolean" } + }, + "type": "object" + }, + "sectionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsSectionVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "extensions": { + "properties": { + "swagCmsExtensionsQuickview": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/cms-block/9c16ffe823ddccc710bfb336c2ef30b6/swagCmsExtensionsQuickview" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_cms_extensions_quickview" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "fae098a43df8714eda5249176ffcf26c" + } + } + } + }, + "type": "object" + }, + "swagCmsExtensionsBlockRule": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/cms-block/9c16ffe823ddccc710bfb336c2ef30b6/swagCmsExtensionsBlockRule" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_cms_extensions_block_rule" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "c426e9e5d9031b933f89682d49bb02b1" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "backgroundMedia": { "$ref": "#/components/schemas/Media" }, + "slots": { + "type": "array", + "items": { "$ref": "#/components/schemas/CmsSlot" } + }, + "apiAlias": { "type": "string", "enum": ["cms_block"] } + }, + "type": "object" + }, + "CmsPage": { + "description": "Added since version: 6.0.0.0", + "required": ["apiAlias", "sections", "id", "type", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "type": { "type": "string" }, + "entity": { "type": "string" }, + "cssClass": { "type": "string" }, + "config": { + "properties": { "backgroundColor": { "type": "string" } }, + "type": "object" + }, + "previewMediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "extensions": { + "properties": { + "swagCmsExtensionsScrollNavigationPageSettings": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/cms-page/64bf107168bcd03626208c1764ce6890/swagCmsExtensionsScrollNavigationPageSettings" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_cms_extensions_scroll_navigation_page_settings" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "8b835206d09f3dec1b733f6a78c7ba33" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "sections": { + "type": "array", + "items": { "$ref": "#/components/schemas/CmsSection" } + }, + "previewMedia": { "$ref": "#/components/schemas/Media" }, + "landingPages": { + "type": "array", + "items": { "$ref": "#/components/schemas/LandingPage" } + }, + "apiAlias": { "type": "string", "enum": ["cms_page"] } + }, + "type": "object" + }, + "CmsPageActivity": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "CmsPageDraft": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "CmsSection": { + "description": "Added since version: 6.0.0.0", + "required": ["apiAlias", "blocks", "position", "type", "pageId", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "position": { "type": "integer", "format": "int64" }, + "type": { "type": "string" }, + "sizingMode": { "type": "string" }, + "mobileBehavior": { "type": "string" }, + "backgroundColor": { "type": "string" }, + "backgroundMediaId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "backgroundMediaMode": { "type": "string" }, + "cssClass": { "type": "string" }, + "pageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "visibility": { + "properties": { + "mobile": { "type": "boolean" }, + "desktop": { "type": "boolean" }, + "tablet": { "type": "boolean" } + }, + "type": "object" + }, + "customFields": { "type": "object" }, + "cmsPageVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "extensions": { + "properties": { + "swagCmsExtensionsScrollNavigation": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/cms-section/d08def49fa8924d6f4a32bdb448d5fba/swagCmsExtensionsScrollNavigation" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_cms_extensions_scroll_navigation" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "425b8d6ec722d74191c6d39370af19dc" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "page": { "$ref": "#/components/schemas/CmsPage" }, + "backgroundMedia": { "$ref": "#/components/schemas/Media" }, + "blocks": { + "type": "array", + "items": { "$ref": "#/components/schemas/CmsBlock" } + }, + "apiAlias": { "type": "string", "enum": ["cms_section"] } + }, + "type": "object" + }, + "CmsSlot": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "type", "slot", "blockId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "type": { "type": "string" }, + "slot": { "type": "string" }, + "locked": { "type": "boolean" }, + "config": { "type": "object" }, + "customFields": { "type": "object" }, + "data": { "type": "object", "readOnly": true }, + "blockId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "fieldConfig": { "type": "object" }, + "cmsBlockVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "block": { "$ref": "#/components/schemas/CmsBlock" } + }, + "type": "object" + }, + "CountryJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "isEu", "createdAt", "name", "addressFormat"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "iso": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "active": { "type": "boolean" }, + "shippingAvailable": { "type": "boolean" }, + "iso3": { "type": "string" }, + "displayStateInRegistration": { "type": "boolean" }, + "forceStateInRegistration": { "type": "boolean" }, + "checkVatIdPattern": { "type": "boolean" }, + "vatIdRequired": { "type": "boolean" }, + "vatIdPattern": { "type": "string" }, + "customFields": { "type": "object" }, + "customerTax": { + "required": ["enabled", "currencyId", "amount"], + "properties": { + "enabled": { "type": "boolean" }, + "currencyId": { "type": "string" }, + "amount": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "companyTax": { + "required": ["enabled", "currencyId", "amount"], + "properties": { + "enabled": { "type": "boolean" }, + "currencyId": { "type": "string" }, + "amount": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "postalCodeRequired": { "type": "boolean" }, + "checkPostalCodePattern": { "type": "boolean" }, + "checkAdvancedPostalCodePattern": { "type": "boolean" }, + "advancedPostalCodePattern": { "type": "string" }, + "addressFormat": { "type": "object" }, + "defaultPostalCodePattern": { "type": "string" }, + "isEu": { "type": "boolean" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "relationships": { + "properties": { + "states": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/country/59716c97497eb9694541f7c3d37b1a4d/states" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "country_state" + }, + "id": { + "type": "string", + "example": "34d955a0df5f7af9c9b4e4dccb3c3564" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "Country": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "isEu", "createdAt", "name", "addressFormat"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "iso": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "active": { "type": "boolean" }, + "shippingAvailable": { "type": "boolean" }, + "iso3": { "type": "string" }, + "displayStateInRegistration": { "type": "boolean" }, + "forceStateInRegistration": { "type": "boolean" }, + "checkVatIdPattern": { "type": "boolean" }, + "vatIdRequired": { "type": "boolean" }, + "vatIdPattern": { "type": "string" }, + "customFields": { "type": "object" }, + "customerTax": { + "required": ["enabled", "currencyId", "amount"], + "properties": { + "enabled": { "type": "boolean" }, + "currencyId": { "type": "string" }, + "amount": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "companyTax": { + "required": ["enabled", "currencyId", "amount"], + "properties": { + "enabled": { "type": "boolean" }, + "currencyId": { "type": "string" }, + "amount": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "postalCodeRequired": { "type": "boolean" }, + "checkPostalCodePattern": { "type": "boolean" }, + "checkAdvancedPostalCodePattern": { "type": "boolean" }, + "advancedPostalCodePattern": { "type": "string" }, + "addressFormat": { "type": "object" }, + "defaultPostalCodePattern": { "type": "string" }, + "isEu": { "type": "boolean" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "states": { + "type": "array", + "items": { "$ref": "#/components/schemas/CountryState" } + } + }, + "type": "object" + }, + "CountryStateJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "countryId", "shortCode", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shortCode": { "type": "string" }, + "name": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "active": { "type": "boolean" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + } + ] + }, + "CountryState": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "countryId", "shortCode", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shortCode": { "type": "string" }, + "name": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "active": { "type": "boolean" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "CurrencyJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": [ + "id", + "factor", + "symbol", + "isoCode", + "itemRounding", + "totalRounding", + "createdAt", + "shortName", + "name" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "factor": { "type": "number", "format": "float" }, + "symbol": { "type": "string" }, + "isoCode": { "type": "string" }, + "shortName": { "type": "string" }, + "name": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "isSystemDefault": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean" + }, + "taxFreeFrom": { "type": "number", "format": "float" }, + "customFields": { "type": "object" }, + "itemRounding": { + "required": ["decimals", "interval", "roundForNet"], + "properties": { + "decimals": { "type": "integer", "format": "int64" }, + "interval": { "type": "number", "format": "float" }, + "roundForNet": { "type": "boolean" } + }, + "type": "object" + }, + "totalRounding": { + "required": ["decimals", "interval", "roundForNet"], + "properties": { + "decimals": { "type": "integer", "format": "int64" }, + "interval": { "type": "number", "format": "float" }, + "roundForNet": { "type": "boolean" } + }, + "type": "object" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + } + ] + }, + "Currency": { + "description": "Added since version: 6.0.0.0", + "required": [ + "id", + "factor", + "symbol", + "isoCode", + "itemRounding", + "totalRounding", + "createdAt", + "shortName", + "name" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "factor": { "type": "number", "format": "float" }, + "symbol": { "type": "string" }, + "isoCode": { "type": "string" }, + "shortName": { "type": "string" }, + "name": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "isSystemDefault": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean" + }, + "taxFreeFrom": { "type": "number", "format": "float" }, + "customFields": { "type": "object" }, + "itemRounding": { + "required": ["decimals", "interval", "roundForNet"], + "properties": { + "decimals": { "type": "integer", "format": "int64" }, + "interval": { "type": "number", "format": "float" }, + "roundForNet": { "type": "boolean" } + }, + "type": "object" + }, + "totalRounding": { + "required": ["decimals", "interval", "roundForNet"], + "properties": { + "decimals": { "type": "integer", "format": "int64" }, + "interval": { "type": "number", "format": "float" }, + "roundForNet": { "type": "boolean" } + }, + "type": "object" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "CurrencyCountryRounding": { + "description": "Added since version: 6.4.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "CustomEntity": { + "description": "Added since version: 6.4.9.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "CustomField": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "CustomFieldSet": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "CustomFieldSetRelation": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "CustomPrice": { + "required": ["id", "productId", "price", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerGroupId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "price": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "customer": { "$ref": "#/components/schemas/Customer" }, + "customerGroup": { "$ref": "#/components/schemas/CustomerGroup" }, + "product": { "$ref": "#/components/schemas/Product" } + }, + "type": "object" + }, + "Customer": { + "description": "Added since version: 6.0.0.0", + "required": [ + "apiAlias", + "activeBillingAddress", + "activeShippingAddress", + "id", + "groupId", + "salesChannelId", + "languageId", + "defaultBillingAddressId", + "defaultShippingAddressId", + "customerNumber", + "firstName", + "lastName", + "email", + "accountType", + "defaultPaymentMethodId", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "groupId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "lastPaymentMethodId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "defaultBillingAddressId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "defaultShippingAddressId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "customerNumber": { "type": "string" }, + "salutationId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "company": { "type": "string" }, + "email": { "type": "string" }, + "title": { "type": "string" }, + "vatIds": { "type": "array", "items": { "type": "string" } }, + "affiliateCode": { "type": "string" }, + "campaignCode": { "type": "string" }, + "active": { "type": "boolean" }, + "doubleOptInRegistration": { "type": "boolean" }, + "doubleOptInEmailSentDate": { + "type": "string", + "format": "date-time" + }, + "doubleOptInConfirmDate": { "type": "string", "format": "date-time" }, + "hash": { "type": "string" }, + "guest": { "type": "boolean" }, + "firstLogin": { "type": "string", "format": "date-time" }, + "lastLogin": { "type": "string", "format": "date-time" }, + "birthday": { "type": "string" }, + "lastOrderDate": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "orderCount": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "orderTotalAmount": { + "type": "number", + "format": "float", + "readOnly": true + }, + "reviewCount": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "customFields": { "type": "object" }, + "tagIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "accountType": { "type": "string" }, + "createdById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "updatedById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "defaultPaymentMethodId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "extensions": { + "properties": { + "specificFeatures": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/customer/ce26601dac0dea138b7295f02b7620a7/specificFeatures" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "customer_specific_features" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "5cfb6fcb7542e25892e1a35cd6a06c54" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "group": { "$ref": "#/components/schemas/CustomerGroup" }, + "language": { "$ref": "#/components/schemas/Language" }, + "lastPaymentMethod": { "$ref": "#/components/schemas/PaymentMethod" }, + "defaultBillingAddress": { + "$ref": "#/components/schemas/CustomerAddress" + }, + "activeBillingAddress": { + "$ref": "#/components/schemas/CustomerAddress" + }, + "defaultShippingAddress": { + "$ref": "#/components/schemas/CustomerAddress" + }, + "activeShippingAddress": { + "$ref": "#/components/schemas/CustomerAddress" + }, + "salutation": { "$ref": "#/components/schemas/Salutation" }, + "addresses": { + "type": "array", + "items": { "$ref": "#/components/schemas/CustomerAddress" } + }, + "tags": { + "type": "array", + "items": { "$ref": "#/components/schemas/Tag" } + }, + "defaultPaymentMethod": { + "$ref": "#/components/schemas/PaymentMethod" + }, + "apiAlias": { "type": "string", "enum": ["customer"] } + }, + "type": "object" + }, + "CustomerAddress": { + "description": "Added since version: 6.0.0.0", + "required": [ + "id", + "customerId", + "countryId", + "firstName", + "lastName", + "city", + "street", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryStateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salutationId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "zipcode": { "type": "string" }, + "city": { "type": "string" }, + "company": { "type": "string" }, + "street": { "type": "string" }, + "department": { "type": "string" }, + "title": { "type": "string" }, + "phoneNumber": { "type": "string" }, + "additionalAddressLine1": { "type": "string" }, + "additionalAddressLine2": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "country": { "$ref": "#/components/schemas/Country" }, + "countryState": { "$ref": "#/components/schemas/CountryState" }, + "salutation": { "$ref": "#/components/schemas/Salutation" } + }, + "type": "object" + }, + "CustomerGroup": { + "description": "Added since version: 6.0.0.0", + "required": ["translated", "id", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "displayGross": { "type": "boolean" }, + "customFields": { "type": "object" }, + "registrationActive": { "type": "boolean" }, + "registrationTitle": { "type": "string" }, + "registrationIntroduction": { "type": "string" }, + "registrationOnlyCompanyRegistration": { "type": "boolean" }, + "registrationSeoMetaDescription": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "registrationIntroduction": { "type": "string" }, + "registrationSeoMetaDescription": { "type": "string" }, + "registrationTitle": { "type": "string" } + } + } + }, + "type": "object" + }, + "CustomerRecovery": { + "description": "Added since version: 6.1.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "CustomerSpecificFeatures": { + "required": ["customerId", "features", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "features": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "customer": { "$ref": "#/components/schemas/Customer" } + }, + "type": "object" + }, + "CustomerTag": { + "description": "Added since version: 6.0.0.0", + "required": ["customerId", "tagId"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "tagId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "tag": { "$ref": "#/components/schemas/Tag" } + }, + "type": "object" + }, + "CustomerWishlist": { + "description": "Added since version: 6.3.4.0", + "required": ["id", "customerId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "CustomerWishlistProduct": { + "description": "Added since version: 6.3.4.0", + "required": ["id", "productId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "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" + }, + "DeliveryTime": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "name", "min", "max", "unit", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "min": { "type": "integer", "format": "int64" }, + "max": { "type": "integer", "format": "int64" }, + "unit": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "Document": { + "description": "Added since version: 6.0.0.0", + "required": [ + "id", + "documentTypeId", + "fileType", + "orderId", + "config", + "deepLinkCode", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "documentTypeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "fileType": { "type": "string" }, + "referencedDocumentId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "orderId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "documentMediaFileId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "orderVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "config": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "title": { "type": "string" } + }, + "required": ["name", "title"] + }, + "sent": { "type": "boolean" }, + "static": { "type": "boolean" }, + "deepLinkCode": { "type": "string" }, + "documentNumber": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "documentType": { "$ref": "#/components/schemas/DocumentType" }, + "order": { "$ref": "#/components/schemas/Order" }, + "referencedDocument": { "$ref": "#/components/schemas/Document" }, + "dependentDocuments": { + "type": "array", + "items": { "$ref": "#/components/schemas/Document" } + }, + "documentMediaFile": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "DocumentBaseConfig": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "documentTypeId", "name", "global", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "documentTypeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "logoId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "filenamePrefix": { "type": "string" }, + "filenameSuffix": { "type": "string" }, + "global": { "type": "boolean" }, + "documentNumber": { "type": "string" }, + "config": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "customFields": { "type": "object" }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "logo": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "DocumentBaseConfigSalesChannel": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "documentBaseConfigId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "documentBaseConfigId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "documentTypeId": { "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" + }, + "DocumentType": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "technicalName", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "technicalName": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "customFields": { "type": "object" }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "DsrAppointment": { + "required": ["presentationId", "salesChannelDomainId", "name", "createdById", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "presentationId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "dsrPresentationVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "active": { "type": "boolean" }, + "salesChannelDomainId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "accessibleFrom": { "type": "string", "format": "date-time" }, + "accessibleTo": { "type": "string", "format": "date-time" }, + "attendeeRuleIds": { "type": "object" }, + "guideUserId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "isPreview": { "type": "boolean" }, + "videoAudioSettings": { "type": "string" }, + "name": { "type": "string" }, + "startedAt": { "type": "string", "format": "date-time" }, + "endedAt": { "type": "string", "format": "date-time" }, + "default": { "type": "boolean" }, + "customFields": { "type": "object" }, + "createdById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "updatedById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "videoChat": { + "$ref": "#/components/schemas/DsrAppointmentVideoChat" + } + }, + "type": "object" + }, + "DsrAppointmentAttendee": { + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "attendeeSubmittedAt": { "type": "string", "format": "date-time" }, + "joinedAt": { "type": "string", "format": "date-time" }, + "lastActive": { "type": "string", "format": "date-time" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "DsrAppointmentVideoChat": { + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "url": { "type": "string" }, + "startAsBroadcast": { "type": "boolean" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "DsrAttendeeProductCollection": { + "required": ["attendeeId", "productId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "attendeeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "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" + }, + "DsrInteraction": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "DsrPresentation": { + "required": ["id", "createdById", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "active": { "type": "boolean" }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "customFields": { "type": "object" }, + "createdById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "updatedById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "parent": { "$ref": "#/components/schemas/DsrPresentation" }, + "appointments": { + "type": "array", + "items": { "$ref": "#/components/schemas/DsrAppointment" } + }, + "cmsPages": { + "type": "array", + "items": { "$ref": "#/components/schemas/DsrPresentationCmsPage" } + } + }, + "type": "object" + }, + "DsrPresentationCmsPage": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "presentationId", "cmsPageId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "presentationId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "dsrPresentationVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "cmsPageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsPageVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "title": { "type": "string" }, + "customFields": { "type": "object" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productStreamId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "pickedProductIds": { "type": "object" }, + "position": { "type": "integer", "format": "int64" }, + "isInstantListing": { "type": "boolean" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "cmsPage": { "$ref": "#/components/schemas/CmsPage" } + }, + "type": "object" + }, + "Flow": { + "description": "Added since version: 6.4.6.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "FlowSequence": { + "description": "Added since version: 6.4.6.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "FlowTemplate": { + "description": "Added since version: 6.4.18.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ImportExportFile": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ImportExportLog": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ImportExportProfile": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "Integration": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "LandingPageJsonApi": { + "description": "Added since version: 6.4.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "createdAt", "name", "url"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "active": { "type": "boolean" }, + "name": { "type": "string" }, + "customFields": { "type": "object" }, + "slotConfig": { "type": "object" }, + "metaTitle": { "type": "string" }, + "metaDescription": { "type": "string" }, + "keywords": { "type": "string" }, + "url": { "type": "string" }, + "cmsPageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsPageVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "relationships": { + "properties": { + "cmsPage": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/landing-page/815c27537bec3b60c50a2ae4d2ce875d/cmsPage" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "cms_page" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "7b1460918b1abb93311108f3dc021c9b" + } + } + } + }, + "type": "object" + }, + "seoUrls": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/landing-page/815c27537bec3b60c50a2ae4d2ce875d/seoUrls" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "seo_url" }, + "id": { + "type": "string", + "example": "5321b5a71127b8b98cdd4b068ad56c4c" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "LandingPage": { + "description": "Added since version: 6.4.0.0", + "required": ["apiAlias", "id", "createdAt", "name", "url"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "active": { "type": "boolean" }, + "name": { "type": "string" }, + "customFields": { "type": "object" }, + "slotConfig": { "type": "object" }, + "metaTitle": { "type": "string" }, + "metaDescription": { "type": "string" }, + "keywords": { "type": "string" }, + "url": { "type": "string" }, + "cmsPageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsPageVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "cmsPage": { "$ref": "#/components/schemas/CmsPage" }, + "seoUrls": { + "type": "array", + "items": { "$ref": "#/components/schemas/SeoUrl" } + }, + "apiAlias": { "type": "string", "enum": ["landing_page"] } + }, + "type": "object" + }, + "LanguageJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "localeId", "name", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "localeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "translationCodeId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "name": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "relationships": { + "properties": { + "parent": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/language/4994a8ffeba4ac3140beb89e8d41f174/parent" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "language" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "d0e45878043844ffc41aac437e86b602" + } + } + } + }, + "type": "object" + }, + "locale": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/language/4994a8ffeba4ac3140beb89e8d41f174/locale" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "locale" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "fb216d9e8791e63c8d12bdc420956839" + } + } + } + }, + "type": "object" + }, + "translationCode": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/language/4994a8ffeba4ac3140beb89e8d41f174/translationCode" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "locale" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "6ef2035242b8fcb7b61c3a41850e60b3" + } + } + } + }, + "type": "object" + }, + "children": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/language/4994a8ffeba4ac3140beb89e8d41f174/children" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "language" }, + "id": { + "type": "string", + "example": "268184c12df027f536154d099d497b31" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "Language": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "localeId", "name", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "localeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "translationCodeId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "name": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "parent": { "$ref": "#/components/schemas/Language" }, + "locale": { "$ref": "#/components/schemas/Locale" }, + "translationCode": { "$ref": "#/components/schemas/Locale" }, + "children": { + "type": "array", + "items": { "$ref": "#/components/schemas/Language" } + } + }, + "type": "object" + }, + "Locale": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "code", "createdAt", "name", "territory"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "code": { "type": "string" }, + "name": { "type": "string" }, + "territory": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "LogEntry": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "MailHeaderFooter": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "systemDefault": { "type": "boolean" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "headerHtml": { "type": "string" }, + "headerPlain": { "type": "string" }, + "footerHtml": { "type": "string" }, + "footerPlain": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "MailTemplate": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt", "subject", "contentHtml", "contentPlain"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "systemDefault": { "type": "boolean" }, + "senderName": { "type": "string" }, + "contentHtml": { "type": "string" }, + "contentPlain": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "mailTemplateType": { + "$ref": "#/components/schemas/MailTemplateType" + }, + "media": { + "type": "array", + "items": { "$ref": "#/components/schemas/MailTemplateMedia" } + } + }, + "type": "object" + }, + "MailTemplateMedia": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "mailTemplateId", "languageId", "mediaId"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "mailTemplateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "position": { "type": "integer", "format": "int64" }, + "media": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "MailTemplateType": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "technicalName", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "technicalName": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "MainCategoryJsonApi": { + "description": "Added since version: 6.1.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "productId", "categoryId", "salesChannelId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "categoryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "categoryVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "salesChannelId": { + "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" + } + ] + }, + "MainCategory": { + "description": "Added since version: 6.1.0.0", + "required": ["id", "productId", "categoryId", "salesChannelId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "categoryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "categoryVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "salesChannelId": { "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" + }, + "Media": { + "description": "Added since version: 6.0.0.0", + "required": [ + "apiAlias", + "fileExtension", + "fileName", + "hasFile", + "path", + "private", + "url", + "id", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "mimeType": { "type": "string", "readOnly": true }, + "fileExtension": { "type": "string", "readOnly": true }, + "uploadedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "fileName": { "type": "string", "readOnly": true }, + "fileSize": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "metaData": { "type": "object", "readOnly": true }, + "config": { "type": "object" }, + "alt": { "type": "string" }, + "title": { "type": "string" }, + "url": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "string" + }, + "path": { "type": "string" }, + "hasFile": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean" + }, + "private": { "type": "boolean" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "extensions": { + "properties": { + "mediaAiTag": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/media/3b563524fdb17b4a86590470d40bef74/mediaAiTag" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "media_ai_tag" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "3c88197809d464216a8c40a8db191b38" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "thumbnails": { + "type": "array", + "items": { "$ref": "#/components/schemas/MediaThumbnail" } + }, + "apiAlias": { "type": "string", "enum": ["media"] } + }, + "type": "object" + }, + "MediaAiTag": { + "required": ["id", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "tags": { + "type": "array", + "items": { "type": "object", "additionalProperties": false } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "media": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "MediaDefaultFolder": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "MediaFolder": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "MediaFolderConfiguration": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "MediaTag": { + "description": "Added since version: 6.0.0.0", + "required": ["mediaId", "tagId"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "tagId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "media": { "$ref": "#/components/schemas/Media" }, + "tag": { "$ref": "#/components/schemas/Tag" } + }, + "type": "object" + }, + "MediaThumbnail": { + "description": "Added since version: 6.0.0.0", + "required": ["url", "id", "mediaId", "width", "height", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "width": { "type": "integer", "format": "int64", "readOnly": true }, + "height": { "type": "integer", "format": "int64", "readOnly": true }, + "url": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "string" + }, + "path": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "MediaThumbnailSize": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "width", "height", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "width": { "type": "integer", "format": "int64" }, + "height": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "NewsletterRecipientJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["createdAt"], + "properties": { + "id": { "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" + } + ] + }, + "NewsletterRecipient": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "Notification": { + "description": "Added since version: 6.4.7.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "NumberRange": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "NumberRangeSalesChannel": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "NumberRangeState": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "NumberRangeType": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt", "typeName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "Order": { + "description": "Added since version: 6.0.0.0", + "required": [ + "documents", + "orderDate", + "stateMachineState", + "id", + "billingAddressId", + "currencyId", + "languageId", + "salesChannelId", + "orderDateTime", + "currencyFactor", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderNumber": { "type": "string" }, + "billingAddressId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "billingAddressVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "currencyId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderDateTime": { "type": "string", "format": "date-time" }, + "orderDate": { "type": "string", "readOnly": true }, + "price": { + "required": ["netPrice", "totalPrice", "positionPrice", "rawTotal", "taxStatus"], + "properties": { + "netPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "positionPrice": { "type": "number", "format": "float" }, + "rawTotal": { "type": "number", "format": "float" }, + "taxStatus": { "type": "string" } + }, + "type": "object" + }, + "amountTotal": { + "type": "number", + "format": "float", + "readOnly": true + }, + "amountNet": { + "type": "number", + "format": "float", + "readOnly": true + }, + "positionPrice": { + "type": "number", + "format": "float", + "readOnly": true + }, + "taxStatus": { "type": "string", "readOnly": true }, + "shippingCosts": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "shippingTotal": { + "type": "number", + "format": "float", + "readOnly": true + }, + "currencyFactor": { "type": "number", "format": "float" }, + "deepLinkCode": { "type": "string" }, + "affiliateCode": { "type": "string" }, + "campaignCode": { "type": "string" }, + "customerComment": { "type": "string" }, + "source": { "type": "string" }, + "customFields": { "type": "object" }, + "createdById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "updatedById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "extensions": { + "properties": { + "subscription": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/order/a240fa27925a635b08dc28c9e4f9216d/subscription" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "subscription" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "b48b13e73a6ac2a86dc54425dd24d9ff" + } + } + } + }, + "type": "object" + }, + "returns": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/order/a240fa27925a635b08dc28c9e4f9216d/returns" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "order_return" }, + "id": { + "type": "string", + "example": "7fff84525c6516919851a9005373f87e" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "stateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "orderCustomer": { "$ref": "#/components/schemas/OrderCustomer" }, + "currency": { "$ref": "#/components/schemas/Currency" }, + "language": { "$ref": "#/components/schemas/Language" }, + "addresses": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderAddress" } + }, + "billingAddress": { "$ref": "#/components/schemas/OrderAddress" }, + "deliveries": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderDelivery" } + }, + "lineItems": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderLineItem" } + }, + "transactions": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderTransaction" } + }, + "documents": { + "type": "array", + "items": { "$ref": "#/components/schemas/Document" } + }, + "tags": { + "type": "array", + "items": { "$ref": "#/components/schemas/Tag" } + } + }, + "type": "object" + }, + "OrderAddress": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "countryId", "firstName", "lastName", "street", "city", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryStateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "street": { "type": "string" }, + "zipcode": { "type": "string" }, + "city": { "type": "string" }, + "company": { "type": "string" }, + "department": { "type": "string" }, + "title": { "type": "string" }, + "vatId": { "type": "string" }, + "phoneNumber": { "type": "string" }, + "additionalAddressLine1": { "type": "string" }, + "additionalAddressLine2": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "country": { "$ref": "#/components/schemas/Country" }, + "countryState": { "$ref": "#/components/schemas/CountryState" }, + "salutation": { "$ref": "#/components/schemas/Salutation" } + }, + "type": "object" + }, + "OrderCustomer": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "email", "firstName", "lastName", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "email": { "type": "string" }, + "salutationId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "company": { "type": "string" }, + "title": { "type": "string" }, + "vatIds": { "type": "array", "items": { "type": "string" } }, + "customerNumber": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "salutation": { "$ref": "#/components/schemas/Salutation" } + }, + "type": "object" + }, + "OrderDelivery": { + "description": "Added since version: 6.0.0.0", + "required": [ + "id", + "orderId", + "shippingOrderAddressId", + "shippingMethodId", + "stateId", + "trackingCodes", + "shippingDateEarliest", + "shippingDateLatest", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shippingOrderAddressId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "shippingOrderAddressVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "shippingMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "stateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "trackingCodes": { "type": "array", "items": { "type": "string" } }, + "shippingDateEarliest": { "type": "string", "format": "date-time" }, + "shippingDateLatest": { "type": "string", "format": "date-time" }, + "shippingCosts": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "stateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "shippingOrderAddress": { + "$ref": "#/components/schemas/OrderAddress" + }, + "shippingMethod": { "$ref": "#/components/schemas/ShippingMethod" }, + "positions": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderDeliveryPosition" } + } + }, + "type": "object" + }, + "OrderDeliveryPosition": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "orderDeliveryId", "orderLineItemId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderDeliveryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderDeliveryVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "orderLineItemId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderLineItemVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "price": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "OrderLineItem": { + "description": "Added since version: 6.0.0.0", + "required": [ + "apiAlias", + "id", + "orderId", + "identifier", + "quantity", + "label", + "position", + "states", + "children", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "promotionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "coverId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "identifier": { "type": "string" }, + "referencedId": { "type": "string" }, + "quantity": { "type": "integer", "format": "int64" }, + "label": { "type": "string" }, + "payload": { + "type": "object", + "properties": { + "categoryIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "customFields": { "type": "object" }, + "features": { "type": "array" }, + "isCloseout": { "type": "boolean" }, + "isNew": { "type": "boolean" }, + "manufacturerId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "markAsTopseller": { "type": "boolean" }, + "optionIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "options": { + "type": "array", + "items": { "$ref": "#/components/schemas/PropertyGroupOption" } + }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productNumber": { "type": "string" }, + "propertyIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "purchasePrices": { "type": "string" }, + "releaseDate": { "type": "string", "format": "date-time" }, + "stock": { "type": "integer", "format": "int64" }, + "streamIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "tagIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "taxId": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + }, + "good": { "type": "boolean" }, + "removable": { "type": "boolean" }, + "stackable": { "type": "boolean" }, + "position": { "type": "integer", "format": "int64" }, + "states": { "type": "array", "items": { "type": "string" } }, + "priceDefinition": { + "type": "object", + "$ref": "#/components/schemas/CartPriceQuantity" + }, + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "description": { "type": "string" }, + "type": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "extensions": { + "properties": { + "returns": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/order-line-item/40b401ac0b29ac5c5c8ffce649fdef62/returns" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "order_return_line_item" + }, + "id": { + "type": "string", + "example": "7fff84525c6516919851a9005373f87e" + } + } + } + } + }, + "type": "object" + }, + "state": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/order-line-item/40b401ac0b29ac5c5c8ffce649fdef62/state" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "state_machine_state" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "9ed39e2ea931586b6a985a6942ef573e" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "cover": { "$ref": "#/components/schemas/Media" }, + "orderDeliveryPositions": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderDeliveryPosition" } + }, + "downloads": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderLineItemDownload" } + }, + "parent": { "$ref": "#/components/schemas/OrderLineItem" }, + "children": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderLineItem" } + }, + "apiAlias": { "type": "string", "enum": ["order_line_item"] }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "OrderLineItemDownload": { + "description": "Added since version: 6.4.19.0", + "required": [ + "media", + "id", + "orderLineItemId", + "mediaId", + "position", + "accessGranted", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderLineItemId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderLineItemVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "position": { "type": "integer", "format": "int64" }, + "accessGranted": { "type": "boolean" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "orderLineItem": { "$ref": "#/components/schemas/OrderLineItem" }, + "media": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "OrderProductWarehouse": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "OrderReturn": { + "required": ["id", "orderId", "stateId", "returnNumber", "requestedAt", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "price": { + "required": ["netPrice", "totalPrice", "positionPrice", "rawTotal", "taxStatus"], + "properties": { + "netPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "positionPrice": { "type": "number", "format": "float" }, + "rawTotal": { "type": "number", "format": "float" }, + "taxStatus": { "type": "string" } + }, + "type": "object" + }, + "shippingCosts": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "stateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "returnNumber": { "type": "string" }, + "requestedAt": { "type": "string", "format": "date-time" }, + "amountTotal": { "type": "number", "format": "float" }, + "amountNet": { "type": "number", "format": "float" }, + "createdById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "updatedById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "state": { "$ref": "#/components/schemas/StateMachineState" }, + "lineItems": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderReturnLineItem" } + } + }, + "type": "object" + }, + "OrderReturnLineItem": { + "required": [ + "id", + "orderReturnId", + "orderLineItemId", + "reasonId", + "quantity", + "stateId", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderReturnId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderReturnVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "orderLineItemId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderLineItemVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "reasonId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quantity": { "type": "integer", "format": "int64" }, + "refundAmount": { "type": "number", "format": "float" }, + "restockQuantity": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "stateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "reason": { + "$ref": "#/components/schemas/OrderReturnLineItemReason" + }, + "state": { "$ref": "#/components/schemas/StateMachineState" } + }, + "type": "object" + }, + "OrderReturnLineItemReason": { + "required": ["id", "reasonKey", "createdAt", "content"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "reasonKey": { "type": "string" }, + "content": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "OrderTag": { + "description": "Added since version: 6.0.0.0", + "required": ["orderId", "tagId"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "tagId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "order": { "$ref": "#/components/schemas/Order" }, + "tag": { "$ref": "#/components/schemas/Tag" } + }, + "type": "object" + }, + "OrderTransaction": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "orderId", "paymentMethodId", "amount", "stateId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "paymentMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "amount": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "validationData": { "type": "object" }, + "stateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "stateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "paymentMethod": { "$ref": "#/components/schemas/PaymentMethod" }, + "captures": { + "type": "array", + "items": { "$ref": "#/components/schemas/OrderTransactionCapture" } + } + }, + "type": "object" + }, + "OrderTransactionCapture": { + "description": "Added since version: 6.4.12.0", + "required": ["id", "orderTransactionId", "stateId", "amount", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderTransactionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "orderTransactionVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "stateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "externalReference": { "type": "string" }, + "amount": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "stateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "transaction": { "$ref": "#/components/schemas/OrderTransaction" }, + "refunds": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrderTransactionCaptureRefund" + } + } + }, + "type": "object" + }, + "OrderTransactionCaptureRefund": { + "description": "Added since version: 6.4.12.0", + "required": ["id", "captureId", "stateId", "amount", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "captureId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "captureVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "stateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "externalReference": { "type": "string" }, + "reason": { "type": "string" }, + "amount": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "stateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "transactionCapture": { + "$ref": "#/components/schemas/OrderTransactionCapture" + }, + "positions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrderTransactionCaptureRefundPosition" + } + } + }, + "type": "object" + }, + "OrderTransactionCaptureRefundPosition": { + "description": "Added since version: 6.4.12.0", + "required": ["id", "refundId", "orderLineItemId", "amount", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "refundId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "refundVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderLineItemId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderLineItemVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "externalReference": { "type": "string" }, + "reason": { "type": "string" }, + "quantity": { "type": "integer", "format": "int64" }, + "amount": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "orderLineItem": { "$ref": "#/components/schemas/OrderLineItem" }, + "orderTransactionCaptureRefund": { + "$ref": "#/components/schemas/OrderTransactionCaptureRefund" + } + }, + "type": "object" + }, + "OrderWarehouseGroup": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "PaymentMethodJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "distinguishableName": { "type": "string", "readOnly": true }, + "description": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "active": { "type": "boolean" }, + "afterOrderEnabled": { "type": "boolean" }, + "customFields": { "type": "object" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "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", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "relationships": { + "properties": { + "media": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/payment-method/da8da1569e6bef3249a7064261df833f/media" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "media" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "62933a2951ef01f4eafd9bdf4d3cd2f0" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "PaymentMethod": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "distinguishableName": { "type": "string", "readOnly": true }, + "description": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "active": { "type": "boolean" }, + "afterOrderEnabled": { "type": "boolean" }, + "customFields": { "type": "object" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "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", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "media": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "Plugin": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt", "label"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "ProductJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "taxId", "productNumber", "stock", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "manufacturerId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "productManufacturerVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "unitId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "taxId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "coverId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productMediaVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "deliveryTimeId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "canonicalProductId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "canonicalProductVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "cmsPageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsPageVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "productNumber": { "type": "string" }, + "restockTime": { "type": "integer", "format": "int64" }, + "active": { "type": "boolean" }, + "available": { "type": "boolean", "readOnly": true }, + "isCloseout": { "type": "boolean" }, + "availableStock": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "stock": { "type": "integer", "format": "int64" }, + "displayGroup": { "type": "string", "readOnly": true }, + "manufacturerNumber": { "type": "string" }, + "ean": { "type": "string" }, + "purchaseSteps": { "type": "integer", "format": "int64" }, + "maxPurchase": { "type": "integer", "format": "int64" }, + "minPurchase": { "type": "integer", "format": "int64" }, + "purchaseUnit": { "type": "number", "format": "float" }, + "referenceUnit": { "type": "number", "format": "float" }, + "shippingFree": { "type": "boolean" }, + "markAsTopseller": { "type": "boolean" }, + "weight": { "type": "number", "format": "float" }, + "width": { "type": "number", "format": "float" }, + "height": { "type": "number", "format": "float" }, + "length": { "type": "number", "format": "float" }, + "releaseDate": { "type": "string", "format": "date-time" }, + "ratingAverage": { + "type": "number", + "format": "float", + "readOnly": true + }, + "categoryTree": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "propertyIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "optionIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "streamIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "tagIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "categoryIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "childCount": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "sales": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "states": { + "type": "array", + "items": { "type": "string" }, + "readOnly": true + }, + "metaDescription": { "type": "string" }, + "name": { "type": "string" }, + "keywords": { "type": "string" }, + "description": { "type": "string" }, + "metaTitle": { "type": "string" }, + "packUnit": { "type": "string" }, + "packUnitPlural": { "type": "string" }, + "customFields": { "type": "object" }, + "calculatedPrice": { "type": "object" }, + "calculatedPrices": { + "type": "array", + "items": { "type": "object", "additionalProperties": false } + }, + "calculatedMaxPurchase": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "integer", + "format": "int64" + }, + "calculatedCheapestPrice": { "type": "object" }, + "isNew": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean" + }, + "sortedProperties": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "extensions": { + "properties": { + "reviewSummaries": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/reviewSummaries" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_review_summary" + }, + "id": { + "type": "string", + "example": "c9c718522e64ffa5effb26cef94f4849" + } + } + } + } + }, + "type": "object" + }, + "swagCustomizedProductsTemplate": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/swagCustomizedProductsTemplate" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "6e9fad30dd3cb84748a01bb8152f4769" + } + } + } + }, + "type": "object" + }, + "attendeeProductCollections": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/attendeeProductCollections" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "dsr_attendee_product_collection" + }, + "id": { + "type": "string", + "example": "0a7b3b2f4b81f36910a74f22826f35df" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "relationships": { + "properties": { + "downloads": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/downloads" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_download" + }, + "id": { + "type": "string", + "example": "d07d50a751bc6ddf12bf3af0efee9b45" + } + } + } + } + }, + "type": "object" + }, + "parent": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/parent" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "product" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "d0e45878043844ffc41aac437e86b602" + } + } + } + }, + "type": "object" + }, + "children": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/children" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "product" }, + "id": { + "type": "string", + "example": "268184c12df027f536154d099d497b31" + } + } + } + } + }, + "type": "object" + }, + "deliveryTime": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/deliveryTime" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "delivery_time" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "8c888ae25a7bd42057370e31f7e01044" + } + } + } + }, + "type": "object" + }, + "tax": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/tax" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "tax" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "06565e5611f23fdf8cc43e5077b92b54" + } + } + } + }, + "type": "object" + }, + "manufacturer": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/manufacturer" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_manufacturer" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "c2904bca62b22443d6cf5e9d89cab204" + } + } + } + }, + "type": "object" + }, + "unit": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/unit" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "unit" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "3e34bdebd9bd5edda27e8728904a2552" + } + } + } + }, + "type": "object" + }, + "cover": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/cover" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_media" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "41d0e299ca1abeb2094852da042165c7" + } + } + } + }, + "type": "object" + }, + "cmsPage": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/cmsPage" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "cms_page" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "7b1460918b1abb93311108f3dc021c9b" + } + } + } + }, + "type": "object" + }, + "canonicalProduct": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/canonicalProduct" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "product" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "023995a50b56c0de077323e958b2bbcd" + } + } + } + }, + "type": "object" + }, + "media": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/media" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_media" + }, + "id": { + "type": "string", + "example": "62933a2951ef01f4eafd9bdf4d3cd2f0" + } + } + } + } + }, + "type": "object" + }, + "crossSellings": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/crossSellings" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_cross_selling" + }, + "id": { + "type": "string", + "example": "89936e14544d1b403cecef938101b6b0" + } + } + } + } + }, + "type": "object" + }, + "configuratorSettings": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/configuratorSettings" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_configurator_setting" + }, + "id": { + "type": "string", + "example": "c0827fee13725d41f1fd7e292243f5aa" + } + } + } + } + }, + "type": "object" + }, + "productReviews": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/productReviews" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_review" + }, + "id": { + "type": "string", + "example": "01e78541ea343ed72424a5222796a4cd" + } + } + } + } + }, + "type": "object" + }, + "mainCategories": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/mainCategories" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "main_category" + }, + "id": { + "type": "string", + "example": "1fb731fc4139cbb575429e28846f0c39" + } + } + } + } + }, + "type": "object" + }, + "seoUrls": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/seoUrls" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "seo_url" }, + "id": { + "type": "string", + "example": "5321b5a71127b8b98cdd4b068ad56c4c" + } + } + } + } + }, + "type": "object" + }, + "options": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/options" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "property_group_option" + }, + "id": { + "type": "string", + "example": "93da65a9fd0004d9477aeac024e08e15" + } + } + } + } + }, + "type": "object" + }, + "properties": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/properties" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "property_group_option" + }, + "id": { + "type": "string", + "example": "74693d2fc58b46bd06410f278e39aa71" + } + } + } + } + }, + "type": "object" + }, + "categories": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/categories" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "category" }, + "id": { + "type": "string", + "example": "b0b5ccb4a195a07fd3eed14affb8695f" + } + } + } + } + }, + "type": "object" + }, + "streams": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/streams" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_stream" + }, + "id": { + "type": "string", + "example": "2f6f4768f1c2d7c8f1f54823723f1a70" + } + } + } + } + }, + "type": "object" + }, + "categoriesRo": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/categoriesRo" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "category" }, + "id": { + "type": "string", + "example": "7f0702d3a90d965b8c9158c451f43fdb" + } + } + } + } + }, + "type": "object" + }, + "tags": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/tags" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "tag" }, + "id": { + "type": "string", + "example": "d57ac45256849d9b13e2422d91580fb9" + } + } + } + } + }, + "type": "object" + }, + "seoCategory": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/seoCategory" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "category" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "9354d004d12e03d35ad8292bf0bb234d" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "Product": { + "description": "Represents a product along with detailed information required to display a variant selection.", + "required": [ + "apiAlias", + "calculatedPrice", + "calculatedPrices", + "seoCategory", + "id", + "taxId", + "productNumber", + "stock", + "createdAt", + "name" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "manufacturerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productManufacturerVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "unitId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "taxId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "coverId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productMediaVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "deliveryTimeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "canonicalProductId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "canonicalProductVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "cmsPageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsPageVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productNumber": { "type": "string" }, + "restockTime": { "type": "integer", "format": "int64" }, + "active": { "type": "boolean" }, + "available": { "type": "boolean", "readOnly": true }, + "isCloseout": { "type": "boolean" }, + "availableStock": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "stock": { "type": "integer", "format": "int64" }, + "displayGroup": { "type": "string", "readOnly": true }, + "manufacturerNumber": { "type": "string" }, + "ean": { "type": "string" }, + "purchaseSteps": { "type": "integer", "format": "int64" }, + "maxPurchase": { "type": "integer", "format": "int64" }, + "minPurchase": { "type": "integer", "format": "int64" }, + "purchaseUnit": { "type": "number", "format": "float" }, + "referenceUnit": { "type": "number", "format": "float" }, + "shippingFree": { "type": "boolean" }, + "markAsTopseller": { "type": "boolean" }, + "weight": { "type": "number", "format": "float" }, + "width": { "type": "number", "format": "float" }, + "height": { "type": "number", "format": "float" }, + "length": { "type": "number", "format": "float" }, + "releaseDate": { "type": "string", "format": "date-time" }, + "ratingAverage": { + "type": "number", + "format": "float", + "readOnly": true + }, + "categoryTree": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "propertyIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "optionIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "streamIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "tagIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "categoryIds": { + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "readOnly": true + }, + "childCount": { + "type": "integer", + "format": "int64", + "readOnly": true + }, + "sales": { "type": "integer", "format": "int64", "readOnly": true }, + "states": { + "type": "array", + "items": { "type": "string" }, + "readOnly": true + }, + "metaDescription": { "type": "string" }, + "name": { "type": "string" }, + "keywords": { "type": "string" }, + "description": { "type": "string" }, + "metaTitle": { "type": "string" }, + "packUnit": { "type": "string" }, + "packUnitPlural": { "type": "string" }, + "customFields": { "type": "object" }, + "calculatedPrice": { + "type": "object", + "$ref": "#/components/schemas/CalculatedPrice" + }, + "calculatedPrices": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "allOf": [{ "$ref": "#/components/schemas/CalculatedPrice" }] + } + }, + "calculatedMaxPurchase": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "integer", + "format": "int64" + }, + "calculatedCheapestPrice": { + "type": "object", + "allOf": [ + { "$ref": "#/components/schemas/CalculatedPrice" }, + { + "type": "object", + "properties": { + "unitPrice": { "type": "number" }, + "quantity": { "type": "number" }, + "totalPrice": { "type": "number" }, + "referencePrice": { + "oneOf": [ + { "$ref": "#/components/schemas/CartPriceReference" }, + { "type": "null" } + ] + }, + "listPrice": { + "oneOf": [{ "$ref": "#/components/schemas/CartListPrice" }, { "type": "null" }] + }, + "regulationPrice": { + "type": "object", + "properties": { "price": { "type": "number" } }, + "required": ["price"], + "nullable": true + }, + "hasRange": { "type": "boolean" }, + "variantId": { + "type": "string", + "format": "", + "nullable": true + }, + "apiAlias": { + "type": "string", + "enum": ["calculated_cheapest_price"] + } + } + } + ] + }, + "isNew": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "boolean" + }, + "sortedProperties": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "extensions": { + "properties": { + "reviewSummaries": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/reviewSummaries" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "product_review_summary" + }, + "id": { + "type": "string", + "example": "c9c718522e64ffa5effb26cef94f4849" + } + } + } + } + }, + "type": "object" + }, + "swagCustomizedProductsTemplate": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/swagCustomizedProductsTemplate" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "6e9fad30dd3cb84748a01bb8152f4769" + } + } + } + }, + "type": "object" + }, + "attendeeProductCollections": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/product/deb10517653c255364175796ace3553f/attendeeProductCollections" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "dsr_attendee_product_collection" + }, + "id": { + "type": "string", + "example": "0a7b3b2f4b81f36910a74f22826f35df" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + }, + "downloads": { + "type": "array", + "items": { "$ref": "#/components/schemas/ProductDownload" } + }, + "parent": { "$ref": "#/components/schemas/Product" }, + "children": { + "type": "array", + "items": { "$ref": "#/components/schemas/Product" } + }, + "deliveryTime": { "$ref": "#/components/schemas/DeliveryTime" }, + "tax": { "$ref": "#/components/schemas/Tax" }, + "manufacturer": { + "$ref": "#/components/schemas/ProductManufacturer" + }, + "unit": { "$ref": "#/components/schemas/Unit" }, + "cover": { "$ref": "#/components/schemas/ProductMedia" }, + "cmsPage": { "$ref": "#/components/schemas/CmsPage" }, + "canonicalProduct": { "$ref": "#/components/schemas/Product" }, + "media": { + "type": "array", + "items": { "$ref": "#/components/schemas/ProductMedia" } + }, + "crossSellings": { + "type": "array", + "items": { "$ref": "#/components/schemas/ProductCrossSelling" } + }, + "configuratorSettings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductConfiguratorSetting" + } + }, + "productReviews": { + "type": "array", + "items": { "$ref": "#/components/schemas/ProductReview" } + }, + "mainCategories": { + "type": "array", + "items": { "$ref": "#/components/schemas/MainCategory" } + }, + "seoUrls": { + "type": "array", + "items": { "$ref": "#/components/schemas/SeoUrl" } + }, + "options": { + "type": "array", + "items": { "$ref": "#/components/schemas/PropertyGroupOption" } + }, + "properties": { + "type": "array", + "items": { "$ref": "#/components/schemas/PropertyGroupOption" } + }, + "categories": { + "type": "array", + "items": { "$ref": "#/components/schemas/Category" } + }, + "streams": { + "type": "array", + "items": { "$ref": "#/components/schemas/ProductStream" } + }, + "categoriesRo": { + "type": "array", + "items": { "$ref": "#/components/schemas/Category" } + }, + "tags": { + "type": "array", + "items": { "$ref": "#/components/schemas/Tag" } + }, + "seoCategory": { "$ref": "#/components/schemas/Category" }, + "apiAlias": { "type": "string", "enum": ["product"] }, + "variantListingConfig": { + "nullable": true, + "type": "object", + "properties": { "displayParent": { "type": "boolean" } } + } + }, + "type": "object" + }, + "ProductConfiguratorSetting": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "productId", "optionId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "optionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "position": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "media": { "$ref": "#/components/schemas/Media" }, + "option": { "$ref": "#/components/schemas/PropertyGroupOption" } + }, + "type": "object" + }, + "ProductCrossSelling": { + "description": "Added since version: 6.1.0.0", + "required": ["id", "name", "position", "type", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "sortBy": { "type": "string" }, + "sortDirection": { "type": "string" }, + "type": { "type": "string" }, + "active": { "type": "boolean" }, + "limit": { "type": "integer", "format": "int64" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "ProductCrossSellingAssignedProducts": { + "description": "Added since version: 6.2.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ProductDownload": { + "description": "Added since version: 6.4.19.0", + "required": ["id", "productId", "mediaId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "position": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "product": { "$ref": "#/components/schemas/Product" }, + "media": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "ProductExport": { + "description": "Added since version: 6.1.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ProductFeatureSet": { + "description": "Added since version: 6.3.0.0", + "required": ["createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "ProductKeywordDictionary": { + "description": "Added since version: 6.0.0.0", + "required": ["languageId", "keyword"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "keyword": { "type": "string" } + }, + "type": "object" + }, + "ProductManufacturer": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "link": { "type": "string" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "media": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "ProductMedia": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "productId", "mediaId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "position": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "media": { "$ref": "#/components/schemas/Media" }, + "thumbnails": { "$ref": "#/components/schemas/MediaThumbnail" } + }, + "type": "object" + }, + "ProductPrice": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ProductReview": { + "description": "Added since version: 6.0.0.0", + "required": [ + "points", + "id", + "productId", + "salesChannelId", + "languageId", + "title", + "content", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "title": { "type": "string" }, + "content": { "type": "string" }, + "points": { "type": "number", "format": "float" }, + "status": { "type": "boolean" }, + "comment": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "ProductReviewSummary": { + "required": ["id", "productId", "salesChannelId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "summary": { "type": "string" }, + "visible": { "type": "boolean" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "product": { "$ref": "#/components/schemas/Product" }, + "salesChannel": { "$ref": "#/components/schemas/SalesChannel" } + }, + "type": "object" + }, + "ProductSearchConfig": { + "description": "Added since version: 6.3.5.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ProductSearchConfigField": { + "description": "Added since version: 6.3.5.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ProductSearchKeyword": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ProductSorting": { + "description": "Added since version: 6.3.2.0", + "required": ["key", "priority", "createdAt", "label"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "key": { "type": "string" }, + "priority": { "type": "integer", "format": "int64" }, + "label": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "ProductStream": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "ProductStreamFilter": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ProductVisibility": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "ProductWarehouse": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "Promotion": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "PromotionDiscount": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "PromotionDiscountPrices": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "PromotionIndividualCode": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "PromotionSalesChannel": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "PromotionSetgroup": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "PropertyGroup": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "displayType", "sortingType", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "displayType": { "type": "string" }, + "sortingType": { "type": "string" }, + "filterable": { "type": "boolean" }, + "visibleOnProductDetailPage": { "type": "boolean" }, + "position": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "options": { + "type": "array", + "items": { "$ref": "#/components/schemas/PropertyGroupOption" } + } + }, + "type": "object" + }, + "PropertyGroupOption": { + "description": "Added since version: 6.0.0.0", + "required": ["group", "option", "id", "groupId", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "groupId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "position": { "type": "integer", "format": "int64" }, + "colorHexCode": { "type": "string" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "media": { "$ref": "#/components/schemas/Media" }, + "group": { "$ref": "#/components/schemas/PropertyGroup" }, + "option": { "type": "string" } + }, + "type": "object" + }, + "Quote": { + "description": "Added since version: 6.5.3.0", + "required": [ + "id", + "stateId", + "currencyId", + "languageId", + "salesChannelId", + "customerId", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "stateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "userId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "currencyId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "updatedById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteNumber": { "type": "string" }, + "expirationDate": { "type": "string", "format": "date-time" }, + "sentAt": { "type": "string", "format": "date-time" }, + "price": { + "required": ["netPrice", "totalPrice", "positionPrice", "rawTotal", "taxStatus"], + "properties": { + "netPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "positionPrice": { "type": "number", "format": "float" }, + "rawTotal": { "type": "number", "format": "float" }, + "taxStatus": { "type": "string" } + }, + "type": "object" + }, + "shippingCosts": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "discount": { + "properties": { + "type": { "type": "string" }, + "value": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "taxStatus": { "type": "string", "readOnly": true }, + "amountTotal": { + "type": "number", + "format": "float", + "readOnly": true + }, + "amountNet": { + "type": "number", + "format": "float", + "readOnly": true + }, + "subtotalNet": { "type": "number", "format": "float" }, + "totalDiscount": { "type": "number", "format": "float" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "stateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "currency": { "$ref": "#/components/schemas/Currency" }, + "language": { "$ref": "#/components/schemas/Language" }, + "lineItems": { + "type": "array", + "items": { "$ref": "#/components/schemas/QuoteLineItem" } + }, + "deliveries": { + "type": "array", + "items": { "$ref": "#/components/schemas/QuoteDelivery" } + }, + "transactions": { + "type": "array", + "items": { "$ref": "#/components/schemas/QuoteTransaction" } + }, + "comments": { + "type": "array", + "items": { "$ref": "#/components/schemas/QuoteComment" } + }, + "documents": { + "type": "array", + "items": { "$ref": "#/components/schemas/QuoteDocument" } + } + }, + "type": "object" + }, + "QuoteComment": { + "required": ["id", "comment", "quoteId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "comment": { "type": "string" }, + "seenAt": { "type": "string", "format": "date-time" }, + "quoteId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "stateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdById": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "stateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "customer": { "$ref": "#/components/schemas/Customer" } + }, + "type": "object" + }, + "QuoteDelivery": { + "description": "Added since version: 6.5.3.0", + "required": [ + "id", + "quoteId", + "shippingMethodId", + "shippingDateEarliest", + "shippingDateLatest", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shippingMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shippingDateEarliest": { "type": "string", "format": "date-time" }, + "shippingDateLatest": { "type": "string", "format": "date-time" }, + "shippingCosts": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "shippingMethod": { "$ref": "#/components/schemas/ShippingMethod" }, + "positions": { + "type": "array", + "items": { "$ref": "#/components/schemas/QuoteDeliveryPosition" } + } + }, + "type": "object" + }, + "QuoteDeliveryPosition": { + "description": "Added since version: 6.5.3.0", + "required": ["id", "quoteDeliveryId", "quoteLineItemId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteDeliveryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteDeliveryVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "quoteLineItemId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteLineItemVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "price": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "QuoteDocument": { + "required": [ + "id", + "documentTypeId", + "fileType", + "quoteId", + "config", + "deepLinkCode", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "documentNumber": { "type": "string" }, + "documentTypeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "fileType": { "type": "string" }, + "quoteId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "config": { "type": "object" }, + "sent": { "type": "boolean" }, + "static": { "type": "boolean" }, + "active": { "type": "boolean" }, + "deepLinkCode": { "type": "string" }, + "documentMediaFileId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "documentType": { "$ref": "#/components/schemas/DocumentType" }, + "quote": { "$ref": "#/components/schemas/Quote" }, + "documentMediaFile": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "QuoteEmployee": { + "required": ["firstName", "lastName", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "QuoteLineItem": { + "description": "Added since version: 6.5.3.0", + "required": [ + "id", + "quoteId", + "identifier", + "children", + "states", + "label", + "quantity", + "position", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "identifier": { "type": "string" }, + "parentId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "states": { "type": "array", "items": { "type": "string" } }, + "label": { "type": "string" }, + "description": { "type": "string" }, + "quantity": { "type": "integer", "format": "int64" }, + "type": { "type": "string" }, + "payload": { "type": "object" }, + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "priceDefinition": { "type": "object" }, + "productPrice": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "purchasePrice": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "discount": { + "properties": { + "type": { "type": "string" }, + "value": { "type": "integer", "format": "int64" } + }, + "type": "object" + }, + "good": { "type": "boolean" }, + "removable": { "type": "boolean" }, + "stackable": { "type": "boolean" }, + "position": { "type": "integer", "format": "int64" }, + "referencedId": { "type": "string" }, + "coverId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "parent": { "$ref": "#/components/schemas/QuoteLineItem" }, + "children": { + "type": "array", + "items": { "$ref": "#/components/schemas/QuoteLineItem" } + }, + "cover": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "QuoteTransaction": { + "description": "Added since version: 6.5.3.0", + "required": ["id", "quoteId", "paymentMethodId", "amount", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "quoteVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "paymentMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "amount": { + "required": ["unitPrice", "totalPrice", "quantity"], + "properties": { + "unitPrice": { "type": "number", "format": "float" }, + "totalPrice": { "type": "number", "format": "float" }, + "quantity": { "type": "integer", "format": "int64" }, + "calculatedTaxes": { "type": "object" }, + "taxRules": { "type": "object" }, + "referencePrice": { "type": "object" }, + "listPrice": { + "properties": { + "price": { "type": "number", "format": "float" }, + "discount": { "type": "number", "format": "float" }, + "percentage": { "type": "number", "format": "float" } + }, + "type": "object" + }, + "regulationPrice": { + "properties": { + "price": { "type": "number", "format": "float" } + }, + "type": "object" + } + }, + "type": "object" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "paymentMethod": { "$ref": "#/components/schemas/PaymentMethod" } + }, + "type": "object" + }, + "Rule": { + "description": "Added since version: 6.0.0.0", + "required": ["name", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "extensions": { + "properties": { + "warehouseGroup": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/rule/ab7a485ebe75b6dd7243ad719f23c7de/warehouseGroup" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "warehouse_group" + }, + "id": { + "type": "string", + "example": "1768e3071b62161d415e0c24332055ed" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "RuleCondition": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SaasAppStorefrontConfig": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SaasSbpUserData": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SaasStorefrontDemoToken": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SaasUserLoginToken": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SalesChannel": { + "description": "Added since version: 6.0.0.0", + "required": [ + "id", + "languageId", + "customerGroupId", + "currencyId", + "paymentMethodId", + "shippingMethodId", + "countryId", + "navigationCategoryId", + "createdAt", + "name", + "homeEnabled" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerGroupId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "currencyId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "paymentMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shippingMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "navigationCategoryId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "navigationCategoryVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "navigationCategoryDepth": { "type": "integer", "format": "int64" }, + "footerCategoryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "footerCategoryVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "serviceCategoryId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "serviceCategoryVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "mailHeaderFooterId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "hreflangDefaultDomainId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "name": { "type": "string" }, + "shortName": { "type": "string" }, + "taxCalculationType": { "type": "string" }, + "configuration": { "type": "object" }, + "active": { "type": "boolean" }, + "hreflangActive": { "type": "boolean" }, + "maintenance": { "type": "boolean" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "language": { "$ref": "#/components/schemas/Language" }, + "currency": { "$ref": "#/components/schemas/Currency" }, + "paymentMethod": { "$ref": "#/components/schemas/PaymentMethod" }, + "shippingMethod": { "$ref": "#/components/schemas/ShippingMethod" }, + "country": { "$ref": "#/components/schemas/Country" }, + "domains": { + "type": "array", + "items": { "$ref": "#/components/schemas/SalesChannelDomain" } + }, + "navigationCategory": { "$ref": "#/components/schemas/Category" }, + "footerCategory": { "$ref": "#/components/schemas/Category" }, + "serviceCategory": { "$ref": "#/components/schemas/Category" }, + "hreflangDefaultDomain": { + "$ref": "#/components/schemas/SalesChannelDomain" + } + }, + "type": "object" + }, + "SalesChannelAnalytics": { + "description": "Added since version: 6.2.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SalesChannelDomain": { + "description": "Added since version: 6.0.0.0", + "required": [ + "id", + "url", + "salesChannelId", + "languageId", + "currencyId", + "snippetSetId", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "url": { "type": "string" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "currencyId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "snippetSetId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "hreflangUseOnlyLocale": { "type": "boolean" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "language": { "$ref": "#/components/schemas/Language" }, + "currency": { "$ref": "#/components/schemas/Currency" }, + "salesChannelDefaultHreflang": { + "$ref": "#/components/schemas/SalesChannel" + } + }, + "type": "object" + }, + "SalesChannelType": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "SalutationJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "salutationKey", "createdAt", "displayName", "letterName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salutationKey": { "type": "string" }, + "displayName": { "type": "string" }, + "letterName": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + } + ] + }, + "Salutation": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "salutationKey", "createdAt", "displayName", "letterName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salutationKey": { "type": "string" }, + "displayName": { "type": "string" }, + "letterName": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "ScheduledTask": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "Script": { + "description": "Added since version: 6.4.7.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SeoUrlJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": [ + "id", + "languageId", + "foreignKey", + "routeName", + "pathInfo", + "seoPathInfo", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salesChannelId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "foreignKey": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "routeName": { "type": "string" }, + "pathInfo": { "type": "string" }, + "seoPathInfo": { "type": "string" }, + "isCanonical": { "type": "boolean" }, + "isModified": { "type": "boolean" }, + "isDeleted": { "type": "boolean" }, + "error": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "string" + }, + "url": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "string" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + } + ] + }, + "SeoUrl": { + "description": "Added since version: 6.0.0.0", + "required": [ + "id", + "languageId", + "foreignKey", + "routeName", + "pathInfo", + "seoPathInfo", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "foreignKey": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "routeName": { + "type": "string", + "enum": ["frontend.navigation.page", "frontend.landing.page", "frontend.detail.page"] + }, + "pathInfo": { "type": "string" }, + "seoPathInfo": { "type": "string" }, + "isCanonical": { "type": "boolean" }, + "isModified": { "type": "boolean" }, + "isDeleted": { "type": "boolean" }, + "error": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "string" + }, + "url": { + "description": "Runtime field, cannot be used as part of the criteria.", + "type": "string" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "SeoUrlTemplate": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "isValid": { "type": "boolean" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "ShippingMethodJsonApi": { + "description": "Added since version: 6.0.0.0", + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "deliveryTimeId", "taxType", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "active": { "type": "boolean" }, + "position": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "deliveryTimeId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "taxType": { "type": "string" }, + "description": { "type": "string" }, + "trackingUrl": { "type": "string" }, + "technicalName": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "relationships": { + "properties": { + "deliveryTime": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/shipping-method/d72e7a227a27328b28342b32fc66b6bf/deliveryTime" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "delivery_time" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "8c888ae25a7bd42057370e31f7e01044" + } + } + } + }, + "type": "object" + }, + "availabilityRule": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/shipping-method/d72e7a227a27328b28342b32fc66b6bf/availabilityRule" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "rule" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "9fbb7961d1cb158094924c679e1b302c" + } + } + } + }, + "type": "object" + }, + "prices": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/shipping-method/d72e7a227a27328b28342b32fc66b6bf/prices" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "shipping_method_price" + }, + "id": { + "type": "string", + "example": "afae32efe0f84fece3f96b377b768b33" + } + } + } + } + }, + "type": "object" + }, + "media": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/shipping-method/d72e7a227a27328b28342b32fc66b6bf/media" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "media" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "62933a2951ef01f4eafd9bdf4d3cd2f0" + } + } + } + }, + "type": "object" + }, + "tags": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/shipping-method/d72e7a227a27328b28342b32fc66b6bf/tags" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "tag" }, + "id": { + "type": "string", + "example": "d57ac45256849d9b13e2422d91580fb9" + } + } + } + } + }, + "type": "object" + }, + "tax": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/shipping-method/d72e7a227a27328b28342b32fc66b6bf/tax" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "tax" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "06565e5611f23fdf8cc43e5077b92b54" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "ShippingMethod": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "deliveryTimeId", "taxType", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "active": { "type": "boolean" }, + "position": { "type": "integer", "format": "int64" }, + "customFields": { "type": "object" }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "deliveryTimeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "taxType": { "type": "string" }, + "description": { "type": "string" }, + "trackingUrl": { "type": "string" }, + "technicalName": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "deliveryTime": { "$ref": "#/components/schemas/DeliveryTime" }, + "availabilityRule": { "$ref": "#/components/schemas/Rule" }, + "prices": { + "type": "array", + "items": { "$ref": "#/components/schemas/ShippingMethodPrice" } + }, + "media": { "$ref": "#/components/schemas/Media" }, + "tags": { + "type": "array", + "items": { "$ref": "#/components/schemas/Tag" } + }, + "tax": { "$ref": "#/components/schemas/Tax" } + }, + "type": "object" + }, + "ShippingMethodPrice": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "shippingMethodId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shippingMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "ruleId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "calculation": { "type": "integer", "format": "int64" }, + "calculationRuleId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "quantityStart": { "type": "number", "format": "float" }, + "quantityEnd": { "type": "number", "format": "float" }, + "currencyPrice": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "Snippet": { + "description": "Added since version: 6.0.0.0", + "required": ["setId", "translationKey", "value", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "setId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "translationKey": { "type": "string" }, + "value": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "SnippetSet": { + "description": "Added since version: 6.0.0.0", + "required": ["name", "iso", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "iso": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "snippets": { + "type": "array", + "items": { "$ref": "#/components/schemas/Snippet" } + } + }, + "type": "object" + }, + "SpatialRenderConfigSize": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SpatialScene": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SpatialSceneCamera": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SpatialSceneLight": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SpatialSceneObject": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SsoProvider": { + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "media": { "$ref": "#/components/schemas/Media" } + }, + "type": "object" + }, + "SsoProviderCustomer": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "StateMachine": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "states": { + "type": "array", + "items": { "$ref": "#/components/schemas/StateMachineState" } + }, + "transitions": { + "type": "array", + "items": { "$ref": "#/components/schemas/StateMachineTransition" } + } + }, + "type": "object" + }, + "StateMachineHistory": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "fromStateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "toStateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + } + }, + "type": "object" + }, + "StateMachineState": { + "description": "Added since version: 6.0.0.0", + "required": ["technicalName", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "technicalName": { "type": "string" }, + "name": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "StateMachineTransition": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "Subscription": { + "required": [ + "id", + "convertedOrder", + "subscriptionNumber", + "nextSchedule", + "salesChannelId", + "subscriptionPlanName", + "subscriptionIntervalName", + "dateInterval", + "cronInterval", + "initialExecutionCount", + "remainingExecutionCount", + "billingAddressId", + "shippingAddressId", + "shippingMethodId", + "paymentMethodId", + "currencyId", + "languageId", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "convertedOrder": { "type": "object" }, + "subscriptionNumber": { "type": "string" }, + "nextSchedule": { "type": "string", "format": "date-time" }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "subscriptionPlanId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "subscriptionPlanName": { "type": "string" }, + "subscriptionIntervalId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "subscriptionIntervalName": { "type": "string" }, + "dateInterval": { "type": "string" }, + "cronInterval": { "type": "string" }, + "initialExecutionCount": { "type": "integer", "format": "int64" }, + "remainingExecutionCount": { "type": "integer", "format": "int64" }, + "billingAddressId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shippingAddressId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "shippingMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "paymentMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "currencyId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "languageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "subscriptionPlan": { + "$ref": "#/components/schemas/SubscriptionPlan" + }, + "subscriptionInterval": { + "$ref": "#/components/schemas/SubscriptionInterval" + }, + "subscriptionCustomer": { + "$ref": "#/components/schemas/SubscriptionCustomer" + }, + "billingAddress": { + "$ref": "#/components/schemas/SubscriptionAddress" + }, + "shippingAddress": { + "$ref": "#/components/schemas/SubscriptionAddress" + }, + "addresses": { + "type": "array", + "items": { "$ref": "#/components/schemas/SubscriptionAddress" } + }, + "paymentMethod": { "$ref": "#/components/schemas/PaymentMethod" }, + "shippingMethod": { "$ref": "#/components/schemas/ShippingMethod" }, + "stateMachineState": { + "$ref": "#/components/schemas/StateMachineState" + }, + "orders": { + "type": "array", + "items": { "$ref": "#/components/schemas/Order" } + }, + "tags": { + "type": "array", + "items": { "$ref": "#/components/schemas/Tag" } + }, + "currency": { "$ref": "#/components/schemas/Currency" }, + "language": { "$ref": "#/components/schemas/Language" } + }, + "type": "object" + }, + "SubscriptionAddress": { + "required": [ + "id", + "countryId", + "subscriptionId", + "firstName", + "lastName", + "street", + "city", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "subscriptionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryStateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salutationId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "street": { "type": "string" }, + "zipcode": { "type": "string" }, + "city": { "type": "string" }, + "company": { "type": "string" }, + "department": { "type": "string" }, + "title": { "type": "string" }, + "vatId": { "type": "string" }, + "phoneNumber": { "type": "string" }, + "additionalAddressLine1": { "type": "string" }, + "additionalAddressLine2": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "billingSubscription": { + "$ref": "#/components/schemas/Subscription" + }, + "shippingSubscription": { + "$ref": "#/components/schemas/Subscription" + }, + "country": { "$ref": "#/components/schemas/Country" }, + "countryState": { "$ref": "#/components/schemas/CountryState" }, + "salutation": { "$ref": "#/components/schemas/Salutation" }, + "subscription": { "$ref": "#/components/schemas/Subscription" } + }, + "type": "object" + }, + "SubscriptionCustomer": { + "required": ["id", "salutationId", "email", "firstName", "lastName", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salutationId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "email": { "type": "string" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "company": { "type": "string" }, + "title": { "type": "string" }, + "customerNumber": { "type": "string" }, + "vatIds": { "type": "array", "items": { "type": "string" } }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "salutation": { "$ref": "#/components/schemas/Salutation" } + }, + "type": "object" + }, + "SubscriptionInterval": { + "required": ["id", "name", "active", "dateInterval", "cronInterval", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "active": { "type": "boolean" }, + "dateInterval": { "type": "string" }, + "cronInterval": { "type": "string" }, + "availabilityRuleId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "subscriptions": { + "type": "array", + "items": { "$ref": "#/components/schemas/Subscription" } + } + }, + "type": "object" + }, + "SubscriptionPlanJsonApi": { + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "name", "active", "activeStorefrontLabel", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "active": { "type": "boolean" }, + "minimumExecutionCount": { "type": "integer", "format": "int64" }, + "activeStorefrontLabel": { "type": "boolean" }, + "availabilityRuleId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "discountPercentage": { "type": "number", "format": "float" }, + "label": { "type": "string" }, + "discountPrice": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "relationships": { + "properties": { + "subscriptions": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/subscription-plan/5e63f9057837020694081b9412211bfb/subscriptions" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "subscription" + }, + "id": { + "type": "string", + "example": "2d5d14f95af035cbd8437948de61f94c" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "SubscriptionPlan": { + "required": ["id", "name", "active", "activeStorefrontLabel", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "active": { "type": "boolean" }, + "minimumExecutionCount": { "type": "integer", "format": "int64" }, + "activeStorefrontLabel": { "type": "boolean" }, + "availabilityRuleId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "discountPercentage": { "type": "number", "format": "float" }, + "label": { "type": "string" }, + "discountPrice": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "subscriptions": { + "type": "array", + "items": { "$ref": "#/components/schemas/Subscription" } + } + }, + "type": "object" + }, + "SubscriptionPlanIntervalMapping": { + "required": ["subscriptionIntervalId", "subscriptionPlanId"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "subscriptionIntervalId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "subscriptionPlanId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "subscriptionPlan": { + "$ref": "#/components/schemas/SubscriptionPlan" + }, + "subscriptionInterval": { + "$ref": "#/components/schemas/SubscriptionInterval" + } + }, + "type": "object" + }, + "SubscriptionPlanProductMapping": { + "required": ["productId", "subscriptionPlanId"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "subscriptionPlanId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "subscriptionPlan": { + "$ref": "#/components/schemas/SubscriptionPlan" + }, + "product": { "$ref": "#/components/schemas/Product" } + }, + "type": "object" + }, + "SubscriptionTagMapping": { + "required": ["subscriptionId", "tagId"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "subscriptionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "tagId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "subscription": { "$ref": "#/components/schemas/Subscription" }, + "tag": { "$ref": "#/components/schemas/Tag" } + }, + "type": "object" + }, + "SwagCmsExtensionsBlockRule": { + "required": ["id", "cmsBlockId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "inverted": { "type": "boolean" }, + "visibilityRuleId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsBlockId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsBlockVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "visibilityRule": { "$ref": "#/components/schemas/Rule" }, + "cmsBlock": { "$ref": "#/components/schemas/CmsBlock" } + }, + "type": "object" + }, + "SwagCmsExtensionsForm": { + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "SwagCmsExtensionsFormGroup": { + "required": ["createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "SwagCmsExtensionsFormGroupField": { + "required": ["createdAt", "label"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "SwagCmsExtensionsQuickview": { + "required": ["id", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "active": { "type": "boolean" }, + "cmsBlockId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsBlockVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "cmsBlock": { "$ref": "#/components/schemas/CmsBlock" } + }, + "type": "object" + }, + "SwagCmsExtensionsScrollNavigation": { + "required": ["id", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "active": { "type": "boolean" }, + "cmsSectionVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "displayName": { "type": "string" }, + "cmsSectionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "cmsSection": { "$ref": "#/components/schemas/CmsSection" } + }, + "type": "object" + }, + "SwagCmsExtensionsScrollNavigationPageSettings": { + "required": [ + "id", + "active", + "duration", + "easing", + "bouncy", + "easingDegree", + "nativeScrolling", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "active": { "type": "boolean" }, + "duration": { "type": "integer", "format": "int64" }, + "easing": { "type": "string" }, + "bouncy": { "type": "boolean" }, + "easingDegree": { "type": "integer", "format": "int64" }, + "nativeScrolling": { "type": "boolean" }, + "cmsPageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "cmsPageVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "cmsPage": { "$ref": "#/components/schemas/CmsPage" } + }, + "type": "object" + }, + "SwagCustomizedProductsTemplateJsonApi": { + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "internalName", "createdAt", "displayName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "internalName": { "type": "string" }, + "displayName": { "type": "string" }, + "description": { "type": "string" }, + "active": { "type": "boolean" }, + "stepByStep": { "type": "boolean" }, + "confirmInput": { "type": "boolean" }, + "optionsAutoCollapse": { "type": "boolean" }, + "decisionTree": { "type": "object", "readOnly": true }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "relationships": { + "properties": { + "media": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/media" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "media" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "62933a2951ef01f4eafd9bdf4d3cd2f0" + } + } + } + }, + "type": "object" + }, + "options": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/options" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_option" + }, + "id": { + "type": "string", + "example": "93da65a9fd0004d9477aeac024e08e15" + } + } + } + } + }, + "type": "object" + }, + "products": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/products" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "product" }, + "id": { + "type": "string", + "example": "86024cad1e83101d97359d7351051156" + } + } + } + } + }, + "type": "object" + }, + "exclusions": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/exclusions" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_exclusion" + }, + "id": { + "type": "string", + "example": "c6fc0a7508c1a1fe9e233e81d31133b8" + } + } + } + } + }, + "type": "object" + }, + "configurations": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/configurations" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_configuration" + }, + "id": { + "type": "string", + "example": "86f23519571eb918e8812e1979d55409" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "SwagCustomizedProductsTemplate": { + "required": ["id", "internalName", "createdAt", "displayName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "internalName": { "type": "string" }, + "displayName": { "type": "string" }, + "description": { "type": "string" }, + "active": { "type": "boolean" }, + "stepByStep": { "type": "boolean" }, + "confirmInput": { "type": "boolean" }, + "optionsAutoCollapse": { "type": "boolean" }, + "decisionTree": { "type": "object", "readOnly": true }, + "mediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "media": { "$ref": "#/components/schemas/Media" }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateOption" + } + }, + "products": { + "type": "array", + "items": { "$ref": "#/components/schemas/Product" } + }, + "exclusions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateExclusion" + } + }, + "configurations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateConfiguration" + } + } + }, + "type": "object" + }, + "SwagCustomizedProductsTemplateConfigurationJsonApi": { + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "hash", "configuration", "templateId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "hash": { "type": "string" }, + "configuration": { "type": "object" }, + "templateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "relationships": { + "properties": { + "template": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-configuration/ab78fa5f6df63876a7c6575bdf517fe2/template" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "66f6181bcb4cff4cd38fbc804a036db6" + } + } + } + }, + "type": "object" + }, + "templateConfigurationShares": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-configuration/ab78fa5f6df63876a7c6575bdf517fe2/templateConfigurationShares" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_configuration_share" + }, + "id": { + "type": "string", + "example": "81a31c81fde24f296e176502d32baa6d" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "SwagCustomizedProductsTemplateConfiguration": { + "required": ["id", "hash", "configuration", "templateId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "hash": { "type": "string" }, + "configuration": { "type": "object" }, + "templateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "template": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplate" + }, + "templateConfigurationShares": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateConfigurationShare" + } + } + }, + "type": "object" + }, + "SwagCustomizedProductsTemplateConfigurationShare": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagCustomizedProductsTemplateExclusion": { + "required": ["id", "name", "templateId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "templateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateExclusionCondition" + } + }, + "template": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplate" + } + }, + "type": "object" + }, + "SwagCustomizedProductsTemplateExclusionCondition": { + "required": [ + "id", + "templateExclusionId", + "templateOptionId", + "templateExclusionOperatorId", + "createdAt" + ], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateExclusionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "templateExclusionVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "templateOptionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateOptionVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "templateExclusionOperatorId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "templateExclusion": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateExclusion" + }, + "templateOption": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateOption" + }, + "templateExclusionOperator": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateExclusionOperator" + }, + "templateOptionValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateOptionValue" + } + } + }, + "type": "object" + }, + "SwagCustomizedProductsTemplateExclusionOperator": { + "required": ["id", "operator", "templateOptionType", "createdAt", "label"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "operator": { "type": "string" }, + "templateOptionType": { "type": "string" }, + "label": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "templateExclusionConditions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateExclusionCondition" + } + } + }, + "type": "object" + }, + "SwagCustomizedProductsTemplateOptionJsonApi": { + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "type", "templateId", "createdAt", "displayName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "type": { "type": "string" }, + "displayName": { "type": "string" }, + "description": { "type": "string" }, + "placeholder": { "type": "string" }, + "typeProperties": { "type": "object" }, + "itemNumber": { "type": "string" }, + "required": { "type": "boolean" }, + "oneTimeSurcharge": { "type": "boolean" }, + "relativeSurcharge": { "type": "boolean" }, + "advancedSurcharge": { "type": "boolean" }, + "position": { "type": "integer", "format": "int64" }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "calculatedPrice": { "type": "object" }, + "percentageSurcharge": { "type": "number", "format": "float" }, + "templateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "taxId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "relationships": { + "properties": { + "prices": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/prices" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_option_price" + }, + "id": { + "type": "string", + "example": "afae32efe0f84fece3f96b377b768b33" + } + } + } + } + }, + "type": "object" + }, + "values": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/values" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_option_value" + }, + "id": { + "type": "string", + "example": "f09cc7ee3a9a93273f4b80601cafb00c" + } + } + } + } + }, + "type": "object" + }, + "templateExclusionConditions": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/templateExclusionConditions" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_exclusion_condition" + }, + "id": { + "type": "string", + "example": "57e853a74b92e339ec2e302b015e60f3" + } + } + } + } + }, + "type": "object" + }, + "template": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/template" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "66f6181bcb4cff4cd38fbc804a036db6" + } + } + } + }, + "type": "object" + }, + "tax": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/tax" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "tax" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "06565e5611f23fdf8cc43e5077b92b54" + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "SwagCustomizedProductsTemplateOption": { + "required": ["id", "type", "templateId", "createdAt", "displayName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "type": { "type": "string" }, + "displayName": { "type": "string" }, + "description": { "type": "string" }, + "placeholder": { "type": "string" }, + "typeProperties": { "type": "object" }, + "itemNumber": { "type": "string" }, + "required": { "type": "boolean" }, + "oneTimeSurcharge": { "type": "boolean" }, + "relativeSurcharge": { "type": "boolean" }, + "advancedSurcharge": { "type": "boolean" }, + "position": { "type": "integer", "format": "int64" }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "calculatedPrice": { "type": "object" }, + "percentageSurcharge": { "type": "number", "format": "float" }, + "templateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "taxId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateOptionPrice" + } + }, + "values": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateOptionValue" + } + }, + "templateExclusionConditions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateExclusionCondition" + } + }, + "template": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplate" + }, + "tax": { "$ref": "#/components/schemas/Tax" } + }, + "type": "object" + }, + "SwagCustomizedProductsTemplateOptionPrice": { + "required": ["id", "templateOptionId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateOptionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateOptionVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "percentageSurcharge": { "type": "number", "format": "float" }, + "ruleId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "templateOption": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateOption" + }, + "rule": { "$ref": "#/components/schemas/Rule" } + }, + "type": "object" + }, + "SwagCustomizedProductsTemplateOptionValueJsonApi": { + "allOf": [ + { "$ref": "#/components/schemas/resource" }, + { + "required": ["id", "templateOptionId", "position", "createdAt", "displayName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateOptionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "templateOptionVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "value": { "type": "object" }, + "displayName": { "type": "string" }, + "itemNumber": { "type": "string" }, + "default": { "type": "boolean" }, + "oneTimeSurcharge": { "type": "boolean" }, + "relativeSurcharge": { "type": "boolean" }, + "advancedSurcharge": { "type": "boolean" }, + "position": { "type": "integer", "format": "int64" }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "percentageSurcharge": { "type": "number", "format": "float" }, + "taxId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "relationships": { + "properties": { + "prices": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-option-value/b57f26a8362182be3e67a815927b7f37/prices" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_option_value_price" + }, + "id": { + "type": "string", + "example": "afae32efe0f84fece3f96b377b768b33" + } + } + } + } + }, + "type": "object" + }, + "templateOption": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-option-value/b57f26a8362182be3e67a815927b7f37/templateOption" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_option" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "6891a002a90a39e71e67c4fc148db8df" + } + } + } + }, + "type": "object" + }, + "tax": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-option-value/b57f26a8362182be3e67a815927b7f37/tax" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "example": "tax" }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "example": "06565e5611f23fdf8cc43e5077b92b54" + } + } + } + }, + "type": "object" + }, + "templateExclusionConditions": { + "properties": { + "links": { + "type": "object", + "properties": { + "related": { + "type": "string", + "format": "uri-reference", + "example": "/swag-customized-products-template-option-value/b57f26a8362182be3e67a815927b7f37/templateExclusionConditions" + } + } + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "swag_customized_products_template_exclusion_condition" + }, + "id": { + "type": "string", + "example": "57e853a74b92e339ec2e302b015e60f3" + } + } + } + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + } + ] + }, + "SwagCustomizedProductsTemplateOptionValue": { + "required": ["id", "templateOptionId", "position", "createdAt", "displayName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateOptionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateOptionVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "value": { "type": "object" }, + "displayName": { "type": "string" }, + "itemNumber": { "type": "string" }, + "default": { "type": "boolean" }, + "oneTimeSurcharge": { "type": "boolean" }, + "relativeSurcharge": { "type": "boolean" }, + "advancedSurcharge": { "type": "boolean" }, + "position": { "type": "integer", "format": "int64" }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "percentageSurcharge": { "type": "number", "format": "float" }, + "taxId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateOptionValuePrice" + } + }, + "templateOption": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateOption" + }, + "tax": { "$ref": "#/components/schemas/Tax" }, + "templateExclusionConditions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateExclusionCondition" + } + } + }, + "type": "object" + }, + "SwagCustomizedProductsTemplateOptionValuePrice": { + "required": ["id", "templateOptionValueId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "templateOptionValueId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "templateOptionValueVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "price": { + "type": "array", + "items": { "$ref": "#/components/schemas/Price" } + }, + "percentageSurcharge": { "type": "number", "format": "float" }, + "ruleId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "templateOptionValue": { + "$ref": "#/components/schemas/SwagCustomizedProductsTemplateOptionValue" + }, + "rule": { "$ref": "#/components/schemas/Rule" } + }, + "type": "object" + }, + "SwagDelayAction": { + "required": ["id", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "orderId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "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" + }, + "SwagDynamicAccessLandingPageRule": { + "required": ["landingPageId", "ruleId"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "landingPageId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "landingPageVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "ruleId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "landingPage": { "$ref": "#/components/schemas/LandingPage" }, + "rule": { "$ref": "#/components/schemas/Rule" } + }, + "type": "object" + }, + "SwagDynamicAccessProductRule": { + "required": ["productId", "ruleId"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "productVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "ruleId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "product": { "$ref": "#/components/schemas/Product" }, + "rule": { "$ref": "#/components/schemas/Rule" } + }, + "type": "object" + }, + "SwagLanguagePackLanguage": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagMigrationConnection": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagMigrationData": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagMigrationGeneralSetting": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagMigrationLogging": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagMigrationMapping": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagMigrationMediaFile": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagMigrationRun": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagPaypalPosSalesChannel": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagPaypalPosSalesChannelRun": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagPaypalPosSalesChannelRunLog": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagPaypalTransactionReport": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagPaypalVaultTokenMapping": { + "required": ["customerId", "paymentMethodId", "tokenId", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customerId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "paymentMethodId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "tokenId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "customer": { "$ref": "#/components/schemas/Customer" }, + "paymentMethod": { "$ref": "#/components/schemas/PaymentMethod" }, + "token": { "$ref": "#/components/schemas/SwagPaypalVaultToken" } + }, + "type": "object" + }, + "SwagSocialShoppingCustomer": { + "required": ["id", "createdAt"], + "properties": { + "id": { "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" + }, + "SwagSocialShoppingOrder": { + "required": ["id", "createdAt"], + "properties": { + "id": { "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" + }, + "SwagSocialShoppingProductError": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SwagSocialShoppingSalesChannel": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "SystemConfig": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "configurationKey", "configurationValue", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "configurationKey": { "type": "string" }, + "configurationValue": { + "properties": { "_value": { "type": "object" } }, + "type": "object" + }, + "salesChannelId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "salesChannel": { "$ref": "#/components/schemas/SalesChannel" } + }, + "type": "object" + }, + "Tag": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "name", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "name": { "type": "string" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "Tax": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "taxRate", "name", "position", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "taxRate": { "type": "number", "format": "float" }, + "name": { "type": "string" }, + "position": { + "description": "Added since version: 6.4.0.0.", + "type": "integer", + "format": "int64" + }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "type": "object" + }, + "TaxProvider": { + "description": "Added since version: 6.5.0.0", + "required": ["id", "priority", "createdAt", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "active": { "type": "boolean" }, + "name": { "type": "string" }, + "priority": { "type": "integer", "format": "int64" }, + "processUrl": { "type": "string" }, + "appId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "TaxRule": { + "description": "Added since version: 6.1.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "TaxRuleType": { + "description": "Added since version: 6.1.0.0", + "required": ["createdAt", "typeName"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "Theme": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "name", "author", "active", "createdAt"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "technicalName": { "type": "string" }, + "name": { "type": "string" }, + "author": { "type": "string" }, + "description": { "type": "string" }, + "labels": { "type": "object" }, + "helpTexts": { "type": "object" }, + "customFields": { "type": "object" }, + "previewMediaId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "parentThemeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "baseConfig": { "type": "object" }, + "configValues": { "type": "object" }, + "active": { "type": "boolean" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" }, + "media": { + "type": "array", + "items": { "$ref": "#/components/schemas/Media" } + } + }, + "type": "object" + }, + "Unit": { + "description": "Added since version: 6.0.0.0", + "required": ["id", "createdAt", "shortCode", "name"], + "properties": { + "id": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "shortCode": { "type": "string" }, + "name": { "type": "string" }, + "customFields": { "type": "object" }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "translated": { "type": "object" } + }, + "type": "object" + }, + "User": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "UserAccessKey": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "UserConfig": { + "description": "Added since version: 6.3.5.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "UserRecovery": { + "description": "Added since version: 6.0.0.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "Warehouse": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "WarehouseGroup": { + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "Webhook": { + "description": "Added since version: 6.3.1.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "WebhookEventLog": { + "description": "Added since version: 6.4.1.0", + "required": ["createdAt"], + "properties": { + "id": { "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" + }, + "AccountNewsletterRecipient": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": ["undefined", "notSet", "direct", "optIn", "optOut"] + }, + "apiAlias": { + "type": "string", + "enum": ["account_newsletter_recipient"] + } + }, + "required": ["status", "apiAlias"] + }, + "AggregationEntity": { + "title": "AggregationEntity", + "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": ["entity"] + }, + "field": { + "description": "The field you want to aggregate over.", + "type": "string" + }, + "definition": { + "description": "The entity definition e.g \"product_manufacturer\".", + "type": "string" + } + }, + "required": ["name", "type", "field", "definition"] + }, + "AggregationFilter": { + "title": "AggregationFilter", + "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": ["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" } + } + }, + "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" + }, + "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" + } + }, + "required": ["from", "to"] + }, + { + "type": "object", + "title": "From only", + "properties": { + "from": { + "type": "string", + "description": "The lower bound of the range" + } + }, + "required": ["from"] + }, + { + "type": "object", + "title": "To only", + "properties": { + "to": { + "type": "string", + "description": "The upper bound of the range" + } + }, + "required": ["to"] + } + ] + } + } + }, + "required": ["name", "type", "field", "ranges"] + }, + "AggregationMetrics": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "type": { + "type": "string", + "enum": ["avg", "count", "max", "min", "stats", "sum"] + }, + "field": { "type": "string" } + }, + "required": ["name", "type", "field"] + }, + "Breadcrumb": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "categoryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "type": { "type": "string", "enum": ["page", "link", "folder"] }, + "translated": { + "type": "object", + "additionalProperties": true, + "properties": { + "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" } + } + }, + "path": { "type": "string" }, + "seoUrls": { + "type": "array", + "items": { "$ref": "#/components/schemas/SeoUrl" } + }, + "apiAlias": { "type": "string", "enum": ["breadcrumb"] } + }, + "required": ["name", "categoryId", "type", "translated", "path", "apiAlias"] + }, + "CalculatedPrice": { + "type": "object", + "description": "Represents a product along with detailed information required to display a variant selection.", + "properties": { + "unitPrice": { "type": "number" }, + "quantity": { "type": "number" }, + "rawTotal": { "type": "number" }, + "totalPrice": { "type": "number" }, + "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"] + } + }, + "referencePrice": { + "oneOf": [{ "$ref": "#/components/schemas/CartPriceReference" }, { "type": "null" }] + }, + "listPrice": { + "oneOf": [{ "$ref": "#/components/schemas/CartListPrice" }, { "type": "null" }] + }, + "positionPrice": { "type": "number" }, + "netPrice": { "type": "number" }, + "regulationPrice": { + "type": "object", + "properties": { + "price": { "type": "number" }, + "apiAlias": { + "type": "string", + "enum": ["cart_regulation_price"] + } + }, + "nullable": true + }, + "hasRange": { "type": "boolean" }, + "variantId": { + "type": "string", + "format": "^[0-9a-f]{32}$", + "nullable": true + }, + "apiAlias": { "type": "string", "enum": ["calculated_price"] }, + "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", + "hasRange", + "regulationPrice", + "listPrice", + "referencePrice", + "calculatedTaxes", + "totalPrice", + "quantity", + "unitPrice", + "positionPrice", + "netPrice", + "taxRules" + ] + }, + "Cart": { + "type": "object", + "properties": { + "name": { + "description": "Name of the cart - for example `guest-cart`", + "type": "string" + }, + "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" } + }, + "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" } + } + } + }, + "modified": { "type": "boolean" }, + "customerComment": { + "type": "string", + "description": "A comment that can be added to the cart.", + "nullable": true + }, + "affiliateCode": { + "type": "string", + "description": "An affiliate tracking code", + "nullable": true + }, + "campaignCode": { + "type": "string", + "description": "A campaign tracking code", + "nullable": true + } + } + }, + "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" } + } + }, + "location": { + "type": "object", + "properties": { + "apiAlias": { + "type": "string", + "enum": ["cart_delivery_shipping_location"] + }, + "country": { "$ref": "#/components/schemas/Country" }, + "address": { "$ref": "#/components/schemas/CustomerAddress" }, + "state": { "$ref": "#/components/schemas/CountryState" } + } + }, + "positions": { + "type": "array", + "items": { "$ref": "#/components/schemas/CartDeliveryPosition" } + }, + "shippingCosts": { "$ref": "#/components/schemas/CalculatedPrice" }, + "shippingMethod": { "$ref": "#/components/schemas/ShippingMethod" } + } + }, + "CartDeliveryInformation": { + "type": "object", + "properties": { + "apiAlias": { + "type": "string", + "enum": ["cart_delivery_information"] + }, + "freeDelivery": { "type": "boolean" }, + "deliveryTime": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "min": { "type": "integer" }, + "max": { "type": "integer" }, + "unit": { "type": "string" }, + "apiAlias": { "type": "string", "enum": ["cart_delivery_time"] } + } + }, + "height": { "type": "integer" }, + "length": { "type": "integer" }, + "restockTime": { "type": "integer" }, + "stock": { "type": "integer" }, + "weight": { "type": "integer" }, + "width": { "type": "integer" } + }, + "required": ["apiAlias"] + }, + "CartDeliveryPosition": { + "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": { "type": "string" }, + "lineItem": { "$ref": "#/components/schemas/LineItem" }, + "price": { "$ref": "#/components/schemas/CalculatedPrice" } + } + }, + "CartError": { + "type": "object", + "description": "A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers.", + "properties": { + "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" } + } + } + } + }, + "CartItems": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { "$ref": "#/components/schemas/LineItem" } + } + } + }, + "CartListPrice": { + "type": "object", + "description": "", + "properties": { + "discount": { "type": "number" }, + "percentage": { "type": "number" }, + "price": { "type": "number" }, + "apiAlias": { "type": "string", "enum": ["cart_list_price"] } + }, + "required": ["apiAlias"] + }, + "CartPriceQuantity": { + "type": "object", + "properties": { + "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" } + }, + "required": ["apiAlias"] + }, + "CartPriceReference": { + "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/CartListPrice" }, { "type": "null" }] + }, + "regulationPrice": { + "type": "object", + "properties": { + "price": { "type": "number" }, + "apiAlias": { + "type": "string", + "enum": ["cart_regulation_price"] + } + }, + "nullable": true + }, + "hasRange": { "type": "boolean" }, + "variantId": { + "type": "string", + "format": "^[0-9a-f]{32}$", + "nullable": true + } + }, + "required": [ + "apiAlias", + "hasRange", + "regulationPrice", + "listPrice", + "calculatedTaxes", + "totalPrice", + "quantity", + "unitName" + ] + }, + "Criteria": { + "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": "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" } + }, + "associations": { + "type": "array", + "description": "Associations to include. For more information, see [Search Queries > Associations](https://shopware.stoplight.io/docs/store-api/cf710bf73d0cd-search-queries#associations)", + "items": { "$ref": "#/components/schemas/Association" } + }, + "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" } + ] + } + }, + "sort": { + "type": "array", + "description": "Sorting in the search result.", + "items": { "$ref": "#/components/schemas/Sort" } + }, + "aggregations": { "$ref": "#/components/schemas/Aggregations" }, + "fields": { + "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/Include" } + } + }, + "Association": { + "type": "object", + "additionalProperties": { "$ref": "#/components/schemas/Criteria" } + }, + "Include": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { "type": "string" } + } + }, + "Aggregations": { + "type": "array", + "items": { + "anyOf": [ + { "$ref": "#/components/schemas/AggregationMetrics" }, + { + "title": "AggregationEntity", + "allOf": [ + { "$ref": "#/components/schemas/AggregationEntity" }, + { "$ref": "#/components/schemas/SubAggregations" } + ] + }, + { + "title": "AggregationFilter", + "allOf": [ + { "$ref": "#/components/schemas/AggregationFilter" }, + { "$ref": "#/components/schemas/SubAggregations" } + ] + }, + { + "title": "AggregationTerms", + "allOf": [ + { "$ref": "#/components/schemas/AggregationTerms" }, + { "$ref": "#/components/schemas/SubAggregations" } + ] + }, + { + "title": "AggregationHistogram", + "allOf": [ + { "$ref": "#/components/schemas/AggregationHistogram" }, + { "$ref": "#/components/schemas/SubAggregations" } + ] + }, + { + "title": "AggregationRange", + "allOf": [ + { "$ref": "#/components/schemas/AggregationRange" }, + { "$ref": "#/components/schemas/SubAggregations" } + ] + } + ] + } + }, + "SubAggregations": { + "type": "object", + "properties": { + "aggregation": { + "anyOf": [ + { "$ref": "#/components/schemas/AggregationMetrics" }, + { "$ref": "#/components/schemas/AggregationEntity" }, + { "$ref": "#/components/schemas/AggregationFilter" }, + { "$ref": "#/components/schemas/AggregationTerms" }, + { "$ref": "#/components/schemas/AggregationHistogram" }, + { "$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" }, + "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" }, + "order": { "type": "string", "enum": ["ASC", "DESC"] }, + "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", "and", "OR", "or"] }, + "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"] + }, + "CrossSellingElement": { + "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" }, + "apiAlias": { "type": "string", "enum": ["cross_selling_element"] } + }, + "required": ["crossSelling", "products", "total", "apiAlias"] + }, + "CrossSellingElementCollection": { + "type": "array", + "items": { "$ref": "#/components/schemas/CrossSellingElement" } + }, + "CustomerAddressBody": { + "description": "Added since version: 6.0.0.0", + "required": ["countryId", "firstName", "lastName", "city", "street"], + "properties": { + "countryId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "countryStateId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "salutationId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "firstName": { "type": "string" }, + "lastName": { "type": "string" }, + "zipcode": { "type": "string" }, + "city": { "type": "string" }, + "company": { "type": "string" }, + "street": { "type": "string" }, + "department": { "type": "string" }, + "title": { "type": "string" }, + "phoneNumber": { "type": "string" }, + "additionalAddressLine1": { "type": "string" }, + "additionalAddressLine2": { "type": "string" }, + "customFields": { "type": "object" }, + "country": { "$ref": "#/components/schemas/Country" }, + "countryState": { "$ref": "#/components/schemas/CountryState" }, + "salutation": { "$ref": "#/components/schemas/Salutation" } + }, + "type": "object" + }, + "CustomerAddressRead": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "readOnly": true + }, + "customerId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "readOnly": true + }, + "createdAt": { "type": "string", "format": "date-time" }, + "updatedAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "country": { "$ref": "#/components/schemas/Country" }, + "countryState": { + "$ref": "#/components/schemas/CountryState", + "nullable": true + }, + "salutation": { "$ref": "#/components/schemas/Salutation" } + }, + "required": ["customerId", "createdAt", "updatedAt", "country", "salutation"] + }, + "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." + } + } + }, + "FindProductVariantRouteResponse": { + "type": "object", + "properties": { + "foundCombination": { + "type": "object", + "properties": { + "variantId": { "type": "string", "pattern": "^[0-9a-f]{32}$" }, + "options": { "type": "array", "items": { "type": "string" } } + } + } + } + }, + "LineItemType": { + "type": "string", + "enum": ["product", "credit", "custom", "promotion", "discount", "container", "quantity"] + }, + "LineItem": { + "type": "object", + "properties": { + "children": { + "type": "array", + "items": { "$ref": "#/components/schemas/LineItem" } + }, + "cover": { "$ref": "#/components/schemas/ProductMedia" }, + "dataContextHash": { "type": "string" }, + "dataTimestamp": { "type": "string" }, + "deliveryInformation": { + "$ref": "#/components/schemas/CartDeliveryInformation" + }, + "description": { "type": "string" }, + "good": { "type": "boolean" }, + "id": { "type": "string" }, + "label": { "type": "string" }, + "modified": { "type": "boolean" }, + "modifiedByApp": { "type": "boolean" }, + "payload": { "$ref": "#/components/schemas/Product" }, + "price": { + "type": "object", + "properties": { + "apiAlias": { "type": "string", "enum": ["calculated_price"] }, + "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"] + } + }, + "listPrice": { + "oneOf": [{ "$ref": "#/components/schemas/CartListPrice" }, { "type": "null" }] + }, + "quantity": { "type": "number" }, + "referencePrice": { + "oneOf": [{ "$ref": "#/components/schemas/CartPriceReference" }, { "type": "null" }] + }, + "regulationPrice": { + "type": "object", + "properties": { + "price": { "type": "number" }, + "apiAlias": { + "type": "string", + "enum": ["cart_regulation_price"] + } + }, + "nullable": true + }, + "totalPrice": { "type": "number" }, + "unitPrice": { "type": "number" }, + "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"] + }, + "priceDefinition": { + "$ref": "#/components/schemas/CartPriceQuantity" + }, + "quantity": { "type": "number" }, + "quantityInformation": { + "type": "object", + "properties": { + "maxPurchase": { "type": "number" }, + "minPurchase": { "type": "number" }, + "purchaseSteps": { "type": "number" } + } + }, + "referencedId": { "type": "string" }, + "removable": { "type": "boolean" }, + "stackable": { "type": "boolean" }, + "states": { + "type": "array", + "items": { + "type": "string", + "enum": ["is-physical", "is-download"] + } + }, + "type": { "$ref": "#/components/schemas/LineItemType" }, + "uniqueIdentifier": { "type": "string" } + }, + "required": ["id", "type"] + }, + "NavigationRouteResponse": { + "type": "array", + "items": { "$ref": "#/components/schemas/Category" } + }, + "NavigationType": { + "type": "string", + "enum": ["main-navigation", "footer-navigation", "service-navigation"] + }, + "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"] + }, + "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"] + }, + "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" } + } + }, + "required": ["product"] + }, + "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 + }, + "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 + } + } + } + ] + }, + "ProductListingFlags": { + "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.", + "type": "string", + "nullable": true + }, + "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 + } + } + }, + "ProductListingResult": { + "allOf": [ + { "$ref": "#/components/schemas/EntitySearchResult" }, + { + "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": { "type": "integer", "nullable": true }, + "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"] + } + ] + }, + "SalesChannelContext": { + "type": "object", + "properties": { + "token": { + "description": "Context the user session", + "type": "string" + }, + "currentCustomerGroup": { + "type": "object", + "description": "Customer group of the current user", + "properties": { + "name": { "type": "string" }, + "displayGross": { "type": "boolean" } + } + }, + "fallbackCustomerGroup": { + "description": "Fallback group if the default customer group is not applicable", + "type": "object", + "properties": { + "name": { "type": "string" }, + "displayGross": { "type": "boolean" } + } + }, + "currency": { "$ref": "#/components/schemas/Currency" }, + "salesChannel": { + "description": "Information about the current sales channel", + "type": "object", + "properties": { + "typeId": { "type": "string" }, + "languageId": { "type": "string" }, + "currencyId": { "type": "string" }, + "paymentMethodId": { "type": "string" }, + "shippingMethodId": { "type": "string" }, + "countryId": { "type": "string" }, + "navigationCategoryId": { "type": "string" }, + "navigationCategoryDepth": { + "type": "integer", + "format": "int32" + }, + "footerCategoryId": { "type": "string" }, + "serviceCategoryId": { "type": "string" }, + "name": { "type": "string" }, + "shortName": { "type": "string" }, + "accessKey": { "type": "string" }, + "active": { "type": "boolean" }, + "maintenance": { "type": "boolean" }, + "maintenanceIpWhitelist": { "type": "string" }, + "mailHeaderFooterId": { "type": "string" }, + "customerGroupId": { "type": "string" }, + "hreflangActive": { "type": "boolean" }, + "hreflangDefaultDomainId": { "type": "string" }, + "analyticsId": { "type": "string" } + } + }, + "taxRules": { + "type": "array", + "description": "Currently active tax rules and/or rates", + "items": { + "type": "object", + "properties": { + "taxRate": { "type": "number", "format": "float" }, + "name": { "type": "string" } + } + } + }, + "customer": { "$ref": "#/components/schemas/Customer" }, + "paymentMethod": { "$ref": "#/components/schemas/PaymentMethod" }, + "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" }, + "context": { + "description": "Core context with general configuration values and state", + "type": "object", + "properties": { + "versionId": { "type": "string" }, + "currencyId": { "type": "string" }, + "currencyFactor": { "type": "integer" }, + "currencyPrecision": { "type": "integer", "format": "int32" }, + "languageIdChain": { + "type": "array", + "items": { "type": "string" } + }, + "scope": { "type": "string" }, + "source": { "type": "string" }, + "taxState": { "type": "string" }, + "useCache": { "type": "boolean" } + } + } + } + }, + "ShippingMethodPageRouteResponse": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "active": { "type": "boolean" }, + "description": { "type": "string" }, + "deliveryTimeId": { "type": "string" }, + "deliveryTime": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "min": { "type": "integer", "format": "int32" }, + "max": { "type": "integer", "format": "int32" }, + "unit": { "type": "string" } + } + }, + "translations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "shippingMethodId": { "type": "string" }, + "name": { "type": "string" }, + "description": { "type": "string" } + } + } + }, + "orderDeliveries": { + "type": "array", + "items": { + "type": "object", + "properties": { + "orderId": { "type": "string" }, + "shippingOrderAddressId": { "type": "string" }, + "shippingMethodId": { "type": "string" }, + "shippingDateEarliest": { + "type": "string", + "format": "date-time" + }, + "shippingDateLatest": { + "type": "string", + "format": "date-time" + }, + "stateId": { "type": "string" } + } + } + }, + "salesChannelDefaultAssignments": { + "type": "array", + "items": { + "type": "object", + "properties": { + "typeId": { "type": "string" }, + "languageId": { "type": "string" }, + "currencyId": { "type": "string" }, + "paymentMethodId": { "type": "string" }, + "shippingMethodId": { "type": "string" }, + "countryId": { "type": "string" }, + "navigationCategoryId": { "type": "string" }, + "navigationCategoryDepth": { + "type": "integer", + "format": "int32" + }, + "footerCategoryId": { "type": "string" }, + "serviceCategoryId": { "type": "string" }, + "name": { "type": "string" }, + "shortName": { "type": "string" }, + "accessKey": { "type": "string" }, + "active": { "type": "boolean" }, + "maintenance": { "type": "boolean" }, + "maintenanceIpWhitelist": { "type": "string" }, + "mailHeaderFooterId": { "type": "string" }, + "customerGroupId": { "type": "string" }, + "hreflangActive": { "type": "boolean" }, + "hreflangDefaultDomainId": { "type": "string" } + } + } + }, + "salesChannels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "typeId": { "type": "string" }, + "languageId": { "type": "string" }, + "currencyId": { "type": "string" }, + "paymentMethodId": { "type": "string" }, + "shippingMethodId": { "type": "string" }, + "countryId": { "type": "string" }, + "navigationCategoryId": { "type": "string" }, + "navigationCategoryDepth": { + "type": "integer", + "format": "int32" + }, + "footerCategoryId": { "type": "string" }, + "serviceCategoryId": { "type": "string" }, + "name": { "type": "string" }, + "shortName": { "type": "string" }, + "accessKey": { "type": "string" }, + "active": { "type": "boolean" }, + "maintenance": { "type": "boolean" }, + "maintenanceIpWhitelist": { "type": "string" }, + "mailHeaderFooterId": { "type": "string" }, + "customerGroupId": { "type": "string" }, + "hreflangActive": { "type": "boolean" }, + "hreflangDefaultDomainId": { "type": "string" } + } + } + }, + "availabilityRule": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "description": { "type": "string" }, + "priority": { "type": "integer", "format": "int32" }, + "invalid": { "type": "boolean" } + } + }, + "availabilityRuleId": { "type": "string" }, + "prices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "shippingMethodId": { "type": "string" }, + "currencyId": { "type": "string" }, + "ruleId": { "type": "string" }, + "calculation": { "type": "integer", "format": "int32" }, + "quantityStart": { "type": "number", "format": "float" }, + "quantityEnd": { "type": "number", "format": "float" }, + "price": { "type": "number", "format": "float" }, + "calculationRuleId": { "type": "string" } + } + } + }, + "mediaId": { "type": "string" }, + "media": { + "type": "object", + "properties": { + "userId": { "type": "string" }, + "mimeType": { "type": "string" }, + "fileExtension": { "type": "string" }, + "fileSize": { "type": "integer", "format": "int32" }, + "title": { "type": "string" }, + "metaDataRaw": { "type": "string" }, + "mediaTypeRaw": { "type": "string" }, + "uploadedAt": { "type": "string", "format": "date-time" }, + "alt": { "type": "string" }, + "url": { "type": "string" }, + "fileName": { "type": "string" }, + "mediaFolderId": { "type": "string" }, + "private": { "type": "boolean" }, + "thumbnailsRo": { "type": "string" } + } + }, + "tags": { + "type": "array", + "items": { + "type": "object", + "properties": { "name": { "type": "string" } } + } + } + } + } + }, + "Sitemap": { + "type": "object", + "properties": { + "filename": { "type": "string" }, + "created": { "type": "string", "format": "date-time" } + }, + "required": ["filename", "created"] + }, + "SuccessResponse": { + "type": "object", + "properties": { "success": { "type": "boolean" } } + }, + "WishlistLoadRouteResponse": { + "type": "object", + "properties": { + "wishlist": { + "type": "object", + "properties": { + "customerId": { "type": "string" }, + "salesChannelId": { "type": "string" } + } + }, + "products": { "$ref": "#/components/schemas/ProductListingResult" } + } + }, + "BreadcrumbCollection": { + "type": "object", + "properties": { + "breadcrumbs": { + "type": "array", + "items": { "$ref": "#/components/schemas/Breadcrumb" } + }, + "apiAlias": { "type": "string", "enum": ["breadcrumb_collection"] } + }, + "required": ["breadcrumbs", "apiAlias"] + }, + "NaturalLanguageSearchTermResponse": { + "type": "array", + "items": { + "type": "object", + "required": ["term", "reason", "apiAlias"], + "properties": { + "term": { "type": "string" }, + "reason": { "type": "string" }, + "apiAlias": { + "type": "string", + "enum": ["product_natural_language_search_term"] + } + } + } + }, + "SearchByImageSearchTermResponse": { + "type": "array", + "items": { + "type": "object", + "required": ["term", "apiAlias"], + "properties": { + "term": { "type": "string" }, + "apiAlias": { + "type": "string", + "enum": ["product_image_upload_search_term"] + }, + "extensions": { "type": "array", "items": { "type": "object" } } + } + } + }, + "ApprovalRule": { + "properties": { + "id": { "type": "string", "format": "uuid" }, + "businessPartnerCustomerId": { "type": "string" }, + "name": { "type": "string" }, + "priority": { "type": "integer" }, + "description": { "type": "string" }, + "active": { "type": "boolean" }, + "conditions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string" }, + "value": { "type": "string" } + } + } + } + }, + "type": "object" + }, + "PendingOrder": { + "type": "object", + "properties": { + "id": { "type": "string", "format": "uuid" }, + "number": { "type": "string" }, + "reason": { "type": "string" }, + "cartPayload": { + "oneOf": [{ "type": "object" }, { "type": "string" }] + }, + "price": { "type": "object" }, + "lineItemCount": { "type": "integer" }, + "employeeId": { "type": "string" }, + "decidedById": { "type": "string" }, + "customerId": { "type": "string" }, + "stateId": { "type": "string" }, + "currencyId": { "type": "string" }, + "shippingMethodId": { "type": "string" }, + "paymentMethodId": { "type": "string" }, + "countryId": { "type": "string" }, + "salesChannelId": { "type": "string" }, + "languageId": { "type": "string" }, + "billingAddress": { "type": "object", "nullable": true }, + "language": { "type": "object", "nullable": true }, + "country": { "type": "object", "nullable": true }, + "currency": { "type": "object", "nullable": true }, + "salesChannel": { "type": "object", "nullable": true }, + "approvalRuleId": { "type": "string" }, + "itemRounding": { "type": "object", "nullable": true }, + "totalRounding": { "type": "object", "nullable": true }, + "taxStatus": { "type": "string" }, + "amountTotal": { "type": "number", "nullable": true }, + "amountNet": { "type": "number", "nullable": true }, + "originalPrice": { "type": "number", "nullable": true } + } + }, + "AbstractDynamicPageOpenedPayload": { + "type": "object", + "required": ["type"], + "properties": { + "type": { + "type": "string", + "description": "The type of the current dynamic page" + }, + "opened": { "type": "boolean", "default": true } + } + }, + "AttendeeProductCollectionLastSeenResponse": { + "type": "object", + "properties": { + "collection": { + "type": "object", + "properties": { + "lastSeen": { + "type": "array", + "items": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "Product ids from the collection" + } + } + } + } + }, + "example": { + "collection": { + "lastSeen": ["0015b3d83df441e490da7f6880a9c2da", "60793d25cbab473f92c405ce0525f3ec"] + } + } + }, + "AttendeeProductCollectionResponse": { + "type": "object", + "properties": { + "collection": { + "type": "object", + "anyOf": [ + { + "type": "object", + "properties": { + "liked": { + "type": "array", + "items": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "Product ids from the collection" + } + } + } + }, + { + "type": "object", + "properties": { + "disliked": { + "type": "array", + "items": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "Product ids from the collection" + } + } + } + } + ] + } + }, + "example": { + "collection": { + "liked": ["0015b3d83df441e490da7f6880a9c2da", "60793d25cbab473f92c405ce0525f3ec"] + } + } + }, + "AttendeeRespondInvitationResponse": { + "type": "object", + "properties": { + "appointment": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The appointment id" + }, + "accessibleFrom": { + "type": "string", + "format": "date-time", + "description": "The time the client can access the appointment" + }, + "accessibleTo": { + "type": "string", + "format": "date-time", + "description": "The time the appointment will be closed, the client can not access" + }, + "status": { + "anyOf": [{ "type": "string", "enum": ["started", "ended"] }, { "type": "null" }], + "description": "The appointment status" + } + } + }, + "answer": { + "type": "string", + "enum": ["accepted", "maybe", "declined"], + "description": "The invitation status that client responded to" + } + } + }, + "ClientPresentationStateResponse": { + "type": "object", + "properties": { + "stateForAll": { "$ref": "#/components/schemas/StateForAll" }, + "stateForClients": { "$ref": "#/components/schemas/StateForClients" }, + "stateForMe": { "$ref": "#/components/schemas/StateForMe" } + }, + "example": { + "stateForAll": { + "currentGuideProductId": null, + "lastActiveGuideSection": null, + "currentPageId": null, + "currentSectionId": null, + "currentSlideAlias": 0, + "currentDynamicPage": null, + "started": false, + "running": false, + "ended": false, + "startedAt": null, + "endedAt": null, + "accessibleFrom": null, + "accessibleTo": null, + "appointmentMode": "guided", + "videoAudioSettings": "both", + "videoRoomUrl": "", + "attendeeRestrictionType": "open", + "productDetailDefaultPageId": "bea211b5099241719830df8026624f7f", + "quickviewPageId": "182d3f7f988044adbba449b70c8bc472", + "productListingDefaultPageId": "33e88c7994fa4cf79a1265e5105b93b2", + "allowUserActionsForGuide": true, + "broadcastMode": false, + "extensions": [] + }, + "stateForClients": { + "videoClientToken": null, + "hoveredElementId": null, + "extensions": [] + }, + "stateForMe": { + "attendeeName": " admin", + "guideCartPermissionsGranted": false, + "attendeeSubmittedAt": null, + "extensions": [] + }, + "apiAlias": "swag_digital_sales_rooms_content_presentation_state_sales_channel_get_get_client_presentation_state_struct" + } + }, + "CreateInteractionRequestBody": { + "type": "object", + "required": ["name"], + "properties": { + "name": { "$ref": "#/components/schemas/InteractionName" }, + "payload": { + "type": "object", + "oneOf": [ + { "$ref": "#/components/schemas/ProductPayload" }, + { "$ref": "#/components/schemas/PageViewedPayload" }, + { "$ref": "#/components/schemas/EmptyPayload" }, + { "$ref": "#/components/schemas/DynamicPageOpenedPayload" }, + { + "$ref": "#/components/schemas/DynamicProductPageOpenedPayload" + }, + { + "$ref": "#/components/schemas/DynamicProductListingPageOpenedPayload" + }, + { "$ref": "#/components/schemas/ToggleBroadcastModePayload" }, + { "$ref": "#/components/schemas/GuideHoveredPayload" } + ], + "descripton": "depends on the name of the interaction which payload has to be sent" + }, + "triggeredAt": { + "type": "string", + "description": "The time when the interaction was triggered", + "default": "now" + }, + "lifeTimeInSeconds": { + "type": "integer", + "description": "The time in seconds how long the interaction should be stored in the database", + "default": -1 + } + } + }, + "DynamicPageOpenedPayload": { + "allOf": [{ "$ref": "#/components/schemas/AbstractDynamicPageOpenedPayload" }] + }, + "DynamicProductListingPageOpenedPayload": { + "allOf": [{ "$ref": "#/components/schemas/AbstractDynamicPageOpenedPayload" }], + "required": ["page"], + "properties": { + "page": { + "type": "integer", + "description": "Current page position in the pagination" + } + } + }, + "DynamicProductPageOpenedPayload": { + "allOf": [{ "$ref": "#/components/schemas/AbstractDynamicPageOpenedPayload" }], + "required": ["productId"], + "properties": { + "productId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "the id from the product which is shown on the dynamic page" + } + } + }, + "EmptyPayload": { "type": "object", "properties": [] }, + "GuideHoveredPayload": { + "type": "object", + "properties": { + "$hoveredElementId": { + "anyOf": [ + { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "the id from the product which is used in the interaction" + }, + { "type": "null" } + ] + } + } + }, + "InteractionName": { + "type": "string", + "description": "the name/type of the interaction", + "enum": [ + "product.viewed", + "dynamicPage.opened", + "dynamicProductPage.opened", + "dynamicPage.closed", + "page.viewed", + "attendee.product.collection.liked", + "attendee.product.collection.disliked", + "attendee.product.collection.removed", + "remote.checkout.accepted", + "remote.checkout.declined", + "keep.alive", + "quickview.opened", + "quickview.closed", + "dynamicProductListingPage.opened", + "dynamicProductListingPage.loadedMore", + "remote.checkout.denied", + "guide.hovered", + "broadcastMode.toggled" + ] + }, + "JoinAppointmentResponse": { + "type": "object", + "description": "Includes all data you will need to attend to a appointment.", + "properties": { + "mercureSubscriberTopics": { + "type": "array", + "items": { "type": "string", "description": "mercure topic" }, + "description": "The topics to which the attendee/guide can subscribe for" + }, + "mercurePublisherTopic": { + "oneOf": [{ "type": "string" }, { "type": "null" }], + "description": "The topic to which the attendee/guide can send updates" + }, + "JWTMercureSubscriberToken": { + "oneOf": [{ "type": "string" }, { "type": "null" }], + "description": "The JWT mercure token to publish updates" + }, + "mercureHubPublicUrl": { + "oneOf": [{ "type": "string" }, { "type": "null" }], + "description": "The mercure hub url to connect for subscribing and updating" + }, + "JWTMercurePublisherToken": { + "oneOf": [{ "type": "string" }, { "type": "null" }], + "description": "The JWT mercure token to subscribe for updates" + }, + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The appointment id" + }, + "newContextToken": { + "type": "string", + "description": "The new context token will be used in the header (sw-context-token) for calling the other routes" + }, + "attendeeId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The created Id for the attendee" + }, + "salesChannelId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The id of the current sales channel" + }, + "salesChannelName": { + "type": "string", + "description": "The name of the current sales channel" + }, + "appointmentName": { + "type": "string", + "description": "The name of the appointment" + }, + "presentationGuideMode": { + "type": "string", + "enum": ["self", "guided"], + "description": "The type of the appointment" + }, + "isPreview": { + "type": "boolean", + "description": "To see if it's a preview appointment" + } + }, + "example": { + "mercureSubscriberTopics": [ + "gs-guide-actions-2d2c358f1ca04098aacf12873c2eed82", + "gs-presentation-state-for-client-2d2c358f1ca04098aacf12873c2eed82", + "gs-presentation-state-for-all-2d2c358f1ca04098aacf12873c2eed82" + ], + "mercurePublisherTopic": "gs-client-actions-2d2c358f1ca04098aacf12873c2eed82", + "JWTMercureSubscriberToken": "jwt token for subscribing to updates", + "mercureHubPublicUrl": "http://localhost:8081/.well-known/mercure", + "JWTMercurePublisherToken": "jwt token for publishing updates", + "id": "2d2c358f1ca04098aacf12873c2eed82", + "newContextToken": "new context token to call the other routes", + "attendeeId": "b6358241e4ad4a4e99d0f729d21d63be", + "salesChannelId": "4a791ec7f9ff46b2ad67ae2f562891d3", + "salesChannelName": "Storefront", + "appointmentName": "Test Appointment", + "presentationGuideMode": "guided", + "isPreview": false, + "apiAlias": "swag_digital_sales_rooms_content_appointment_struct_appointment_join_struct" + } + }, + "PageViewedPayload": { + "type": "object", + "required": ["pageId", "sectionId"], + "properties": { + "pageId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "the id from the page which was viewed" + }, + "sectionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "the id from the section within the page which was viewed" + } + } + }, + "PresentationCmsPage": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The presentation cms page id" + }, + "title": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "The title of presentation cms page" + }, + "presentationId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The presentation using this presentation cms page" + }, + "dsrPresentationVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "cmsPageId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The CMS page id the presentation using" + }, + "cmsPage": { "$ref": "#/components/schemas/CmsPage" }, + "cmsPageVersionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The CMS page version id the presentation using" + }, + "productId": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }], + "description": "The product id is assigned to presentation if it's product detail" + }, + "productStreamId": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }], + "description": "The product stream id is assigned to presentation if it's product listing" + }, + "pickedProductIds": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "Product id" + } + }, + { "type": "null" } + ], + "description": "The product id is assigned to presentation if it's product listing or instant listing" + }, + "position": { + "type": "integer", + "description": "The position of slide" + }, + "isInstantListing": { + "type": "boolean", + "description": "True if this slide is an instant listing" + }, + "createdAt": { "type": "string", "format": "date-time" }, + "updatedAt": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, + "customFields": { + "anyOf": [{ "type": "object" }, { "type": "null" }] + }, + "translated": { + "type": "object", + "properties": { + "title": { "anyOf": [{ "type": "string" }, { "type": "null" }] } + } + } + } + }, + "PresentationSlideData": { + "type": "object", + "allOf": [ + { + "properties": { + "cmsPage": { "$ref": "#/components/schemas/CmsPage" }, + "extensions": { + "type": "object", + "properties": { + "cmsPageRelation": { + "$ref": "#/components/schemas/PresentationCmsPage" + } + } + } + } + } + ], + "oneOf": [ + { + "type": "object", + "description": "A product result contains product information and product variant/configuration information. It corresponds with presentation product page", + "properties": { + "product": { "$ref": "#/components/schemas/Product" }, + "configurator": { + "type": "array", + "items": { "$ref": "#/components/schemas/PropertyGroup" } + } + } + }, + { + "type": "object", + "description": "A category result contains category information. It corresponds with a presentation category page", + "properties": { + "category": { "$ref": "#/components/schemas/Category" } + } + }, + { + "type": "null", + "description": "A landing page result contains no specific fields." + } + ], + "example": { + "extensions": { + "cmsPageRelation": { + "translated": { "title": null }, + "createdAt": "2023-08-09T11:00:13.160+00:00", + "updatedAt": null, + "presentationId": "506cce706e914c1e8b083f05670d85c4", + "cmsPageId": "33e88c7994fa4cf79a1265e5105b93b2", + "title": null, + "productId": null, + "productStreamId": null, + "position": 2, + "isInstantListing": false, + "cmsPage": { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "name": "Default Digital Sales Rooms product listing page", + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "name": "Default Digital Sales Rooms product listing page", + "type": "presentation_product_list", + "entity": null, + "sections": [ + { + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "default", + "blocks": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-listing", + "slots": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "filters": { + "value": "manufacturer-filter,rating-filter,price-filter,shipping-free-filter,property-filter", + "source": "static" + }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "showSorting": { + "value": true, + "source": "static" + }, + "defaultSorting": { + "value": "", + "source": "static" + }, + "useCustomSorting": { + "value": false, + "source": "static" + }, + "availableSortings": { + "value": [], + "source": "static" + }, + "propertyWhitelist": { + "value": [], + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-listing", + "slot": "content", + "block": null, + "blockId": "96ea8b9676a5461c9149d205d792ecf2", + "config": { + "filters": { + "value": "manufacturer-filter,rating-filter,price-filter,shipping-free-filter,property-filter", + "source": "static" + }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "showSorting": { + "value": true, + "source": "static" + }, + "defaultSorting": { + "value": "", + "source": "static" + }, + "useCustomSorting": { + "value": false, + "source": "static" + }, + "availableSortings": { + "value": [], + "source": "static" + }, + "propertyWhitelist": { + "value": [], + "source": "static" + } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + } + ], + "sectionId": "2229e1f1208a4b8086baf7aec84f5e2c", + "position": 0, + "name": null, + "sectionPosition": "main", + "marginTop": "20px", + "marginBottom": "20px", + "marginLeft": "20px", + "marginRight": "20px", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsSectionVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_block" + } + ], + "pageId": "33e88c7994fa4cf79a1265e5105b93b2", + "page": null, + "position": 0, + "sizingMode": "boxed", + "mobileBehavior": "wrap", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsPageVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_section" + } + ], + "translations": null, + "cssClass": null, + "config": null, + "previewMediaId": null, + "previewMedia": null, + "landingPages": null, + "id": "33e88c7994fa4cf79a1265e5105b93b2", + "customFields": null, + "apiAlias": "cms_page" + }, + "pickedProductIds": null, + "dsrPresentationVersionId": "213769ba28dd4ee788bdb49dc9ce53d2", + "id": "4ee08e142ed046eb99681594f67599f1", + "customFields": null, + "cmsPageVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "apiAlias": "dsr_presentation_cms_page" + } + }, + "cmsPage": { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "name": "Default Digital Sales Rooms product listing page", + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "name": "Default Digital Sales Rooms product listing page", + "type": "presentation_product_list", + "entity": null, + "sections": [ + { + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "default", + "blocks": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-listing", + "slots": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "filters": { + "value": "manufacturer-filter,rating-filter,price-filter,shipping-free-filter,property-filter", + "source": "static" + }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "showSorting": { + "value": true, + "source": "static" + }, + "defaultSorting": { + "value": "", + "source": "static" + }, + "useCustomSorting": { + "value": false, + "source": "static" + }, + "availableSortings": { + "value": [], + "source": "static" + }, + "propertyWhitelist": { + "value": [], + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-listing", + "slot": "content", + "block": null, + "blockId": "96ea8b9676a5461c9149d205d792ecf2", + "config": { + "filters": { + "value": "manufacturer-filter,rating-filter,price-filter,shipping-free-filter,property-filter", + "source": "static" + }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "showSorting": { "value": true, "source": "static" }, + "defaultSorting": { "value": "", "source": "static" }, + "useCustomSorting": { + "value": false, + "source": "static" + }, + "availableSortings": { + "value": [], + "source": "static" + }, + "propertyWhitelist": { + "value": [], + "source": "static" + } + }, + "fieldConfig": null, + "translations": null, + "data": { + "listing": { + "elements": [ + { + "versionId": null, + "translated": [], + "createdAt": null, + "updatedAt": null, + "parentId": null, + "childCount": null, + "taxId": null, + "manufacturerId": null, + "unitId": null, + "active": null, + "displayGroup": null, + "manufacturerNumber": null, + "ean": null, + "sales": null, + "productNumber": null, + "stock": null, + "availableStock": null, + "available": null, + "deliveryTimeId": null, + "deliveryTime": null, + "restockTime": null, + "isCloseout": null, + "purchaseSteps": null, + "maxPurchase": null, + "minPurchase": null, + "purchaseUnit": null, + "referenceUnit": null, + "shippingFree": null, + "markAsTopseller": null, + "weight": null, + "width": null, + "height": null, + "length": null, + "releaseDate": null, + "categoryTree": null, + "streamIds": null, + "optionIds": null, + "propertyIds": null, + "name": null, + "keywords": null, + "description": null, + "metaDescription": null, + "metaTitle": null, + "packUnit": null, + "packUnitPlural": null, + "tax": null, + "manufacturer": null, + "unit": null, + "cover": null, + "parent": null, + "children": null, + "media": null, + "cmsPageId": null, + "cmsPage": null, + "translations": null, + "categories": null, + "properties": null, + "options": null, + "configuratorSettings": null, + "categoriesRo": null, + "coverId": null, + "categoryIds": null, + "productReviews": null, + "ratingAverage": null, + "mainCategories": null, + "seoUrls": null, + "crossSellings": null, + "canonicalProductId": null, + "canonicalProduct": null, + "streams": null, + "downloads": null, + "states": [], + "id": "a32702bb0b1443e3881c3b9a38c09169", + "customFields": null, + "apiAlias": "product" + } + ], + "aggregations": [], + "page": 1, + "limit": null, + "entity": "product", + "total": 0, + "states": [], + "apiAlias": "dal_entity_search_result" + }, + "apiAlias": "cms_product_listing" + }, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + } + ], + "sectionId": "2229e1f1208a4b8086baf7aec84f5e2c", + "position": 0, + "name": null, + "sectionPosition": "main", + "marginTop": "20px", + "marginBottom": "20px", + "marginLeft": "20px", + "marginRight": "20px", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsSectionVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_block" + } + ], + "pageId": "33e88c7994fa4cf79a1265e5105b93b2", + "page": null, + "position": 0, + "sizingMode": "boxed", + "mobileBehavior": "wrap", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsPageVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_section" + } + ], + "translations": null, + "cssClass": null, + "config": null, + "previewMediaId": null, + "previewMedia": null, + "landingPages": null, + "id": "33e88c7994fa4cf79a1265e5105b93b2", + "customFields": null, + "apiAlias": "cms_page" + }, + "category": { + "versionId": null, + "translated": { "breadcrumb": [] }, + "createdAt": null, + "updatedAt": null, + "afterCategoryId": null, + "parentId": null, + "mediaId": null, + "name": null, + "breadcrumb": [], + "path": null, + "level": null, + "active": null, + "childCount": null, + "visibleChildCount": 0, + "displayNestedProducts": null, + "parent": null, + "children": null, + "translations": null, + "media": null, + "cmsPageId": null, + "cmsPageIdSwitched": false, + "cmsPage": null, + "linkType": null, + "linkNewTab": null, + "internalLink": null, + "externalLink": null, + "visible": null, + "type": null, + "productAssignmentType": null, + "description": null, + "metaTitle": null, + "metaDescription": null, + "keywords": null, + "seoUrls": null, + "customEntityTypeId": null, + "id": "34f21c5eb6d54a939f10973204aa5f08", + "customFields": null, + "apiAlias": "category" + }, + "apiAlias": "pwa_page_result" + } + }, + "PresentationStructure": { + "type": "object", + "properties": { + "cmsPageResults": { + "type": "array", + "items": { + "type": "object", + "properties": { + "resourceType": { + "type": "string", + "description": "The type of presentation page", + "default": "frontend.presentation.page" + }, + "resourceIdentifier": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The presentation id" + }, + "cmsPage": { "$ref": "#/components/schemas/CmsPage" } + } + } + }, + "navigation": { + "type": "array", + "items": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "description": "The slide position" + }, + "sectionId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The section id" + }, + "sectionName": { + "anyOf": [{ "type": "string" }, { "type": "null" }], + "description": "The section name" + }, + "groupId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The presentation CMS page id" + }, + "groupName": { + "type": "string", + "description": "The slide name" + }, + "cmsPageId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "The CMS page id" + }, + "isInstantListing": { + "type": "boolean", + "description": "If the slide is an instant listing" + }, + "pickedProductsCount": { + "type": "integer", + "description": "The number of picked products of the instant listing" + }, + "notes": { + "type": "array", + "items": { "$ref": "#/components/schemas/CmsSlot" }, + "default": [] + } + } + } + } + }, + "example": { + "cmsPageResults": [ + { + "resourceType": "frontend.presentation.page", + "resourceIdentifier": "45a2b8ad0bb544e48f61eab564a2171c", + "cmsPage": { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "name": "Default Digital Sales Rooms product listing page", + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": "2023-08-10T04:30:28.668+00:00", + "name": "Default Digital Sales Rooms product listing page", + "type": "presentation_product_list", + "entity": null, + "sections": [ + { + "extensions": { "translations": [] }, + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": "2023-08-10T04:30:28.668+00:00", + "type": "default", + "blocks": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": "2023-08-10T04:30:28.667+00:00", + "type": "product-listing", + "slots": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "filters": { + "value": "manufacturer-filter,rating-filter,price-filter,shipping-free-filter,property-filter", + "source": "static" + }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "showSorting": { + "value": true, + "source": "static" + }, + "defaultSorting": { + "value": "", + "source": "static" + }, + "useCustomSorting": { + "value": false, + "source": "static" + }, + "availableSortings": { + "value": [], + "source": "static" + }, + "propertyWhitelist": { + "value": [], + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-listing", + "slot": "content", + "block": null, + "blockId": "96ea8b9676a5461c9149d205d792ecf2", + "config": { + "filters": { + "value": "manufacturer-filter,rating-filter,price-filter,shipping-free-filter,property-filter", + "source": "static" + }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "showSorting": { + "value": true, + "source": "static" + }, + "defaultSorting": { + "value": "", + "source": "static" + }, + "useCustomSorting": { + "value": false, + "source": "static" + }, + "availableSortings": { + "value": [], + "source": "static" + }, + "propertyWhitelist": { + "value": [], + "source": "static" + } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + } + ], + "sectionId": "2229e1f1208a4b8086baf7aec84f5e2c", + "position": 1, + "name": null, + "sectionPosition": "main", + "marginTop": "20px", + "marginBottom": "20px", + "marginLeft": "20px", + "marginRight": "20px", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsSectionVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": { + "mobile": true, + "tablet": true, + "desktop": true + }, + "customFields": null, + "apiAlias": "cms_block" + } + ], + "pageId": "33e88c7994fa4cf79a1265e5105b93b2", + "page": null, + "position": 0, + "sizingMode": "boxed", + "mobileBehavior": "wrap", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsPageVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": { + "mobile": true, + "tablet": true, + "desktop": true + }, + "customFields": null, + "apiAlias": "cms_section" + } + ], + "translations": null, + "cssClass": null, + "config": null, + "previewMediaId": null, + "previewMedia": null, + "landingPages": null, + "id": "33e88c7994fa4cf79a1265e5105b93b2", + "customFields": null, + "apiAlias": "cms_page" + }, + "apiAlias": "pwa_page_result" + }, + { + "resourceType": "frontend.presentation.page", + "resourceIdentifier": "45a2b8ad0bb544e48f61eab564a2171c", + "cmsPage": { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "name": "Default Digital Sales Rooms product detail page", + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "name": "Default Digital Sales Rooms product detail page", + "type": "presentation_product_detail", + "entity": null, + "sections": [ + { + "extensions": { "translations": [] }, + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "default", + "blocks": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-heading", + "slots": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { "config": [], "customFields": [] }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "like", + "slot": "right", + "block": null, + "blockId": "c0d3daba2e244122947438c28f776d41", + "config": [], + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + }, + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "content": { + "value": "product.name", + "source": "mapped" + }, + "verticalAlign": { + "value": null, + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-name", + "slot": "left", + "block": null, + "blockId": "c0d3daba2e244122947438c28f776d41", + "config": { + "content": { + "value": "product.name", + "source": "mapped" + }, + "verticalAlign": { + "value": null, + "source": "static" + } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + } + ], + "sectionId": "f4aaa27972314e3c9b7f3bb35c7f8a10", + "position": 0, + "name": null, + "sectionPosition": "main", + "marginTop": "0", + "marginBottom": "20px", + "marginLeft": "0", + "marginRight": "0", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsSectionVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_block" + }, + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "image-gallery-big", + "slots": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "zoom": { "value": true, "source": "static" }, + "minHeight": { + "value": "430px", + "source": "static" + }, + "fullScreen": { + "value": true, + "source": "static" + }, + "displayMode": { + "value": "contain", + "source": "static" + }, + "sliderItems": { + "value": "product.media", + "source": "mapped" + }, + "bigImageMode": { + "value": true, + "source": "static" + }, + "verticalAlign": { + "value": null, + "source": "static" + }, + "navigationDots": { + "value": "inside", + "source": "static" + }, + "galleryPosition": { + "value": "left", + "source": "static" + }, + "navigationArrows": { + "value": "inside", + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "image-gallery", + "slot": "imageGallery", + "block": null, + "blockId": "47cc4a3919794162982ea83f64a836fe", + "config": { + "zoom": { "value": true, "source": "static" }, + "minHeight": { + "value": "430px", + "source": "static" + }, + "fullScreen": { + "value": true, + "source": "static" + }, + "displayMode": { + "value": "contain", + "source": "static" + }, + "sliderItems": { + "value": "product.media", + "source": "mapped" + }, + "bigImageMode": { + "value": true, + "source": "static" + }, + "verticalAlign": { + "value": null, + "source": "static" + }, + "navigationDots": { + "value": "inside", + "source": "static" + }, + "galleryPosition": { + "value": "left", + "source": "static" + }, + "navigationArrows": { + "value": "inside", + "source": "static" + } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + } + ], + "sectionId": "f4aaa27972314e3c9b7f3bb35c7f8a10", + "position": 1, + "name": null, + "sectionPosition": "main", + "marginTop": "20px", + "marginBottom": "20px", + "marginLeft": "20px", + "marginRight": "20px", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsSectionVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_block" + }, + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "text-two-column", + "slots": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "product": { + "value": null, + "source": "static" + }, + "alignment": { + "value": null, + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "buy-box", + "slot": "right", + "block": null, + "blockId": "095cd9a4eb49493aa95ea1e7a84a9503", + "config": { + "product": { "value": null, "source": "static" }, + "alignment": { "value": null, "source": "static" } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + }, + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "product": { + "value": null, + "source": "static" + }, + "alignment": { + "value": null, + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-description-reviews", + "slot": "left", + "block": null, + "blockId": "095cd9a4eb49493aa95ea1e7a84a9503", + "config": { + "product": { "value": null, "source": "static" }, + "alignment": { "value": null, "source": "static" } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + } + ], + "sectionId": "f4aaa27972314e3c9b7f3bb35c7f8a10", + "position": 2, + "name": null, + "sectionPosition": "main", + "marginTop": "20px", + "marginBottom": "20px", + "marginLeft": "20px", + "marginRight": "20px", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsSectionVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_block" + }, + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "cross-selling", + "slots": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "product": { + "value": null, + "source": "static" + }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "elMinWidth": { + "value": "300px", + "source": "static" + }, + "displayMode": { + "value": "standard", + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "cross-selling", + "slot": "content", + "block": null, + "blockId": "2d69edd4faab493baa056c81ea8d131f", + "config": { + "product": { "value": null, "source": "static" }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "elMinWidth": { + "value": "300px", + "source": "static" + }, + "displayMode": { + "value": "standard", + "source": "static" + } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + } + ], + "sectionId": "f4aaa27972314e3c9b7f3bb35c7f8a10", + "position": 3, + "name": null, + "sectionPosition": "main", + "marginTop": "0", + "marginBottom": "0", + "marginLeft": "0", + "marginRight": "0", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsSectionVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_block" + } + ], + "pageId": "bea211b5099241719830df8026624f7f", + "page": null, + "position": 0, + "sizingMode": "boxed", + "mobileBehavior": "wrap", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsPageVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_section" + } + ], + "translations": null, + "cssClass": null, + "config": null, + "previewMediaId": null, + "previewMedia": null, + "landingPages": null, + "id": "bea211b5099241719830df8026624f7f", + "customFields": null, + "apiAlias": "cms_page" + }, + "apiAlias": "pwa_page_result" + }, + { + "resourceType": "frontend.presentation.page", + "resourceIdentifier": "45a2b8ad0bb544e48f61eab564a2171c", + "cmsPage": { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "name": "Ended presentation page", + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "name": "Ended presentation page", + "type": "presentation_product_list", + "entity": null, + "sections": [ + { + "extensions": { "translations": [] }, + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "default", + "blocks": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "text-hero", + "slots": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "content": { + "value": "

The live presentation ended

\n
\n

Thank you for your attention!

Below you can find all products wich were presented to you.

", + "source": "static" + }, + "verticalAlign": { + "value": null, + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "text", + "slot": "content", + "block": null, + "blockId": "c49b01e9c6624973b9cdd1992d3c009a", + "config": { + "content": { + "value": "

The live presentation ended

\n
\n

Thank you for your attention!

Below you can find all products wich were presented to you.

", + "source": "static" + }, + "verticalAlign": { + "value": null, + "source": "static" + } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + } + ], + "sectionId": "0a5e89814463470684a734b975add4ed", + "position": 0, + "name": null, + "sectionPosition": "main", + "marginTop": "20px", + "marginBottom": "20px", + "marginLeft": "20px", + "marginRight": "20px", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsSectionVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_block" + }, + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": [], + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-listing", + "slots": [ + { + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "filters": { + "value": "manufacturer-filter,rating-filter,price-filter,shipping-free-filter,property-filter", + "source": "static" + }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "showSorting": { + "value": true, + "source": "static" + }, + "defaultSorting": { + "value": "", + "source": "static" + }, + "useCustomSorting": { + "value": false, + "source": "static" + }, + "availableSortings": { + "value": [], + "source": "static" + }, + "propertyWhitelist": { + "value": [], + "source": "static" + } + }, + "customFields": [] + }, + "createdAt": "2023-08-03T17:24:09.000+00:00", + "updatedAt": null, + "type": "product-listing", + "slot": "content", + "block": null, + "blockId": "0a13f5daa9be4e7b8ed5e3ecaba79fe6", + "config": { + "filters": { + "value": "manufacturer-filter,rating-filter,price-filter,shipping-free-filter,property-filter", + "source": "static" + }, + "boxLayout": { + "value": "standard", + "source": "static" + }, + "showSorting": { + "value": true, + "source": "static" + }, + "defaultSorting": { + "value": "", + "source": "static" + }, + "useCustomSorting": { + "value": false, + "source": "static" + }, + "availableSortings": { + "value": [], + "source": "static" + }, + "propertyWhitelist": { + "value": [], + "source": "static" + } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "customFields": null, + "apiAlias": "cms_slot" + } + ], + "sectionId": "0a5e89814463470684a734b975add4ed", + "position": 1, + "name": null, + "sectionPosition": "main", + "marginTop": "20px", + "marginBottom": "20px", + "marginLeft": "20px", + "marginRight": "20px", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsSectionVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_block" + } + ], + "pageId": "8ea80092faa744559409f3e9f7adcc6b", + "page": null, + "position": 0, + "sizingMode": "boxed", + "mobileBehavior": "wrap", + "backgroundColor": null, + "backgroundMediaId": null, + "backgroundMedia": null, + "backgroundMediaMode": "cover", + "cssClass": null, + "cmsPageVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "visibility": null, + "customFields": null, + "apiAlias": "cms_section" + } + ], + "translations": null, + "cssClass": null, + "config": null, + "previewMediaId": null, + "previewMedia": null, + "landingPages": null, + "id": "8ea80092faa744559409f3e9f7adcc6b", + "customFields": null, + "apiAlias": "cms_page" + }, + "apiAlias": "pwa_page_result" + } + ], + "navigation": [ + { + "groupName": "Default Digital Sales Rooms product listing page", + "groupId": "468b0e34237a44ad8f8a8d5e0b72b78f", + "cmsPageId": "33e88c7994fa4cf79a1265e5105b93b2", + "name": null, + "id": "2229e1f1208a4b8086baf7aec84f5e2c", + "index": 1, + "notes": [ + { + "extensions": { + "foreignKeys": { + "extensions": [], + "apiAlias": "cms_slot_foreign_keys_extension" + } + }, + "_uniqueIdentifier": "de28c711c20b4ad0a54871d5a23109fc", + "versionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "translated": { + "config": { + "content": { + "value": "

Lorem Ipsum dolor sit amet

\n

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, \n sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, \n sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. \n Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \n Lorem ipsum dolor sit amet, consetetur sadipscing elitr, \n sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \n At vero eos et accusam et justo duo dolores et ea rebum. \n Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

", + "source": "static" + }, + "verticalAlign": { "value": null, "source": "static" } + }, + "customFields": [] + }, + "createdAt": "2023-08-10T04:30:28.649+00:00", + "updatedAt": null, + "type": "notes", + "slot": "content", + "block": null, + "blockId": "978ca9beff6e4edca6d5263fac254e13", + "config": { + "content": { + "value": "

Lorem Ipsum dolor sit amet

\n

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, \n sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, \n sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. \n Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \n Lorem ipsum dolor sit amet, consetetur sadipscing elitr, \n sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. \n At vero eos et accusam et justo duo dolores et ea rebum. \n Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

", + "source": "static" + }, + "verticalAlign": { "value": null, "source": "static" } + }, + "fieldConfig": null, + "translations": null, + "data": null, + "locked": false, + "cmsBlockVersionId": "0fa91ce3e96a4bc2be4bd9ce752c3425", + "id": "de28c711c20b4ad0a54871d5a23109fc", + "customFields": null + } + ] + }, + { + "groupName": "Default Digital Sales Rooms product detail page", + "groupId": "52f1e61cd45945a0b72bd613d1268d65", + "cmsPageId": "bea211b5099241719830df8026624f7f", + "name": null, + "id": "f4aaa27972314e3c9b7f3bb35c7f8a10", + "index": 2, + "notes": [] + }, + { + "groupName": "Ended presentation page", + "groupId": "b073190abe03407993f41b8d5bc8ba57", + "cmsPageId": "8ea80092faa744559409f3e9f7adcc6b", + "name": null, + "id": "0a5e89814463470684a734b975add4ed", + "index": 3, + "notes": [] + } + ], + "apiAlias": "pwa_page_result" + } + }, + "ProductPayload": { + "type": "object", + "required": ["productId"], + "properties": { + "productId": { + "type": "string", + "pattern": "^[0-9a-f]{32}$", + "description": "the id from the product which is used in the interaction" + } + } + }, + "StateForAll": { + "type": "object", + "properties": { + "currentGuideProductId": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }] + }, + "lastActiveGuideSection": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }] + }, + "currentPageId": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }] + }, + "currentSectionId": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }] + }, + "currentSlideAlias": { "type": "integer", "default": 0 }, + "currentDynamicPage": { + "$ref": "#/components/schemas/DynamicPageOpenedPayload" + }, + "started": { "type": "boolean", "default": false }, + "running": { "type": "boolean", "default": false }, + "ended": { "type": "boolean", "default": false }, + "startedAt": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, + "endedAt": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, + "accessibleFrom": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, + "accessibleTo": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, + "appointmentMode": { "type": "string", "enum": ["guided", "self"] }, + "videoAudioSettings": { + "type": "string", + "enum": ["both", "none", "audio-only"], + "default": "none" + }, + "videoRoomUrl": { "type": "string", "default": "" }, + "attendeeRestrictionType": { + "anyOf": [ + { "type": "string", "enum": ["open", "customer", "rules"] }, + { "type": "null" } + ] + }, + "productDetailDefaultPageId": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }] + }, + "quickviewPageId": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }] + }, + "productListingDefaultPageId": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }] + }, + "allowUserActionsForGuide": { "type": "boolean", "default": false }, + "broadcastMode": { "type": "boolean", "default": false }, + "extensions": { "type": "array", "default": [] } + } + }, + "StateForClients": { + "type": "object", + "properties": { + "videoClientToken": { + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "hoveredElementId": { + "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{32}$" }, { "type": "null" }] + }, + "extensions": { "type": "array", "default": [] } + } + }, + "StateForMe": { + "type": "object", + "properties": { + "attendeeName": { + "anyOf": [{ "type": "string" }, { "type": "null" }] + }, + "guideCartPermissionsGranted": { "type": "boolean", "default": null }, + "attendeeSubmittedAt": { + "anyOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, + "extensions": { "type": "array", "default": [] } + } + }, + "ToggleBroadcastModePayload": { + "type": "object", + "required": ["active"], + "properties": { + "active": { + "type": "boolean", + "description": "Status if the mode is toggled to active or inactive" + } + } + }, + "UpdateAttendeeRequestBody": { + "type": "object", + "required": [ + "attendeeName", + "videoUserId", + "guideCartPermissionsGranted", + "attendeeSubmitted" + ], + "properties": { + "attendeeName": { + "type": "string", + "description": "Name of the attendee" + }, + "videoUserId": { + "type": "string", + "description": "Id of the attendee in the video chat tool" + }, + "guideCartPermissionsGranted": { + "type": "boolean", + "description": "The permission for guide cart actions" + }, + "attendeeSubmitted": { + "type": "boolean", + "description": "The first time the attendee submit the update form" + } + } + } + }, + "responses": { + "204": { "description": "No Content" }, + "400": { + "description": "Bad Request", + "content": { + "application/vnd.api+json": { + "schema": { "$ref": "#/components/schemas/failure" }, + "example": { + "errors": [ + { + "status": "400", + "title": "Bad Request", + "description": "Bad parameters for this endpoint. See documentation for the correct ones." + } + ] + } + }, + "application/json": { + "schema": { "$ref": "#/components/schemas/failure" }, + "example": { + "errors": [ + { + "status": "400", + "title": "Bad Request", + "description": "Bad parameters for this endpoint. See documentation for the correct ones." + } + ] + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/vnd.api+json": { + "schema": { "$ref": "#/components/schemas/failure" }, + "example": { + "errors": [ + { + "status": "401", + "title": "Unauthorized", + "description": "Authorization information is missing or invalid." + } + ] + } + }, + "application/json": { + "schema": { "$ref": "#/components/schemas/failure" }, + "example": { + "errors": [ + { + "status": "401", + "title": "Unauthorized", + "description": "Authorization information is missing or invalid." + } + ] + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/vnd.api+json": { + "schema": { "$ref": "#/components/schemas/failure" }, + "example": { + "errors": [ + { + "status": "403", + "title": "Forbidden", + "description": "This operation is restricted to logged in users." + } + ] + } + }, + "application/json": { + "schema": { "$ref": "#/components/schemas/failure" }, + "example": { + "errors": [ + { + "status": "403", + "title": "Forbidden", + "description": "This operation is restricted to logged in users." + } + ] + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/vnd.api+json": { + "schema": { "$ref": "#/components/schemas/failure" }, + "example": { + "errors": [ + { + "status": "404", + "title": "Not Found", + "description": "Resource with given parameter was not found." + } + ] + } + }, + "application/json": { + "schema": { "$ref": "#/components/schemas/failure" }, + "example": { + "errors": [ + { + "status": "404", + "title": "Not Found", + "description": "Resource with given parameter was not found." + } + ] + } + } + } + }, + "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" + } + } + } + } + } + }, + "OpenApi3": { + "description": "Returns information about the store API.", + "content": { + "application/json": { + "schema": { + "properties": { + "openapi": { "type": "string" }, + "info": { + "type": "object", + "properties": { + "title": { "type": "string" }, + "summary": { "type": "string" }, + "description": { "type": "string" }, + "termsOfService": { "type": "string", "format": "uri" }, + "contact": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "email": { "type": "string", "format": "email" } + } + }, + "license": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "identifier": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["name"] + }, + "version": { "type": "string" } + }, + "required": ["title", "version"] + }, + "jsonSchemaDialect": { "type": "string" }, + "webhooks": { "type": "object" }, + "servers": { + "type": "array", + "items": { + "type": "object", + "properties": { "url": { "type": "string" } }, + "required": ["url"] + } + }, + "components": { + "type": "object", + "properties": { + "schemas": { "type": "object" }, + "responses": { "type": "object" }, + "parameters": { "type": "object" }, + "examples": { "type": "object" }, + "requestBodies": { "type": "object" }, + "headers": { "type": "object" }, + "securitySchemes": { "type": "object" }, + "links": { "type": "object" }, + "callbacks": { "type": "object" }, + "pathItems": { "type": "object" } + } + }, + "security": { "type": "array", "items": { "type": "object" } }, + "paths": { "type": "object" }, + "tags": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "description": { "type": "string" }, + "externalDocs": { + "type": "object", + "properties": { + "description": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["url"] + } + }, + "required": ["name"] + } + }, + "externalDocs": { + "type": "object", + "properties": { + "description": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["url"] + } + }, + "type": "object", + "required": ["openapi", "info"] + } + } + } + } + }, + "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": { + "/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": [] }] + } + }, + "/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": { + "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" + }, + "company": { + "description": "Company of the customer. Only required when `accountType` is `business`.", + "type": "string" + }, + "birthdayDay": { + "description": "Birthday day", + "type": "integer" + }, + "birthdayMonth": { + "description": "Birthday month", + "type": "integer" + }, + "birthdayYear": { + "description": "Birthday year", + "type": "integer" + } + }, + "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-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/change-payment-method/{paymentMethodId}": { + "post": { + "tags": ["Profile"], + "summary": "Change the customer's default payment method", + "description": "Changes a customer's default (preselected) payment method.", + "operationId": "changePaymentMethod", + "parameters": [ + { + "name": "paymentMethodId", + "in": "path", + "description": "Identifier of the desired default payment method", + "required": true, + "schema": { "type": "string" } + } + ], + "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.", + "operationId": "readCustomer", + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "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": { + "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": { + "type": "array", + "items": { "$ref": "#/components/schemas/CustomerAddress" } + } + } + } + } + }, + "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": { + "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" + }, + "accountType": { + "description": "Account type of the customer which can be either `private` or `business`.", + "type": "string", + "default": "private" + }, + "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" + ], + "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/CustomerAddress" } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "allOf": [ + { "$ref": "#/components/schemas/CustomerAddress" }, + { "$ref": "#/components/schemas/CustomerAddressRead" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/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": [] }] + } + }, + "/breadcrumb/{id}": { + "get": { + "tags": ["Experimental", "Breadcrumb"], + "summary": "Experimental API, not part of our backwards compatibility promise, thus this API can introduce breaking changes at any time.", + "description": "Perform search to get category or product breadcrumb.", + "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}$" } + } + ], + "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": [{ "ApiKey": [] }] + } + }, + "/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" }] + } + } + } + }, + "responses": { + "200": { + "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" } + ] + } + } + } + } + }, + "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.", + "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": "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/Criteria" }, + { "$ref": "#/components/schemas/ProductListingCriteria" } + ] + } + } + } + }, + "responses": { + "200": { + "description": "The loaded category with cms page", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Category" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/checkout/cart": { + "get": { + "tags": ["Cart"], + "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}$" } + } + ], + "responses": { + "200": { + "description": "Cart", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Cart" } + } + } + } + }, + "security": [{ "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": [{ "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": "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": { "$ref": "#/components/schemas/CartItems" } + } + } + }, + "responses": { + "200": { + "description": "The updated cart.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Cart" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + }, + "delete": { + "tags": ["Cart"], + "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}$" } + } + }, + { + "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": "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-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": { "$ref": "#/components/schemas/CartItems" } + } + } + }, + "responses": { + "200": { + "description": "The updated cart.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Cart" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/checkout/cart/line-item/delete": { + "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}$" } + } + ], + "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": "object" + } + } + } + }, + "responses": { + "200": { + "description": "The updated cart.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Cart" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/checkout/order": { + "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}$" } + } + ], + "requestBody": { + "description": "Contains additional metadata which is stored together with the order. It can also contain payment transaction details.", + "content": { + "application/json": { + "schema": { + "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`.", + "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": "Order", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Order" } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/checkout/gateway": { + "get": { + "tags": ["Gateway"], + "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": [{ "ApiKey": [] }] + } + }, + "/cms/{id}": { + "post": { + "tags": ["Content"], + "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": "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", + "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": { + "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": "The loaded cms page", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/CmsPage" } + } + } + }, + "404": { "$ref": "#/components/responses/404" } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/contact-form": { + "post": { + "tags": ["Content"], + "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", + "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": ["salutationId", "email", "subject", "comment"], + "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.", + "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" + } + } + } + }, + "responses": { "200": { "description": "Message sent successful." } }, + "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.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SalesChannelContext" } + } + } + } + }, + "security": [{ "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" + } + } + } + }, + "responses": { + "200": { "$ref": "#/components/responses/ContextTokenResponse" } + }, + "security": [{ "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": "countryId", + "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}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "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" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/country": { + "post": { + "tags": ["System & Context", "Endpoints supporting Criteria "], + "summary": "Fetch countries", + "description": "Perform a filtered search for countries", + "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}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "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" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/currency": { + "post": { + "tags": ["System & Context", "Endpoints supporting Criteria "], + "summary": "Fetch currencies", + "description": "Perform a filtered search for currencies.", + "operationId": "readCurrency", + "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" }] + } + } + } + }, + "responses": { + "200": { + "description": "Entity search result containing currencies.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { "$ref": "#/components/schemas/Currency" } + } + }, + "type": "object" + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "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": [] }] + } + }, + "/customer/wishlist/add/{productId}": { + "post": { + "tags": ["Wishlist"], + "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 to be added.", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "Returns a success response.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SuccessResponse" } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/customer/wishlist": { + "post": { + "tags": ["Wishlist", "Endpoints supporting Criteria "], + "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": "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": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WishlistLoadRouteResponse" + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/customer/wishlist/merge": { + "post": { + "tags": ["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": { + "properties": { + "productIds": { + "description": "List product id", + "type": "array", + "items": { + "description": "product id", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Returns a success response.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SuccessResponse" } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/customer/wishlist/delete/{productId}": { + "delete": { + "tags": ["Wishlist"], + "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": "The identifier of the product to be removed from the wishlist.", + "required": true, + "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" } + } + } + }, + "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": [] }] + } + }, + "/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": "documentId", + "in": "path", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + }, + { + "name": "deepLinkCode", + "required": true, + "in": "path", + "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": "Returns the document information and blob to download.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Document" } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/handle-payment": { + "post": { + "tags": ["Payment & Shipping"], + "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": { + "description": "Redirect to external payment provider", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { "redirectUrl": { "type": "string" } }, + "required": ["redirectUrl"] + } + } + } + } + }, + "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" } + } + } + } + } + } + } + } + } + } + } + }, + "/landing-page/{landingPageId}": { + "post": { + "tags": ["Content", "Endpoints supporting Criteria "], + "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": "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}$" } + } + ], + "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": "The loaded landing page with cms page", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/LandingPage" } + } + } + }, + "404": { "$ref": "#/components/responses/404" } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/language": { + "post": { + "tags": ["System & Context", "Endpoints supporting Criteria "], + "summary": "Fetch languages", + "description": "Perform a filtered search for languages.", + "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}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "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" } + ] + } + } + } + } + }, + "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": [] }] + } + }, + "/navigation/{activeId}/{rootId}": { + "post": { + "tags": ["Category", "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", + "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": "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}$" }, + { "$ref": "#/components/schemas/NavigationType" } + ] + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "allOf": [ + { "$ref": "#/components/schemas/Criteria" }, + { + "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": "All available navigations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NavigationRouteResponse" + } + } + } + } + }, + "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." + } + }, + "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" }, + "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" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { "description": "Unsubscribing was successful." } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/_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" } } + } + }, + "/order/state/cancel": { + "post": { + "tags": ["Order"], + "summary": "Cancel an order", + "description": "Cancels an order. The order state will be set to 'cancelled'.", + "operationId": "cancelOrder", + "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": { + "properties": { + "orderId": { + "description": "The identifier of the order to be canceled.", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + }, + "type": "object", + "required": ["orderId"] + } + } + } + }, + "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" } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/order": { + "post": { + "tags": ["Order", "Endpoints supporting Criteria "], + "summary": "Fetch a list of orders", + "description": "List orders of a customer.", + "operationId": "readOrder", + "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": { + "allOf": [ + { "$ref": "#/components/schemas/Criteria" }, + { + "properties": { + "checkPromotion": { + "description": "Check if the payment method of the order is still changeable.", + "type": "boolean" + } + }, + "type": "object" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "An array of orders and an indicator if the payment of the order can be changed.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/OrderRouteResponse" } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/order/payment": { + "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}$" } + } + ], + "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" + } + } + } + }, + "responses": { + "200": { + "description": "Successfully updated the payment method of the order.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SuccessResponse" } + } + } + } + }, + "security": [{ "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": "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}$" } + } + ], + "responses": { + "200": { + "description": "An arbitrary binary file.", + "content": { + "application/octet-stream": { + "schema": { "type": "string", "format": "binary" } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/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}$" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "allOf": [ + { "$ref": "#/components/schemas/Criteria" }, + { + "properties": { + "onlyAvailable": { + "description": "List only available", + "type": "boolean" + } + }, + "type": "object" + } + ] + } + } + } + }, + "responses": { + "200": { + "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" + } + } + } + } + }, + "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": "" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/product-listing/{categoryId}": { + "post": { + "tags": ["Product"], + "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": "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", + "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": { + "allOf": [ + { "$ref": "#/components/schemas/ProductListingCriteria" }, + { "$ref": "#/components/schemas/ProductListingFlags" } + ] + } + } + } + }, + "responses": { + "200": { + "description": "Returns a product listing containing all products and additional fields to display a listing.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductListingResult" + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/product/{productId}/cross-selling": { + "post": { + "tags": ["Product"], + "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": "productId", + "in": "path", + "description": "Product ID", + "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}$" } + } + ], + "responses": { + "200": { + "description": "Found cross sellings", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CrossSellingElementCollection" + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/product/{productId}": { + "post": { + "tags": ["Product"], + "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": "productId", + "in": "path", + "description": "Product 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}$" } + }, + { + "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" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "description": "Product information along with variant groups and options", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductDetailResponse" + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/product": { + "post": { + "tags": ["Product", "Endpoints supporting Criteria "], + "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": "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": "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": [{ "ApiKey": [] }] + } + }, + "/product/{productId}/reviews": { + "post": { + "tags": ["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": "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" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/product/{productId}/review": { + "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}$" } + } + ], + "requestBody": { + "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" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Success response indicating the review was saved successfully." + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/product/{productId}/find-variant": { + "post": { + "tags": ["Product"], + "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": "productId", + "in": "path", + "description": "Product ID", + "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": { + "description": "The options parameter for the variant to find.", + "type": "array", + "items": { "type": "string" } + }, + "switchedGroup": { + "description": "The id of the option group that has been switched.", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Returns an FoundCombination struct containing the ids matching the search.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FindProductVariantRouteResponse" + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/salutation": { + "post": { + "tags": ["System & Context", "Endpoints supporting Criteria "], + "summary": "Fetch salutations", + "description": "Perform a filtered search for salutations.", + "operationId": "readSalutation", + "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" }] + } + } + } + }, + "responses": { + "200": { + "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": [{ "ApiKey": [] }] + } + }, + "/script/{hook}": { + "get": { + "tags": ["API", "Script", "App"], + "summary": "Access point for different api logics which are provided by apps over script hooks", + "operationId": "getScriptStoreApiRoute", + "parameters": [ + { + "name": "hook", + "in": "path", + "description": "Dynamic hook which used to build the hook name", + "required": true, + "schema": { "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": [{ "ApiKey": [] }] + }, + "post": { + "tags": ["API", "Script", "App"], + "summary": "Access point for different api logics which are provided by apps over script hooks", + "operationId": "postScriptStoreApiRoute", + "parameters": [ + { + "name": "hook", + "in": "path", + "description": "Dynamic hook which used to build the hook name", + "required": true, + "schema": { "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": [{ "ApiKey": [] }] + } + }, + "/search-suggest": { + "post": { + "tags": ["Product"], + "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.", + "required": false, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": true, + "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/ProductListingFlags" } + ] + } + } + } + }, + "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.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductListingResult" + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/search": { + "post": { + "tags": ["Product"], + "summary": "Search for products", + "description": "Performs a search for products which can be used to display a product listing.", + "operationId": "searchPage", + "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": "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" } + } + ], + "requestBody": { + "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" } + ] + } + } + } + }, + "responses": { + "200": { + "description": "Returns a product listing containing all products and additional fields to display a listing.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductListingResult" + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/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}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "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" } + ] + } + } + } + }, + "404": { "$ref": "#/components/responses/404" } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/shipping-method": { + "post": { + "tags": ["Payment & Shipping", "Endpoints supporting Criteria "], + "summary": "Fetch shipping methods", + "description": "Perform a filtered search for shipping methods.", + "operationId": "readShippingMethod", + "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": "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": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "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" } + ] + } + } + } + } + }, + "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": [] }] + } + }, + "/employee/create": { + "post": { + "tags": ["B2B Employee Management"], + "summary": "Create a single employee and returns the employee", + "description": "This route is used to create and return an employee", + "operationId": "createEmployee", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "firstName": { + "description": "First name of the new employee", + "type": "string" + }, + "lastName": { + "description": "Last name of the new employee", + "type": "string" + }, + "email": { + "description": "Email of the new employee", + "type": "string" + }, + "roleId": { + "description": "Id of the role of the new employee", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + } + }, + "required": ["firstName", "lastName", "email"], + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Employee entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/B2bEmployee" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/employee": { + "post": { + "tags": ["B2B Employee Management"], + "summary": "Fetch a list of employees", + "description": "This route is used to load employees", + "operationId": "readEmployees", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "description": "Entity search result containing employees", + "content": { + "application/json": { + "schema": { + "type": "object", + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/B2bEmployee" + } + } + }, + "type": "object" + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/employee/{id}": { + "post": { + "tags": ["B2B Employee Management"], + "summary": "Fetch a one employee by id", + "description": "This route is used to fetch one employee by id", + "operationId": "readEmployee", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the employee to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "Employee entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/B2bEmployee" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + }, + "patch": { + "tags": ["B2B"], + "summary": "Update a one employee by id", + "description": "This route is used to update one employee by id", + "operationId": "updateEmployee", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the employee to be updated", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "firstName": { + "description": "New first name of the employee", + "type": "string" + }, + "lastName": { + "description": "New last name of the employee", + "type": "string" + }, + "email": { + "description": "New email of the employee", + "type": "string" + }, + "roleId": { + "description": "New id of the role of the employee", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Employee entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/B2bEmployee" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + }, + "delete": { + "tags": ["B2B"], + "summary": "Delete an employee by id", + "description": "This route is used to delete one employee by id", + "operationId": "deleteEmployee", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the employee to be deleted", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/employee/reinvite/{id}": { + "post": { + "tags": ["B2B Employee Management"], + "summary": "Reinvite employee by id", + "description": "This route is used to reinvite an employee via email by id", + "operationId": "reinviteEmployee", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the employee to be reinvited", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "storefrontUrl": { + "description": "URL of the storefront domain", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Employee entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/B2bEmployee" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/role/create": { + "post": { + "tags": ["B2B Employee Management"], + "summary": "Create a single role and returns the role", + "description": "This route is used to create and return an role", + "operationId": "createRole", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "name": { + "description": "Name of the new role", + "type": "string" + }, + "permissions": { + "description": "Permissions of the new role", + "type": "array", + "items": { "type": "string" } + }, + "isDefaultRole": { + "description": "Ability to set the new role as default", + "type": "boolean" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Role entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/B2bComponentsRole" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/role": { + "get": { + "tags": ["B2B Employee Management"], + "summary": "Fetch a list of roles", + "description": "This route is used to load roles", + "operationId": "readRoles", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "description": "Entity search result containing roles", + "content": { + "application/json": { + "schema": { + "type": "object", + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/B2bComponentsRole" + } + } + }, + "type": "object" + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + }, + "post": { + "tags": ["B2B"], + "summary": "Fetch a list of roles", + "description": "This route is used to load roles", + "operationId": "readRolesPOST", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "description": "Entity search result containing roles", + "content": { + "application/json": { + "schema": { + "type": "object", + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/B2bComponentsRole" + } + } + }, + "type": "object" + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/role/{id}": { + "get": { + "tags": ["B2B Employee Management"], + "summary": "Fetch a one role by id", + "description": "This route is used to fetch one role by id", + "operationId": "readRole", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the role to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "Role entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/B2bComponentsRole" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + }, + "patch": { + "tags": ["B2B"], + "summary": "Update a one role by id", + "description": "This route is used to update one role by id", + "operationId": "updateRole", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the role to be updated", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "name": { + "description": "New name of the role", + "type": "string" + }, + "permissions": { + "description": "New permissions of the role", + "type": "array", + "items": { "type": "string" } + }, + "isDefaultRole": { + "description": "Ability to set the role as default", + "type": "boolean" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Role entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/B2bComponentsRole" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + }, + "delete": { + "tags": ["B2B"], + "summary": "Delete an role by id", + "description": "This route is used to delete one role by id", + "operationId": "deleteRole", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the role to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/role/permissions": { + "get": { + "tags": ["B2B Employee Management"], + "summary": "Fetch a available permissions", + "description": "This route is used to fetch all available permissions", + "operationId": "readPermissions", + "responses": { + "200": { + "description": "Permission collection", + "content": { + "application/json": { + "schema": { + "type": "object", + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "type": "object", + "properties": { + "permissionName": { "type": "string" }, + "permissionDependencies": { + "type": "array", + "items": { "type": "string" } + }, + "permissionGroupName": { "type": "string" } + } + } + } + }, + "type": "object" + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/role/default": { + "post": { + "tags": ["B2B Employee Management"], + "summary": "Sets the default role Id for new employees", + "description": "This route is used to update the defaultRoleId for new employees", + "operationId": "updateDefaultRoleId", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "id": { + "description": "Id of the roleId to be set as default", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/sso/auth/{providerId}": { + "post": { + "tags": ["Sso"], + "summary": "Authenticates via SSO", + "description": "Authenticates login via a given SSO provider ID", + "operationId": "auth", + "parameters": [ + { + "name": "providerId", + "in": "path", + "description": "Identifier of the SSO provider used to authenticate", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "204": { + "description": "Successfully authenticated", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SuccessResponse" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/sso/redirect/{providerId}": { + "post": { + "tags": ["Sso"], + "summary": "Redirects after authentication", + "description": "Redirects after authenticated login via a given SSO provider ID", + "operationId": "redirect", + "parameters": [ + { + "name": "providerId", + "in": "path", + "description": "Identifier of the SSO provider used to authenticate", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "204": { + "description": "Successfully authenticated", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/SuccessResponse" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/quote/request": { + "post": { + "tags": ["B2B Quote Management"], + "summary": "Request new quote", + "description": "This route is used to request a new quote from the store", + "operationId": "requestQuote", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "comment": { + "description": "Message content", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Quote entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Quote" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/quotes": { + "post": { + "tags": ["B2B Quote Management"], + "summary": "Fetch a list of quotes", + "description": "This route is used to load quotes", + "operationId": "readQuotes", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "description": "Entity search result containing quotes", + "content": { + "application/json": { + "schema": { + "type": "object", + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { "$ref": "#/components/schemas/Quote" } + } + }, + "type": "object" + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/quote/detail/{id}": { + "post": { + "tags": ["B2B Quote Management"], + "summary": "Fetch a one quote by id", + "description": "This route is used to fetch one quote by id", + "operationId": "readQuote", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the quote to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "Quote entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Quote" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/quote/{id}/decline": { + "post": { + "tags": ["B2B Quote Management"], + "summary": "Decline a quote by id", + "description": "This route is used to decline a quote from the store by id", + "operationId": "declineQuote", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the quote to be reinvited", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "comment": { + "description": "Message content", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/quote/{id}/request-change": { + "post": { + "tags": ["B2B Quote Management"], + "summary": "Request change a quote by id", + "description": "This route is used to request change a quote from the store by id", + "operationId": "requestChangeQuote", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the quote to be reinvited", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "comment": { + "description": "Message content", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/quote/{id}/configure": { + "post": { + "tags": ["B2B Quote Management"], + "summary": "Change payment or shipping method", + "description": "This route is used to change a payment or shipping method when place a order ", + "operationId": "switchPaymentOrShippingMethod", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the quote to be reinvited", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "paymentMethodId": { + "description": "Id of the payment method", + "type": "string" + }, + "shippingMethodId": { + "description": "Id of the shipping method", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/quote/order/{id}": { + "post": { + "tags": ["B2B Quote Management"], + "summary": "Create a order from a quote", + "description": "This route is used to create a order from a quote", + "operationId": "createOrderFromQuote", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the quote to be reinvited", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "customerComment": { + "description": "Message content", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Order entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Order" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/quote/document/download/{documentId}/{deepLinkCode}": { + "post": { + "tags": ["B2B Quote Management"], + "summary": "Download a document", + "description": "This route is used to download a document", + "operationId": "downloadQuoteDocument", + "parameters": [ + { + "name": "documentId", + "in": "path", + "description": "Identifier of the quote document to be reinvited", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + }, + { + "name": "deepLinkCode", + "in": "path", + "description": "Deep link code of the quote document", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { "200": { "description": "Document content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/product/natural-language/search-term": { + "post": { + "tags": ["Natural language search", "AI Search", "Experimental"], + "summary": "Fetch search terms by natural language search query", + "description": "Experimental until v6.7.0\n\nFetch search terms by natural search language query", + "operationId": "naturalLanguageSearchTerm", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "query": { + "description": "Natural language query", + "type": "string", + "example": "I'm looking for a present for my wife" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "A collection of search terms, with an associated 'reason' based on search context", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NaturalLanguageSearchTermResponse" + } + } + } + } + } + } + }, + "/product/image-upload-search/search-term": { + "post": { + "tags": ["Search by Image", "AI Search", "Experimental"], + "summary": "Fetch product search terms by uploading an image.", + "description": "Experimental until v6.7.0\n\nFetch product search terms by uploading an image.", + "operationId": "searchByImageSearchTerm", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "file": { + "description": "Base-64 encoded image", + "type": "string", + "format": "binary" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "A collection of search terms", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SearchByImageSearchTermResponse" + } + } + } + } + } + } + }, + "/approval-rule": { + "post": { + "tags": ["B2B Order Approval"], + "summary": "List all approval rules", + "description": "This route is used to list all approval rules from the store", + "operationId": "listApprovalRules", + "parameters": [ + { + "name": "p", + "in": "query", + "description": "Page number", + "required": false, + "schema": { "type": "integer", "default": 1 } + }, + { + "name": "limit", + "in": "query", + "description": "Number of items per page", + "required": false, + "schema": { "type": "integer", "default": 10 } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }] + } + } + } + }, + "responses": { + "200": { + "description": "Entity search result containing approval rules", + "content": { + "application/json": { + "schema": { + "type": "object", + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApprovalRule" + } + } + }, + "type": "object" + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + }, + "get": { + "tags": ["B2B Order Approval"], + "summary": "Fetch a list of approval rules", + "description": "This route is used to load approval rules", + "operationId": "readApprovalRules", + "parameters": [ + { + "name": "p", + "in": "query", + "description": "Page number", + "required": false, + "schema": { "type": "integer", "default": 1 } + }, + { + "name": "limit", + "in": "query", + "description": "Number of items per page", + "required": false, + "schema": { "type": "integer", "default": 10 } + } + ], + "responses": { + "200": { + "description": "Entity search result containing approval rules", + "content": { + "application/json": { + "schema": { + "type": "object", + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApprovalRule" + } + } + }, + "type": "object" + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/approval-rule/create": { + "post": { + "tags": ["B2B Order Approval"], + "summary": "Create a new approval rule", + "description": "This route is used to create a new approval rule", + "operationId": "createApprovalRule", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "approvalRuleName": { + "description": "Name of the approval rule", + "type": "string" + }, + "approvalRuleApprove": { + "description": "ID of the role that can approve the rule", + "type": "string" + }, + "approvalRuleRole": { + "description": "ID of the role that is affected by the rule", + "type": "string" + }, + "priority": { + "description": "Priority of the approval rule", + "type": "integer" + }, + "description": { + "description": "Description of the approval rule", + "type": "string" + }, + "active": { + "description": "Active status of the approval rule", + "type": "boolean" + }, + "approvalRuleCondition": { + "description": "List of rules", + "type": "object", + "properties": { + "type": { + "description": "Type of the rule", + "type": "string" + }, + "value": { "description": "Value", "type": "string" } + } + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Approval rule entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ApprovalRule" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/approval-rule/{id}": { + "get": { + "tags": ["B2B Order Approval"], + "summary": "Fetch one approval rule by id", + "description": "This route is used to fetch a approval rule from the store by id", + "operationId": "readApprovalRule", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the approval rule to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "Approval rule entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ApprovalRule" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + }, + "patch": { + "tags": ["B2B Order Approval"], + "summary": "Update a approval rule by id", + "description": "This route is used to update a approval rule from the store by id", + "operationId": "updateApprovalRule", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the approval rule to be updated", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "approvalRuleName": { + "description": "Name of the approval rule", + "type": "string" + }, + "approvalRuleApprove": { + "description": "ID of the role that can approve the rule", + "type": "string" + }, + "approvalRuleRole": { + "description": "ID of the role that is affected by the rule", + "type": "string" + }, + "priority": { + "description": "Priority of the approval rule", + "type": "integer" + }, + "description": { + "description": "Description of the approval rule", + "type": "string" + }, + "active": { + "description": "Active status of the approval rule", + "type": "boolean" + }, + "approvalRuleCondition": { + "description": "List of rules", + "type": "object", + "properties": { + "type": { + "description": "Type of the rule", + "type": "string" + }, + "value": { "description": "Value", "type": "string" } + } + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Approval rule entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ApprovalRule" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/pending-order/request": { + "post": { + "tags": ["B2B Order Approval"], + "summary": "Request new order approval", + "description": "This route is used to request a new order approval", + "operationId": "requestOrderApproval", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "comment": { + "description": "Message content", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Pending order entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PendingOrder" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/pending-order/{id}": { + "post": { + "tags": ["B2B Order Approval"], + "summary": "Fetch one pending order by id", + "description": "This route is used to fetch a pending order from the store by id", + "operationId": "fetchPendingOrder", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the pending order to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "Pending order entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/PendingOrder" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/pending-order/{id}/decline": { + "post": { + "tags": ["B2B Order Approval"], + "summary": "Decline a pending order by id", + "description": "This route is used to decline a pending order from the store by id", + "operationId": "declinePendingOrder", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the pending order to be declined", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "comment": { + "description": "Message content", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/pending-order/{id}/approve": { + "post": { + "tags": ["B2B Order Approval"], + "summary": "Approve a pending order by id", + "description": "This route is used to approve a pending order from the store by id", + "operationId": "approvePendingOrder", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the pending order to be approved", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "comment": { + "description": "Message content", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/pending-order/{id}/checkout/order": { + "post": { + "tags": ["B2B Order Approval"], + "summary": "Create a order from a pending order", + "description": "This route is used to create a order from a pending order", + "operationId": "createOrderFromPendingOrder", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the pending order to be used to create a order", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "properties": { + "customerComment": { + "description": "Message content", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Order entity", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Order" } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/account/shopping-list": { + "post": { + "tags": ["B2B Shopping Lists"], + "summary": "Create new shopping list", + "description": "This route is used to create a new shopping list from the store", + "operationId": "createShoppingList", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "name": { + "description": "Shopping list name", + "type": "string" + }, + "lineItems": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "id": { + "description": "Product id", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "quantity": { + "description": "Quantity of the product", + "type": "integer" + } + }, + "required": ["id", "quantity"] + } + } + }, + "type": "object", + "required": ["name"] + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + }, + "delete": { + "tags": ["B2B Shopping Lists"], + "summary": "Delete shopping lists", + "description": "This route is used to delete shopping lists", + "operationId": "removeShoppingLists", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["ids"], + "properties": { + "ids": { + "description": "Shopping list ids", + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + } + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/account/shopping-lists": { + "post": { + "tags": ["B2B Shopping Lists"], + "summary": "Load shopping lists", + "description": "This route is used to load all shopping lists", + "operationId": "readShoppingLists", + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/Criteria" } + } + } + }, + "responses": { + "200": { + "description": "Entity search result containing shopping lists", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "type": "object", + "properties": { + "elements": { + "type": "array", + "items": { + "$ref": "#/components/schemas/B2bComponentsShoppingList" + } + } + } + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/account/shopping-list/{id}": { + "post": { + "tags": ["B2B Shopping Lists"], + "summary": "Load one shopping list", + "description": "This route is used to load one shopping list", + "operationId": "readShoppingList", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the shopping list to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "Shopping list entity", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/B2bComponentsShoppingList" + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/account/shopping-list/{id}/change-name": { + "patch": { + "tags": ["B2B Shopping Lists"], + "summary": "Update shopping list name", + "description": "This route is used to update shopping list name", + "operationId": "updateShoppingList", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the shopping list to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "description": "Shopping list name", + "type": "string" + } + }, + "required": ["name"] + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/account/shopping-list/{id}/duplicate": { + "post": { + "tags": ["B2B Shopping Lists"], + "summary": "Duplicate new shopping list", + "description": "This route is used to duplicate a new shopping list from the store", + "operationId": "duplicateShoppingList", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the shopping list to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "properties": { + "name": { + "description": "Shopping list name", + "type": "string" + } + }, + "type": "object", + "required": ["name"] + } + } + } + }, + "responses": { + "200": { + "description": "The generated id of the duplicated shopping list", + "content": { + "application/json": { + "schema": { + "properties": { + "id": { + "description": "The generated id of the duplicated shopping list", + "type": "string" + } + }, + "type": "object" + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/account/shopping-list/{id}/summary": { + "get": { + "tags": ["B2B Shopping Lists"], + "summary": "Price summary for shopping list", + "description": "This route is used to get a price summary for shopping list", + "operationId": "summaryShoppingList", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the shopping list to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "Shopping list summary", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "price": { + "type": "object", + "properties": { + "netPrice": { + "description": "Net price of the cart", + "type": "number", + "format": "float" + }, + "totalPrice": { + "description": "Total price of the cart, including shipping costs, discounts and taxes", + "type": "number", + "format": "float" + }, + "positionPrice": { + "description": "Price for all line items in the cart", + "type": "number", + "format": "float" + }, + "taxStatus": { + "description": "Tax calculation for the cart. One of `gross`, `net` or `tax-free`", + "type": "string" + } + } + } + } + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/account/shopping-list/line-item/{id}/add": { + "post": { + "tags": ["B2B Shopping Lists"], + "summary": "Add more product to shopping list", + "description": "This route is used to add more products to shopping list", + "operationId": "addLineItems", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the shopping list to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "lineItems": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "id": { + "description": "Product id", + "type": "string", + "pattern": "^[0-9a-f]{32}$" + }, + "quantity": { + "description": "Quantity of the product", + "type": "integer" + } + }, + "required": ["id", "quantity"] + } + } + }, + "required": ["lineItems"] + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/account/shopping-list/line-item/remove": { + "delete": { + "tags": ["B2B Shopping Lists"], + "summary": "Delete shopping list line items", + "description": "This route is used to delete shopping list line items", + "operationId": "removeLineItems", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["ids"], + "properties": { + "ids": { + "description": "Line items ids", + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + } + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/account/shopping-list/line-item/{id}/change-quantity": { + "patch": { + "tags": ["B2B Shopping Lists"], + "summary": "Update shopping list line item quantity", + "description": "This route is used to update shopping list line item quantity", + "operationId": "updateLineItems", + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifier of the shopping list line item to be fetched", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "quantity": { + "description": "new line item quantity", + "type": "integer" + } + }, + "required": ["quantity"] + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/shopping-lists/add-to-cart": { + "post": { + "tags": ["B2B Shopping Lists"], + "summary": "Add shopping lists to cart", + "description": "This route is used to add shopping lists to cart", + "operationId": "addShoppingListsToCart", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["ids"], + "properties": { + "ids": { + "description": "Shopping list ids", + "type": "array", + "items": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + } + } + } + } + }, + "responses": { "204": { "description": "No content response" } }, + "security": [{ "ApiKey": [] }] + } + }, + "/dsr/appointment/{presentationPath}/join-as-client": { + "post": { + "tags": ["Appointment"], + "summary": "Join a meeting as a attendee", + "description": "Returns the client join appointment response.", + "operationId": "joinAppointmentAsClient", + "parameters": [ + { + "name": "presentationPath", + "in": "path", + "description": "Presentation path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/JoinAppointmentResponse" + } + } + } + } + }, + "security": [{ "ApiKey": [] }] + } + }, + "/dsr/appointment/collection/last-seen": { + "get": { + "tags": ["Appointment"], + "summary": "Get the last seen products for the current attendee", + "description": "Returns the the last seen products for the requesting client", + "operationId": "getLastSeenProducts", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AttendeeProductCollectionLastSeenResponse" + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/appointment/collection/{alias}/{productId}": { + "post": { + "tags": ["Appointment"], + "summary": "Add a product to the attendee product list", + "description": "Add a product with the alias to the product list of the attendee", + "operationId": "attendeeProductCollectionAddProduct", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "The alias of collection you want to add", + "required": true, + "schema": { "type": "string", "enum": ["liked", "disliked"] } + }, + { + "name": "productId", + "in": "path", + "description": "The product id you want to add", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { "204": { "description": "", "content": [] } }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + }, + "delete": { + "tags": ["Appointment"], + "summary": "Remove a product with the alias from the for the attendee product collection", + "description": "Removes the product with the matching alias from of the attendee product collection", + "operationId": "attendeeProductCollectionRemoveProduct", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "The alias of collection you want to remove", + "required": true, + "schema": { "type": "string", "enum": ["liked", "disliked"] } + }, + { + "name": "productId", + "in": "path", + "description": "The product id you want to remove", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { "204": { "description": "", "content": [] } }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/appointment/collection/{alias}": { + "get": { + "tags": ["Appointment"], + "summary": "Get the product ids for the attendee in product collection with the matching alias", + "description": "Returns the product ids for the requesting attendee and matching alias", + "operationId": "getAttendeeProductCollection", + "parameters": [ + { + "name": "alias", + "in": "path", + "description": "The alias of collection you want to get", + "required": true, + "schema": { "type": "string", "enum": ["liked", "disliked"] } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AttendeeProductCollectionResponse" + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/appointment/{appointmentId}/download-ics": { + "post": { + "tags": ["Appointment"], + "summary": "Get the ics file to import to your calendar", + "description": "Returns the calendar file", + "operationId": "getCalendarFile", + "parameters": [ + { + "name": "appointmentId", + "in": "path", + "description": "The appointment id you want to get the calendar file", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": ["token"], + "properties": { + "token": { + "description": "The token will be attached to the invitation response link in the invitation mail", + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "text/calendar": { + "example": "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//DIGITAL SALES ROOMS//Calendar//EN\nCALSCALE:GREGORIAN\nMETHOD:REQUEST\nBEGIN:VTIMEZONE\nTZID:UTC\nBEGIN:STANDARD\nDTSTART:20221016T102853Z\nTZOFFSETFROM:+0000\nTZOFFSETTO:+0000\nEND:STANDARD\nEND:VTIMEZONE\nBEGIN:VEVENT\nUID:95f79a4ecfae4794ae2b65b018330f88@shopware.com\nDTSTAMP:20230713T102853Z\nSUMMARY:test send invitation\nDESCRIPTION:Hello\nLOCATION:https://localhost.test/presentation/95f79a4ecfae47\n 94ae2b65b018330f88\nSTATUS:CANCELLED\nTRANSP:TRANSPARENT\nORGANIZER;CN=Phung Nguyen:MAILTO:p.nguyen@localhost.com\nATTENDEE;CN=p.test;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:MAILTO:p.test@test.\n com\nDTSTART:20230713T121000Z\nDTEND:20230713T123000Z\nEND:VEVENT\nEND:VCALENDAR" + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/appointment/{appointmentId}/attendee/respond-invitation": { + "patch": { + "tags": ["Appointment"], + "summary": "Respond the appointment invitation", + "description": "Returns the appointment invitation status", + "operationId": "attendeeRespondInvitation", + "parameters": [ + { + "name": "appointmentId", + "in": "path", + "description": "The appointment id you respond to", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "required": ["token"], + "properties": { + "token": { + "description": "The token will be attached to the invitation response link in the invitation mail", + "type": "string" + }, + "invitationStatus": { + "description": "The status you respond to", + "type": "string", + "enum": ["accepted", "maybe", "declined"] + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AttendeeRespondInvitationResponse" + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/appointment/attendee": { + "patch": { + "tags": ["Appointment"], + "summary": "Update attendee information", + "description": "Update attendee information", + "operationId": "updateAttendee", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateAttendeeRequestBody" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "apiAlias": { + "type": "string", + "default": "dsr.appointment.update-attendee", + "description": "The api alias of the API" + }, + "data": { + "items": { + "type": "string", + "description": "Updated data" + }, + "description": "The data is used to update the attendee information" + } + }, + "example": { + "data": { + "attendeeName": "John Doe", + "videoUserId": "1234567890" + } + } + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/interaction": { + "post": { + "tags": ["Appointment"], + "summary": "Add a interaction to log", + "description": "Create a interaction log entry in a specific appointment", + "operationId": "addInteraction", + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateInteractionRequestBody" + } + } + } + }, + "responses": { "200": { "description": "" } }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/appointment/presentation": { + "get": { + "tags": ["Presentation"], + "summary": "Fetch presentation structure and flat navigation", + "description": "Resolves the presentation structure and navigation by using the attendeeContext information. There will be NO Slot-Data inside call store-api.dsr.presentation-data for that", + "operationId": "getPresentationStructure", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PresentationStructure" + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/appointment/presentation/{presentationCmsPageId}/slide/{sectionId}": { + "get": { + "tags": ["Presentation"], + "summary": "Fetch resolved data for specific slide", + "description": "Gives the resolved slot-data for the given slide index (slot-config)", + "operationId": "getSlideData", + "parameters": [ + { + "name": "presentationCmsPageId", + "in": "path", + "description": "Presentation CMS page id for which the data is requested", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + }, + { + "name": "sectionId", + "in": "path", + "description": "CMS section id for which the data is requested", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PresentationSlideData" + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/appointment/presentation/state": { + "get": { + "tags": ["Presentation"], + "summary": "Get the current presentation state", + "description": "Returns the presentation state for all and the client", + "operationId": "getClientPresentationState", + "parameters": [], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientPresentationStateResponse" + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/quickview/{productId}/{cmsPageLayoutId}": { + "get": { + "tags": ["Presentation"], + "summary": "Fetch a cms page for quickview with product data", + "description": "Takes a product identifier and returns the preconfigured quickview CMS layout (defined in SwagDigitalSalesRooms.config.quickviewPageId ) hydrated with the product specific data", + "operationId": "resolveQuickviewPage", + "parameters": [ + { + "name": "productId", + "in": "path", + "description": "The product id", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + }, + { + "name": "cmsPageLayoutId", + "in": "path", + "description": "The cms page id using as product quick view", + "required": true, + "schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cmsPage": { "$ref": "#/components/schemas/CmsPage" }, + "product": { "$ref": "#/components/schemas/Product" }, + "configurator": { + "type": "array", + "items": { "$ref": "#/components/schemas/PropertyGroup" } + } + } + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + }, + "/dsr/product-listing": { + "post": { + "tags": ["Product"], + "summary": "Fetch a product listing by criteria", + "description": "Fetches a product listing for a given criteria. It also provides filters, sortings and property aggregations, analogous to the /product-listing endpoint.", + "operationId": "dsrProductListing", + "parameters": [], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "allOf": [{ "$ref": "#/components/schemas/Criteria" }], + "anyOf": [ + { + "properties": { + "interaction": { + "type": "boolean", + "default": false, + "description": "Load interaction (like & dislike) to product of attendee. It will be added into product extensions named interaction" + }, + "useIdSorting": { + "type": "boolean", + "default": false, + "description": "Use id sorting instead of other sorting fields" + }, + "loadVariants": { + "type": "boolean", + "default": false, + "description": "load all variants following the main products" + }, + "loadAllIds": { + "type": "boolean", + "default": false, + "description": "Load all product ids, you can access it from `extensions.allIds` of the response" + } + } + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "allOf": [ + { + "properties": { + "elements": { + "type": "array", + "items": { "$ref": "#/components/schemas/Product" } + } + }, + "type": "object" + }, + { "$ref": "#/components/schemas/EntitySearchResult" } + ] + } + } + } + } + }, + "security": [{ "ApiKey": [], "ContextToken": [] }] + } + } + }, + "tags": [ + { + "name": "Experimental", + "description": "Experimental API, not part of our backwards compatibility promise, thus this API can introduce breaking changes at any time.", + "externalDocs": { + "description": "Find out more", + "url": "https://github.com/shopware/platform/blob/trunk/adr/2023-05-10-experimental-features.md" + } + } + ] +} diff --git a/apps/web/api-types/storeApiTypes.d.ts b/apps/web/api-types/storeApiTypes.d.ts new file mode 100644 index 0000000..ba3dc4c --- /dev/null +++ b/apps/web/api-types/storeApiTypes.d.ts @@ -0,0 +1,9249 @@ +type WithRequired = T & { [P in K]-?: T[P] }; +type Without = { [P in Exclude]?: never }; +type XOR = T | U extends object ? (Without & U) | (Without & T) : T | U; +type OneOf = T extends [infer Only] + ? Only + : T extends [infer A, infer B, ...infer Rest] + ? OneOf<[XOR, ...Rest]> + : never; +type GenericRecord = never | null | string | string[] | number | { [key: string]: GenericRecord }; +export type components = { + schemas: Schemas; +}; +export type Schemas = { + AbstractDynamicPageOpenedPayload: { + /** @default true */ + opened?: boolean; + /** The type of the current dynamic page */ + type: string; + }; + AccountNewsletterRecipient: { + /** @enum {string} */ + apiAlias: "account_newsletter_recipient"; + /** @enum {string} */ + status: "undefined" | "notSet" | "direct" | "optIn" | "optOut"; + }; + AclRole: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AdvancedSearchAction: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AdvancedSearchActionSearchTerm: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AdvancedSearchBoosting: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AdvancedSearchConfig: { + /** Format: date-time */ + createdAt: string; + hitCount?: { + category?: { + /** Format: int64 */ + maxSearchCount?: number; + /** Format: int64 */ + maxSuggestCount?: number; + }; + product?: { + /** Format: int64 */ + maxSearchCount?: number; + /** Format: int64 */ + maxSuggestCount?: number; + }; + product_manufacturer?: { + /** Format: int64 */ + maxSearchCount?: number; + /** Format: int64 */ + maxSuggestCount?: number; + }; + }; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AdvancedSearchConfigField: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AdvancedSearchEntityStream: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AdvancedSearchEntityStreamFilter: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AdvancedSearchSynonym: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AggregationEntity: { + /** The entity definition e.g "product_manufacturer". */ + definition: string; + /** The field you want to aggregate over. */ + field: string; + /** Give your aggregation an identifier, so you can find it easier */ + name: string; + /** + * The type of aggregation + * @enum {string} + */ + type: "entity"; + }; + AggregationFilter: { + filter: components["schemas"]["Filters"][]; + /** Give your aggregation an identifier, so you can find it easier */ + name: string; + /** + * The type of aggregation + * @enum {string} + */ + type: "filter"; + }; + AggregationHistogram: { + /** The field you want to aggregate over. */ + field: string; + /** The format of the histogram */ + format?: string; + /** The interval of the histogram */ + interval?: number; + /** Give your aggregation an identifier, so you can find it easier */ + name: string; + /** The timezone of the histogram */ + timeZone?: string; + /** + * The type of aggregation + * @enum {string} + */ + type: "histogram"; + }; + AggregationMetrics: { + field: string; + name: string; + /** @enum {string} */ + type: "avg" | "count" | "max" | "min" | "stats" | "sum"; + }; + AggregationRange: { + /** The field you want to aggregate over. */ + field: string; + /** Give your aggregation an identifier, so you can find it easier */ + name: string; + /** The ranges of the aggregation */ + ranges: ( + | { + /** The lower bound of the range */ + from: number; + /** The upper bound of the range */ + to: number; + } + | { + /** The lower bound of the range */ + from: string; + } + | { + /** The upper bound of the range */ + to: string; + } + )[]; + /** + * The type of aggregation + * @enum {string} + */ + type: "range"; + }; + AggregationTerms: { + /** The field you want to aggregate over. */ + field: string; + /** The number of terms to return */ + limit?: number; + /** Give your aggregation an identifier, so you can find it easier */ + name: string; + /** Sorting the aggregation result. */ + sort?: components["schemas"]["Sort"][]; + /** + * The type of aggregation + * @enum {string} + */ + type: "terms"; + }; + Aggregations: ( + | components["schemas"]["AggregationMetrics"] + | (components["schemas"]["AggregationEntity"] & components["schemas"]["SubAggregations"]) + | (components["schemas"]["AggregationFilter"] & components["schemas"]["SubAggregations"]) + | (components["schemas"]["AggregationTerms"] & components["schemas"]["SubAggregations"]) + | (components["schemas"]["AggregationHistogram"] & components["schemas"]["SubAggregations"]) + | (components["schemas"]["AggregationRange"] & components["schemas"]["SubAggregations"]) + )[]; + App: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AppActionButton: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AppAdministrationSnippet: { + appId: string; + /** Format: date-time */ + createdAt: string; + id?: string; + localeId: string; + /** Format: date-time */ + updatedAt?: string; + value: string; + }; + AppCmsBlock: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AppFlowAction: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AppFlowEvent: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AppPaymentMethod: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AppScriptCondition: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AppShippingMethod: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + AppTemplate: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ApprovalRule: { + active?: boolean; + businessPartnerCustomerId?: string; + conditions?: { + type?: string; + value?: string; + }[]; + description?: string; + /** Format: uuid */ + id?: string; + name?: string; + priority?: number; + }; + Association: { + [key: string]: components["schemas"]["Criteria"]; + }; + AttendeeProductCollectionLastSeenResponse: { + collection?: { + lastSeen?: string[]; + }; + }; + AttendeeProductCollectionResponse: { + collection?: + | { + liked?: string[]; + } + | { + disliked?: string[]; + }; + }; + AttendeeRespondInvitationResponse: { + /** + * The invitation status that client responded to + * @enum {string} + */ + answer?: "accepted" | "maybe" | "declined"; + appointment?: { + /** + * Format: date-time + * The time the client can access the appointment + */ + accessibleFrom?: string; + /** + * Format: date-time + * The time the appointment will be closed, the client can not access + */ + accessibleTo?: string; + /** The appointment id */ + id?: string; + /** The appointment status */ + status?: ("started" | "ended") | null; + }; + }; + B2bBusinessPartner: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + B2bComponentsApprovalRule: { + affectedRole?: components["schemas"]["B2bComponentsRole"]; + affectedRoleId?: string; + /** Format: date-time */ + createdAt: string; + id?: string; + reviewerRole?: components["schemas"]["B2bComponentsRole"]; + reviewerRoleId?: string; + /** Format: date-time */ + updatedAt?: string; + }; + B2bComponentsApprovalRuleAppScriptCondition: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + B2bComponentsPendingOrder: { + addresses?: components["schemas"]["B2bComponentsPendingOrderAddress"][]; + /** Format: float */ + amountNet?: number; + /** Format: float */ + amountTotal?: number; + approvalRule?: components["schemas"]["B2bComponentsApprovalRule"]; + approvalRuleId?: string; + billingAddress?: components["schemas"]["B2bComponentsPendingOrderAddress"]; + billingAddressId: string; + country?: components["schemas"]["Country"]; + countryId: string; + /** Format: date-time */ + createdAt: string; + currency?: components["schemas"]["Currency"]; + currencyId: string; + customer?: components["schemas"]["Customer"]; + customerId: string; + customFields?: GenericRecord; + decidedBy?: components["schemas"]["B2bEmployee"]; + decidedById?: string; + employee?: components["schemas"]["B2bEmployee"]; + employeeId: string; + id?: string; + language?: components["schemas"]["Language"]; + languageId: string; + order?: components["schemas"]["Order"]; + orderId?: string; + /** Format: float */ + originalPrice?: number; + paymentMethod?: components["schemas"]["PaymentMethod"]; + paymentMethodId: string; + price?: { + calculatedTaxes?: GenericRecord; + /** Format: float */ + netPrice: number; + /** Format: float */ + positionPrice: number; + /** Format: float */ + rawTotal: number; + taxRules?: GenericRecord; + taxStatus: string; + /** Format: float */ + totalPrice: number; + }; + reason?: string; + salesChannelId: string; + shippingMethod?: components["schemas"]["ShippingMethod"]; + shippingMethodId: string; + stateId: string; + stateMachineState?: components["schemas"]["StateMachineState"]; + taxStatus?: string; + /** Format: date-time */ + updatedAt?: string; + }; + B2bComponentsPendingOrderAddress: { + additionalAddressLine1?: string; + additionalAddressLine2?: string; + city: string; + company?: string; + country?: components["schemas"]["Country"]; + countryId: string; + countryState?: components["schemas"]["CountryState"]; + countryStateId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + department?: string; + firstName: string; + id: string; + lastName: string; + pendingOrder?: components["schemas"]["B2bComponentsPendingOrder"]; + phoneNumber?: string; + salutation?: components["schemas"]["Salutation"]; + street: string; + title?: string; + /** Format: date-time */ + updatedAt?: string; + vatId?: string; + zipcode?: string; + }; + B2bComponentsRole: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + name: string; + permissions?: GenericRecord[]; + /** Format: date-time */ + updatedAt?: string; + }; + B2bComponentsShoppingList: { + active?: boolean; + /** Format: date-time */ + createdAt: string; + createdById?: string; + customer?: components["schemas"]["Customer"]; + customerId: string; + customFields?: GenericRecord; + employee?: components["schemas"]["B2bEmployee"]; + employeeId?: string; + id: string; + lineItems?: components["schemas"]["B2bComponentsShoppingListLineItem"][]; + name?: string; + price?: components["schemas"]["Price"][]; + salesChannelId: string; + /** Format: date-time */ + updatedAt?: string; + updatedById?: string; + }; + B2bComponentsShoppingListJsonApi: components["schemas"]["resource"] & { + active?: boolean; + /** Format: date-time */ + createdAt: string; + createdById?: string; + customerId: string; + customFields?: GenericRecord; + employeeId?: string; + id: string; + name?: string; + price?: components["schemas"]["Price"][]; + relationships?: { + customer?: { + data?: { + /** @example 91ec1f9324753048c0096d036a694f86 */ + id?: string; + /** @example customer */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /b2b-components-shopping-list/23cb3bfda723e05b43cb25a427ee5a25/customer + */ + related?: string; + }; + }; + employee?: { + data?: { + /** @example fa5473530e4d1a5a1e1eb53d2fedb10c */ + id?: string; + /** @example b2b_employee */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /b2b-components-shopping-list/23cb3bfda723e05b43cb25a427ee5a25/employee + */ + related?: string; + }; + }; + lineItems?: { + data?: { + /** @example a042af1aa9f3853fe3cd7dabc065568f */ + id?: string; + /** @example b2b_components_shopping_list_line_item */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /b2b-components-shopping-list/23cb3bfda723e05b43cb25a427ee5a25/lineItems + */ + related?: string; + }; + }; + }; + salesChannelId: string; + /** Format: date-time */ + updatedAt?: string; + updatedById?: string; + }; + B2bComponentsShoppingListLineItem: { + /** Format: date-time */ + createdAt: string; + id: string; + price?: components["schemas"]["Price"][]; + product?: components["schemas"]["Product"]; + productId?: string; + productVersionId?: string; + /** Format: int64 */ + quantity: number; + /** Format: date-time */ + updatedAt?: string; + }; + B2bComponentsShoppingListLineItemJsonApi: components["schemas"]["resource"] & { + /** Format: date-time */ + createdAt: string; + id: string; + price?: components["schemas"]["Price"][]; + productId?: string; + productVersionId?: string; + /** Format: int64 */ + quantity: number; + relationships?: { + product?: { + data?: { + /** @example f5bf48aa40cad7891eb709fcf1fde128 */ + id?: string; + /** @example product */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /b2b-components-shopping-list-line-item/30d48c8d92682de24e11d3f72c5dd1ea/product + */ + related?: string; + }; + }; + }; + /** Format: date-time */ + updatedAt?: string; + }; + B2bEmployee: { + active?: boolean; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + email: string; + firstName: string; + id: string; + language?: components["schemas"]["Language"]; + languageId: string; + lastName: string; + role?: components["schemas"]["B2bComponentsRole"]; + /** Format: date-time */ + updatedAt?: string; + }; + B2bOrderEmployee: { + /** Format: date-time */ + createdAt: string; + firstName: string; + id?: string; + lastName: string; + /** Format: date-time */ + updatedAt?: string; + }; + B2bPermission: { + /** Format: date-time */ + createdAt: string; + dependencies?: string[]; + group: string; + id: string; + name: string; + /** Format: date-time */ + updatedAt?: string; + }; + Breadcrumb: { + /** @enum {string} */ + apiAlias: "breadcrumb"; + categoryId: string; + name: string; + path: string; + seoUrls?: components["schemas"]["SeoUrl"][]; + translated: { + categoryId: string; + customFields?: GenericRecord; + description?: string; + externalLink?: string; + internalLink?: string; + keywords?: string; + linkNewTab?: boolean; + /** @enum {string} */ + linkType?: "external" | "category" | "product" | "landing_page"; + metaDescription?: string; + metaTitle?: string; + name: string; + path: string; + slotConfig?: GenericRecord; + type: string; + }; + /** @enum {string} */ + type: "page" | "link" | "folder"; + }; + BreadcrumbCollection: { + /** @enum {string} */ + apiAlias: "breadcrumb_collection"; + breadcrumbs: components["schemas"]["Breadcrumb"][]; + }; + CalculatedPrice: { + /** @enum {string} */ + apiAlias: "calculated_price"; + calculatedTaxes: { + /** @enum {string} */ + apiAlias: "cart_tax_calculated"; + price: number; + tax: number; + taxRate: number; + }[]; + hasRange: boolean; + listPrice: components["schemas"]["CartListPrice"] | null; + netPrice: number; + positionPrice: number; + quantity: number; + rawTotal?: number; + referencePrice: components["schemas"]["CartPriceReference"] | null; + regulationPrice: { + /** @enum {string} */ + apiAlias?: "cart_regulation_price"; + price?: number; + } | null; + /** Currently active tax rules and/or rates */ + taxRules: { + name?: string; + /** Format: float */ + taxRate?: number; + }[]; + totalPrice: number; + unitPrice: number; + /** Format: ^[0-9a-f]{32}$ */ + variantId?: string | null; + }; + Cart: { + /** An affiliate tracking code */ + affiliateCode?: string | null; + /** A campaign tracking code */ + campaignCode?: string | null; + /** A comment that can be added to the cart. */ + customerComment?: string | null; + deliveries?: components["schemas"]["CartDelivery"][]; + /** A list of all cart errors, such as insufficient stocks, invalid addresses or vouchers. */ + errors?: components["schemas"]["CartError"][]; + /** All items within the cart */ + lineItems?: components["schemas"]["LineItem"][]; + modified?: boolean; + /** Name of the cart - for example `guest-cart` */ + name?: string; + price?: components["schemas"]["CalculatedPrice"]; + /** Context token identifying the cart and the user session */ + token?: string; + /** A list of all payment transactions associated with the current cart. */ + transactions?: { + amount?: components["schemas"]["CalculatedPrice"]; + paymentMethodId?: string; + }[]; + }; + CartDelivery: { + deliveryDate?: { + /** Format: date-time */ + earliest?: string; + /** Format: date-time */ + latest?: string; + }; + location?: { + address?: components["schemas"]["CustomerAddress"]; + /** @enum {string} */ + apiAlias?: "cart_delivery_shipping_location"; + country?: components["schemas"]["Country"]; + state?: components["schemas"]["CountryState"]; + }; + positions?: components["schemas"]["CartDeliveryPosition"][]; + shippingCosts?: components["schemas"]["CalculatedPrice"]; + shippingMethod?: components["schemas"]["ShippingMethod"]; + }; + CartDeliveryInformation: { + /** @enum {string} */ + apiAlias: "cart_delivery_information"; + deliveryTime?: { + /** @enum {string} */ + apiAlias?: "cart_delivery_time"; + max?: number; + min?: number; + name?: string; + unit?: string; + }; + freeDelivery?: boolean; + height?: number; + length?: number; + restockTime?: number; + stock?: number; + weight?: number; + width?: number; + }; + CartDeliveryPosition: { + deliveryDate?: { + /** Format: date-time */ + earliest?: string; + /** Format: date-time */ + latest?: string; + }; + identifier?: string; + lineItem?: components["schemas"]["LineItem"]; + price?: components["schemas"]["CalculatedPrice"]; + }; + CartError: { + items?: { + key?: string; + /** + * * `0` - notice, + * * `10` - warning, + * * `20` - error + * @enum {number} + */ + level?: 0 | 10 | 20; + message?: string; + messageKey?: string; + }; + }; + CartItems: { + items?: components["schemas"]["LineItem"][]; + }; + CartListPrice: { + /** @enum {string} */ + apiAlias: "cart_list_price"; + discount?: number; + percentage?: number; + price?: number; + }; + CartPriceQuantity: { + /** @enum {string} */ + apiAlias: "cart_price_quantity"; + isCalculated?: boolean; + listPrice?: components["schemas"]["CartListPrice"]; + price?: number; + quantity?: number; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: { + name?: string; + /** Format: float */ + taxRate?: number; + }[]; + type?: string; + }; + CartPriceReference: { + /** @enum {string} */ + apiAlias: "cart_price_reference"; + hasRange: boolean; + listPrice: components["schemas"]["CartListPrice"] | null; + price?: number; + purchaseUnit?: number; + referenceUnit?: number; + regulationPrice: { + /** @enum {string} */ + apiAlias?: "cart_regulation_price"; + price?: number; + } | null; + unitName: string; + /** Format: ^[0-9a-f]{32}$ */ + variantId?: string | null; + }; + Category: { + active?: boolean; + afterCategoryId?: string; + afterCategoryVersionId?: string; + /** @enum {string} */ + apiAlias: "category"; + breadcrumb: readonly string[]; + /** Format: int64 */ + childCount: number; + children: components["schemas"]["Category"][]; + cmsPage?: components["schemas"]["CmsPage"]; + cmsPageId?: string; + /** Runtime field, cannot be used as part of the criteria. */ + cmsPageIdSwitched?: boolean; + cmsPageVersionId?: string; + /** Format: date-time */ + createdAt: string; + customEntityTypeId?: string; + customFields?: GenericRecord; + description?: string; + displayNestedProducts: boolean; + externalLink?: string; + id: string; + internalLink?: string; + keywords?: string; + /** Format: int64 */ + level?: number; + linkNewTab?: boolean; + linkType?: string; + media?: components["schemas"]["Media"]; + mediaId?: string; + metaDescription?: string; + metaTitle?: string; + name: string; + parent?: components["schemas"]["Category"]; + parentId?: string; + parentVersionId?: string; + path?: string; + productAssignmentType: string; + seoUrls?: components["schemas"]["SeoUrl"][]; + tags?: components["schemas"]["Tag"][]; + translated: { + afterCategoryId: string; + afterCategoryVersionId: string; + breadcrumb: string[]; + cmsPageId: string; + cmsPageVersionId: string; + customEntityTypeId: string; + description: string; + externalLink: string; + internalLink: string; + keywords: string; + linkType: string; + mediaId: string; + metaDescription: string; + metaTitle: string; + name: string; + parentId: string; + parentVersionId: string; + path: string; + productAssignmentType: string; + type: string; + versionId: string; + }; + type: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + visible?: boolean; + /** + * Format: int64 + * Runtime field, cannot be used as part of the criteria. + */ + visibleChildCount?: number; + }; + CategoryJsonApi: components["schemas"]["resource"] & { + active?: boolean; + afterCategoryId?: string; + afterCategoryVersionId?: string; + breadcrumb?: readonly GenericRecord[]; + /** Format: int64 */ + childCount?: number; + cmsPageId?: string; + /** Runtime field, cannot be used as part of the criteria. */ + cmsPageIdSwitched?: boolean; + cmsPageVersionId?: string; + /** Format: date-time */ + createdAt: string; + customEntityTypeId?: string; + customFields?: GenericRecord; + description?: string; + displayNestedProducts: boolean; + externalLink?: string; + id: string; + internalLink?: string; + keywords?: string; + /** Format: int64 */ + level?: number; + linkNewTab?: boolean; + linkType?: string; + mediaId?: string; + metaDescription?: string; + metaTitle?: string; + name: string; + parentId?: string; + parentVersionId?: string; + path?: string; + productAssignmentType: string; + relationships?: { + children?: { + data?: { + /** @example 268184c12df027f536154d099d497b31 */ + id?: string; + /** @example category */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /category/3adbdb3ac060038aa0e6e6c138ef9873/children + */ + related?: string; + }; + }; + cmsPage?: { + data?: { + /** @example 7b1460918b1abb93311108f3dc021c9b */ + id?: string; + /** @example cms_page */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /category/3adbdb3ac060038aa0e6e6c138ef9873/cmsPage + */ + related?: string; + }; + }; + media?: { + data?: { + /** @example 62933a2951ef01f4eafd9bdf4d3cd2f0 */ + id?: string; + /** @example media */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /category/3adbdb3ac060038aa0e6e6c138ef9873/media + */ + related?: string; + }; + }; + parent?: { + data?: { + /** @example d0e45878043844ffc41aac437e86b602 */ + id?: string; + /** @example category */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /category/3adbdb3ac060038aa0e6e6c138ef9873/parent + */ + related?: string; + }; + }; + seoUrls?: { + data?: { + /** @example 5321b5a71127b8b98cdd4b068ad56c4c */ + id?: string; + /** @example seo_url */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /category/3adbdb3ac060038aa0e6e6c138ef9873/seoUrls + */ + related?: string; + }; + }; + tags?: { + data?: { + /** @example d57ac45256849d9b13e2422d91580fb9 */ + id?: string; + /** @example tag */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /category/3adbdb3ac060038aa0e6e6c138ef9873/tags + */ + related?: string; + }; + }; + }; + translated: { + afterCategoryId: string; + afterCategoryVersionId: string; + cmsPageId: string; + cmsPageVersionId: string; + customEntityTypeId: string; + description: string; + externalLink: string; + internalLink: string; + keywords: string; + linkType: string; + mediaId: string; + metaDescription: string; + metaTitle: string; + name: string; + parentId: string; + parentVersionId: string; + path: string; + productAssignmentType: string; + type: string; + versionId: string; + }; + type: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + visible?: boolean; + /** + * Format: int64 + * Runtime field, cannot be used as part of the criteria. + */ + visibleChildCount?: number; + }; + ClientPresentationStateResponse: { + stateForAll?: components["schemas"]["StateForAll"]; + stateForClients?: components["schemas"]["StateForClients"]; + stateForMe?: components["schemas"]["StateForMe"]; + }; + CmsBlock: { + /** @enum {string} */ + apiAlias: "cms_block"; + backgroundColor?: string; + backgroundMedia?: components["schemas"]["Media"]; + backgroundMediaId?: string; + backgroundMediaMode?: string; + cmsSectionVersionId?: string; + /** Format: date-time */ + createdAt: string; + cssClass?: string; + customFields?: GenericRecord; + extensions?: { + swagCmsExtensionsBlockRule?: { + data?: { + /** @example c426e9e5d9031b933f89682d49bb02b1 */ + id?: string; + /** @example swag_cms_extensions_block_rule */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /cms-block/9c16ffe823ddccc710bfb336c2ef30b6/swagCmsExtensionsBlockRule + */ + related?: string; + }; + }; + swagCmsExtensionsQuickview?: { + data?: { + /** @example fae098a43df8714eda5249176ffcf26c */ + id?: string; + /** @example swag_cms_extensions_quickview */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /cms-block/9c16ffe823ddccc710bfb336c2ef30b6/swagCmsExtensionsQuickview + */ + related?: string; + }; + }; + }; + id?: string; + marginBottom?: string; + marginLeft?: string; + marginRight?: string; + marginTop?: string; + name?: string; + /** Format: int64 */ + position: number; + sectionId: string; + sectionPosition?: string; + slots: components["schemas"]["CmsSlot"][]; + type: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + visibility?: { + desktop?: boolean; + mobile?: boolean; + tablet?: boolean; + }; + }; + CmsPage: { + /** @enum {string} */ + apiAlias: "cms_page"; + config?: { + backgroundColor?: string; + }; + /** Format: date-time */ + createdAt: string; + cssClass?: string; + customFields?: GenericRecord; + entity?: string; + extensions?: { + swagCmsExtensionsScrollNavigationPageSettings?: { + data?: { + /** @example 8b835206d09f3dec1b733f6a78c7ba33 */ + id?: string; + /** @example swag_cms_extensions_scroll_navigation_page_settings */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /cms-page/64bf107168bcd03626208c1764ce6890/swagCmsExtensionsScrollNavigationPageSettings + */ + related?: string; + }; + }; + }; + id: string; + landingPages?: components["schemas"]["LandingPage"][]; + name?: string; + previewMedia?: components["schemas"]["Media"]; + previewMediaId?: string; + sections: components["schemas"]["CmsSection"][]; + translated: { + cssClass: string; + entity: string; + name: string; + previewMediaId: string; + type: string; + versionId: string; + }; + type: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + CmsPageActivity: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + CmsPageDraft: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + CmsSection: { + /** @enum {string} */ + apiAlias: "cms_section"; + backgroundColor?: string; + backgroundMedia?: components["schemas"]["Media"]; + backgroundMediaId?: string; + backgroundMediaMode?: string; + blocks: components["schemas"]["CmsBlock"][]; + cmsPageVersionId?: string; + /** Format: date-time */ + createdAt: string; + cssClass?: string; + customFields?: GenericRecord; + extensions?: { + swagCmsExtensionsScrollNavigation?: { + data?: { + /** @example 425b8d6ec722d74191c6d39370af19dc */ + id?: string; + /** @example swag_cms_extensions_scroll_navigation */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /cms-section/d08def49fa8924d6f4a32bdb448d5fba/swagCmsExtensionsScrollNavigation + */ + related?: string; + }; + }; + }; + id?: string; + mobileBehavior?: string; + page?: components["schemas"]["CmsPage"]; + pageId: string; + /** Format: int64 */ + position: number; + sizingMode?: string; + translated: { + backgroundColor: string; + backgroundMediaId: string; + backgroundMediaMode: string; + cmsPageVersionId: string; + cssClass: string; + mobileBehavior: string; + pageId: string; + sizingMode: string; + type: string; + }; + type: string; + /** Format: date-time */ + updatedAt?: string; + visibility?: { + desktop?: boolean; + mobile?: boolean; + tablet?: boolean; + }; + }; + CmsSlot: { + block?: components["schemas"]["CmsBlock"]; + blockId: string; + cmsBlockVersionId?: string; + config?: GenericRecord; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + data?: GenericRecord; + fieldConfig?: GenericRecord; + id: string; + locked?: boolean; + slot: string; + translated: { + blockId: string; + cmsBlockVersionId: string; + slot: string; + type: string; + versionId: string; + }; + type: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + Country: { + active?: boolean; + addressFormat: GenericRecord; + advancedPostalCodePattern?: string; + checkAdvancedPostalCodePattern?: boolean; + checkPostalCodePattern?: boolean; + checkVatIdPattern?: boolean; + companyTax?: { + /** Format: float */ + amount: number; + currencyId: string; + enabled: boolean; + }; + /** Format: date-time */ + createdAt: string; + customerTax?: { + /** Format: float */ + amount: number; + currencyId: string; + enabled: boolean; + }; + customFields?: GenericRecord; + defaultPostalCodePattern?: string; + displayStateInRegistration?: boolean; + forceStateInRegistration?: boolean; + id: string; + isEu: boolean; + iso?: string; + iso3?: string; + name: string; + /** Format: int64 */ + position?: number; + postalCodeRequired?: boolean; + shippingAvailable?: boolean; + states?: components["schemas"]["CountryState"][]; + translated: { + advancedPostalCodePattern: string; + defaultPostalCodePattern: string; + iso: string; + iso3: string; + name: string; + vatIdPattern: string; + }; + /** Format: date-time */ + updatedAt?: string; + vatIdPattern?: string; + vatIdRequired?: boolean; + }; + CountryJsonApi: components["schemas"]["resource"] & { + active?: boolean; + addressFormat: GenericRecord; + advancedPostalCodePattern?: string; + checkAdvancedPostalCodePattern?: boolean; + checkPostalCodePattern?: boolean; + checkVatIdPattern?: boolean; + companyTax?: { + /** Format: float */ + amount: number; + currencyId: string; + enabled: boolean; + }; + /** Format: date-time */ + createdAt: string; + customerTax?: { + /** Format: float */ + amount: number; + currencyId: string; + enabled: boolean; + }; + customFields?: GenericRecord; + defaultPostalCodePattern?: string; + displayStateInRegistration?: boolean; + forceStateInRegistration?: boolean; + id: string; + isEu: boolean; + iso?: string; + iso3?: string; + name: string; + /** Format: int64 */ + position?: number; + postalCodeRequired?: boolean; + relationships?: { + states?: { + data?: { + /** @example 34d955a0df5f7af9c9b4e4dccb3c3564 */ + id?: string; + /** @example country_state */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /country/59716c97497eb9694541f7c3d37b1a4d/states + */ + related?: string; + }; + }; + }; + shippingAvailable?: boolean; + translated: { + advancedPostalCodePattern: string; + defaultPostalCodePattern: string; + iso: string; + iso3: string; + name: string; + vatIdPattern: string; + }; + /** Format: date-time */ + updatedAt?: string; + vatIdPattern?: string; + vatIdRequired?: boolean; + }; + CountryState: { + active?: boolean; + countryId: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + name: string; + /** Format: int64 */ + position?: number; + shortCode: string; + translated: { + countryId: string; + name: string; + shortCode: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + CountryStateJsonApi: components["schemas"]["resource"] & { + active?: boolean; + countryId: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + name: string; + /** Format: int64 */ + position?: number; + shortCode: string; + translated: { + countryId: string; + name: string; + shortCode: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + CreateInteractionRequestBody: { + /** + * The time in seconds how long the interaction should be stored in the database + * @default -1 + */ + lifeTimeInSeconds?: number; + name: components["schemas"]["InteractionName"]; + payload?: GenericRecord; + /** + * The time when the interaction was triggered + * @default now + */ + triggeredAt?: string; + }; + Criteria: { + aggregations?: components["schemas"]["Aggregations"]; + /** Associations to include. For more information, see [Search Queries > Associations](https://shopware.stoplight.io/docs/store-api/cf710bf73d0cd-search-queries#associations) */ + associations?: components["schemas"]["Association"]; + /** Fields which should be returned in the search result. */ + fields?: string[]; + /** 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) */ + filter?: ( + | components["schemas"]["SimpleFilter"] + | components["schemas"]["EqualsFilter"] + | components["schemas"]["MultiNotFilter"] + | components["schemas"]["RangeFilter"] + )[]; + /** Perform groupings over certain fields */ + grouping?: string[]; + /** List of ids to search for */ + ids?: string[]; + includes?: components["schemas"]["Include"]; + /** Number of items per result page */ + limit?: number; + p?: number; + /** Search result page */ + page?: number; + /** 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) */ + "post-filter"?: ( + | components["schemas"]["SimpleFilter"] + | components["schemas"]["EqualsFilter"] + | components["schemas"]["MultiNotFilter"] + | components["schemas"]["RangeFilter"] + )[]; + /** 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) */ + query?: components["schemas"]["Query"][]; + /** Sorting in the search result. */ + sort?: components["schemas"]["Sort"][]; + /** Search term */ + term?: string; + "total-count-mode"?: components["schemas"]["TotalCountMode"]; + }; + CrossSellingElement: { + /** @enum {string} */ + apiAlias: "cross_selling_element"; + crossSelling: components["schemas"]["ProductCrossSelling"]; + products: components["schemas"]["Product"][]; + /** Format: uuid */ + streamId?: string; + /** Format: int32 */ + total: number; + }; + CrossSellingElementCollection: components["schemas"]["CrossSellingElement"][]; + Currency: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + /** Format: float */ + factor: number; + id: string; + isoCode: string; + /** Runtime field, cannot be used as part of the criteria. */ + isSystemDefault?: boolean; + itemRounding: { + /** Format: int64 */ + decimals: number; + /** Format: float */ + interval: number; + roundForNet: boolean; + }; + name: string; + /** Format: int64 */ + position?: number; + shortName: string; + symbol: string; + /** Format: float */ + taxFreeFrom?: number; + totalRounding: { + /** Format: int64 */ + decimals: number; + /** Format: float */ + interval: number; + roundForNet: boolean; + }; + translated: { + isoCode: string; + name: string; + shortName: string; + symbol: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + CurrencyCountryRounding: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + CurrencyJsonApi: components["schemas"]["resource"] & { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + /** Format: float */ + factor: number; + id: string; + isoCode: string; + /** Runtime field, cannot be used as part of the criteria. */ + isSystemDefault?: boolean; + itemRounding: { + /** Format: int64 */ + decimals: number; + /** Format: float */ + interval: number; + roundForNet: boolean; + }; + name: string; + /** Format: int64 */ + position?: number; + shortName: string; + symbol: string; + /** Format: float */ + taxFreeFrom?: number; + totalRounding: { + /** Format: int64 */ + decimals: number; + /** Format: float */ + interval: number; + roundForNet: boolean; + }; + translated: { + isoCode: string; + name: string; + shortName: string; + symbol: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + CustomEntity: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + CustomField: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + CustomFieldSet: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + CustomFieldSetRelation: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + CustomPrice: { + /** Format: date-time */ + createdAt: string; + customer?: components["schemas"]["Customer"]; + customerGroup?: components["schemas"]["CustomerGroup"]; + customerGroupId?: string; + customerId?: string; + id: string; + price: GenericRecord; + product?: components["schemas"]["Product"]; + productId: string; + productVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Customer: { + accountType: string; + active?: boolean; + activeBillingAddress: components["schemas"]["CustomerAddress"]; + activeShippingAddress: components["schemas"]["CustomerAddress"]; + addresses?: components["schemas"]["CustomerAddress"][]; + affiliateCode?: string; + /** @enum {string} */ + apiAlias: "customer"; + birthday?: string; + campaignCode?: string; + company?: string; + /** Format: date-time */ + createdAt: string; + createdById?: string; + customerNumber: string; + customFields?: GenericRecord; + defaultBillingAddress?: components["schemas"]["CustomerAddress"]; + defaultBillingAddressId: string; + defaultPaymentMethod?: components["schemas"]["PaymentMethod"]; + defaultPaymentMethodId: string; + defaultShippingAddress?: components["schemas"]["CustomerAddress"]; + defaultShippingAddressId: string; + /** Format: date-time */ + doubleOptInConfirmDate?: string; + /** Format: date-time */ + doubleOptInEmailSentDate?: string; + doubleOptInRegistration?: boolean; + email: string; + extensions?: { + specificFeatures?: { + data?: { + /** @example 5cfb6fcb7542e25892e1a35cd6a06c54 */ + id?: string; + /** @example customer_specific_features */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /customer/ce26601dac0dea138b7295f02b7620a7/specificFeatures + */ + related?: string; + }; + }; + }; + /** Format: date-time */ + firstLogin?: string; + firstName: string; + group?: components["schemas"]["CustomerGroup"]; + groupId: string; + guest?: boolean; + hash?: string; + id: string; + language?: components["schemas"]["Language"]; + languageId: string; + /** Format: date-time */ + lastLogin?: string; + lastName: string; + /** Format: date-time */ + lastOrderDate?: string; + lastPaymentMethod?: components["schemas"]["PaymentMethod"]; + lastPaymentMethodId?: string; + /** Format: int64 */ + orderCount?: number; + /** Format: float */ + orderTotalAmount?: number; + /** Format: int64 */ + reviewCount?: number; + salesChannelId: string; + salutation?: components["schemas"]["Salutation"]; + salutationId?: string; + tagIds?: readonly string[]; + tags?: components["schemas"]["Tag"][]; + title?: string; + /** Format: date-time */ + updatedAt?: string; + updatedById?: string; + vatIds?: string[]; + }; + CustomerAddress: { + additionalAddressLine1?: string; + additionalAddressLine2?: string; + city: string; + company?: string; + country?: components["schemas"]["Country"]; + countryId: string; + countryState?: components["schemas"]["CountryState"]; + countryStateId?: string; + /** Format: date-time */ + createdAt: string; + customerId: string; + customFields?: GenericRecord; + department?: string; + firstName: string; + id: string; + lastName: string; + phoneNumber?: string; + salutation?: components["schemas"]["Salutation"]; + salutationId?: string; + street: string; + title?: string; + /** Format: date-time */ + updatedAt?: string; + zipcode?: string; + }; + CustomerAddressBody: { + additionalAddressLine1?: string; + additionalAddressLine2?: string; + city: string; + company?: string; + country?: components["schemas"]["Country"]; + countryId: string; + countryState?: components["schemas"]["CountryState"]; + countryStateId?: string; + customFields?: GenericRecord; + department?: string; + firstName: string; + lastName: string; + phoneNumber?: string; + salutation?: components["schemas"]["Salutation"]; + salutationId?: string; + street: string; + title?: string; + zipcode?: string; + }; + CustomerAddressRead: { + country: components["schemas"]["Country"]; + countryState?: components["schemas"]["CountryState"]; + /** Format: date-time */ + createdAt: string; + customerId: string; + id?: string; + salutation: components["schemas"]["Salutation"]; + /** Format: date-time */ + updatedAt: string | null; + }; + CustomerGroup: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + displayGross?: boolean; + id: string; + name: string; + registrationActive?: boolean; + registrationIntroduction?: string; + registrationOnlyCompanyRegistration?: boolean; + registrationSeoMetaDescription?: string; + registrationTitle?: string; + translated: { + name: string; + registrationIntroduction: string; + registrationSeoMetaDescription: string; + registrationTitle: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + CustomerRecovery: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + CustomerSpecificFeatures: { + /** Format: date-time */ + createdAt: string; + customer?: components["schemas"]["Customer"]; + customerId: string; + features: GenericRecord; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + CustomerTag: { + customerId: string; + id?: string; + tag?: components["schemas"]["Tag"]; + tagId: string; + }; + CustomerWishlist: { + /** Format: date-time */ + createdAt: string; + customerId: string; + customFields?: GenericRecord; + id: string; + /** Format: date-time */ + updatedAt?: string; + }; + CustomerWishlistProduct: { + /** Format: date-time */ + createdAt: string; + id: string; + productId: string; + productVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + }; + DeliveryTime: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + /** Format: int64 */ + max: number; + /** Format: int64 */ + min: number; + name: string; + translated: { + name: string; + unit: string; + }; + unit: string; + /** Format: date-time */ + updatedAt?: string; + }; + Document: { + config: { + name: string; + title: string; + }; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + deepLinkCode: string; + dependentDocuments?: components["schemas"]["Document"][]; + documentMediaFile?: components["schemas"]["Media"]; + documentMediaFileId?: string; + documentNumber?: string; + documentType?: components["schemas"]["DocumentType"]; + documentTypeId: string; + fileType: string; + id: string; + order?: components["schemas"]["Order"]; + orderId: string; + orderVersionId?: string; + referencedDocument?: components["schemas"]["Document"]; + referencedDocumentId?: string; + sent?: boolean; + static?: boolean; + /** Format: date-time */ + updatedAt?: string; + }; + DocumentBaseConfig: { + config?: GenericRecord; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + documentNumber?: string; + documentTypeId: string; + filenamePrefix?: string; + filenameSuffix?: string; + global: boolean; + id: string; + logo?: components["schemas"]["Media"]; + logoId?: string; + name: string; + /** Format: date-time */ + updatedAt?: string; + }; + DocumentBaseConfigSalesChannel: { + /** Format: date-time */ + createdAt: string; + documentBaseConfigId: string; + documentTypeId?: string; + id: string; + salesChannelId?: string; + /** Format: date-time */ + updatedAt?: string; + }; + DocumentType: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + name: string; + technicalName: string; + translated: { + name: string; + technicalName: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + DsrAppointment: { + /** Format: date-time */ + accessibleFrom?: string; + /** Format: date-time */ + accessibleTo?: string; + active?: boolean; + attendeeRuleIds?: GenericRecord; + /** Format: date-time */ + createdAt: string; + createdById: string; + customFields?: GenericRecord; + default?: boolean; + dsrPresentationVersionId?: string; + /** Format: date-time */ + endedAt?: string; + guideUserId?: string; + id?: string; + isPreview?: boolean; + name: string; + presentationId: string; + salesChannelDomainId: string; + /** Format: date-time */ + startedAt?: string; + translated: { + accessibleFrom: string; + accessibleTo: string; + createdById: string; + dsrPresentationVersionId: string; + endedAt: string; + guideUserId: string; + name: string; + presentationId: string; + salesChannelDomainId: string; + startedAt: string; + updatedById: string; + videoAudioSettings: string; + }; + /** Format: date-time */ + updatedAt?: string; + updatedById?: string; + videoAudioSettings?: string; + videoChat?: components["schemas"]["DsrAppointmentVideoChat"]; + }; + DsrAppointmentAttendee: { + /** Format: date-time */ + attendeeSubmittedAt?: string; + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + joinedAt?: string; + /** Format: date-time */ + lastActive?: string; + /** Format: date-time */ + updatedAt?: string; + }; + DsrAppointmentVideoChat: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id?: string; + name?: string; + startAsBroadcast?: boolean; + /** Format: date-time */ + updatedAt?: string; + url?: string; + }; + DsrAttendeeProductCollection: { + attendeeId: string; + /** Format: date-time */ + createdAt: string; + id?: string; + productId: string; + /** Format: date-time */ + updatedAt?: string; + }; + DsrInteraction: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + DsrPresentation: { + active?: boolean; + appointments?: components["schemas"]["DsrAppointment"][]; + cmsPages?: components["schemas"]["DsrPresentationCmsPage"][]; + /** Format: date-time */ + createdAt: string; + createdById: string; + customFields?: GenericRecord; + id: string; + name: string; + parent?: components["schemas"]["DsrPresentation"]; + parentId?: string; + parentVersionId?: string; + translated: { + createdById: string; + name: string; + parentId: string; + parentVersionId: string; + updatedById: string; + versionId: string; + }; + /** Format: date-time */ + updatedAt?: string; + updatedById?: string; + versionId?: string; + }; + DsrPresentationCmsPage: { + cmsPage?: components["schemas"]["CmsPage"]; + cmsPageId: string; + cmsPageVersionId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + dsrPresentationVersionId?: string; + id: string; + isInstantListing?: boolean; + pickedProductIds?: GenericRecord; + /** Format: int64 */ + position?: number; + presentationId: string; + productId?: string; + productStreamId?: string; + productVersionId?: string; + title?: string; + translated: { + cmsPageId: string; + cmsPageVersionId: string; + dsrPresentationVersionId: string; + presentationId: string; + productId: string; + productStreamId: string; + productVersionId: string; + title: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + DynamicPageOpenedPayload: components["schemas"]["AbstractDynamicPageOpenedPayload"]; + DynamicProductListingPageOpenedPayload: WithRequired< + { + /** Current page position in the pagination */ + page: number; + } & components["schemas"]["AbstractDynamicPageOpenedPayload"], + "page" + >; + DynamicProductPageOpenedPayload: WithRequired< + { + /** the id from the product which is shown on the dynamic page */ + productId: string; + } & components["schemas"]["AbstractDynamicPageOpenedPayload"], + "productId" + >; + EmptyPayload: Record; + EntitySearchResult: { + /** Contains aggregated data. A simple example is the determination of the average price from a product search query. */ + aggregations?: GenericRecord[]; + entity?: string; + /** The actual limit. This is used for pagination and goes together with the page. */ + limit?: number; + /** The actual page. This can be used for pagination. */ + page?: number; + /** The total number of found entities */ + total?: number; + }; + EqualsFilter: { + field: string; + /** @enum {string} */ + type: "equals"; + value: string | number | boolean | null; + }; + Filters: ( + | components["schemas"]["SimpleFilter"] + | components["schemas"]["EqualsFilter"] + | components["schemas"]["MultiNotFilter"] + | components["schemas"]["RangeFilter"] + )[]; + FindProductVariantRouteResponse: { + foundCombination?: { + options?: string[]; + variantId?: string; + }; + }; + Flow: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + FlowSequence: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + FlowTemplate: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + GuideHoveredPayload: { + $hoveredElementId?: string | null; + }; + ImportExportFile: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ImportExportLog: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ImportExportProfile: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Include: { + [key: string]: string[]; + }; + Integration: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + InteractionName: + | "product.viewed" + | "dynamicPage.opened" + | "dynamicProductPage.opened" + | "dynamicPage.closed" + | "page.viewed" + | "attendee.product.collection.liked" + | "attendee.product.collection.disliked" + | "attendee.product.collection.removed" + | "remote.checkout.accepted" + | "remote.checkout.declined" + | "keep.alive" + | "quickview.opened" + | "quickview.closed" + | "dynamicProductListingPage.opened" + | "dynamicProductListingPage.loadedMore" + | "remote.checkout.denied" + | "guide.hovered" + | "broadcastMode.toggled"; + JoinAppointmentResponse: { + /** The name of the appointment */ + appointmentName?: string; + /** The created Id for the attendee */ + attendeeId?: string; + /** The appointment id */ + id?: string; + /** To see if it's a preview appointment */ + isPreview?: boolean; + /** The JWT mercure token to subscribe for updates */ + JWTMercurePublisherToken?: string | null; + /** The JWT mercure token to publish updates */ + JWTMercureSubscriberToken?: string | null; + /** The mercure hub url to connect for subscribing and updating */ + mercureHubPublicUrl?: string | null; + /** The topic to which the attendee/guide can send updates */ + mercurePublisherTopic?: string | null; + /** The topics to which the attendee/guide can subscribe for */ + mercureSubscriberTopics?: string[]; + /** The new context token will be used in the header (sw-context-token) for calling the other routes */ + newContextToken?: string; + /** + * The type of the appointment + * @enum {string} + */ + presentationGuideMode?: "self" | "guided"; + /** The id of the current sales channel */ + salesChannelId?: string; + /** The name of the current sales channel */ + salesChannelName?: string; + }; + LandingPage: { + active?: boolean; + /** @enum {string} */ + apiAlias: "landing_page"; + cmsPage?: components["schemas"]["CmsPage"]; + cmsPageId?: string; + cmsPageVersionId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + keywords?: string; + metaDescription?: string; + metaTitle?: string; + name: string; + seoUrls?: components["schemas"]["SeoUrl"][]; + slotConfig?: GenericRecord; + translated: { + cmsPageId: string; + cmsPageVersionId: string; + keywords: string; + metaDescription: string; + metaTitle: string; + name: string; + url: string; + versionId: string; + }; + /** Format: date-time */ + updatedAt?: string; + url: string; + versionId?: string; + }; + LandingPageJsonApi: components["schemas"]["resource"] & { + active?: boolean; + cmsPageId?: string; + cmsPageVersionId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + keywords?: string; + metaDescription?: string; + metaTitle?: string; + name: string; + relationships?: { + cmsPage?: { + data?: { + /** @example 7b1460918b1abb93311108f3dc021c9b */ + id?: string; + /** @example cms_page */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /landing-page/815c27537bec3b60c50a2ae4d2ce875d/cmsPage + */ + related?: string; + }; + }; + seoUrls?: { + data?: { + /** @example 5321b5a71127b8b98cdd4b068ad56c4c */ + id?: string; + /** @example seo_url */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /landing-page/815c27537bec3b60c50a2ae4d2ce875d/seoUrls + */ + related?: string; + }; + }; + }; + slotConfig?: GenericRecord; + translated: { + cmsPageId: string; + cmsPageVersionId: string; + keywords: string; + metaDescription: string; + metaTitle: string; + name: string; + url: string; + versionId: string; + }; + /** Format: date-time */ + updatedAt?: string; + url: string; + versionId?: string; + }; + Language: { + children?: components["schemas"]["Language"][]; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + locale?: components["schemas"]["Locale"]; + localeId: string; + name: string; + parent?: components["schemas"]["Language"]; + parentId?: string; + translationCode?: components["schemas"]["Locale"]; + translationCodeId?: string; + /** Format: date-time */ + updatedAt?: string; + }; + LanguageJsonApi: components["schemas"]["resource"] & { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + localeId: string; + name: string; + parentId?: string; + relationships?: { + children?: { + data?: { + /** @example 268184c12df027f536154d099d497b31 */ + id?: string; + /** @example language */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /language/4994a8ffeba4ac3140beb89e8d41f174/children + */ + related?: string; + }; + }; + locale?: { + data?: { + /** @example fb216d9e8791e63c8d12bdc420956839 */ + id?: string; + /** @example locale */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /language/4994a8ffeba4ac3140beb89e8d41f174/locale + */ + related?: string; + }; + }; + parent?: { + data?: { + /** @example d0e45878043844ffc41aac437e86b602 */ + id?: string; + /** @example language */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /language/4994a8ffeba4ac3140beb89e8d41f174/parent + */ + related?: string; + }; + }; + translationCode?: { + data?: { + /** @example 6ef2035242b8fcb7b61c3a41850e60b3 */ + id?: string; + /** @example locale */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /language/4994a8ffeba4ac3140beb89e8d41f174/translationCode + */ + related?: string; + }; + }; + }; + translationCodeId?: string; + /** Format: date-time */ + updatedAt?: string; + }; + LineItem: { + children?: components["schemas"]["LineItem"][]; + cover?: components["schemas"]["ProductMedia"]; + dataContextHash?: string; + dataTimestamp?: string; + deliveryInformation?: components["schemas"]["CartDeliveryInformation"]; + description?: string; + good?: boolean; + id: string; + label?: string; + modified?: boolean; + modifiedByApp?: boolean; + payload?: components["schemas"]["Product"]; + price?: { + /** @enum {string} */ + apiAlias: "calculated_price"; + calculatedTaxes?: { + /** @enum {string} */ + apiAlias: "cart_tax_calculated"; + price: number; + tax: number; + taxRate: number; + }[]; + listPrice?: components["schemas"]["CartListPrice"] | null; + quantity: number; + referencePrice?: components["schemas"]["CartPriceReference"] | null; + regulationPrice?: { + /** @enum {string} */ + apiAlias?: "cart_regulation_price"; + price?: number; + } | null; + /** Currently active tax rules and/or rates */ + taxRules?: { + name?: string; + /** Format: float */ + taxRate?: number; + }[]; + totalPrice: number; + unitPrice: number; + }; + priceDefinition?: components["schemas"]["CartPriceQuantity"]; + quantity?: number; + quantityInformation?: { + maxPurchase?: number; + minPurchase?: number; + purchaseSteps?: number; + }; + referencedId?: string; + removable?: boolean; + stackable?: boolean; + states?: ("is-physical" | "is-download")[]; + type: components["schemas"]["LineItemType"]; + uniqueIdentifier?: string; + }; + LineItemType: + | "product" + | "credit" + | "custom" + | "promotion" + | "discount" + | "container" + | "quantity"; + Locale: { + code: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + name: string; + territory: string; + translated: { + code: string; + name: string; + territory: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + LogEntry: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + MailHeaderFooter: { + /** Format: date-time */ + createdAt: string; + description?: string; + footerHtml?: string; + footerPlain?: string; + headerHtml?: string; + headerPlain?: string; + id?: string; + name: string; + systemDefault?: boolean; + translated: { + description: string; + footerHtml: string; + footerPlain: string; + headerHtml: string; + headerPlain: string; + name: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + MailTemplate: { + contentHtml: string; + contentPlain: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id?: string; + mailTemplateType?: components["schemas"]["MailTemplateType"]; + media?: components["schemas"]["MailTemplateMedia"][]; + senderName?: string; + systemDefault?: boolean; + translated: { + contentHtml: string; + contentPlain: string; + senderName: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + MailTemplateMedia: { + id: string; + languageId: string; + mailTemplateId: string; + media?: components["schemas"]["Media"]; + mediaId: string; + /** Format: int64 */ + position?: number; + }; + MailTemplateType: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + name: string; + technicalName: string; + translated: { + name: string; + technicalName: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + MainCategory: { + categoryId: string; + categoryVersionId?: string; + /** Format: date-time */ + createdAt: string; + id: string; + productId: string; + productVersionId?: string; + salesChannelId: string; + /** Format: date-time */ + updatedAt?: string; + }; + MainCategoryJsonApi: components["schemas"]["resource"] & { + categoryId: string; + categoryVersionId?: string; + /** Format: date-time */ + createdAt: string; + id: string; + productId: string; + productVersionId?: string; + salesChannelId: string; + /** Format: date-time */ + updatedAt?: string; + }; + Media: { + alt?: string; + /** @enum {string} */ + apiAlias: "media"; + config?: GenericRecord; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + extensions?: { + mediaAiTag?: { + data?: { + /** @example 3c88197809d464216a8c40a8db191b38 */ + id?: string; + /** @example media_ai_tag */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /media/3b563524fdb17b4a86590470d40bef74/mediaAiTag + */ + related?: string; + }; + }; + }; + fileExtension: string; + fileName: string; + /** Format: int64 */ + fileSize?: number; + /** Runtime field, cannot be used as part of the criteria. */ + hasFile: boolean; + id: string; + metaData?: { + readonly height?: number; + readonly width?: number; + }; + mimeType?: string; + path: string; + private: boolean; + thumbnails?: components["schemas"]["MediaThumbnail"][]; + title?: string; + translated: { + alt: string; + fileExtension: string; + fileName: string; + mimeType: string; + path: string; + title: string; + uploadedAt: string; + url: string; + }; + /** Format: date-time */ + updatedAt?: string; + /** Format: date-time */ + uploadedAt?: string; + /** Runtime field, cannot be used as part of the criteria. */ + url: string; + }; + MediaAiTag: { + /** Format: date-time */ + createdAt: string; + id: string; + media?: components["schemas"]["Media"]; + tags?: GenericRecord[]; + /** Format: date-time */ + updatedAt?: string; + }; + MediaDefaultFolder: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + MediaFolder: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + MediaFolderConfiguration: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + MediaTag: { + id?: string; + media?: components["schemas"]["Media"]; + mediaId: string; + tag?: components["schemas"]["Tag"]; + tagId: string; + }; + MediaThumbnail: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + /** Format: int64 */ + height: number; + id: string; + mediaId: string; + path?: string; + /** Format: date-time */ + updatedAt?: string; + /** Runtime field, cannot be used as part of the criteria. */ + url: string; + /** Format: int64 */ + width: number; + }; + MediaThumbnailSize: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + /** Format: int64 */ + height: number; + id: string; + /** Format: date-time */ + updatedAt?: string; + /** Format: int64 */ + width: number; + }; + MultiNotFilter: { + /** @enum {string} */ + operator: "AND" | "and" | "OR" | "or"; + queries: components["schemas"]["Filters"]; + /** @enum {string} */ + type: "multi" | "not"; + }; + NaturalLanguageSearchTermResponse: { + /** @enum {string} */ + apiAlias: "product_natural_language_search_term"; + reason: string; + term: string; + }[]; + NavigationRouteResponse: components["schemas"]["Category"][]; + NavigationType: "main-navigation" | "footer-navigation" | "service-navigation"; + NewsletterRecipient: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + NewsletterRecipientJsonApi: components["schemas"]["resource"] & { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Notification: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + NumberRange: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + NumberRangeSalesChannel: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + NumberRangeState: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + NumberRangeType: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Order: { + addresses?: components["schemas"]["OrderAddress"][]; + affiliateCode?: string; + /** Format: float */ + amountNet?: number; + /** Format: float */ + amountTotal?: number; + billingAddress?: components["schemas"]["OrderAddress"]; + billingAddressId: string; + billingAddressVersionId?: string; + campaignCode?: string; + /** Format: date-time */ + createdAt: string; + createdById?: string; + currency?: components["schemas"]["Currency"]; + /** Format: float */ + currencyFactor: number; + currencyId: string; + customerComment?: string; + customFields?: GenericRecord; + deepLinkCode?: string; + deliveries?: components["schemas"]["OrderDelivery"][]; + documents: components["schemas"]["Document"][]; + extensions?: { + returns?: { + data?: { + /** @example 7fff84525c6516919851a9005373f87e */ + id?: string; + /** @example order_return */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /order/a240fa27925a635b08dc28c9e4f9216d/returns + */ + related?: string; + }; + }; + subscription?: { + data?: { + /** @example b48b13e73a6ac2a86dc54425dd24d9ff */ + id?: string; + /** @example subscription */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /order/a240fa27925a635b08dc28c9e4f9216d/subscription + */ + related?: string; + }; + }; + }; + id: string; + language?: components["schemas"]["Language"]; + languageId: string; + lineItems?: components["schemas"]["OrderLineItem"][]; + orderCustomer?: components["schemas"]["OrderCustomer"]; + orderDate: string; + /** Format: date-time */ + orderDateTime: string; + orderNumber?: string; + /** Format: float */ + positionPrice?: number; + price?: { + calculatedTaxes?: GenericRecord; + /** Format: float */ + netPrice: number; + /** Format: float */ + positionPrice: number; + /** Format: float */ + rawTotal: number; + taxRules?: GenericRecord; + taxStatus: string; + /** Format: float */ + totalPrice: number; + }; + salesChannelId: string; + shippingCosts?: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + /** Format: float */ + shippingTotal?: number; + source?: string; + stateMachineState: components["schemas"]["StateMachineState"]; + tags?: components["schemas"]["Tag"][]; + taxStatus?: string; + transactions?: components["schemas"]["OrderTransaction"][]; + /** Format: date-time */ + updatedAt?: string; + updatedById?: string; + versionId?: string; + }; + OrderAddress: { + additionalAddressLine1?: string; + additionalAddressLine2?: string; + city: string; + company?: string; + country?: components["schemas"]["Country"]; + countryId: string; + countryState?: components["schemas"]["CountryState"]; + countryStateId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + department?: string; + firstName: string; + id: string; + lastName: string; + phoneNumber?: string; + salutation?: components["schemas"]["Salutation"]; + street: string; + title?: string; + /** Format: date-time */ + updatedAt?: string; + vatId?: string; + versionId?: string; + zipcode?: string; + }; + OrderCustomer: { + company?: string; + /** Format: date-time */ + createdAt: string; + customerNumber?: string; + customFields?: GenericRecord; + email: string; + firstName: string; + id: string; + lastName: string; + salutation?: components["schemas"]["Salutation"]; + salutationId?: string; + title?: string; + /** Format: date-time */ + updatedAt?: string; + vatIds?: string[]; + versionId?: string; + }; + OrderDelivery: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + orderId: string; + orderVersionId?: string; + positions?: components["schemas"]["OrderDeliveryPosition"][]; + shippingCosts?: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + /** Format: date-time */ + shippingDateEarliest: string; + /** Format: date-time */ + shippingDateLatest: string; + shippingMethod?: components["schemas"]["ShippingMethod"]; + shippingMethodId: string; + shippingOrderAddress?: components["schemas"]["OrderAddress"]; + shippingOrderAddressId: string; + shippingOrderAddressVersionId?: string; + stateId: string; + stateMachineState?: components["schemas"]["StateMachineState"]; + trackingCodes: string[]; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + OrderDeliveryPosition: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + orderDeliveryId: string; + orderDeliveryVersionId?: string; + orderLineItemId: string; + orderLineItemVersionId?: string; + price?: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + /** Format: int64 */ + quantity?: number; + /** Format: float */ + totalPrice?: number; + /** Format: float */ + unitPrice?: number; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + OrderLineItem: { + /** @enum {string} */ + apiAlias: "order_line_item"; + children: components["schemas"]["OrderLineItem"][]; + cover?: components["schemas"]["Media"]; + coverId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + description?: string; + downloads?: components["schemas"]["OrderLineItemDownload"][]; + extensions?: { + returns?: { + data?: { + /** @example 7fff84525c6516919851a9005373f87e */ + id?: string; + /** @example order_return_line_item */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /order-line-item/40b401ac0b29ac5c5c8ffce649fdef62/returns + */ + related?: string; + }; + }; + state?: { + data?: { + /** @example 9ed39e2ea931586b6a985a6942ef573e */ + id?: string; + /** @example state_machine_state */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /order-line-item/40b401ac0b29ac5c5c8ffce649fdef62/state + */ + related?: string; + }; + }; + }; + good?: boolean; + id: string; + identifier: string; + label: string; + orderDeliveryPositions?: components["schemas"]["OrderDeliveryPosition"][]; + orderId: string; + orderVersionId?: string; + parent?: components["schemas"]["OrderLineItem"]; + parentId?: string; + parentVersionId?: string; + payload?: { + categoryIds?: readonly string[]; + /** Format: date-time */ + createdAt?: string; + customFields?: GenericRecord; + features?: unknown[]; + isCloseout?: boolean; + isNew?: boolean; + manufacturerId?: string; + markAsTopseller?: boolean; + optionIds?: readonly string[]; + options?: components["schemas"]["PropertyGroupOption"][]; + parentId?: string; + productNumber?: string; + propertyIds?: readonly string[]; + purchasePrices?: string; + /** Format: date-time */ + releaseDate?: string; + /** Format: int64 */ + stock?: number; + streamIds?: readonly string[]; + tagIds?: readonly string[]; + taxId?: string; + }; + /** Format: int64 */ + position: number; + priceDefinition?: components["schemas"]["CartPriceQuantity"]; + productId?: string; + productVersionId?: string; + promotionId?: string; + /** Format: int64 */ + quantity: number; + referencedId?: string; + removable?: boolean; + stackable?: boolean; + states: string[]; + /** Format: float */ + totalPrice?: number; + translated: { + coverId: string; + description: string; + identifier: string; + label: string; + orderId: string; + orderVersionId: string; + parentId: string; + parentVersionId: string; + productId: string; + productVersionId: string; + promotionId: string; + referencedId: string; + type: string; + versionId: string; + }; + type?: string; + /** Format: float */ + unitPrice?: number; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + OrderLineItemDownload: { + accessGranted: boolean; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + media: components["schemas"]["Media"]; + mediaId: string; + orderLineItem?: components["schemas"]["OrderLineItem"]; + orderLineItemId: string; + orderLineItemVersionId?: string; + /** Format: int64 */ + position: number; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + OrderProductWarehouse: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + OrderReturn: { + /** Format: float */ + amountNet?: number; + /** Format: float */ + amountTotal?: number; + /** Format: date-time */ + createdAt: string; + createdById?: string; + id: string; + lineItems?: components["schemas"]["OrderReturnLineItem"][]; + orderId: string; + orderVersionId?: string; + price?: { + calculatedTaxes?: GenericRecord; + /** Format: float */ + netPrice: number; + /** Format: float */ + positionPrice: number; + /** Format: float */ + rawTotal: number; + taxRules?: GenericRecord; + taxStatus: string; + /** Format: float */ + totalPrice: number; + }; + /** Format: date-time */ + requestedAt: string; + returnNumber: string; + shippingCosts?: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + state?: components["schemas"]["StateMachineState"]; + stateId: string; + /** Format: date-time */ + updatedAt?: string; + updatedById?: string; + versionId?: string; + }; + OrderReturnLineItem: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + orderLineItemId: string; + orderLineItemVersionId?: string; + orderReturnId: string; + orderReturnVersionId?: string; + /** Format: int64 */ + quantity: number; + reason?: components["schemas"]["OrderReturnLineItemReason"]; + reasonId: string; + /** Format: float */ + refundAmount?: number; + /** Format: int64 */ + restockQuantity?: number; + state?: components["schemas"]["StateMachineState"]; + stateId: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + OrderReturnLineItemReason: { + content: string; + /** Format: date-time */ + createdAt: string; + id: string; + reasonKey: string; + translated: { + content: string; + reasonKey: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + OrderRouteResponse: { + orders: components["schemas"]["Order"][] & components["schemas"]["EntitySearchResult"]; + /** 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. */ + paymentChangeable?: { + [key: string]: boolean; + }; + }; + OrderTag: { + id?: string; + order?: components["schemas"]["Order"]; + orderId: string; + orderVersionId?: string; + tag?: components["schemas"]["Tag"]; + tagId: string; + }; + OrderTransaction: { + amount: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + captures?: components["schemas"]["OrderTransactionCapture"][]; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + orderId: string; + orderVersionId?: string; + paymentMethod?: components["schemas"]["PaymentMethod"]; + paymentMethodId: string; + stateId: string; + stateMachineState?: components["schemas"]["StateMachineState"]; + /** Format: date-time */ + updatedAt?: string; + validationData?: GenericRecord; + versionId?: string; + }; + OrderTransactionCapture: { + amount: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + externalReference?: string; + id: string; + orderTransactionId: string; + orderTransactionVersionId?: string; + refunds?: components["schemas"]["OrderTransactionCaptureRefund"][]; + stateId: string; + stateMachineState?: components["schemas"]["StateMachineState"]; + transaction?: components["schemas"]["OrderTransaction"]; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + OrderTransactionCaptureRefund: { + amount: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + captureId: string; + captureVersionId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + externalReference?: string; + id: string; + positions?: components["schemas"]["OrderTransactionCaptureRefundPosition"][]; + reason?: string; + stateId: string; + stateMachineState?: components["schemas"]["StateMachineState"]; + transactionCapture?: components["schemas"]["OrderTransactionCapture"]; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + OrderTransactionCaptureRefundPosition: { + amount: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + externalReference?: string; + id: string; + orderLineItem?: components["schemas"]["OrderLineItem"]; + orderLineItemId: string; + orderLineItemVersionId?: string; + orderTransactionCaptureRefund?: components["schemas"]["OrderTransactionCaptureRefund"]; + /** Format: int64 */ + quantity?: number; + reason?: string; + refundId: string; + refundVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + OrderWarehouseGroup: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + PageViewedPayload: { + /** the id from the page which was viewed */ + pageId: string; + /** the id from the section within the page which was viewed */ + sectionId: string; + }; + PaymentMethod: { + active?: boolean; + afterOrderEnabled?: boolean; + /** Runtime field, cannot be used as part of the criteria. */ + asynchronous?: boolean; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + description?: string; + distinguishableName?: string; + id: string; + media?: components["schemas"]["Media"]; + mediaId?: string; + name: string; + /** Format: int64 */ + position?: number; + /** Runtime field, cannot be used as part of the criteria. */ + prepared?: boolean; + /** Runtime field, cannot be used as part of the criteria. */ + recurring?: boolean; + /** Runtime field, cannot be used as part of the criteria. */ + refundable?: boolean; + /** Runtime field, cannot be used as part of the criteria. */ + shortName?: string; + /** Runtime field, cannot be used as part of the criteria. */ + synchronous?: boolean; + technicalName?: string; + translated: { + description: string; + distinguishableName: string; + mediaId: string; + name: string; + shortName: string; + technicalName: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + PaymentMethodJsonApi: components["schemas"]["resource"] & { + active?: boolean; + afterOrderEnabled?: boolean; + /** Runtime field, cannot be used as part of the criteria. */ + asynchronous?: boolean; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + description?: string; + distinguishableName?: string; + id: string; + mediaId?: string; + name: string; + /** Format: int64 */ + position?: number; + /** Runtime field, cannot be used as part of the criteria. */ + prepared?: boolean; + /** Runtime field, cannot be used as part of the criteria. */ + recurring?: boolean; + /** Runtime field, cannot be used as part of the criteria. */ + refundable?: boolean; + relationships?: { + media?: { + data?: { + /** @example 62933a2951ef01f4eafd9bdf4d3cd2f0 */ + id?: string; + /** @example media */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /payment-method/da8da1569e6bef3249a7064261df833f/media + */ + related?: string; + }; + }; + }; + /** Runtime field, cannot be used as part of the criteria. */ + shortName?: string; + /** Runtime field, cannot be used as part of the criteria. */ + synchronous?: boolean; + technicalName?: string; + translated: { + description: string; + distinguishableName: string; + mediaId: string; + name: string; + shortName: string; + technicalName: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + PendingOrder: { + amountNet?: number | null; + amountTotal?: number | null; + approvalRuleId?: string; + billingAddress?: GenericRecord; + cartPayload?: GenericRecord | string; + country?: GenericRecord; + countryId?: string; + currency?: GenericRecord; + currencyId?: string; + customerId?: string; + decidedById?: string; + employeeId?: string; + /** Format: uuid */ + id?: string; + itemRounding?: GenericRecord; + language?: GenericRecord; + languageId?: string; + lineItemCount?: number; + number?: string; + originalPrice?: number | null; + paymentMethodId?: string; + price?: GenericRecord; + reason?: string; + salesChannel?: GenericRecord; + salesChannelId?: string; + shippingMethodId?: string; + stateId?: string; + taxStatus?: string; + totalRounding?: GenericRecord; + }; + Plugin: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + PresentationCmsPage: { + cmsPage?: components["schemas"]["CmsPage"]; + /** The CMS page id the presentation using */ + cmsPageId?: string; + /** The CMS page version id the presentation using */ + cmsPageVersionId?: string; + /** Format: date-time */ + createdAt?: string; + customFields?: GenericRecord | null; + dsrPresentationVersionId?: string; + /** The presentation cms page id */ + id?: string; + /** True if this slide is an instant listing */ + isInstantListing?: boolean; + /** The product id is assigned to presentation if it's product listing or instant listing */ + pickedProductIds?: string[] | null; + /** The position of slide */ + position?: number; + /** The presentation using this presentation cms page */ + presentationId?: string; + /** The product id is assigned to presentation if it's product detail */ + productId?: string | null; + /** The product stream id is assigned to presentation if it's product listing */ + productStreamId?: string | null; + /** The title of presentation cms page */ + title?: string | null; + translated?: { + cmsPageId: string; + cmsPageVersionId: string; + dsrPresentationVersionId: string; + presentationId: string; + title?: string | null; + }; + updatedAt?: string | null; + }; + PresentationSlideData: OneOf< + [ + { + configurator?: components["schemas"]["PropertyGroup"][]; + product?: components["schemas"]["Product"]; + }, + { + category?: components["schemas"]["Category"]; + }, + null, + ] + >; + PresentationStructure: { + cmsPageResults?: { + cmsPage?: components["schemas"]["CmsPage"]; + /** The presentation id */ + resourceIdentifier?: string; + /** + * The type of presentation page + * @default frontend.presentation.page + */ + resourceType?: string; + }[]; + navigation?: { + /** The CMS page id */ + cmsPageId?: string; + /** The presentation CMS page id */ + groupId?: string; + /** The slide name */ + groupName?: string; + /** The slide position */ + index?: number; + /** If the slide is an instant listing */ + isInstantListing?: boolean; + /** @default [] */ + notes?: components["schemas"]["CmsSlot"][]; + /** The number of picked products of the instant listing */ + pickedProductsCount?: number; + /** The section id */ + sectionId?: string; + /** The section name */ + sectionName?: string | null; + }[]; + }; + Price: { + currencyId: string; + gross: number; + linked?: boolean; + listPrice?: { + currencyId?: string; + gross: number; + linked?: boolean; + net: number; + }; + net: number; + regulationPrice?: { + currencyId?: string; + gross: number; + linked?: boolean; + net: number; + }; + }; + Product: { + active?: boolean; + /** @enum {string} */ + apiAlias: "product"; + available?: boolean; + /** Format: int64 */ + availableStock?: number; + calculatedCheapestPrice?: WithRequired< + components["schemas"]["CalculatedPrice"] & { + /** @enum {string} */ + apiAlias?: "calculated_cheapest_price"; + hasRange?: boolean; + listPrice?: components["schemas"]["CartListPrice"] | null; + quantity?: number; + referencePrice?: components["schemas"]["CartPriceReference"] | null; + regulationPrice?: { + price: number; + } | null; + totalPrice?: number; + unitPrice?: number; + variantId?: string | null; + }, + "apiAlias" + >; + /** + * Format: int64 + * Runtime field, cannot be used as part of the criteria. + */ + calculatedMaxPurchase?: number; + calculatedPrice: components["schemas"]["CalculatedPrice"]; + calculatedPrices: components["schemas"]["CalculatedPrice"][]; + canonicalProduct?: components["schemas"]["Product"]; + canonicalProductId?: string; + canonicalProductVersionId?: string; + categories?: components["schemas"]["Category"][]; + categoriesRo?: components["schemas"]["Category"][]; + categoryIds?: readonly string[]; + categoryTree?: readonly string[]; + /** Format: int64 */ + childCount?: number; + children?: components["schemas"]["Product"][]; + cmsPage?: components["schemas"]["CmsPage"]; + cmsPageId?: string; + cmsPageVersionId?: string; + configuratorSettings?: components["schemas"]["ProductConfiguratorSetting"][]; + cover?: components["schemas"]["ProductMedia"]; + coverId?: string; + /** Format: date-time */ + createdAt: string; + crossSellings?: components["schemas"]["ProductCrossSelling"][]; + customFields?: GenericRecord; + deliveryTime?: components["schemas"]["DeliveryTime"]; + deliveryTimeId?: string; + description?: string; + displayGroup?: string; + downloads?: components["schemas"]["ProductDownload"][]; + ean?: string; + extensions?: { + attendeeProductCollections?: { + data?: { + /** @example 0a7b3b2f4b81f36910a74f22826f35df */ + id?: string; + /** @example dsr_attendee_product_collection */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/attendeeProductCollections + */ + related?: string; + }; + }; + reviewSummaries?: { + data?: { + /** @example c9c718522e64ffa5effb26cef94f4849 */ + id?: string; + /** @example product_review_summary */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/reviewSummaries + */ + related?: string; + }; + }; + swagCustomizedProductsTemplate?: { + data?: { + /** @example 6e9fad30dd3cb84748a01bb8152f4769 */ + id?: string; + /** @example swag_customized_products_template */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/swagCustomizedProductsTemplate + */ + related?: string; + }; + }; + }; + /** Format: float */ + height?: number; + id: string; + isCloseout?: boolean; + /** Runtime field, cannot be used as part of the criteria. */ + isNew?: boolean; + keywords?: string; + /** Format: float */ + length?: number; + mainCategories?: components["schemas"]["MainCategory"][]; + manufacturer?: components["schemas"]["ProductManufacturer"]; + manufacturerId?: string; + manufacturerNumber?: string; + markAsTopseller?: boolean; + /** Format: int64 */ + maxPurchase?: number; + media?: components["schemas"]["ProductMedia"][]; + metaDescription?: string; + metaTitle?: string; + /** Format: int64 */ + minPurchase?: number; + name: string; + optionIds?: readonly string[]; + options?: components["schemas"]["PropertyGroupOption"][]; + packUnit?: string; + packUnitPlural?: string; + parent?: components["schemas"]["Product"]; + parentId?: string; + parentVersionId?: string; + productManufacturerVersionId?: string; + productMediaVersionId?: string; + productNumber: string; + productReviews?: components["schemas"]["ProductReview"][]; + properties?: components["schemas"]["PropertyGroupOption"][]; + propertyIds?: readonly string[]; + /** Format: int64 */ + purchaseSteps?: number; + /** Format: float */ + purchaseUnit?: number; + /** Format: float */ + ratingAverage?: number; + /** Format: float */ + referenceUnit?: number; + /** Format: date-time */ + releaseDate?: string; + /** Format: int64 */ + restockTime?: number; + /** Format: int64 */ + sales?: number; + seoCategory: components["schemas"]["Category"]; + seoUrls?: components["schemas"]["SeoUrl"][]; + shippingFree?: boolean; + sortedProperties?: GenericRecord; + states?: readonly string[]; + /** Format: int64 */ + stock: number; + streamIds?: readonly string[]; + streams?: components["schemas"]["ProductStream"][]; + tagIds?: readonly string[]; + tags?: components["schemas"]["Tag"][]; + tax?: components["schemas"]["Tax"]; + taxId: string; + translated: { + canonicalProductId: string; + canonicalProductVersionId: string; + cmsPageId: string; + cmsPageVersionId: string; + coverId: string; + deliveryTimeId: string; + description: string; + displayGroup: string; + ean: string; + keywords: string; + manufacturerId: string; + manufacturerNumber: string; + metaDescription: string; + metaTitle: string; + name: string; + packUnit: string; + packUnitPlural: string; + parentId: string; + parentVersionId: string; + productManufacturerVersionId: string; + productMediaVersionId: string; + productNumber: string; + releaseDate: string; + taxId: string; + unitId: string; + versionId: string; + }; + unit?: components["schemas"]["Unit"]; + unitId?: string; + /** Format: date-time */ + updatedAt?: string; + variantListingConfig?: { + displayParent?: boolean; + } | null; + versionId?: string; + /** Format: float */ + weight?: number; + /** Format: float */ + width?: number; + }; + ProductConfiguratorSetting: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + media?: components["schemas"]["Media"]; + mediaId?: string; + option?: components["schemas"]["PropertyGroupOption"]; + optionId: string; + /** Format: int64 */ + position?: number; + productId: string; + productVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + ProductCrossSelling: { + active?: boolean; + /** Format: date-time */ + createdAt: string; + id: string; + /** Format: int64 */ + limit?: number; + name: string; + /** Format: int64 */ + position: number; + sortBy?: string; + sortDirection?: string; + translated: { + name: string; + sortBy: string; + sortDirection: string; + type: string; + }; + type: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductCrossSellingAssignedProducts: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductDetailResponse: { + /** List of property groups with their corresponding options and information on how to display them. */ + configurator?: components["schemas"]["PropertyGroup"][]; + product: components["schemas"]["Product"]; + }; + ProductDownload: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + media?: components["schemas"]["Media"]; + mediaId: string; + /** Format: int64 */ + position?: number; + product?: components["schemas"]["Product"]; + productId: string; + productVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + ProductExport: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductFeatureSet: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductJsonApi: components["schemas"]["resource"] & { + active?: boolean; + available?: boolean; + /** Format: int64 */ + availableStock?: number; + calculatedCheapestPrice?: GenericRecord; + /** + * Format: int64 + * Runtime field, cannot be used as part of the criteria. + */ + calculatedMaxPurchase?: number; + calculatedPrice?: GenericRecord; + calculatedPrices?: GenericRecord[]; + canonicalProductId?: string; + canonicalProductVersionId?: string; + categoryIds?: readonly string[]; + categoryTree?: readonly string[]; + /** Format: int64 */ + childCount?: number; + cmsPageId?: string; + cmsPageVersionId?: string; + coverId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + deliveryTimeId?: string; + description?: string; + displayGroup?: string; + ean?: string; + extensions?: { + attendeeProductCollections?: { + data?: { + /** @example 0a7b3b2f4b81f36910a74f22826f35df */ + id?: string; + /** @example dsr_attendee_product_collection */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/attendeeProductCollections + */ + related?: string; + }; + }; + reviewSummaries?: { + data?: { + /** @example c9c718522e64ffa5effb26cef94f4849 */ + id?: string; + /** @example product_review_summary */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/reviewSummaries + */ + related?: string; + }; + }; + swagCustomizedProductsTemplate?: { + data?: { + /** @example 6e9fad30dd3cb84748a01bb8152f4769 */ + id?: string; + /** @example swag_customized_products_template */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/swagCustomizedProductsTemplate + */ + related?: string; + }; + }; + }; + /** Format: float */ + height?: number; + id: string; + isCloseout?: boolean; + /** Runtime field, cannot be used as part of the criteria. */ + isNew?: boolean; + keywords?: string; + /** Format: float */ + length?: number; + manufacturerId?: string; + manufacturerNumber?: string; + markAsTopseller?: boolean; + /** Format: int64 */ + maxPurchase?: number; + metaDescription?: string; + metaTitle?: string; + /** Format: int64 */ + minPurchase?: number; + name: string; + optionIds?: readonly string[]; + packUnit?: string; + packUnitPlural?: string; + parentId?: string; + parentVersionId?: string; + productManufacturerVersionId?: string; + productMediaVersionId?: string; + productNumber: string; + propertyIds?: readonly string[]; + /** Format: int64 */ + purchaseSteps?: number; + /** Format: float */ + purchaseUnit?: number; + /** Format: float */ + ratingAverage?: number; + /** Format: float */ + referenceUnit?: number; + relationships?: { + canonicalProduct?: { + data?: { + /** @example 023995a50b56c0de077323e958b2bbcd */ + id?: string; + /** @example product */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/canonicalProduct + */ + related?: string; + }; + }; + categories?: { + data?: { + /** @example b0b5ccb4a195a07fd3eed14affb8695f */ + id?: string; + /** @example category */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/categories + */ + related?: string; + }; + }; + categoriesRo?: { + data?: { + /** @example 7f0702d3a90d965b8c9158c451f43fdb */ + id?: string; + /** @example category */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/categoriesRo + */ + related?: string; + }; + }; + children?: { + data?: { + /** @example 268184c12df027f536154d099d497b31 */ + id?: string; + /** @example product */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/children + */ + related?: string; + }; + }; + cmsPage?: { + data?: { + /** @example 7b1460918b1abb93311108f3dc021c9b */ + id?: string; + /** @example cms_page */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/cmsPage + */ + related?: string; + }; + }; + configuratorSettings?: { + data?: { + /** @example c0827fee13725d41f1fd7e292243f5aa */ + id?: string; + /** @example product_configurator_setting */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/configuratorSettings + */ + related?: string; + }; + }; + cover?: { + data?: { + /** @example 41d0e299ca1abeb2094852da042165c7 */ + id?: string; + /** @example product_media */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/cover + */ + related?: string; + }; + }; + crossSellings?: { + data?: { + /** @example 89936e14544d1b403cecef938101b6b0 */ + id?: string; + /** @example product_cross_selling */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/crossSellings + */ + related?: string; + }; + }; + deliveryTime?: { + data?: { + /** @example 8c888ae25a7bd42057370e31f7e01044 */ + id?: string; + /** @example delivery_time */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/deliveryTime + */ + related?: string; + }; + }; + downloads?: { + data?: { + /** @example d07d50a751bc6ddf12bf3af0efee9b45 */ + id?: string; + /** @example product_download */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/downloads + */ + related?: string; + }; + }; + mainCategories?: { + data?: { + /** @example 1fb731fc4139cbb575429e28846f0c39 */ + id?: string; + /** @example main_category */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/mainCategories + */ + related?: string; + }; + }; + manufacturer?: { + data?: { + /** @example c2904bca62b22443d6cf5e9d89cab204 */ + id?: string; + /** @example product_manufacturer */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/manufacturer + */ + related?: string; + }; + }; + media?: { + data?: { + /** @example 62933a2951ef01f4eafd9bdf4d3cd2f0 */ + id?: string; + /** @example product_media */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/media + */ + related?: string; + }; + }; + options?: { + data?: { + /** @example 93da65a9fd0004d9477aeac024e08e15 */ + id?: string; + /** @example property_group_option */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/options + */ + related?: string; + }; + }; + parent?: { + data?: { + /** @example d0e45878043844ffc41aac437e86b602 */ + id?: string; + /** @example product */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/parent + */ + related?: string; + }; + }; + productReviews?: { + data?: { + /** @example 01e78541ea343ed72424a5222796a4cd */ + id?: string; + /** @example product_review */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/productReviews + */ + related?: string; + }; + }; + properties?: { + data?: { + /** @example 74693d2fc58b46bd06410f278e39aa71 */ + id?: string; + /** @example property_group_option */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/properties + */ + related?: string; + }; + }; + seoCategory?: { + data?: { + /** @example 9354d004d12e03d35ad8292bf0bb234d */ + id?: string; + /** @example category */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/seoCategory + */ + related?: string; + }; + }; + seoUrls?: { + data?: { + /** @example 5321b5a71127b8b98cdd4b068ad56c4c */ + id?: string; + /** @example seo_url */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/seoUrls + */ + related?: string; + }; + }; + streams?: { + data?: { + /** @example 2f6f4768f1c2d7c8f1f54823723f1a70 */ + id?: string; + /** @example product_stream */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/streams + */ + related?: string; + }; + }; + tags?: { + data?: { + /** @example d57ac45256849d9b13e2422d91580fb9 */ + id?: string; + /** @example tag */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/tags + */ + related?: string; + }; + }; + tax?: { + data?: { + /** @example 06565e5611f23fdf8cc43e5077b92b54 */ + id?: string; + /** @example tax */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/tax + */ + related?: string; + }; + }; + unit?: { + data?: { + /** @example 3e34bdebd9bd5edda27e8728904a2552 */ + id?: string; + /** @example unit */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /product/deb10517653c255364175796ace3553f/unit + */ + related?: string; + }; + }; + }; + /** Format: date-time */ + releaseDate?: string; + /** Format: int64 */ + restockTime?: number; + /** Format: int64 */ + sales?: number; + shippingFree?: boolean; + sortedProperties?: GenericRecord; + states?: readonly string[]; + /** Format: int64 */ + stock: number; + streamIds?: readonly string[]; + tagIds?: readonly string[]; + taxId: string; + translated: { + canonicalProductId: string; + canonicalProductVersionId: string; + cmsPageId: string; + cmsPageVersionId: string; + coverId: string; + deliveryTimeId: string; + description: string; + displayGroup: string; + ean: string; + keywords: string; + manufacturerId: string; + manufacturerNumber: string; + metaDescription: string; + metaTitle: string; + name: string; + packUnit: string; + packUnitPlural: string; + parentId: string; + parentVersionId: string; + productManufacturerVersionId: string; + productMediaVersionId: string; + productNumber: string; + releaseDate: string; + taxId: string; + unitId: string; + versionId: string; + }; + unitId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + /** Format: float */ + weight?: number; + /** Format: float */ + width?: number; + }; + ProductKeywordDictionary: { + id?: string; + keyword: string; + languageId: string; + }; + ProductListingCriteria: components["schemas"]["Criteria"] & { + /** 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. */ + limit?: number; + /** Filter by manufacturers. List of manufacturer identifiers separated by a `|`. */ + manufacturer?: string; + /** + * 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. + * @default true + */ + "manufacturer-filter"?: boolean; + /** + * Filters by a maximum product price. Has to be higher than the `min-price` filter. + * @default 0 + */ + "max-price"?: number; + /** + * Filters by a minimum product price. Has to be lower than the `max-price` filter. + * @default 0 + */ + "min-price"?: number; + /** 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. */ + order?: string; + /** + * Search result page + * @default 1 + */ + p?: number; + /** + * 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. + * @default true + */ + "price-filter"?: boolean; + /** Filters products by their properties. List of property identifiers separated by a `|`. */ + properties?: string; + /** + * 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. + * @default true + */ + "property-filter"?: boolean; + /** 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. */ + "property-whitelist"?: string; + /** Filter products with a minimum average rating. */ + rating?: number; + /** + * 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. + * @default true + */ + "rating-filter"?: boolean; + /** 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. */ + "reduce-aggregations"?: string | null; + /** + * Filters products that are marked as shipping-free. + * @default false + */ + "shipping-free"?: boolean; + /** + * 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. + * @default true + */ + "shipping-free-filter"?: boolean; + }; + ProductListingFlags: { + /** Resets all aggregations in the criteria. This parameter is a flag, the value has no effect. */ + "no-aggregations"?: string | null; + /** 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. */ + "only-aggregations"?: string | null; + }; + ProductListingResult: components["schemas"]["EntitySearchResult"] & { + /** @enum {string} */ + apiAlias: "product_listing"; + /** Contains the available sorting. These can be used to show a sorting select-box in the product listing. */ + availableSortings: { + /** @enum {string} */ + apiAlias: "product_sorting"; + key: string; + label: string; + priority: number; + translated: { + key: string; + label: string; + }; + }[]; + /** Contains the state of the filters. These can be used to create listing filters. */ + currentFilters: { + manufacturer: string[]; + navigationId: string; + price: { + /** @default 0 */ + max: number; + /** @default 0 */ + min: number; + }; + properties: string[]; + rating: number | null; + search?: string; + /** @default false */ + "shipping-free": boolean; + }; + elements: components["schemas"]["Product"][]; + /** @enum {string} */ + entity?: "product"; + sorting?: string; + }; + ProductManufacturer: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + description?: string; + id: string; + link?: string; + media?: components["schemas"]["Media"]; + mediaId?: string; + name: string; + translated: { + description: string; + link: string; + mediaId: string; + name: string; + versionId: string; + }; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + ProductMedia: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + media?: components["schemas"]["Media"]; + mediaId: string; + metaData?: { + height?: number; + width?: number; + }; + /** Format: int64 */ + position?: number; + productId: string; + productVersionId?: string; + thumbnails?: components["schemas"]["MediaThumbnail"]; + /** Format: date-time */ + updatedAt?: string; + url?: string; + versionId?: string; + }; + ProductPayload: { + /** the id from the product which is used in the interaction */ + productId: string; + }; + ProductPrice: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductReview: { + comment?: string; + content: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + languageId: string; + /** Format: float */ + points: number; + productId: string; + productVersionId?: string; + salesChannelId: string; + status?: boolean; + title: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductReviewSummary: { + /** Format: date-time */ + createdAt: string; + id: string; + product?: components["schemas"]["Product"]; + productId: string; + salesChannel?: components["schemas"]["SalesChannel"]; + salesChannelId: string; + summary?: string; + translated: { + productId: string; + salesChannelId: string; + summary: string; + }; + /** Format: date-time */ + updatedAt?: string; + visible?: boolean; + }; + ProductSearchConfig: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductSearchConfigField: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductSearchKeyword: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductSorting: { + /** Format: date-time */ + createdAt: string; + id?: string; + key: string; + label: string; + /** Format: int64 */ + priority: number; + translated: { + key: string; + label: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + ProductStream: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + description?: string; + id: string; + name: string; + translated: { + description: string; + name: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + ProductStreamFilter: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductVisibility: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ProductWarehouse: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Promotion: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + PromotionDiscount: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + PromotionDiscountPrices: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + PromotionIndividualCode: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + PromotionSalesChannel: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + PromotionSetgroup: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + PropertyGroup: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + description?: string; + displayType: string; + filterable?: boolean; + id: string; + name: string; + options?: components["schemas"]["PropertyGroupOption"][]; + /** Format: int64 */ + position?: number; + sortingType: string; + translated: { + description: string; + displayType: string; + name: string; + sortingType: string; + }; + /** Format: date-time */ + updatedAt?: string; + visibleOnProductDetailPage?: boolean; + }; + PropertyGroupOption: { + colorHexCode?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + group: components["schemas"]["PropertyGroup"]; + groupId: string; + id: string; + media?: components["schemas"]["Media"]; + mediaId?: string; + name: string; + option: string; + /** Format: int64 */ + position?: number; + translated: { + colorHexCode: string; + groupId: string; + mediaId: string; + name: string; + option: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + Query: { + query?: + | components["schemas"]["SimpleFilter"] + | components["schemas"]["EqualsFilter"] + | components["schemas"]["MultiNotFilter"] + | components["schemas"]["RangeFilter"]; + score?: number; + [key: string]: unknown; + }; + Quote: { + /** Format: float */ + amountNet?: number; + /** Format: float */ + amountTotal?: number; + comments?: components["schemas"]["QuoteComment"][]; + /** Format: date-time */ + createdAt: string; + createdById?: string; + currency?: components["schemas"]["Currency"]; + currencyId: string; + customerId: string; + customFields?: GenericRecord; + deliveries?: components["schemas"]["QuoteDelivery"][]; + discount?: { + type?: string; + /** Format: float */ + value?: number; + }; + documents?: components["schemas"]["QuoteDocument"][]; + /** Format: date-time */ + expirationDate?: string; + id: string; + language?: components["schemas"]["Language"]; + languageId: string; + lineItems?: components["schemas"]["QuoteLineItem"][]; + orderId?: string; + orderVersionId?: string; + price?: { + calculatedTaxes?: GenericRecord; + /** Format: float */ + netPrice: number; + /** Format: float */ + positionPrice: number; + /** Format: float */ + rawTotal: number; + taxRules?: GenericRecord; + taxStatus: string; + /** Format: float */ + totalPrice: number; + }; + quoteNumber?: string; + salesChannelId: string; + /** Format: date-time */ + sentAt?: string; + shippingCosts?: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + stateId: string; + stateMachineState?: components["schemas"]["StateMachineState"]; + /** Format: float */ + subtotalNet?: number; + taxStatus?: string; + /** Format: float */ + totalDiscount?: number; + transactions?: components["schemas"]["QuoteTransaction"][]; + /** Format: date-time */ + updatedAt?: string; + updatedById?: string; + userId?: string; + versionId?: string; + }; + QuoteComment: { + comment: string; + /** Format: date-time */ + createdAt: string; + createdById?: string; + customer?: components["schemas"]["Customer"]; + customerId?: string; + id: string; + quoteId: string; + quoteVersionId?: string; + /** Format: date-time */ + seenAt?: string; + stateId?: string; + stateMachineState?: components["schemas"]["StateMachineState"]; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + QuoteDelivery: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + positions?: components["schemas"]["QuoteDeliveryPosition"][]; + quoteId: string; + quoteVersionId?: string; + shippingCosts?: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + /** Format: date-time */ + shippingDateEarliest: string; + /** Format: date-time */ + shippingDateLatest: string; + shippingMethod?: components["schemas"]["ShippingMethod"]; + shippingMethodId: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + QuoteDeliveryPosition: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + price?: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + /** Format: int64 */ + quantity?: number; + quoteDeliveryId: string; + quoteDeliveryVersionId?: string; + quoteLineItemId: string; + quoteLineItemVersionId?: string; + /** Format: float */ + totalPrice?: number; + /** Format: float */ + unitPrice?: number; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + QuoteDocument: { + active?: boolean; + config: GenericRecord; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + deepLinkCode: string; + documentMediaFile?: components["schemas"]["Media"]; + documentMediaFileId?: string; + documentNumber?: string; + documentType?: components["schemas"]["DocumentType"]; + documentTypeId: string; + fileType: string; + id: string; + quote?: components["schemas"]["Quote"]; + quoteId: string; + quoteVersionId?: string; + sent?: boolean; + static?: boolean; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + QuoteEmployee: { + /** Format: date-time */ + createdAt: string; + firstName: string; + id?: string; + lastName: string; + /** Format: date-time */ + updatedAt?: string; + }; + QuoteLineItem: { + children: components["schemas"]["QuoteLineItem"][]; + cover?: components["schemas"]["Media"]; + coverId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + description?: string; + discount?: { + type?: string; + /** Format: int64 */ + value?: number; + }; + good?: boolean; + id: string; + identifier: string; + label: string; + parent?: components["schemas"]["QuoteLineItem"]; + parentId?: string; + parentVersionId?: string; + payload?: GenericRecord; + /** Format: int64 */ + position: number; + priceDefinition?: GenericRecord; + productId?: string; + productPrice?: components["schemas"]["Price"][]; + productVersionId?: string; + purchasePrice?: components["schemas"]["Price"][]; + /** Format: int64 */ + quantity: number; + quoteId: string; + quoteVersionId?: string; + referencedId?: string; + removable?: boolean; + stackable?: boolean; + states: string[]; + /** Format: float */ + totalPrice?: number; + type?: string; + /** Format: float */ + unitPrice?: number; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + QuoteTransaction: { + amount: { + calculatedTaxes?: GenericRecord; + listPrice?: { + /** Format: float */ + discount?: number; + /** Format: float */ + percentage?: number; + /** Format: float */ + price?: number; + }; + /** Format: int64 */ + quantity: number; + referencePrice?: GenericRecord; + regulationPrice?: { + /** Format: float */ + price?: number; + }; + taxRules?: GenericRecord; + /** Format: float */ + totalPrice: number; + /** Format: float */ + unitPrice: number; + }; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + paymentMethod?: components["schemas"]["PaymentMethod"]; + paymentMethodId: string; + quoteId: string; + quoteVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + RangeFilter: { + field: string; + parameters: { + gt?: number; + gte?: number; + lt?: number; + lte?: number; + }; + /** @enum {string} */ + type: "range"; + }; + Rule: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + description?: string; + extensions?: { + warehouseGroup?: { + data?: { + /** @example 1768e3071b62161d415e0c24332055ed */ + id?: string; + /** @example warehouse_group */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /rule/ab7a485ebe75b6dd7243ad719f23c7de/warehouseGroup + */ + related?: string; + }; + }; + }; + id?: string; + name: string; + /** Format: date-time */ + updatedAt?: string; + }; + RuleCondition: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SaasAppStorefrontConfig: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SaasSbpUserData: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SaasStorefrontDemoToken: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SaasUserLoginToken: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SalesChannel: { + active?: boolean; + configuration?: GenericRecord; + country?: components["schemas"]["Country"]; + countryId: string; + /** Format: date-time */ + createdAt: string; + currency?: components["schemas"]["Currency"]; + currencyId: string; + customerGroupId: string; + customFields?: GenericRecord; + domains?: components["schemas"]["SalesChannelDomain"][]; + footerCategory?: components["schemas"]["Category"]; + footerCategoryId?: string; + footerCategoryVersionId?: string; + hreflangActive?: boolean; + hreflangDefaultDomain?: components["schemas"]["SalesChannelDomain"]; + hreflangDefaultDomainId?: string; + id: string; + language?: components["schemas"]["Language"]; + languageId: string; + mailHeaderFooterId?: string; + maintenance?: boolean; + name: string; + navigationCategory?: components["schemas"]["Category"]; + /** Format: int64 */ + navigationCategoryDepth?: number; + navigationCategoryId: string; + navigationCategoryVersionId?: string; + paymentMethod?: components["schemas"]["PaymentMethod"]; + paymentMethodId: string; + serviceCategory?: components["schemas"]["Category"]; + serviceCategoryId?: string; + serviceCategoryVersionId?: string; + shippingMethod?: components["schemas"]["ShippingMethod"]; + shippingMethodId: string; + shortName?: string; + taxCalculationType?: string; + translated: { + countryId: string; + currencyId: string; + customerGroupId: string; + footerCategoryId: string; + footerCategoryVersionId: string; + hreflangDefaultDomainId: string; + languageId: string; + mailHeaderFooterId: string; + name: string; + navigationCategoryId: string; + navigationCategoryVersionId: string; + paymentMethodId: string; + serviceCategoryId: string; + serviceCategoryVersionId: string; + shippingMethodId: string; + shortName: string; + taxCalculationType: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + SalesChannelAnalytics: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SalesChannelContext: { + /** Core context with general configuration values and state */ + context?: { + currencyFactor?: number; + currencyId?: string; + /** Format: int32 */ + currencyPrecision?: number; + languageIdChain?: string[]; + scope?: string; + source?: string; + taxState?: string; + useCache?: boolean; + versionId?: string; + }; + currency?: components["schemas"]["Currency"]; + /** Customer group of the current user */ + currentCustomerGroup?: { + displayGross?: boolean; + name?: string; + }; + customer?: components["schemas"]["Customer"]; + /** Fallback group if the default customer group is not applicable */ + fallbackCustomerGroup?: { + displayGross?: boolean; + name?: string; + }; + paymentMethod?: components["schemas"]["PaymentMethod"]; + /** Information about the current sales channel */ + salesChannel?: { + accessKey?: string; + active?: boolean; + analyticsId?: string; + countryId?: string; + currencyId?: string; + customerGroupId?: string; + footerCategoryId?: string; + hreflangActive?: boolean; + hreflangDefaultDomainId?: string; + languageId?: string; + mailHeaderFooterId?: string; + maintenance?: boolean; + maintenanceIpWhitelist?: string; + name?: string; + /** Format: int32 */ + navigationCategoryDepth?: number; + navigationCategoryId?: string; + paymentMethodId?: string; + serviceCategoryId?: string; + shippingMethodId?: string; + shortName?: string; + typeId?: string; + }; + shippingLocation?: { + address?: components["schemas"]["CustomerAddress"]; + /** @enum {string} */ + apiAlias?: "cart_delivery_shipping_location"; + country?: components["schemas"]["Country"]; + }; + shippingMethod?: components["schemas"]["ShippingMethod"]; + /** Currently active tax rules and/or rates */ + taxRules?: { + name?: string; + /** Format: float */ + taxRate?: number; + }[]; + /** Context the user session */ + token?: string; + }; + SalesChannelDomain: { + /** Format: date-time */ + createdAt: string; + currency?: components["schemas"]["Currency"]; + currencyId: string; + customFields?: GenericRecord; + hreflangUseOnlyLocale?: boolean; + id: string; + language?: components["schemas"]["Language"]; + languageId: string; + salesChannelDefaultHreflang?: components["schemas"]["SalesChannel"]; + salesChannelId: string; + snippetSetId: string; + /** Format: date-time */ + updatedAt?: string; + url: string; + }; + SalesChannelType: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Salutation: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + displayName: string; + id: string; + letterName: string; + salutationKey: string; + translated: { + displayName: string; + letterName: string; + salutationKey: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + SalutationJsonApi: components["schemas"]["resource"] & { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + displayName: string; + id: string; + letterName: string; + salutationKey: string; + translated: { + displayName: string; + letterName: string; + salutationKey: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + ScheduledTask: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Script: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SearchByImageSearchTermResponse: { + /** @enum {string} */ + apiAlias: "product_image_upload_search_term"; + extensions?: GenericRecord[]; + term: string; + }[]; + SeoUrl: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + /** Runtime field, cannot be used as part of the criteria. */ + error?: string; + foreignKey: string; + id: string; + isCanonical?: boolean; + isDeleted?: boolean; + isModified?: boolean; + languageId: string; + pathInfo: string; + /** @enum {string} */ + routeName: "frontend.navigation.page" | "frontend.landing.page" | "frontend.detail.page"; + salesChannelId?: string; + seoPathInfo: string; + /** Format: date-time */ + updatedAt?: string; + /** Runtime field, cannot be used as part of the criteria. */ + url?: string; + }; + SeoUrlJsonApi: components["schemas"]["resource"] & { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + /** Runtime field, cannot be used as part of the criteria. */ + error?: string; + foreignKey: string; + id: string; + isCanonical?: boolean; + isDeleted?: boolean; + isModified?: boolean; + languageId: string; + pathInfo: string; + routeName: string; + salesChannelId?: string; + seoPathInfo: string; + /** Format: date-time */ + updatedAt?: string; + /** Runtime field, cannot be used as part of the criteria. */ + url?: string; + }; + SeoUrlTemplate: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id?: string; + isValid?: boolean; + salesChannelId?: string; + /** Format: date-time */ + updatedAt?: string; + }; + ShippingMethod: { + active?: boolean; + availabilityRule?: components["schemas"]["Rule"]; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + deliveryTime?: components["schemas"]["DeliveryTime"]; + deliveryTimeId: string; + description?: string; + id: string; + media?: components["schemas"]["Media"]; + mediaId?: string; + name: string; + /** Format: int64 */ + position?: number; + prices?: components["schemas"]["ShippingMethodPrice"][]; + tags?: components["schemas"]["Tag"][]; + tax?: components["schemas"]["Tax"]; + taxType: string; + technicalName?: string; + trackingUrl?: string; + translated: { + deliveryTimeId: string; + description: string; + mediaId: string; + name: string; + taxType: string; + technicalName: string; + trackingUrl: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + ShippingMethodJsonApi: components["schemas"]["resource"] & { + active?: boolean; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + deliveryTimeId: string; + description?: string; + id: string; + mediaId?: string; + name: string; + /** Format: int64 */ + position?: number; + relationships?: { + availabilityRule?: { + data?: { + /** @example 9fbb7961d1cb158094924c679e1b302c */ + id?: string; + /** @example rule */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /shipping-method/d72e7a227a27328b28342b32fc66b6bf/availabilityRule + */ + related?: string; + }; + }; + deliveryTime?: { + data?: { + /** @example 8c888ae25a7bd42057370e31f7e01044 */ + id?: string; + /** @example delivery_time */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /shipping-method/d72e7a227a27328b28342b32fc66b6bf/deliveryTime + */ + related?: string; + }; + }; + media?: { + data?: { + /** @example 62933a2951ef01f4eafd9bdf4d3cd2f0 */ + id?: string; + /** @example media */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /shipping-method/d72e7a227a27328b28342b32fc66b6bf/media + */ + related?: string; + }; + }; + prices?: { + data?: { + /** @example afae32efe0f84fece3f96b377b768b33 */ + id?: string; + /** @example shipping_method_price */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /shipping-method/d72e7a227a27328b28342b32fc66b6bf/prices + */ + related?: string; + }; + }; + tags?: { + data?: { + /** @example d57ac45256849d9b13e2422d91580fb9 */ + id?: string; + /** @example tag */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /shipping-method/d72e7a227a27328b28342b32fc66b6bf/tags + */ + related?: string; + }; + }; + tax?: { + data?: { + /** @example 06565e5611f23fdf8cc43e5077b92b54 */ + id?: string; + /** @example tax */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /shipping-method/d72e7a227a27328b28342b32fc66b6bf/tax + */ + related?: string; + }; + }; + }; + taxType: string; + technicalName?: string; + trackingUrl?: string; + translated: { + deliveryTimeId: string; + description: string; + mediaId: string; + name: string; + taxType: string; + technicalName: string; + trackingUrl: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + ShippingMethodPageRouteResponse: { + active?: boolean; + availabilityRule?: { + description?: string; + invalid?: boolean; + name?: string; + /** Format: int32 */ + priority?: number; + }; + availabilityRuleId?: string; + deliveryTime?: { + /** Format: int32 */ + max?: number; + /** Format: int32 */ + min?: number; + name?: string; + unit?: string; + }; + deliveryTimeId?: string; + description?: string; + media?: { + alt?: string; + fileExtension?: string; + fileName?: string; + /** Format: int32 */ + fileSize?: number; + mediaFolderId?: string; + mediaTypeRaw?: string; + metaDataRaw?: string; + mimeType?: string; + private?: boolean; + thumbnailsRo?: string; + title?: string; + /** Format: date-time */ + uploadedAt?: string; + url?: string; + userId?: string; + }; + mediaId?: string; + name?: string; + orderDeliveries?: { + orderId?: string; + /** Format: date-time */ + shippingDateEarliest?: string; + /** Format: date-time */ + shippingDateLatest?: string; + shippingMethodId?: string; + shippingOrderAddressId?: string; + stateId?: string; + }[]; + prices?: { + /** Format: int32 */ + calculation?: number; + calculationRuleId?: string; + currencyId?: string; + /** Format: float */ + price?: number; + /** Format: float */ + quantityEnd?: number; + /** Format: float */ + quantityStart?: number; + ruleId?: string; + shippingMethodId?: string; + }[]; + salesChannelDefaultAssignments?: { + accessKey?: string; + active?: boolean; + countryId?: string; + currencyId?: string; + customerGroupId?: string; + footerCategoryId?: string; + hreflangActive?: boolean; + hreflangDefaultDomainId?: string; + languageId?: string; + mailHeaderFooterId?: string; + maintenance?: boolean; + maintenanceIpWhitelist?: string; + name?: string; + /** Format: int32 */ + navigationCategoryDepth?: number; + navigationCategoryId?: string; + paymentMethodId?: string; + serviceCategoryId?: string; + shippingMethodId?: string; + shortName?: string; + typeId?: string; + }[]; + salesChannels?: { + accessKey?: string; + active?: boolean; + countryId?: string; + currencyId?: string; + customerGroupId?: string; + footerCategoryId?: string; + hreflangActive?: boolean; + hreflangDefaultDomainId?: string; + languageId?: string; + mailHeaderFooterId?: string; + maintenance?: boolean; + maintenanceIpWhitelist?: string; + name?: string; + /** Format: int32 */ + navigationCategoryDepth?: number; + navigationCategoryId?: string; + paymentMethodId?: string; + serviceCategoryId?: string; + shippingMethodId?: string; + shortName?: string; + typeId?: string; + }[]; + tags?: { + name?: string; + }[]; + translations?: { + description?: string; + name?: string; + shippingMethodId?: string; + }[]; + }[]; + ShippingMethodPrice: { + /** Format: int64 */ + calculation?: number; + calculationRuleId?: string; + /** Format: date-time */ + createdAt: string; + currencyPrice?: components["schemas"]["Price"][]; + customFields?: GenericRecord; + id: string; + /** Format: float */ + quantityEnd?: number; + /** Format: float */ + quantityStart?: number; + ruleId?: string; + shippingMethodId: string; + /** Format: date-time */ + updatedAt?: string; + }; + SimpleFilter: { + field: string; + /** @enum {string} */ + type: "contains" | "equalsAny" | "prefix" | "suffix"; + value: string; + }; + Sitemap: { + /** Format: date-time */ + created: string; + filename: string; + }; + Snippet: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id?: string; + setId: string; + translationKey: string; + /** Format: date-time */ + updatedAt?: string; + value: string; + }; + SnippetSet: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id?: string; + iso: string; + name: string; + snippets?: components["schemas"]["Snippet"][]; + /** Format: date-time */ + updatedAt?: string; + }; + Sort: { + field: string; + naturalSorting?: boolean; + /** @enum {string} */ + order: "ASC" | "DESC"; + type?: string; + }; + SpatialRenderConfigSize: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SpatialScene: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SpatialSceneCamera: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SpatialSceneLight: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SpatialSceneObject: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SsoProvider: { + /** Format: date-time */ + createdAt: string; + id?: string; + media?: components["schemas"]["Media"]; + /** Format: date-time */ + updatedAt?: string; + }; + SsoProviderCustomer: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + StateForAll: { + accessibleFrom?: string | null; + accessibleTo?: string | null; + /** @default false */ + allowUserActionsForGuide?: boolean; + /** @enum {string} */ + appointmentMode?: "guided" | "self"; + attendeeRestrictionType?: ("open" | "customer" | "rules") | null; + /** @default false */ + broadcastMode?: boolean; + currentDynamicPage?: components["schemas"]["DynamicPageOpenedPayload"]; + currentGuideProductId?: string | null; + currentPageId?: string | null; + currentSectionId?: string | null; + /** @default 0 */ + currentSlideAlias?: number; + /** @default false */ + ended?: boolean; + endedAt?: string | null; + /** @default [] */ + extensions?: unknown[]; + lastActiveGuideSection?: string | null; + productDetailDefaultPageId?: string | null; + productListingDefaultPageId?: string | null; + quickviewPageId?: string | null; + /** @default false */ + running?: boolean; + /** @default false */ + started?: boolean; + startedAt?: string | null; + /** + * @default none + * @enum {string} + */ + videoAudioSettings?: "both" | "none" | "audio-only"; + /** @default */ + videoRoomUrl?: string; + }; + StateForClients: { + /** @default [] */ + extensions?: unknown[]; + hoveredElementId?: string | null; + videoClientToken?: string | null; + }; + StateForMe: { + attendeeName?: string | null; + attendeeSubmittedAt?: string | null; + /** @default [] */ + extensions?: unknown[]; + /** @default null */ + guideCartPermissionsGranted?: boolean; + }; + StateMachine: { + /** Format: date-time */ + createdAt: string; + id?: string; + states?: components["schemas"]["StateMachineState"][]; + transitions?: components["schemas"]["StateMachineTransition"][]; + /** Format: date-time */ + updatedAt?: string; + }; + StateMachineHistory: { + /** Format: date-time */ + createdAt: string; + fromStateMachineState?: components["schemas"]["StateMachineState"]; + id?: string; + toStateMachineState?: components["schemas"]["StateMachineState"]; + /** Format: date-time */ + updatedAt?: string; + }; + StateMachineState: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id?: string; + name: string; + technicalName: string; + translated: { + name: string; + technicalName: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + StateMachineTransition: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SubAggregations: { + aggregation?: + | components["schemas"]["AggregationMetrics"] + | components["schemas"]["AggregationEntity"] + | components["schemas"]["AggregationFilter"] + | components["schemas"]["AggregationTerms"] + | components["schemas"]["AggregationHistogram"] + | components["schemas"]["AggregationRange"]; + }; + Subscription: { + addresses?: components["schemas"]["SubscriptionAddress"][]; + billingAddress?: components["schemas"]["SubscriptionAddress"]; + billingAddressId: string; + convertedOrder: GenericRecord; + /** Format: date-time */ + createdAt: string; + cronInterval: string; + currency?: components["schemas"]["Currency"]; + currencyId: string; + customFields?: GenericRecord; + dateInterval: string; + id: string; + /** Format: int64 */ + initialExecutionCount: number; + language?: components["schemas"]["Language"]; + languageId: string; + /** Format: date-time */ + nextSchedule: string; + orders?: components["schemas"]["Order"][]; + paymentMethod?: components["schemas"]["PaymentMethod"]; + paymentMethodId: string; + /** Format: int64 */ + remainingExecutionCount: number; + salesChannelId: string; + shippingAddress?: components["schemas"]["SubscriptionAddress"]; + shippingAddressId: string; + shippingMethod?: components["schemas"]["ShippingMethod"]; + shippingMethodId: string; + stateMachineState?: components["schemas"]["StateMachineState"]; + subscriptionCustomer?: components["schemas"]["SubscriptionCustomer"]; + subscriptionInterval?: components["schemas"]["SubscriptionInterval"]; + subscriptionIntervalId?: string; + subscriptionIntervalName: string; + subscriptionNumber: string; + subscriptionPlan?: components["schemas"]["SubscriptionPlan"]; + subscriptionPlanId?: string; + subscriptionPlanName: string; + tags?: components["schemas"]["Tag"][]; + /** Format: date-time */ + updatedAt?: string; + }; + SubscriptionAddress: { + additionalAddressLine1?: string; + additionalAddressLine2?: string; + billingSubscription?: components["schemas"]["Subscription"]; + city: string; + company?: string; + country?: components["schemas"]["Country"]; + countryId: string; + countryState?: components["schemas"]["CountryState"]; + countryStateId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + department?: string; + firstName: string; + id: string; + lastName: string; + phoneNumber?: string; + salutation?: components["schemas"]["Salutation"]; + salutationId?: string; + shippingSubscription?: components["schemas"]["Subscription"]; + street: string; + subscription?: components["schemas"]["Subscription"]; + subscriptionId: string; + title?: string; + /** Format: date-time */ + updatedAt?: string; + vatId?: string; + zipcode?: string; + }; + SubscriptionCustomer: { + company?: string; + /** Format: date-time */ + createdAt: string; + customerId?: string; + customerNumber?: string; + customFields?: GenericRecord; + email: string; + firstName: string; + id: string; + lastName: string; + salutation?: components["schemas"]["Salutation"]; + salutationId: string; + title?: string; + /** Format: date-time */ + updatedAt?: string; + vatIds?: string[]; + }; + SubscriptionInterval: { + active: boolean; + availabilityRuleId?: string; + /** Format: date-time */ + createdAt: string; + cronInterval: string; + dateInterval: string; + id: string; + name: string; + subscriptions?: components["schemas"]["Subscription"][]; + translated: { + availabilityRuleId: string; + cronInterval: string; + dateInterval: string; + name: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + SubscriptionPlan: { + active: boolean; + activeStorefrontLabel: boolean; + availabilityRuleId?: string; + /** Format: date-time */ + createdAt: string; + description?: string; + /** Format: float */ + discountPercentage?: number; + discountPrice?: components["schemas"]["Price"][]; + id: string; + label?: string; + /** Format: int64 */ + minimumExecutionCount?: number; + name: string; + subscriptions?: components["schemas"]["Subscription"][]; + translated: { + availabilityRuleId: string; + description: string; + label: string; + name: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + SubscriptionPlanIntervalMapping: { + id?: string; + subscriptionInterval?: components["schemas"]["SubscriptionInterval"]; + subscriptionIntervalId: string; + subscriptionPlan?: components["schemas"]["SubscriptionPlan"]; + subscriptionPlanId: string; + }; + SubscriptionPlanJsonApi: components["schemas"]["resource"] & { + active: boolean; + activeStorefrontLabel: boolean; + availabilityRuleId?: string; + /** Format: date-time */ + createdAt: string; + description?: string; + /** Format: float */ + discountPercentage?: number; + discountPrice?: components["schemas"]["Price"][]; + id: string; + label?: string; + /** Format: int64 */ + minimumExecutionCount?: number; + name: string; + relationships?: { + subscriptions?: { + data?: { + /** @example 2d5d14f95af035cbd8437948de61f94c */ + id?: string; + /** @example subscription */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /subscription-plan/5e63f9057837020694081b9412211bfb/subscriptions + */ + related?: string; + }; + }; + }; + translated: { + availabilityRuleId: string; + description: string; + label: string; + name: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + SubscriptionPlanProductMapping: { + id?: string; + product?: components["schemas"]["Product"]; + productId: string; + productVersionId?: string; + subscriptionPlan?: components["schemas"]["SubscriptionPlan"]; + subscriptionPlanId: string; + }; + SubscriptionTagMapping: { + id?: string; + subscription?: components["schemas"]["Subscription"]; + subscriptionId: string; + tag?: components["schemas"]["Tag"]; + tagId: string; + }; + SuccessResponse: { + success?: boolean; + }; + SwagCmsExtensionsBlockRule: { + cmsBlock?: components["schemas"]["CmsBlock"]; + cmsBlockId: string; + cmsBlockVersionId?: string; + /** Format: date-time */ + createdAt: string; + id: string; + inverted?: boolean; + /** Format: date-time */ + updatedAt?: string; + visibilityRule?: components["schemas"]["Rule"]; + visibilityRuleId?: string; + }; + SwagCmsExtensionsForm: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagCmsExtensionsFormGroup: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagCmsExtensionsFormGroupField: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagCmsExtensionsQuickview: { + active?: boolean; + cmsBlock?: components["schemas"]["CmsBlock"]; + cmsBlockId?: string; + cmsBlockVersionId?: string; + /** Format: date-time */ + createdAt: string; + id: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagCmsExtensionsScrollNavigation: { + active?: boolean; + cmsSection?: components["schemas"]["CmsSection"]; + cmsSectionId?: string; + cmsSectionVersionId?: string; + /** Format: date-time */ + createdAt: string; + displayName?: string; + id: string; + translated: { + cmsSectionId: string; + cmsSectionVersionId: string; + displayName: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + SwagCmsExtensionsScrollNavigationPageSettings: { + active: boolean; + bouncy: boolean; + cmsPage?: components["schemas"]["CmsPage"]; + cmsPageId?: string; + cmsPageVersionId?: string; + /** Format: date-time */ + createdAt: string; + /** Format: int64 */ + duration: number; + easing: string; + /** Format: int64 */ + easingDegree: number; + id: string; + nativeScrolling: boolean; + /** Format: date-time */ + updatedAt?: string; + }; + SwagCustomizedProductsTemplate: { + active?: boolean; + configurations?: components["schemas"]["SwagCustomizedProductsTemplateConfiguration"][]; + confirmInput?: boolean; + /** Format: date-time */ + createdAt: string; + decisionTree?: GenericRecord; + description?: string; + displayName: string; + exclusions?: components["schemas"]["SwagCustomizedProductsTemplateExclusion"][]; + id: string; + internalName: string; + media?: components["schemas"]["Media"]; + mediaId?: string; + options?: components["schemas"]["SwagCustomizedProductsTemplateOption"][]; + optionsAutoCollapse?: boolean; + parentVersionId?: string; + products?: components["schemas"]["Product"][]; + stepByStep?: boolean; + translated: { + description: string; + displayName: string; + internalName: string; + mediaId: string; + parentVersionId: string; + versionId: string; + }; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + SwagCustomizedProductsTemplateConfiguration: { + configuration: GenericRecord; + /** Format: date-time */ + createdAt: string; + hash: string; + id: string; + template?: components["schemas"]["SwagCustomizedProductsTemplate"]; + templateConfigurationShares?: components["schemas"]["SwagCustomizedProductsTemplateConfigurationShare"][]; + templateId: string; + templateVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + SwagCustomizedProductsTemplateConfigurationJsonApi: components["schemas"]["resource"] & { + configuration: GenericRecord; + /** Format: date-time */ + createdAt: string; + hash: string; + id: string; + relationships?: { + template?: { + data?: { + /** @example 66f6181bcb4cff4cd38fbc804a036db6 */ + id?: string; + /** @example swag_customized_products_template */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-configuration/ab78fa5f6df63876a7c6575bdf517fe2/template + */ + related?: string; + }; + }; + templateConfigurationShares?: { + data?: { + /** @example 81a31c81fde24f296e176502d32baa6d */ + id?: string; + /** @example swag_customized_products_template_configuration_share */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-configuration/ab78fa5f6df63876a7c6575bdf517fe2/templateConfigurationShares + */ + related?: string; + }; + }; + }; + templateId: string; + templateVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + SwagCustomizedProductsTemplateConfigurationShare: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagCustomizedProductsTemplateExclusion: { + conditions?: components["schemas"]["SwagCustomizedProductsTemplateExclusionCondition"][]; + /** Format: date-time */ + createdAt: string; + id: string; + name: string; + template?: components["schemas"]["SwagCustomizedProductsTemplate"]; + templateId: string; + templateVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + SwagCustomizedProductsTemplateExclusionCondition: { + /** Format: date-time */ + createdAt: string; + id: string; + templateExclusion?: components["schemas"]["SwagCustomizedProductsTemplateExclusion"]; + templateExclusionId: string; + templateExclusionOperator?: components["schemas"]["SwagCustomizedProductsTemplateExclusionOperator"]; + templateExclusionOperatorId: string; + templateExclusionVersionId?: string; + templateOption?: components["schemas"]["SwagCustomizedProductsTemplateOption"]; + templateOptionId: string; + templateOptionValues?: components["schemas"]["SwagCustomizedProductsTemplateOptionValue"][]; + templateOptionVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + SwagCustomizedProductsTemplateExclusionOperator: { + /** Format: date-time */ + createdAt: string; + id: string; + label: string; + operator: string; + templateExclusionConditions?: components["schemas"]["SwagCustomizedProductsTemplateExclusionCondition"][]; + templateOptionType: string; + translated: { + label: string; + operator: string; + templateOptionType: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + SwagCustomizedProductsTemplateJsonApi: components["schemas"]["resource"] & { + active?: boolean; + confirmInput?: boolean; + /** Format: date-time */ + createdAt: string; + decisionTree?: GenericRecord; + description?: string; + displayName: string; + id: string; + internalName: string; + mediaId?: string; + optionsAutoCollapse?: boolean; + parentVersionId?: string; + relationships?: { + configurations?: { + data?: { + /** @example 86f23519571eb918e8812e1979d55409 */ + id?: string; + /** @example swag_customized_products_template_configuration */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/configurations + */ + related?: string; + }; + }; + exclusions?: { + data?: { + /** @example c6fc0a7508c1a1fe9e233e81d31133b8 */ + id?: string; + /** @example swag_customized_products_template_exclusion */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/exclusions + */ + related?: string; + }; + }; + media?: { + data?: { + /** @example 62933a2951ef01f4eafd9bdf4d3cd2f0 */ + id?: string; + /** @example media */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/media + */ + related?: string; + }; + }; + options?: { + data?: { + /** @example 93da65a9fd0004d9477aeac024e08e15 */ + id?: string; + /** @example swag_customized_products_template_option */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/options + */ + related?: string; + }; + }; + products?: { + data?: { + /** @example 86024cad1e83101d97359d7351051156 */ + id?: string; + /** @example product */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template/4751e4cb483e992aa073494b9cfa9be6/products + */ + related?: string; + }; + }; + }; + stepByStep?: boolean; + translated: { + description: string; + displayName: string; + internalName: string; + mediaId: string; + parentVersionId: string; + versionId: string; + }; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + SwagCustomizedProductsTemplateOption: { + advancedSurcharge?: boolean; + calculatedPrice?: GenericRecord; + /** Format: date-time */ + createdAt: string; + description?: string; + displayName: string; + id: string; + itemNumber?: string; + oneTimeSurcharge?: boolean; + /** Format: float */ + percentageSurcharge?: number; + placeholder?: string; + /** Format: int64 */ + position?: number; + price?: components["schemas"]["Price"][]; + prices?: components["schemas"]["SwagCustomizedProductsTemplateOptionPrice"][]; + relativeSurcharge?: boolean; + required?: boolean; + tax?: components["schemas"]["Tax"]; + taxId?: string; + template?: components["schemas"]["SwagCustomizedProductsTemplate"]; + templateExclusionConditions?: components["schemas"]["SwagCustomizedProductsTemplateExclusionCondition"][]; + templateId: string; + templateVersionId?: string; + translated: { + description: string; + displayName: string; + itemNumber: string; + placeholder: string; + taxId: string; + templateId: string; + templateVersionId: string; + type: string; + }; + type: string; + typeProperties?: GenericRecord; + /** Format: date-time */ + updatedAt?: string; + values?: components["schemas"]["SwagCustomizedProductsTemplateOptionValue"][]; + }; + SwagCustomizedProductsTemplateOptionJsonApi: components["schemas"]["resource"] & { + advancedSurcharge?: boolean; + calculatedPrice?: GenericRecord; + /** Format: date-time */ + createdAt: string; + description?: string; + displayName: string; + id: string; + itemNumber?: string; + oneTimeSurcharge?: boolean; + /** Format: float */ + percentageSurcharge?: number; + placeholder?: string; + /** Format: int64 */ + position?: number; + price?: components["schemas"]["Price"][]; + relationships?: { + prices?: { + data?: { + /** @example afae32efe0f84fece3f96b377b768b33 */ + id?: string; + /** @example swag_customized_products_template_option_price */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/prices + */ + related?: string; + }; + }; + tax?: { + data?: { + /** @example 06565e5611f23fdf8cc43e5077b92b54 */ + id?: string; + /** @example tax */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/tax + */ + related?: string; + }; + }; + template?: { + data?: { + /** @example 66f6181bcb4cff4cd38fbc804a036db6 */ + id?: string; + /** @example swag_customized_products_template */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/template + */ + related?: string; + }; + }; + templateExclusionConditions?: { + data?: { + /** @example 57e853a74b92e339ec2e302b015e60f3 */ + id?: string; + /** @example swag_customized_products_template_exclusion_condition */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/templateExclusionConditions + */ + related?: string; + }; + }; + values?: { + data?: { + /** @example f09cc7ee3a9a93273f4b80601cafb00c */ + id?: string; + /** @example swag_customized_products_template_option_value */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-option/6342f0c20b443cb5408ec0fc12430bcb/values + */ + related?: string; + }; + }; + }; + relativeSurcharge?: boolean; + required?: boolean; + taxId?: string; + templateId: string; + templateVersionId?: string; + translated: { + description: string; + displayName: string; + itemNumber: string; + placeholder: string; + taxId: string; + templateId: string; + templateVersionId: string; + type: string; + }; + type: string; + typeProperties?: GenericRecord; + /** Format: date-time */ + updatedAt?: string; + }; + SwagCustomizedProductsTemplateOptionPrice: { + /** Format: date-time */ + createdAt: string; + id: string; + /** Format: float */ + percentageSurcharge?: number; + price?: components["schemas"]["Price"][]; + rule?: components["schemas"]["Rule"]; + ruleId?: string; + templateOption?: components["schemas"]["SwagCustomizedProductsTemplateOption"]; + templateOptionId: string; + templateOptionVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + SwagCustomizedProductsTemplateOptionValue: { + advancedSurcharge?: boolean; + /** Format: date-time */ + createdAt: string; + default?: boolean; + displayName: string; + id: string; + itemNumber?: string; + oneTimeSurcharge?: boolean; + /** Format: float */ + percentageSurcharge?: number; + /** Format: int64 */ + position: number; + price?: components["schemas"]["Price"][]; + prices?: components["schemas"]["SwagCustomizedProductsTemplateOptionValuePrice"][]; + relativeSurcharge?: boolean; + tax?: components["schemas"]["Tax"]; + taxId?: string; + templateExclusionConditions?: components["schemas"]["SwagCustomizedProductsTemplateExclusionCondition"][]; + templateOption?: components["schemas"]["SwagCustomizedProductsTemplateOption"]; + templateOptionId: string; + templateOptionVersionId?: string; + translated: { + displayName: string; + itemNumber: string; + taxId: string; + templateOptionId: string; + templateOptionVersionId: string; + versionId: string; + }; + /** Format: date-time */ + updatedAt?: string; + value?: GenericRecord; + versionId?: string; + }; + SwagCustomizedProductsTemplateOptionValueJsonApi: components["schemas"]["resource"] & { + advancedSurcharge?: boolean; + /** Format: date-time */ + createdAt: string; + default?: boolean; + displayName: string; + id: string; + itemNumber?: string; + oneTimeSurcharge?: boolean; + /** Format: float */ + percentageSurcharge?: number; + /** Format: int64 */ + position: number; + price?: components["schemas"]["Price"][]; + relationships?: { + prices?: { + data?: { + /** @example afae32efe0f84fece3f96b377b768b33 */ + id?: string; + /** @example swag_customized_products_template_option_value_price */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-option-value/b57f26a8362182be3e67a815927b7f37/prices + */ + related?: string; + }; + }; + tax?: { + data?: { + /** @example 06565e5611f23fdf8cc43e5077b92b54 */ + id?: string; + /** @example tax */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-option-value/b57f26a8362182be3e67a815927b7f37/tax + */ + related?: string; + }; + }; + templateExclusionConditions?: { + data?: { + /** @example 57e853a74b92e339ec2e302b015e60f3 */ + id?: string; + /** @example swag_customized_products_template_exclusion_condition */ + type?: string; + }[]; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-option-value/b57f26a8362182be3e67a815927b7f37/templateExclusionConditions + */ + related?: string; + }; + }; + templateOption?: { + data?: { + /** @example 6891a002a90a39e71e67c4fc148db8df */ + id?: string; + /** @example swag_customized_products_template_option */ + type?: string; + }; + links?: { + /** + * Format: uri-reference + * @example /swag-customized-products-template-option-value/b57f26a8362182be3e67a815927b7f37/templateOption + */ + related?: string; + }; + }; + }; + relativeSurcharge?: boolean; + taxId?: string; + templateOptionId: string; + templateOptionVersionId?: string; + translated: { + displayName: string; + itemNumber: string; + taxId: string; + templateOptionId: string; + templateOptionVersionId: string; + versionId: string; + }; + /** Format: date-time */ + updatedAt?: string; + value?: GenericRecord; + versionId?: string; + }; + SwagCustomizedProductsTemplateOptionValuePrice: { + /** Format: date-time */ + createdAt: string; + id: string; + /** Format: float */ + percentageSurcharge?: number; + price?: components["schemas"]["Price"][]; + rule?: components["schemas"]["Rule"]; + ruleId?: string; + templateOptionValue?: components["schemas"]["SwagCustomizedProductsTemplateOptionValue"]; + templateOptionValueId: string; + templateOptionValueVersionId?: string; + /** Format: date-time */ + updatedAt?: string; + versionId?: string; + }; + SwagDelayAction: { + /** Format: date-time */ + createdAt: string; + customerId?: string; + id: string; + orderId?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagDynamicAccessLandingPageRule: { + id?: string; + landingPage?: components["schemas"]["LandingPage"]; + landingPageId: string; + landingPageVersionId?: string; + rule?: components["schemas"]["Rule"]; + ruleId: string; + }; + SwagDynamicAccessProductRule: { + id?: string; + product?: components["schemas"]["Product"]; + productId: string; + productVersionId?: string; + rule?: components["schemas"]["Rule"]; + ruleId: string; + }; + SwagLanguagePackLanguage: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagMigrationConnection: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagMigrationData: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagMigrationGeneralSetting: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagMigrationLogging: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagMigrationMapping: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagMigrationMediaFile: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagMigrationRun: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagPaypalPosSalesChannel: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagPaypalPosSalesChannelRun: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagPaypalPosSalesChannelRunLog: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagPaypalTransactionReport: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagPaypalVaultTokenMapping: { + /** Format: date-time */ + createdAt: string; + customer?: components["schemas"]["Customer"]; + customerId: string; + id?: string; + paymentMethod?: components["schemas"]["PaymentMethod"]; + paymentMethodId: string; + token?: components["schemas"]["SwagPaypalVaultToken"]; + tokenId: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagSocialShoppingCustomer: { + /** Format: date-time */ + createdAt: string; + id: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagSocialShoppingOrder: { + /** Format: date-time */ + createdAt: string; + id: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagSocialShoppingProductError: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SwagSocialShoppingSalesChannel: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + SystemConfig: { + configurationKey: string; + configurationValue: { + _value?: GenericRecord; + }; + /** Format: date-time */ + createdAt: string; + id: string; + salesChannel?: components["schemas"]["SalesChannel"]; + salesChannelId?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Tag: { + /** Format: date-time */ + createdAt: string; + id: string; + name: string; + /** Format: date-time */ + updatedAt?: string; + }; + Tax: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + name: string; + /** + * Format: int64 + * Added since version: 6.4.0.0. + */ + position: number; + /** Format: float */ + taxRate: number; + /** Format: date-time */ + updatedAt?: string; + }; + TaxProvider: { + active?: boolean; + appId?: string; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + name: string; + /** Format: int64 */ + priority: number; + processUrl?: string; + translated: { + appId: string; + name: string; + processUrl: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + TaxRule: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + TaxRuleType: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Theme: { + active: boolean; + author: string; + baseConfig?: GenericRecord; + configValues?: GenericRecord; + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + description?: string; + helpTexts?: GenericRecord; + id: string; + labels?: GenericRecord; + media?: components["schemas"]["Media"][]; + name: string; + parentThemeId?: string; + previewMediaId?: string; + technicalName?: string; + translated: { + author: string; + description: string; + name: string; + parentThemeId: string; + previewMediaId: string; + technicalName: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + ToggleBroadcastModePayload: { + /** Status if the mode is toggled to active or inactive */ + active: boolean; + }; + TotalCountMode: "none" | "exact" | "next-pages"; + Unit: { + /** Format: date-time */ + createdAt: string; + customFields?: GenericRecord; + id: string; + name: string; + shortCode: string; + translated: { + name: string; + shortCode: string; + }; + /** Format: date-time */ + updatedAt?: string; + }; + UpdateAttendeeRequestBody: { + /** Name of the attendee */ + attendeeName: string; + /** The first time the attendee submit the update form */ + attendeeSubmitted: boolean; + /** The permission for guide cart actions */ + guideCartPermissionsGranted: boolean; + /** Id of the attendee in the video chat tool */ + videoUserId: string; + }; + User: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + UserAccessKey: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + UserConfig: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + UserRecovery: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Warehouse: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + WarehouseGroup: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + Webhook: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + WebhookEventLog: { + /** Format: date-time */ + createdAt: string; + id?: string; + /** Format: date-time */ + updatedAt?: string; + }; + WishlistLoadRouteResponse: { + products?: components["schemas"]["ProductListingResult"]; + wishlist?: { + customerId?: string; + salesChannelId?: string; + }; + }; + attributes: { + [key: string]: unknown; + }; + data: components["schemas"]["resource"] | components["schemas"]["resource"][]; + error: { + /** An application-specific error code, expressed as a string value. */ + code?: string; + /** A human-readable description of the problem. */ + description?: string; + /** A human-readable explanation specific to this occurrence of the problem. */ + detail?: string; + /** A unique identifier for this particular occurrence of the problem. */ + id?: string; + links?: components["schemas"]["links"]; + meta?: components["schemas"]["meta"]; + source?: { + /** A string indicating which query parameter caused the error. */ + parameter?: string; + /** A JSON Pointer [RFC6901] to the associated entity in the request document [e.g. "/data" for a primary data object, or "/data/attributes/title" for a specific attribute]. */ + pointer?: string; + }; + /** The HTTP status code applicable to this problem, expressed as a string value. */ + status?: string; + /** A short, human-readable summary of the problem. It **SHOULD NOT** change from occurrence to occurrence of the problem, except for purposes of localization. */ + title?: string; + }; + failure: { + errors: components["schemas"]["error"][]; + links?: components["schemas"]["links"]; + meta?: components["schemas"]["meta"]; + }; + info: { + jsonapi?: components["schemas"]["jsonapi"]; + links?: components["schemas"]["links"]; + meta: components["schemas"]["meta"]; + }; + jsonapi: { + meta?: components["schemas"]["meta"]; + version?: string; + }; + link: OneOf< + [ + string, + { + /** + * Format: uri-reference + * A string containing the link's URL. + */ + href: string; + meta?: components["schemas"]["meta"]; + }, + ] + >; + linkage: { + id: string; + meta?: components["schemas"]["meta"]; + type: string; + }; + links: { + [key: string]: components["schemas"]["link"]; + }; + meta: { + [key: string]: unknown; + }; + pagination: { + /** + * Format: uri-reference + * The first page of data + */ + first?: string; + /** + * Format: uri-reference + * The last page of data + */ + last?: string; + /** + * Format: uri-reference + * The next page of data + */ + next?: string; + /** + * Format: uri-reference + * The previous page of data + */ + prev?: string; + }; + relationshipLinks: { + related?: components["schemas"]["link"]; + self?: GenericRecord[] & components["schemas"]["link"]; + [key: string]: unknown; + }; + relationshipToMany: components["schemas"]["linkage"][]; + relationshipToOne: components["schemas"]["linkage"]; + relationships: unknown; + resource: { + attributes?: components["schemas"]["attributes"]; + id: string; + links?: components["schemas"]["links"]; + meta?: components["schemas"]["meta"]; + relationships?: components["schemas"]["relationships"]; + type: string; + }; + success: { + data: components["schemas"]["data"]; + /** To reduce the number of HTTP requests, servers **MAY** allow responses that include related resources along with the requested primary resources. Such responses are called "compound documents". */ + included?: components["schemas"]["resource"][]; + /** Link members related to the primary data. */ + links?: components["schemas"]["links"] & components["schemas"]["pagination"]; + meta?: components["schemas"]["meta"]; + }; +}; +export type operations = { + "api-info get /_info/openapi3.json": { + contentType?: "application/json"; + accept?: "application/json"; + query?: { + /** Type of the api */ + type?: "jsonapi" | "json"; + }; + response: { + components?: { + callbacks?: GenericRecord; + examples?: GenericRecord; + headers?: GenericRecord; + links?: GenericRecord; + parameters?: GenericRecord; + pathItems?: GenericRecord; + requestBodies?: GenericRecord; + responses?: GenericRecord; + schemas?: GenericRecord; + securitySchemes?: GenericRecord; + }; + externalDocs?: { + description?: string; + /** Format: uri */ + url: string; + }; + info: { + contact?: { + /** Format: email */ + email?: string; + name?: string; + /** Format: uri */ + url?: string; + }; + description?: string; + license?: { + identifier?: string; + name: string; + /** Format: uri */ + url?: string; + }; + summary?: string; + /** Format: uri */ + termsOfService?: string; + title: string; + version: string; + }; + jsonSchemaDialect?: string; + openapi: string; + paths?: GenericRecord; + security?: GenericRecord[]; + servers?: { + url: string; + }[]; + tags?: { + description?: string; + externalDocs?: { + description?: string; + /** Format: uri */ + url: string; + }; + name: string; + }[]; + webhooks?: GenericRecord; + }; + responseCode: 200; + }; + "getRoutes get /_info/routes": { + contentType?: "application/json"; + accept?: "application/json"; + response: { + endpoints: { + methods: string[]; + path: string; + }[]; + }; + responseCode: 200; + }; + "createCustomerAddress post /account/address": { + contentType?: "application/json"; + accept?: "application/json"; + body: components["schemas"]["CustomerAddress"]; + response: components["schemas"]["CustomerAddress"] & + components["schemas"]["CustomerAddressRead"]; + responseCode: 200; + }; + "deleteCustomerAddress delete /account/address/{addressId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** ID of the address to be deleted. */ + addressId: string; + }; + response: never; + responseCode: 204; + }; + "updateCustomerAddress patch /account/address/{addressId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Address ID */ + addressId: string; + }; + body: components["schemas"]["CustomerAddressBody"]; + response: components["schemas"]["CustomerAddress"] & + components["schemas"]["CustomerAddressRead"]; + responseCode: 200; + }; + "defaultBillingAddress patch /account/address/default-billing/{addressId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Address ID */ + addressId: string; + }; + response: never; + responseCode: 200; + }; + "defaultShippingAddress patch /account/address/default-shipping/{addressId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Address ID */ + addressId: string; + }; + response: never; + responseCode: 200; + }; + "changeEmail post /account/change-email": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** New email address. Has to be unique amongst all customers */ + email: string; + /** Confirmation of the new email address. */ + emailConfirmation: string; + /** Customer's current password */ + password: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "changeLanguage post /account/change-language": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** New languageId */ + language?: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "changePassword post /account/change-password": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** New Password for the customer */ + newPassword: string; + /** Confirmation of the new password */ + newPasswordConfirm: string; + /** Current password of the customer */ + password: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "changePaymentMethod post /account/change-payment-method/{paymentMethodId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the desired default payment method */ + paymentMethodId: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "changeProfile post /account/change-profile": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Birthday day */ + birthdayDay?: number; + /** Birthday month */ + birthdayMonth?: number; + /** Birthday year */ + birthdayYear?: number; + /** Company of the customer. Only required when `accountType` is `business`. */ + company?: string; + /** Customer first name. Value will be reused for shipping and billing address if not provided explicitly. */ + firstName: string; + /** Customer last name. Value will be reused for shipping and billing address if not provided explicitly. */ + lastName: string; + /** Id of the salutation for the customer account. Fetch options using `salutation` endpoint. */ + salutationId: string; + /** (Academic) title of the customer */ + title?: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "readCustomer post /account/customer": { + contentType?: "application/json"; + accept?: "application/json"; + body?: components["schemas"]["Criteria"]; + response: components["schemas"]["Customer"]; + responseCode: 200; + }; + "deleteCustomer delete /account/customer": { + contentType?: "application/json"; + accept?: "application/json"; + response: never; + responseCode: 204; + }; + "getCustomerRecoveryIsExpired post /account/customer-recovery-is-expired": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Parameter from the link in the confirmation mail sent in Step 1 */ + hash: string; + }; + response: { + /** @enum {string} */ + apiAlias?: "array_struct"; + data?: { + isExpired: boolean; + }[]; + }; + responseCode: 200; + }; + "listAddress post /account/list-address": { + contentType?: "application/json"; + accept?: "application/json"; + body?: components["schemas"]["Criteria"]; + response: components["schemas"]["CustomerAddress"][]; + responseCode: 200; + }; + "loginCustomer post /account/login": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Password */ + password: string; + /** Email */ + username: string; + }; + response: { + /** Define the URL which browser will be redirected to */ + redirectUrl?: string; + }; + responseCode: 200; + }; + "imitateCustomerLogin post /account/login/imitate-customer": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** ID of the customer */ + customerId: string; + /** Generated customer impersonation token */ + token: string; + /** ID of the user who generated the token */ + userId: string; + }; + response: { + /** Define the URL which browser will be redirected to */ + redirectUrl?: string; + }; + responseCode: 200; + }; + "logoutCustomer post /account/logout": { + contentType?: "application/json"; + accept?: "application/json"; + response: { + /** Define the URL which browser will be redirected to */ + redirectUrl?: string; + }; + responseCode: 200; + }; + "readNewsletterRecipient post /account/newsletter-recipient": { + contentType?: "application/json"; + accept?: "application/json"; + body?: components["schemas"]["Criteria"]; + response: components["schemas"]["AccountNewsletterRecipient"]; + responseCode: 200; + }; + "sendRecoveryMail post /account/recovery-password": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** E-Mail address to identify the customer */ + email: string; + /** 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. */ + storefrontUrl: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "recoveryPassword post /account/recovery-password-confirm": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Parameter from the link in the confirmation mail sent in Step 1 */ + hash: string; + /** New password for the customer */ + newPassword: string; + /** Confirmation of the new password */ + newPasswordConfirm: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "register post /account/register": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Flag indicating accepted data protection */ + acceptedDataProtection: boolean; + /** + * Account type of the customer which can be either `private` or `business`. + * @default private + */ + accountType?: string; + /** Field can be used to store an affiliate tracking code */ + affiliateCode?: string; + billingAddress: components["schemas"]["CustomerAddress"]; + /** Birthday day */ + birthdayDay?: number; + /** Birthday month */ + birthdayMonth?: number; + /** Birthday year */ + birthdayYear?: number; + /** Field can be used to store a campaign tracking code */ + campaignCode?: string; + /** Email of the customer. Has to be unique, unless `guest` is `true` */ + email: string; + /** Customer first name. Value will be reused for shipping and billing address if not provided explicitly. */ + firstName: string; + /** + * If set, will create a guest customer. Guest customers can re-use an email address and don't need a password. + * @default false + */ + guest?: boolean; + /** Customer last name. Value will be reused for shipping and billing address if not provided explicitly. */ + lastName: string; + /** Password for the customer. Required, unless `guest` is `true` */ + password: string; + /** Id of the salutation for the customer account. Fetch options using `salutation` endpoint. */ + salutationId: string; + shippingAddress?: components["schemas"]["CustomerAddress"]; + /** URL of the storefront for that registration. Used in confirmation emails. Has to be one of the configured domains of the sales channel. */ + storefrontUrl: string; + /** (Academic) title of the customer */ + title?: string; + }; + response: components["schemas"]["Customer"]; + responseCode: 200; + }; + "registerConfirm post /account/register-confirm": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Email hash from the email received */ + em: string; + /** Hash from the email received */ + hash: string; + }; + response: never; + responseCode: 200; + }; + "createShoppingList post /account/shopping-list": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + lineItems?: { + [key: string]: { + /** Product id */ + id: string; + /** Quantity of the product */ + quantity: number; + }; + }; + /** Shopping list name */ + name: string; + }; + response: never; + responseCode: 204; + }; + "removeShoppingLists delete /account/shopping-list": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Shopping list ids */ + ids: string[]; + }; + response: never; + responseCode: 204; + }; + "readShoppingList post /account/shopping-list/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the shopping list to be fetched */ + id: string; + }; + response: components["schemas"]["B2bComponentsShoppingList"]; + responseCode: 200; + }; + "updateShoppingList patch /account/shopping-list/{id}/change-name": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the shopping list to be fetched */ + id: string; + }; + body: { + /** Shopping list name */ + name: string; + }; + response: never; + responseCode: 204; + }; + "duplicateShoppingList post /account/shopping-list/{id}/duplicate": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the shopping list to be fetched */ + id: string; + }; + body: { + /** Shopping list name */ + name: string; + }; + response: { + /** The generated id of the duplicated shopping list */ + id?: string; + }; + responseCode: 200; + }; + "summaryShoppingList get /account/shopping-list/{id}/summary": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the shopping list to be fetched */ + id: string; + }; + response: { + price?: { + /** + * Format: float + * Net price of the cart + */ + netPrice?: number; + /** + * Format: float + * Price for all line items in the cart + */ + positionPrice?: number; + /** Tax calculation for the cart. One of `gross`, `net` or `tax-free` */ + taxStatus?: string; + /** + * Format: float + * Total price of the cart, including shipping costs, discounts and taxes + */ + totalPrice?: number; + }; + }; + responseCode: 200; + }; + "addLineItems post /account/shopping-list/line-item/{id}/add": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the shopping list to be fetched */ + id: string; + }; + body?: { + lineItems: { + [key: string]: { + /** Product id */ + id: string; + /** Quantity of the product */ + quantity: number; + }; + }; + }; + response: never; + responseCode: 204; + }; + "updateLineItems patch /account/shopping-list/line-item/{id}/change-quantity": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the shopping list line item to be fetched */ + id: string; + }; + body: { + /** new line item quantity */ + quantity: number; + }; + response: never; + responseCode: 204; + }; + "removeLineItems delete /account/shopping-list/line-item/remove": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Line items ids */ + ids: string[]; + }; + response: never; + responseCode: 204; + }; + "readShoppingLists post /account/shopping-lists": { + contentType?: "application/json"; + accept?: "application/json"; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["B2bComponentsShoppingList"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "generateJWTAppSystemAppServer post /app-system/{name}/generate-token": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Name of the app */ + name: string; + }; + body?: GenericRecord; + response: { + /** Format: date-time */ + expires?: string; + shopId?: string; + token?: string; + }; + responseCode: 200; + }; + "readApprovalRules get /approval-rule": { + contentType?: "application/json"; + accept?: "application/json"; + query?: { + /** Page number */ + p?: number; + /** Number of items per page */ + limit?: number; + }; + response: { + elements?: components["schemas"]["ApprovalRule"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "listApprovalRules post /approval-rule": { + contentType?: "application/json"; + accept?: "application/json"; + query?: { + /** Page number */ + p?: number; + /** Number of items per page */ + limit?: number; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["ApprovalRule"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readApprovalRule get /approval-rule/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the approval rule to be fetched */ + id: string; + }; + response: components["schemas"]["ApprovalRule"]; + responseCode: 200; + }; + "updateApprovalRule patch /approval-rule/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the approval rule to be updated */ + id: string; + }; + body?: { + /** Active status of the approval rule */ + active?: boolean; + /** ID of the role that can approve the rule */ + approvalRuleApprove?: string; + /** List of rules */ + approvalRuleCondition?: { + /** Type of the rule */ + type?: string; + /** Value */ + value?: string; + }; + /** Name of the approval rule */ + approvalRuleName?: string; + /** ID of the role that is affected by the rule */ + approvalRuleRole?: string; + /** Description of the approval rule */ + description?: string; + /** Priority of the approval rule */ + priority?: number; + }; + response: components["schemas"]["ApprovalRule"]; + responseCode: 200; + }; + "createApprovalRule post /approval-rule/create": { + contentType?: "application/json"; + accept?: "application/json"; + body?: { + /** Active status of the approval rule */ + active?: boolean; + /** ID of the role that can approve the rule */ + approvalRuleApprove?: string; + /** List of rules */ + approvalRuleCondition?: { + /** Type of the rule */ + type?: string; + /** Value */ + value?: string; + }; + /** Name of the approval rule */ + approvalRuleName?: string; + /** ID of the role that is affected by the rule */ + approvalRuleRole?: string; + /** Description of the approval rule */ + description?: string; + /** Priority of the approval rule */ + priority?: number; + }; + response: components["schemas"]["ApprovalRule"]; + responseCode: 200; + }; + "readBreadcrumb get /breadcrumb/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + query?: { + /** Type: category or product (optional - default: product) */ + type?: "product" | "category"; + /** UUID for referrer category only used for product breadcrumb */ + referrerCategoryId?: string; + }; + pathParams: { + /** UUID for product or category */ + id: string; + }; + response: components["schemas"]["BreadcrumbCollection"]; + responseCode: 200; + }; + "readCategoryList post /category": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["Category"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readCategory post /category/{navigationId}": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to try and resolve SEO URLs for the given navigation item */ + "sw-include-seo-urls"?: boolean; + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + query?: { + /** Resolves only the given slot identifiers. The identifiers have to be seperated by a '|' character */ + slots?: string; + }; + pathParams: { + /** Identifier of the category to be fetched */ + navigationId: string; + }; + body: components["schemas"]["Criteria"] & components["schemas"]["ProductListingCriteria"]; + response: components["schemas"]["Category"]; + responseCode: 200; + }; + "readCart get /checkout/cart": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + response: components["schemas"]["Cart"]; + responseCode: 200; + }; + "deleteCart delete /checkout/cart": { + contentType?: "application/json"; + accept?: "application/json"; + response: components["schemas"]["SuccessResponse"]; + responseCode: 204; + }; + "addLineItem post /checkout/cart/line-item": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: components["schemas"]["CartItems"]; + response: components["schemas"]["Cart"]; + responseCode: 200; + }; + "removeLineItemDeprecated delete /checkout/cart/line-item": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + query: { + /** A list of product identifiers. */ + ids: string[]; + }; + response: components["schemas"]["Cart"]; + responseCode: 200; + }; + "updateLineItem patch /checkout/cart/line-item": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: components["schemas"]["CartItems"]; + response: components["schemas"]["Cart"]; + responseCode: 200; + }; + "removeLineItem post /checkout/cart/line-item/delete": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: { + /** A list of product identifiers. */ + ids: [string, ...string[]]; + }; + response: components["schemas"]["Cart"]; + responseCode: 200; + }; + "checkoutGateway get /checkout/gateway": { + contentType?: "application/json"; + accept?: "application/json"; + response: { + errors?: { + /** If the error is blocking */ + blocking?: boolean; + /** Error code */ + code?: string; + /** Error detail */ + detail?: string; + }[]; + paymentMethods?: { + /** aggregation result */ + aggregations?: GenericRecord; + elements?: components["schemas"]["PaymentMethod"][]; + /** Total amount */ + total?: number; + }; + shippingMethods?: { + /** aggregation result */ + aggregations?: GenericRecord; + elements?: components["schemas"]["ShippingMethod"][]; + /** Total amount */ + total?: number; + }; + }; + responseCode: 200; + }; + "createOrder post /checkout/order": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: { + /** The affiliate code can be used to track which referrer the customer came through. An example could be `Price-comparison-company-XY`. */ + affiliateCode?: string; + /** The campaign code is used to track which action the customer came from. An example could be `Summer-Deals` */ + campaignCode?: string; + /** Adds a comment from the customer to the order. */ + customerComment?: string; + }; + response: components["schemas"]["Order"]; + responseCode: 200; + }; + "readCms post /cms/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + /** Identifier of the CMS page to be resolved */ + id: string; + }; + body: { + /** Resolves only the given slot identifiers. The identifiers have to be seperated by a `|` character. */ + slots?: string; + } & components["schemas"]["ProductListingCriteria"]; + response: components["schemas"]["CmsPage"]; + responseCode: 200; + }; + "sendContactMail post /contact-form": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: { + /** Type of the content management page */ + cmsPageType?: string; + /** The message of the contact form */ + comment: string; + /** Email address */ + email: string; + /** Entity name for slot config */ + entityName?: string; + /** Firstname. This field may be required depending on the system settings. */ + firstName?: string; + /** Lastname. This field may be required depending on the system settings. */ + lastName?: string; + /** + * Identifier of the navigation page. Can be used to override the configuration. + * Take a look at the settings of a category containing a concat form in the administration. + */ + navigationId?: string; + /** Phone. This field may be required depending on the system settings. */ + phone?: string; + /** Identifier of the salutation. Use `/api/salutation` endpoint to fetch possible values. */ + salutationId: string; + /** Identifier of the cms element */ + slotId?: string; + /** The subject of the contact form. */ + subject: string; + }; + response: never; + responseCode: 200; + }; + "readContext get /context": { + contentType?: "application/json"; + accept?: "application/json"; + response: components["schemas"]["SalesChannelContext"]; + responseCode: 200; + }; + "updateContext patch /context": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Billing Address */ + billingAddressId?: string; + /** Country */ + countryId?: string; + /** Country State */ + countryStateId?: string; + /** Currency */ + currencyId?: string; + /** Language */ + languageId?: string; + /** Payment Method */ + paymentMethodId?: string; + /** Shipping Address */ + shippingAddressId?: string; + /** Shipping Method */ + shippingMethodId?: string; + }; + response: { + /** Define the URL which browser will be redirected to */ + redirectUrl?: string; + }; + responseCode: 200; + }; + "readCountry post /country": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["Country"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readCountryState post /country-state/{countryId}": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + countryId: string; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["CountryState"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readCurrency post /currency": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["Currency"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "getCustomerGroupRegistrationInfo get /customer-group-registration/config/{customerGroupId}": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + /** Customer group id */ + customerGroupId: string; + }; + response: components["schemas"]["CustomerGroup"]; + responseCode: 200; + }; + "readCustomerWishlist post /customer/wishlist": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body?: components["schemas"]["Criteria"]; + response: components["schemas"]["WishlistLoadRouteResponse"]; + responseCode: 200; + }; + "addProductOnWishlist post /customer/wishlist/add/{productId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the product to be added. */ + productId: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "deleteProductOnWishlist delete /customer/wishlist/delete/{productId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** The identifier of the product to be removed from the wishlist. */ + productId: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "mergeProductOnWishlist post /customer/wishlist/merge": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** List product id */ + productIds?: string[]; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "download post /document/download/{documentId}/{deepLinkCode}": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + documentId: string; + deepLinkCode: string; + }; + body?: components["schemas"]["Criteria"]; + response: components["schemas"]["Document"]; + responseCode: 200; + }; + "attendeeRespondInvitation patch /dsr/appointment/{appointmentId}/attendee/respond-invitation": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** The appointment id you respond to */ + appointmentId: string; + }; + body: { + /** + * The status you respond to + * @enum {string} + */ + invitationStatus?: "accepted" | "maybe" | "declined"; + /** The token will be attached to the invitation response link in the invitation mail */ + token: string; + }; + response: components["schemas"]["AttendeeRespondInvitationResponse"]; + responseCode: 200; + }; + "getCalendarFile post /dsr/appointment/{appointmentId}/download-ics": { + contentType?: "application/json"; + accept: "text/calendar"; + pathParams: { + /** The appointment id you want to get the calendar file */ + appointmentId: string; + }; + body: { + /** The token will be attached to the invitation response link in the invitation mail */ + token: string; + }; + response: unknown; + responseCode: 200; + }; + "joinAppointmentAsClient post /dsr/appointment/{presentationPath}/join-as-client": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Presentation path */ + presentationPath: string; + }; + response: components["schemas"]["JoinAppointmentResponse"]; + responseCode: 200; + }; + "updateAttendee patch /dsr/appointment/attendee": { + contentType?: "application/json"; + accept?: "application/json"; + body: components["schemas"]["UpdateAttendeeRequestBody"]; + response: { + /** + * The api alias of the API + * @default dsr.appointment.update-attendee + */ + apiAlias?: string; + /** The data is used to update the attendee information */ + data?: unknown; + }; + responseCode: 200; + }; + "getAttendeeProductCollection get /dsr/appointment/collection/{alias}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** The alias of collection you want to get */ + alias: "liked" | "disliked"; + }; + response: components["schemas"]["AttendeeProductCollectionResponse"]; + responseCode: 200; + }; + "attendeeProductCollectionAddProduct post /dsr/appointment/collection/{alias}/{productId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** The alias of collection you want to add */ + alias: "liked" | "disliked"; + /** The product id you want to add */ + productId: string; + }; + response: never; + responseCode: 204; + }; + "attendeeProductCollectionRemoveProduct delete /dsr/appointment/collection/{alias}/{productId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** The alias of collection you want to remove */ + alias: "liked" | "disliked"; + /** The product id you want to remove */ + productId: string; + }; + response: never; + responseCode: 204; + }; + "getLastSeenProducts get /dsr/appointment/collection/last-seen": { + contentType?: "application/json"; + accept?: "application/json"; + response: components["schemas"]["AttendeeProductCollectionLastSeenResponse"]; + responseCode: 200; + }; + "getPresentationStructure get /dsr/appointment/presentation": { + contentType?: "application/json"; + accept?: "application/json"; + response: components["schemas"]["PresentationStructure"]; + responseCode: 200; + }; + "getSlideData get /dsr/appointment/presentation/{presentationCmsPageId}/slide/{sectionId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Presentation CMS page id for which the data is requested */ + presentationCmsPageId: string; + /** CMS section id for which the data is requested */ + sectionId: string; + }; + response: components["schemas"]["PresentationSlideData"]; + responseCode: 200; + }; + "getClientPresentationState get /dsr/appointment/presentation/state": { + contentType?: "application/json"; + accept?: "application/json"; + response: components["schemas"]["ClientPresentationStateResponse"]; + responseCode: 200; + }; + "addInteraction post /dsr/interaction": { + contentType?: "application/json"; + accept?: "application/json"; + body: components["schemas"]["CreateInteractionRequestBody"]; + response: never; + responseCode: 200; + }; + "dsrProductListing post /dsr/product-listing": { + contentType?: "application/json"; + accept?: "application/json"; + body?: components["schemas"]["Criteria"] & { + /** + * Load interaction (like & dislike) to product of attendee. It will be added into product extensions named interaction + * @default false + */ + interaction?: boolean; + /** + * Load all product ids, you can access it from `extensions.allIds` of the response + * @default false + */ + loadAllIds?: boolean; + /** + * load all variants following the main products + * @default false + */ + loadVariants?: boolean; + /** + * Use id sorting instead of other sorting fields + * @default false + */ + useIdSorting?: boolean; + }; + response: { + elements?: components["schemas"]["Product"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "resolveQuickviewPage get /dsr/quickview/{productId}/{cmsPageLayoutId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** The product id */ + productId: string; + /** The cms page id using as product quick view */ + cmsPageLayoutId: string; + }; + response: { + cmsPage?: components["schemas"]["CmsPage"]; + configurator?: components["schemas"]["PropertyGroup"][]; + product?: components["schemas"]["Product"]; + }; + responseCode: 200; + }; + "readEmployees post /employee": { + contentType?: "application/json"; + accept?: "application/json"; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["B2bEmployee"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readEmployee post /employee/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the employee to be fetched */ + id: string; + }; + response: components["schemas"]["B2bEmployee"]; + responseCode: 200; + }; + "deleteEmployee delete /employee/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the employee to be deleted */ + id: string; + }; + response: never; + responseCode: 204; + }; + "updateEmployee patch /employee/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the employee to be updated */ + id: string; + }; + body: { + /** New email of the employee */ + email?: string; + /** New first name of the employee */ + firstName?: string; + /** New last name of the employee */ + lastName?: string; + /** New id of the role of the employee */ + roleId?: string; + }; + response: components["schemas"]["B2bEmployee"]; + responseCode: 200; + }; + "createEmployee post /employee/create": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Email of the new employee */ + email: string; + /** First name of the new employee */ + firstName: string; + /** Last name of the new employee */ + lastName: string; + /** Id of the role of the new employee */ + roleId?: string; + }; + response: components["schemas"]["B2bEmployee"]; + responseCode: 200; + }; + "reinviteEmployee post /employee/reinvite/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the employee to be reinvited */ + id: string; + }; + body: { + /** URL of the storefront domain */ + storefrontUrl?: string; + }; + response: components["schemas"]["B2bEmployee"]; + responseCode: 200; + }; + "handlePaymentMethod post /handle-payment": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** URL to which the client should be redirected after erroneous payment */ + errorUrl?: string; + /** URL to which the client should be redirected after successful payment */ + finishUrl?: string; + /** Identifier of an order */ + orderId: string; + }; + response: { + redirectUrl: string; + }; + responseCode: 200; + }; + "readLandingPage post /landing-page/{landingPageId}": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + /** Identifier of the landing page. */ + landingPageId: string; + }; + body: components["schemas"]["Criteria"] & + ({ + /** Resolves only the given slot identifiers. The identifiers have to be seperated by a `|` character. */ + slots?: string; + } & components["schemas"]["ProductListingCriteria"]); + response: components["schemas"]["LandingPage"]; + responseCode: 200; + }; + "readLanguages post /language": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements: components["schemas"]["Language"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readMedia post /media": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Identifier (UUID) of the media entity to be fetched. */ + ids: string[]; + }; + response: components["schemas"]["Media"][]; + responseCode: 200; + }; + "readNavigation post /navigation/{activeId}/{rootId}": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to try and resolve SEO URLs for the given navigation item */ + "sw-include-seo-urls"?: boolean; + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + /** Identifier of the active category in the navigation tree (if not used, just set to the same as rootId). */ + activeId: string | components["schemas"]["NavigationType"]; + /** Identifier of the root category for your desired navigation tree. You can use it to fetch sub-trees of your navigation tree. */ + rootId: string | components["schemas"]["NavigationType"]; + }; + body: components["schemas"]["Criteria"] & { + /** Return the categories as a tree or as a flat list. */ + buildTree?: GenericRecord[]; + /** + * Format: int32 + * Determines the depth of fetched navigation levels. + */ + depth?: number; + }; + response: components["schemas"]["NavigationRouteResponse"]; + responseCode: 200; + }; + "confirmNewsletter post /newsletter/confirm": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Email hash parameter from the link in the confirmation mail */ + em: string; + /** Hash parameter from link the in the confirmation mail */ + hash: string; + }; + response: never; + responseCode: 200; + }; + "subscribeToNewsletter post /newsletter/subscribe": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** City */ + city?: string; + /** Custom field data that should be added to the subscription. */ + customFields?: string; + /** Email address that will receive the confirmation and the newsletter. */ + email: string; + /** First name */ + firstName?: string; + /** Identifier of the language. */ + languageId?: string; + /** Last name */ + lastName?: string; + /** Defines what should be done. */ + option: string; + /** Identifier of the salutation. */ + salutationId?: string; + /** Url of the storefront of the shop. This will be used for generating the link to the /newsletter/confirm inside the confirm email. */ + storefrontUrl: string; + /** Street */ + street?: string; + /** Zip code */ + tags?: string; + /** Zip code */ + zipCode?: string; + }; + response: never; + responseCode: 200; + }; + "unsubscribeToNewsletter post /newsletter/unsubscribe": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Email address that should be removed from the mailing lists. */ + email: string; + }; + response: never; + responseCode: 200; + }; + "readOrder post /order": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: components["schemas"]["Criteria"] & { + /** Check if the payment method of the order is still changeable. */ + checkPromotion?: boolean; + }; + response: components["schemas"]["OrderRouteResponse"]; + responseCode: 200; + }; + "orderDownloadFile get /order/download/{orderId}/{downloadId}": { + contentType?: "application/json"; + accept: "application/octet-stream"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + orderId: string; + downloadId: string; + }; + response: Blob; + responseCode: 200; + }; + "orderSetPayment post /order/payment": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: { + /** The identifier of the order. */ + orderId: string; + /** The identifier of the paymentMethod to be set */ + paymentMethodId: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 200; + }; + "cancelOrder post /order/state/cancel": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: { + /** The identifier of the order to be canceled. */ + orderId: string; + }; + response: components["schemas"]["StateMachineState"]; + responseCode: 200; + }; + "readPaymentMethod post /payment-method": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: components["schemas"]["Criteria"] & { + /** List only available */ + onlyAvailable?: boolean; + }; + response: { + /** aggregation result */ + aggregations?: GenericRecord; + elements?: components["schemas"]["PaymentMethod"][]; + /** Total amount */ + total?: number; + }; + responseCode: 200; + }; + "fetchPendingOrder post /pending-order/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the pending order to be fetched */ + id: string; + }; + response: components["schemas"]["PendingOrder"]; + responseCode: 200; + }; + "approvePendingOrder post /pending-order/{id}/approve": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the pending order to be approved */ + id: string; + }; + body?: { + /** Message content */ + comment?: string; + }; + response: never; + responseCode: 204; + }; + "createOrderFromPendingOrder post /pending-order/{id}/checkout/order": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the pending order to be used to create a order */ + id: string; + }; + body?: { + /** Message content */ + customerComment?: string; + }; + response: components["schemas"]["Order"]; + responseCode: 200; + }; + "declinePendingOrder post /pending-order/{id}/decline": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the pending order to be declined */ + id: string; + }; + body?: { + /** Message content */ + comment?: string; + }; + response: never; + responseCode: 204; + }; + "requestOrderApproval post /pending-order/request": { + contentType?: "application/json"; + accept?: "application/json"; + body?: { + /** Message content */ + comment?: string; + }; + response: components["schemas"]["PendingOrder"]; + responseCode: 200; + }; + "readProduct post /product": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["Product"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readProductExport get /product-export/{accessKey}/{fileName}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Access Key */ + accessKey: string; + /** File Name */ + fileName: string; + }; + response: never; + responseCode: 200; + }; + "readProductListing post /product-listing/{categoryId}": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Determines if the response must contain a SeoUrl entity for a product entity */ + "sw-include-seo-urls"?: boolean; + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + /** Identifier of a category. */ + categoryId: string; + }; + body: components["schemas"]["ProductListingCriteria"] & + components["schemas"]["ProductListingFlags"]; + response: components["schemas"]["ProductListingResult"]; + responseCode: 200; + }; + "readProductDetail post /product/{productId}": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + /** Instructs Shopware to try and resolve SEO URLs for the given navigation item */ + "sw-include-seo-urls"?: boolean; + }; + pathParams: { + /** Product ID */ + productId: string; + }; + body?: components["schemas"]["Criteria"]; + response: components["schemas"]["ProductDetailResponse"]; + responseCode: 200; + }; + "readProductCrossSellings post /product/{productId}/cross-selling": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + /** Instructs Shopware to try and resolve SEO URLs for the given navigation item */ + "sw-include-seo-urls"?: boolean; + }; + pathParams: { + /** Product ID */ + productId: string; + }; + body: components["schemas"]["Criteria"]; + response: components["schemas"]["CrossSellingElementCollection"]; + responseCode: 200; + }; + "searchProductVariantIds post /product/{productId}/find-variant": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + /** Product ID */ + productId: string; + }; + body: { + /** The options parameter for the variant to find. */ + options: string[]; + /** The id of the option group that has been switched. */ + switchedGroup?: string; + }; + response: components["schemas"]["FindProductVariantRouteResponse"]; + responseCode: 200; + }; + "saveProductReview post /product/{productId}/review": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + /** Identifier of the product which is reviewed. */ + productId: string; + }; + body: { + /** The content of review. */ + content: string; + /** The email address of the review author. If not set, the email of the customer is chosen. */ + email?: string; + /** The name of the review author. If not set, the first name of the customer is chosen. */ + name?: string; + /** + * Format: double + * The review rating for the product. + */ + points: number; + /** The title of the review. */ + title: string; + }; + response: never; + responseCode: 200; + }; + "readProductReviews post /product/{productId}/reviews": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + pathParams: { + /** Identifier of the product. */ + productId: string; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["ProductReview"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "searchByImageSearchTerm post /product/image-upload-search/search-term": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** + * Format: binary + * Base-64 encoded image + */ + file?: Blob; + }; + response: components["schemas"]["SearchByImageSearchTermResponse"]; + responseCode: 200; + }; + "naturalLanguageSearchTerm post /product/natural-language/search-term": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** + * Natural language query + * @example I'm looking for a present for my wife + */ + query?: string; + }; + response: components["schemas"]["NaturalLanguageSearchTermResponse"]; + responseCode: 200; + }; + "switchPaymentOrShippingMethod post /quote/{id}/configure": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the quote to be reinvited */ + id: string; + }; + body?: { + /** Id of the payment method */ + paymentMethodId?: string; + /** Id of the shipping method */ + shippingMethodId?: string; + }; + response: never; + responseCode: 204; + }; + "declineQuote post /quote/{id}/decline": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the quote to be reinvited */ + id: string; + }; + body?: { + /** Message content */ + comment?: string; + }; + response: never; + responseCode: 204; + }; + "requestChangeQuote post /quote/{id}/request-change": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the quote to be reinvited */ + id: string; + }; + body?: { + /** Message content */ + comment?: string; + }; + response: never; + responseCode: 204; + }; + "readQuote post /quote/detail/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the quote to be fetched */ + id: string; + }; + response: components["schemas"]["Quote"]; + responseCode: 200; + }; + "downloadQuoteDocument post /quote/document/download/{documentId}/{deepLinkCode}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the quote document to be reinvited */ + documentId: string; + /** Deep link code of the quote document */ + deepLinkCode: string; + }; + response: never; + responseCode: 200; + }; + "createOrderFromQuote post /quote/order/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the quote to be reinvited */ + id: string; + }; + body?: { + /** Message content */ + customerComment?: string; + }; + response: components["schemas"]["Order"]; + responseCode: 200; + }; + "requestQuote post /quote/request": { + contentType?: "application/json"; + accept?: "application/json"; + body?: { + /** Message content */ + comment?: string; + }; + response: components["schemas"]["Quote"]; + responseCode: 200; + }; + "readQuotes post /quotes": { + contentType?: "application/json"; + accept?: "application/json"; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["Quote"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readRoles get /role": { + contentType?: "application/json"; + accept?: "application/json"; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["B2bComponentsRole"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readRolesPOST post /role": { + contentType?: "application/json"; + accept?: "application/json"; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["B2bComponentsRole"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readRole get /role/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the role to be fetched */ + id: string; + }; + response: components["schemas"]["B2bComponentsRole"]; + responseCode: 200; + }; + "deleteRole delete /role/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the role to be fetched */ + id: string; + }; + response: never; + responseCode: 204; + }; + "updateRole patch /role/{id}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the role to be updated */ + id: string; + }; + body: { + /** Ability to set the role as default */ + isDefaultRole?: boolean; + /** New name of the role */ + name?: string; + /** New permissions of the role */ + permissions?: string[]; + }; + response: components["schemas"]["B2bComponentsRole"]; + responseCode: 200; + }; + "createRole post /role/create": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Ability to set the new role as default */ + isDefaultRole?: boolean; + /** Name of the new role */ + name?: string; + /** Permissions of the new role */ + permissions?: string[]; + }; + response: components["schemas"]["B2bComponentsRole"]; + responseCode: 200; + }; + "updateDefaultRoleId post /role/default": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Id of the roleId to be set as default */ + id?: string; + }; + response: never; + responseCode: 204; + }; + "readPermissions get /role/permissions": { + contentType?: "application/json"; + accept?: "application/json"; + response: { + elements?: { + permissionDependencies?: string[]; + permissionGroupName?: string; + permissionName?: string; + }[]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readSalutation post /salutation": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements?: components["schemas"]["Salutation"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "getScriptStoreApiRoute get /script/{hook}": + | { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Dynamic hook which used to build the hook name */ + hook: string; + }; + response: { + [key: string]: unknown; + } | null; + responseCode: 200; + } + | { + contentType?: "application/json"; + accept: "application/vnd.api+json"; + pathParams: { + /** Dynamic hook which used to build the hook name */ + hook: string; + }; + response: { + [key: string]: unknown; + } | null; + responseCode: 200; + } + | { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Dynamic hook which used to build the hook name */ + hook: string; + }; + response: never; + responseCode: 204; + }; + "postScriptStoreApiRoute post /script/{hook}": + | { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Dynamic hook which used to build the hook name */ + hook: string; + }; + response: { + [key: string]: unknown; + } | null; + responseCode: 200; + } + | { + contentType?: "application/json"; + accept: "application/vnd.api+json"; + pathParams: { + /** Dynamic hook which used to build the hook name */ + hook: string; + }; + response: { + [key: string]: unknown; + } | null; + responseCode: 200; + } + | { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Dynamic hook which used to build the hook name */ + hook: string; + }; + response: never; + responseCode: 204; + }; + "searchPage post /search": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + /** Instructs Shopware to try and resolve SEO URLs for the given navigation item */ + "sw-include-seo-urls"?: boolean; + }; + body: { + /** 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. */ + search: string; + } & components["schemas"]["ProductListingCriteria"] & + components["schemas"]["ProductListingFlags"]; + response: components["schemas"]["ProductListingResult"]; + responseCode: 200; + }; + "searchSuggest post /search-suggest": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body: { + /** 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. */ + search: string; + } & components["schemas"]["ProductListingFlags"]; + response: components["schemas"]["ProductListingResult"]; + responseCode: 200; + }; + "readSeoUrl post /seo-url": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + body?: components["schemas"]["Criteria"]; + response: { + elements: components["schemas"]["SeoUrl"][]; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "readShippingMethod post /shipping-method": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + query?: { + /** List only available shipping methods. This filters shipping methods methods which can not be used in the actual context because of their availability rule. */ + onlyAvailable?: boolean; + }; + body?: components["schemas"]["Criteria"]; + response: { + /** aggregation result */ + aggregations?: GenericRecord; + elements?: components["schemas"]["ShippingMethod"][]; + /** Total amount */ + total?: number; + } & components["schemas"]["EntitySearchResult"]; + responseCode: 200; + }; + "addShoppingListsToCart post /shopping-lists/add-to-cart": { + contentType?: "application/json"; + accept?: "application/json"; + body: { + /** Shopping list ids */ + ids: string[]; + }; + response: never; + responseCode: 204; + }; + "readSitemap get /sitemap": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + }; + response: components["schemas"]["Sitemap"][]; + responseCode: 200; + }; + "auth post /sso/auth/{providerId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the SSO provider used to authenticate */ + providerId: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 204; + }; + "redirect post /sso/redirect/{providerId}": { + contentType?: "application/json"; + accept?: "application/json"; + pathParams: { + /** Identifier of the SSO provider used to authenticate */ + providerId: string; + }; + response: components["schemas"]["SuccessResponse"]; + responseCode: 204; + }; +}; diff --git a/apps/web/api-types/storeApiTypes.overrides.json b/apps/web/api-types/storeApiTypes.overrides.json new file mode 100644 index 0000000..99ce37b --- /dev/null +++ b/apps/web/api-types/storeApiTypes.overrides.json @@ -0,0 +1,54 @@ +{ + "components": { + "Product": { + "properties": { + "calculatedCheapestPrice": { + "required": ["apiAlias"] + } + } + }, + "Criteria": { + "properties": { + "p": { + "type": "number" + }, + "associations": { + "$ref": "#/components/schemas/Association" + } + } + }, + "Media": { + "properties": { + "metaData": { + "type": "object", + "properties": { + "width": { + "type": "number" + }, + "height": { + "type": "number" + } + } + } + } + }, + "ProductMedia": { + "properties": { + "url": { + "type": "string" + }, + "metaData": { + "type": "object", + "properties": { + "width": { + "type": "number" + }, + "height": { + "type": "number" + } + } + } + } + } + } +} diff --git a/apps/web/api-types/storeApiTypes.overrides.ts b/apps/web/api-types/storeApiTypes.overrides.ts new file mode 100644 index 0000000..7af6423 --- /dev/null +++ b/apps/web/api-types/storeApiTypes.overrides.ts @@ -0,0 +1,27 @@ +import type { components as coreComponents } from "./storeApiTypes"; + +export type components = coreComponents & { + schemas: Schemas; +}; + +export type Schemas = {}; + +export type operations = { + "readProductCrossSellings post /product/{productId}/cross-selling": { + contentType?: "application/json"; + accept?: "application/json"; + headers?: { + /** Instructs Shopware to return the response in the given language. */ + "sw-language-id"?: string; + /** Instructs Shopware to try and resolve SEO URLs for the given navigation item */ + "sw-include-seo-urls"?: boolean; + }; + pathParams: { + /** Product ID */ + productId: string; + }; + body: components["schemas"]["Criteria"]; + response: components["schemas"]["CrossSellingElementCollection"]; + responseCode: 200; + }; +}; diff --git a/apps/web/app/(cms)/[...cms]/page.tsx b/apps/web/app/(cms)/[...cms]/page.tsx new file mode 100644 index 0000000..273fd3c --- /dev/null +++ b/apps/web/app/(cms)/[...cms]/page.tsx @@ -0,0 +1,51 @@ +import type { Metadata } from "next"; + +import Prose from "components/prose"; +import { getPage } from "lib/shopware"; +import { notFound } from "next/navigation"; + +export async function generateMetadata({ + params, +}: { + params: Promise<{ cms: string }>; +}): Promise { + const { cms } = await params; + const page = await getPage(cms); + + if (!page) return notFound(); + + return { + title: page.seo?.title || page.title, + description: page.seo?.description || page.bodySummary, + openGraph: { + publishedTime: page.createdAt, + modifiedTime: page.updatedAt, + type: "article", + }, + }; +} + +export default async function Page({ params }: { params: Promise<{ cms: string }> }) { + const { cms } = await params; + const page = await getPage(cms); + + if (!page) return notFound(); + let date = page.createdAt; + if (page.updatedAt !== "") { + date = page.updatedAt; + } + + return ( + <> +

{page.title}

+ +

+ {`This document was last updated on ${new Intl.DateTimeFormat(undefined, { + year: "numeric", + month: "long", + day: "numeric", + }).format(new Date(date))}.`} +

+ + ); +} diff --git a/apps/web/app/(cms)/layout.tsx b/apps/web/app/(cms)/layout.tsx new file mode 100644 index 0000000..d76dedd --- /dev/null +++ b/apps/web/app/(cms)/layout.tsx @@ -0,0 +1,12 @@ +import Footer from "components/layout/footer"; + +export default function Layout({ children }: { children: React.ReactNode }) { + return ( + <> +
+
{children}
+
+