|
18 | 18 | }, |
19 | 19 | ] |
20 | 20 | description: | |
21 | | - Gets the current or staged representation of a [Product](ctp:api:type:Product) by its key in the specified [Store](ctp:api:type:Store). |
| 21 | + Retrieves the [projected](/../api/projects/productProjections#projection-dimensions) representation of a [Product](ctp:api:type:Product) by its Key in the specified [Store](ctp:api:type:Store). |
| 22 | +
|
22 | 23 | If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, |
23 | 24 | they are used for projections based on [locale](ctp:api:type:ProductProjectionLocales), [price](ctp:api:type:ProductProjectionPrices), |
24 | 25 | and [inventory](ctp:api:type:ProductProjectionInventoryEntries). |
25 | 26 | If [ProductSelection](ctp:api:type:ProductSelection) is used, it affects the [availability of the Product](/api/project-configuration-overview#products-available-in-store) in the specified Store. |
26 | 27 | If a [ProductTailoring](ctp:api:type:ProductTailoring) exists for the Product with the given `key` and the given Store, this endpoint returns the ProductProjection with tailored data. |
27 | | - When used with an API Client that has the `view_published_products:{projectKey}` scope, this endpoint only returns published (current) Product Projections. |
28 | 28 |
|
| 29 | + By default, this endpoint returns the `current` representation of Products where the `published` flag is `true`. |
| 30 | + If a Product is unpublished (`published=false`), the endpoint returns a [Not Found](/../api/errors#404-not-found) error. |
| 31 | +
|
| 32 | + Required access scopes: |
| 33 | +
|
| 34 | + - To retrieve the current representation of published Products (published data), the `view_published_products:{projectKey}` scope is required. |
| 35 | +
|
| 36 | + - To retrieve the staged representation of Products (draft data) or access unpublished Products, the API Client must have the `view_products:{projectKey}` scope. |
29 | 37 | is: |
30 | 38 | - projectionSelectingTailoring |
31 | 39 | - priceSelecting |
|
65 | 73 | }, |
66 | 74 | ] |
67 | 75 | description: | |
68 | | - Gets the current or staged representation of a [Product](ctp:api:type:Product) by its ID in the specified [Store](ctp:api:type:Store). |
| 76 | + Retrieves the [projected](/../api/projects/productProjections#projection-dimensions) representation of a [Product](ctp:api:type:Product) by its ID in the specified [Store](ctp:api:type:Store). |
| 77 | +
|
69 | 78 | If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection, |
70 | 79 | they are used for projections based on [locale](ctp:api:type:ProductProjectionLocales), [price](ctp:api:type:ProductProjectionPrices), |
71 | 80 | and [inventory](ctp:api:type:ProductProjectionInventoryEntries). |
72 | 81 | If [ProductSelection](ctp:api:type:ProductSelection) is used, it affects the [availability of the Product](/api/project-configuration-overview#products-available-in-store) in the specified Store. |
73 | | - If a [ProductTailoring](ctp:api:type:ProductTailoring) exists for the Product with the given `id` and the given Store, this endpoint returns the ProductProjection with tailored data. |
74 | | - When used with an API Client that has the `view_published_products:{projectKey}` scope, this endpoint only returns published (current) Product Projections. |
| 82 | + If a [ProductTailoring](ctp:api:type:ProductTailoring) exists for the Product with the given `key` and the given Store, this endpoint returns the ProductProjection with tailored data. |
| 83 | +
|
| 84 | + By default, this endpoint returns the `current` representation of Products where the `published` flag is `true`. |
| 85 | + If a Product is unpublished (`published=false`), the endpoint returns a [Not Found](/../api/errors#404-not-found) error. |
| 86 | +
|
| 87 | + Required access scopes: |
| 88 | +
|
| 89 | + - To retrieve the current representation of published Products (published data), the `view_published_products:{projectKey}` scope is required. |
75 | 90 |
|
| 91 | + - To retrieve the staged representation of Products (draft data) or access unpublished Products, the API Client must have the `view_products:{projectKey}` scope. |
76 | 92 | is: |
77 | 93 | - projectionSelectingTailoring |
78 | 94 | - priceSelecting |
|
0 commit comments