You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/openapi/data-ingestion-schema-v1.yaml
+31-31Lines changed: 31 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ openapi: 3.0.3
2
2
info:
3
3
title: Catalog Data Ingestion API
4
4
description: |
5
-
Use the Catalog data ingestion API to create and manage products and price books and directly integrate catalog data with the Commerce catalog service.
5
+
The Catalog Data Ingestion API allows you to create and manage products and price books and directly integrate catalog data with the Commerce catalog service.
6
6
7
7
This API provides the following resource collections to create and update catalog data:
8
8
@@ -19,12 +19,12 @@ servers:
19
19
tags:
20
20
- name: Metadata
21
21
description: |
22
-
Product attributes metadata allows you to define how to display product attributes on the storefront, define search characteristics, and so on.
22
+
Product attribute metadata allows you to define how to display product attributes on the storefront, define search characteristics, and so on.
23
23
- name: Products
24
24
description: Product API to manage product data
25
25
- name: Price Books
26
26
description: |
27
-
Price books defines a unique scope that can be used to manage product price discounts across customer tiers.
27
+
Price books define a unique scope that can be used to manage product price discounts across customer tiers.
28
28
You can also specify the currency to use for product prices in the specified price book.
29
29
30
30
The catalog data model provides a default price book with id `main` and currency in US dollars (`USD`).
@@ -37,7 +37,7 @@ paths:
37
37
post:
38
38
tags:
39
39
- Metadata
40
-
summary: Create product attributes metadata
40
+
summary: Create product attribute metadata.
41
41
description: |
42
42
Create or replace existing product attribute metadata resources.
43
43
@@ -98,7 +98,7 @@ paths:
98
98
"locale": "en"
99
99
},
100
100
"label": "Product Name",
101
-
"dataType": "BOOLEAN",
101
+
"dataType": "TEXT",
102
102
"visibleIn": ["PRODUCT_DETAIL"],
103
103
"filterable": false,
104
104
"sortable": false,
@@ -129,7 +129,7 @@ paths:
129
129
patch:
130
130
tags:
131
131
- Metadata
132
-
summary: Update product attributes metadata
132
+
summary: Update product attribute metadata.
133
133
description: |
134
134
Update existing product attribute metadata with new values.
135
135
When the update is processed, the merge strategy is used to apply changes to `scalar` and `object` type fields. The replace strategy is used to apply changes for fields in an `array`.
@@ -180,10 +180,10 @@ paths:
180
180
$ref: '#/components/schemas/FeedMetadataUpdate'
181
181
examples:
182
182
FeedWithMetadataInformation:
183
-
summary: Example of product attributes metadata
183
+
summary: Example of product attribute metadata
184
184
description: |
185
185
Update existing product attribute metadata with new values.
186
-
Please note, field with `array` type will replace existing data.
186
+
Note that fields with the `array` type will replace existing data.
187
187
Example bellow updates the following attributes:
188
188
* `label` - Change the product attribute label.
189
189
* `visibleIn` - Add `PRODUCT_LISTING` role to the product attribute.
@@ -266,7 +266,7 @@ paths:
266
266
$ref: '#/components/schemas/FeedMetadataDelete'
267
267
examples:
268
268
FeedWithMetadataInformation:
269
-
summary: Delete product attributes metadata
269
+
summary: Delete product attribute metadata.
270
270
description: Marks existing product attribute metadata as deleted.
271
271
value:
272
272
[
@@ -301,7 +301,7 @@ paths:
301
301
post:
302
302
tags:
303
303
- Products
304
-
summary: Create products
304
+
summary: Create products.
305
305
description: |
306
306
<h3>Simple Products</h3>
307
307
Create products or replace existing products with a specified `sku` and `scope`.
@@ -345,7 +345,7 @@ paths:
345
345
$ref: '#/components/schemas/FeedProduct'
346
346
examples:
347
347
SimpleProductWithImages:
348
-
summary: Create a simple product
348
+
summary: Create a simple product.
349
349
description: >
350
350
Create a simple product with required and optional fields.
351
351
value:
@@ -414,7 +414,7 @@ paths:
414
414
}
415
415
]
416
416
ConfigurableProductWithVariants:
417
-
summary: Create a configurable product with four product variants
417
+
summary: Create a configurable product with four product variants.
418
418
description: >
419
419
Create a configurable product `pants` with four product variants: `pants-red-32`, `pants-red-44`, `pants-green-32` and `pants-green-44`.
420
420
value:
@@ -606,7 +606,7 @@ paths:
606
606
patch:
607
607
tags:
608
608
- Products
609
-
summary: Update products
609
+
summary: Update products.
610
610
description: |
611
611
Update products with specified "sku" and "scope" to replace existing field data with the data supplied in the request.
612
612
When the update is processed, the merge strategy is used to apply changes to `scalar` and `object` type fields.
@@ -634,7 +634,7 @@ paths:
634
634
$ref: '#/components/schemas/FeedProductUpdate'
635
635
examples:
636
636
SimpleProductWithImages:
637
-
summary: Update a simple product
637
+
summary: Update a simple product.
638
638
description: |
639
639
Update a simple product with the values provided in the request.
640
640
On update, changes to `scalar` and `object` type fields are applied using the merge strategy.
@@ -676,7 +676,7 @@ paths:
676
676
}
677
677
]
678
678
UnassignProductVariant:
679
-
summary: Unassign product variant `pants-red-32` from configurable product `pants`
679
+
summary: Unassign product variant `pants-red-32` from configurable product `pants`.
680
680
description: |
681
681
To unassign product variant `pants-red-32` from configurable product `pants` you need:
682
682
* remove the `variantReferenceId` from the `attributes` field
@@ -714,7 +714,7 @@ paths:
714
714
post:
715
715
tags:
716
716
- Products
717
-
summary: Delete products
717
+
summary: Delete products.
718
718
description: >
719
719
Delete products with specified "sku" and "scope".
720
720
operationId: ProductsDelete
@@ -740,7 +740,7 @@ paths:
740
740
$ref: '#/components/schemas/FeedProductDelete'
741
741
examples:
742
742
DeleteSimpleProduct:
743
-
summary: Delete product
743
+
summary: Delete product.
744
744
description: >
745
745
Delete a simple product with a specified `sku` and `scope`.
746
746
value:
@@ -757,7 +757,7 @@ paths:
757
757
post:
758
758
tags:
759
759
- Price Books
760
-
summary: Create price books
760
+
summary: Create price books.
761
761
description: |
762
762
Create or replace existing price books.
763
763
@@ -805,7 +805,7 @@ paths:
805
805
$ref: '#/components/schemas/FeedPricebook'
806
806
examples:
807
807
FeedWithPricebookInformation:
808
-
summary: Create a price book
808
+
summary: Create a price book.
809
809
description: Create a price book and specify the currency for prices.
810
810
value:
811
811
[
@@ -841,7 +841,7 @@ paths:
841
841
patch:
842
842
tags:
843
843
- Price Books
844
-
summary: Update price books
844
+
summary: Update price books.
845
845
description: |-
846
846
Update existing price books to change the name or the currency used for pricing.
847
847
When the update is processed, the merge strategy is used to apply changes to `scalar` and `object` type fields. The replace strategy is used to apply changes for fields in an `array`.
@@ -890,7 +890,7 @@ paths:
890
890
$ref: '#/components/schemas/FeedPricebook'
891
891
examples:
892
892
FeedWithPriceBookInformation:
893
-
summary: Update existing price books
893
+
summary: Update existing price books.
894
894
description: Update the "dealer-north" and default "main" price books to change the currency.
895
895
value:
896
896
[
@@ -926,7 +926,7 @@ paths:
926
926
post:
927
927
tags:
928
928
- Price Books
929
-
summary: Delete price books
929
+
summary: Delete price books.
930
930
description: |
931
931
Delete existing price books.
932
932
Note that you cannot delete the default price book with id `main`.
@@ -973,7 +973,7 @@ paths:
973
973
$ref: '#/components/schemas/FeedPricebook'
974
974
examples:
975
975
DeleteExistingPricebook:
976
-
summary: Delete price book "dealer-north"
976
+
summary: Delete price book "dealer-north".
977
977
description: Delete the "dealer-north" price book.
978
978
value:
979
979
[
@@ -1005,7 +1005,7 @@ paths:
1005
1005
post:
1006
1006
tags:
1007
1007
- Prices
1008
-
summary: Create prices
1008
+
summary: Create prices.
1009
1009
description: |
1010
1010
<h3>Simple Products</h3>
1011
1011
Create or replace existing product prices.
@@ -1059,7 +1059,7 @@ paths:
1059
1059
$ref: '#/components/schemas/FeedPrices'
1060
1060
examples:
1061
1061
FeedWithNewProductPrice:
1062
-
summary: Add product price information
1062
+
summary: Add product price information.
1063
1063
description: Add product price information to the catalog data.
1064
1064
value:
1065
1065
[
@@ -1107,7 +1107,7 @@ paths:
1107
1107
patch:
1108
1108
tags:
1109
1109
- Prices
1110
-
summary: Update prices
1110
+
summary: Update prices.
1111
1111
description: |
1112
1112
Change existing product prices.
1113
1113
When the update is processed, the merge strategy is used to apply changes to `scalar` and `object` type fields. The replace strategy is used to apply changes for fields in an `array`.
@@ -1154,7 +1154,7 @@ paths:
1154
1154
$ref: '#/components/schemas/FeedPricesUpdate'
1155
1155
examples:
1156
1156
FeedWithProductPricesInformation:
1157
-
summary: Product prices update
1157
+
summary: Product prices update.
1158
1158
description: Update existing product prices for the given SKU ("red-pants") and price book id ("dealer-north").
1159
1159
value:
1160
1160
[
@@ -1192,7 +1192,7 @@ paths:
1192
1192
post:
1193
1193
tags:
1194
1194
- Prices
1195
-
summary: Delete prices
1195
+
summary: Delete prices.
1196
1196
description: >
1197
1197
Delete existing product prices
1198
1198
operationId: PricesDelete
@@ -1238,7 +1238,7 @@ paths:
1238
1238
$ref: '#/components/schemas/FeedPricesDelete'
1239
1239
examples:
1240
1240
FeedWithProductPricesInformation:
1241
-
summary: Product prices delete
1241
+
summary: Product prices delete.
1242
1242
description: >
1243
1243
Delete the existing product prices information
1244
1244
value:
@@ -1824,7 +1824,7 @@ components:
1824
1824
description: |
1825
1825
Type of attribute value to be applied during the rendering phase. Validation occurs only when the code is rendered. Invalid values are ignored.
1826
1826
- `BOOLEAN`: Accept single value: "true" or false
1827
-
- `Number`: Accept single number,e.g. "85", "0.42", etc.
1827
+
- `NUMBER`: Accept single number,e.g. "85", "0.42", etc.
1828
1828
- `STRING`: Accept single string,e.g. "Great day, yall!"
1829
1829
- `ARRAY`: Accept list of strings ,e.g. ["red", "green", "blue"]
0 commit comments