Skip to content

Commit 29ae03d

Browse files
committed
update APIs
1 parent 5acb146 commit 29ae03d

File tree

61 files changed

+6881
-1692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+6881
-1692
lines changed

api-versions.txt

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
assignments-oas-v1=1.0.36
2-
campaigns-oas-v1=1.0.38
3-
catalogs-oas-v1=1.0.43
4-
cdn-api-process-apis-oas-v1=1.0.40
5-
cors-preferences-oas-v1=1.0.7
6-
coupons-oas-v1=1.0.40
7-
customers-oas-v1=1.0.33
8-
gift-certificates-oas-v1=1.0.40
9-
orders-oas-v1=1.4.11
10-
preferences-oas-v1=1.1.4
11-
products-oas-v1=1.0.41
12-
promotions-oas-v1=1.0.34
13-
shopper-baskets-oas-v1=1.9.1
14-
shopper-baskets-oas-v2=2.1.1
15-
shopper-configurations-oas=1.0.0
16-
shopper-consents-oas-v1=1.1.2
17-
shopper-context-oas-v1=1.1.2
18-
shopper-customers-oas-v1=1.1.2
19-
shopper-experience-oas-v1=1.0.9
20-
shopper-gift-certificates-oas-v1=1.0.27
21-
shopper-login-oas-v1=1.40.0
22-
shopper-orders-oas-v1=1.5.1
23-
shopper-products-oas-v1=1.0.39
24-
shopper-promotions-oas-v1=1.0.37
25-
shopper-search-oas-v1=1.5.1
26-
shopper-seo-oas-v1=1.0.14
27-
shopper-stores-oas-v1=1.0.18
28-
slas-admin-oas-v1=1.12.31
29-
source-code-groups-oas-v1=1.0.38
1+
assignments-oas-v1=1.0.38
2+
campaigns-oas-v1=1.0.40
3+
catalogs-oas-v1=1.0.46
4+
cdn-api-process-apis-oas-v1=1.0.41
5+
cors-preferences-oas-v1=1.0.9
6+
coupons-oas-v1=1.0.43
7+
customers-oas-v1=1.1.3
8+
gift-certificates-oas-v1=1.0.42
9+
orders-oas-v1=1.4.15
10+
preferences-oas-v1=1.1.6
11+
products-oas-v1=1.1.5
12+
promotions-oas-v1=1.0.36
13+
shopper-baskets-oas-v1=1.9.4
14+
shopper-baskets-oas-v2=2.3.3
15+
shopper-configurations-oas=1.0.2
16+
shopper-consents-oas-v1=1.1.4
17+
shopper-context-oas-v1=1.1.3
18+
shopper-customers-oas-v1=1.3.2
19+
shopper-experience-oas-v1=1.1.2
20+
shopper-gift-certificates-oas-v1=1.0.29
21+
shopper-login-oas-v1=1.42.2
22+
shopper-orders-oas-v1=1.10.2
23+
shopper-products-oas-v1=1.1.3
24+
shopper-promotions-oas-v1=1.0.39
25+
shopper-search-oas-v1=1.5.4
26+
shopper-seo-oas-v1=1.0.17
27+
shopper-stores-oas-v1=1.0.19
28+
slas-admin-oas-v1=1.14.1
29+
source-code-groups-oas-v1=1.0.40

apis/assignments-oas-1.0.36/assignments-oas-v1-public.yaml renamed to apis/assignments-oas-1.0.38/assignments-oas-v1-public.yaml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
openapi: 3.0.3
22
info:
3+
x-api-type: Admin
4+
x-api-family: Pricing
35
title: Assignments
4-
version: 1.0.36
6+
version: 1.0.38
57
description: "[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/assignments/assignments-oas-v1-public.yaml)\n\n# API Overview\n\nUse the Assignments API to search for promotions associated with campaigns.\n\nFor more information, see [Campaigns and Promotions](https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/Promotions/CampaignsandPromotions.html) in the Salesforce B2C Commerce Infocenter.\n\n## Authentication & Authorization\n\nThe client requesting the promotion information must have access to the Promotion resource. For resource access, you must use a client ID and client secret from Account Manager to request an access token. The access token is used as a bearer token and added to the Authorization header of your API request. The client must first authenticate against Account Manager to log in.\n\nYou must include the relevant scope(s) in the client ID used to generate the token. For details, see [Authorization Scopes Catalog.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/auth-z-scope-catalog.html)\n\nFor detailed setup instructions, see [Authorization for Admin APIs](https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-admin-apis.html).\n\n## Use Cases\n\n### Find All Associated Promotions\n\nUse the Assignments API to find all associated promotions for a given campaign. "
68
servers:
79
- url: https://{shortCode}.api.commercecloud.salesforce.com/pricing/assignments/v1
@@ -63,13 +65,6 @@ components:
6365
description: The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites
6466
example: RefArch
6567
type: string
66-
Limit:
67-
default: 10
68-
minimum: 1
69-
format: int32
70-
description: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).
71-
type: integer
72-
example: 10
7368
Query:
7469
minProperties: 1
7570
maxProperties: 1
@@ -555,10 +550,11 @@ components:
555550
properties:
556551
limit:
557552
description: Maximum records to retrieve per request, not to exceed 200.
553+
type: integer
554+
format: int32
555+
minimum: 1
558556
example: 10
559557
maximum: 200
560-
allOf:
561-
- $ref: '#/components/schemas/Limit'
562558
query:
563559
$ref: '#/components/schemas/Query'
564560
sorts:
@@ -585,9 +581,10 @@ components:
585581
- total
586582
properties:
587583
limit:
588-
maximum: 200
589-
allOf:
590-
- $ref: '#/components/schemas/Limit'
584+
format: int32
585+
description: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter `limit` of the endpoint returning this schema.
586+
type: integer
587+
example: 10
591588
total:
592589
$ref: '#/components/schemas/Total'
593590
PaginatedResultBase:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Assignments OAS",
44
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
55
"assetId": "assignments-oas",
6-
"version": "1.0.36",
6+
"version": "1.0.38",
77
"classifier": "oas",
88
"tags": [],
99
"descriptorVersion": "1.0.0",

apis/campaigns-oas-1.0.38/campaigns-oas-v1-public.yaml renamed to apis/campaigns-oas-1.0.40/campaigns-oas-v1-public.yaml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
openapi: 3.0.3
22
info:
3+
x-api-type: Admin
4+
x-api-family: Pricing
35
title: Campaigns
4-
version: 1.0.38
6+
version: 1.0.40
57
description: |-
68
[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/campaigns/campaigns-oas-v1-public.yaml)
79
@@ -271,13 +273,6 @@ components:
271273
description: The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites
272274
example: RefArch
273275
type: string
274-
Limit:
275-
default: 10
276-
minimum: 1
277-
format: int32
278-
description: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).
279-
type: integer
280-
example: 10
281276
Query:
282277
minProperties: 1
283278
maxProperties: 1
@@ -763,10 +758,11 @@ components:
763758
properties:
764759
limit:
765760
description: Maximum records to retrieve per request, not to exceed 200.
761+
type: integer
762+
format: int32
763+
minimum: 1
766764
example: 10
767765
maximum: 200
768-
allOf:
769-
- $ref: '#/components/schemas/Limit'
770766
query:
771767
$ref: '#/components/schemas/Query'
772768
sorts:
@@ -793,9 +789,10 @@ components:
793789
- total
794790
properties:
795791
limit:
796-
maximum: 200
797-
allOf:
798-
- $ref: '#/components/schemas/Limit'
792+
format: int32
793+
description: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter `limit` of the endpoint returning this schema.
794+
type: integer
795+
example: 10
799796
total:
800797
$ref: '#/components/schemas/Total'
801798
PaginatedResultBase:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Campaigns OAS",
44
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
55
"assetId": "campaigns-oas",
6-
"version": "1.0.38",
6+
"version": "1.0.40",
77
"classifier": "oas",
88
"tags": [],
99
"descriptorVersion": "1.0.0",

apis/catalogs-oas-1.0.43/catalogs-oas-v1-public.yaml renamed to apis/catalogs-oas-1.0.46/catalogs-oas-v1-public.yaml

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ info:
33
x-api-type: Admin
44
x-api-family: Product
55
title: Catalogs
6-
version: 1.0.43
6+
version: 1.0.46
77
description: |-
88
[Download API specification](https://developer.salesforce.com/static/commercecloud/commerce-api/catalogs/catalogs-oas-v1-public.yaml)
99
@@ -22,7 +22,9 @@ info:
2222
2323
The client managing catalog and category information must have access to the Categories and Catalogs resources. This API requires a bearer token in the header of the request. The client accessing the API must first authenticate against Account Manager to get the bearer token.
2424
25-
You must include the relevant scope(s) in the client ID used to generate the SLAS token. For details, see the [Authorization Scopes Catalog.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/auth-z-scope-catalog.html)
25+
You must include the relevant scope(s) in the client ID used to generate the token. For a full list of required permissions, see the [Authorization Scopes Catalog.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/auth-z-scope-catalog.html)
26+
27+
For detailed setup instructions, see the [Authorization for Admin APIs guide.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-admin-apis.html)
2628
2729
## Use Cases
2830
@@ -88,7 +90,7 @@ paths:
8890
required: false
8991
schema:
9092
type: integer
91-
format: int64
93+
format: int32
9294
default: 0
9395
minimum: 0
9496
description: Used to retrieve the results based on a particular resource offset.
@@ -242,7 +244,7 @@ paths:
242244
required: false
243245
schema:
244246
type: integer
245-
format: int64
247+
format: int32
246248
default: 0
247249
minimum: 0
248250
description: Used to retrieve the results based on a particular resource offset.
@@ -2013,13 +2015,6 @@ components:
20132015
type: string
20142016
minLength: 1
20152017
maxLength: 32
2016-
Limit:
2017-
default: 10
2018-
minimum: 1
2019-
format: int32
2020-
description: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).
2021-
type: integer
2022-
example: 10
20232018
Total:
20242019
default: 0
20252020
minimum: 0
@@ -2035,9 +2030,10 @@ components:
20352030
- total
20362031
properties:
20372032
limit:
2038-
maximum: 200
2039-
allOf:
2040-
- $ref: '#/components/schemas/Limit'
2033+
format: int32
2034+
description: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter `limit` of the endpoint returning this schema.
2035+
type: integer
2036+
example: 10
20412037
total:
20422038
$ref: '#/components/schemas/Total'
20432039
Offset:
@@ -2976,10 +2972,11 @@ components:
29762972
properties:
29772973
limit:
29782974
description: Maximum records to retrieve per request, not to exceed 200.
2975+
type: integer
2976+
format: int32
2977+
minimum: 1
29792978
example: 10
29802979
maximum: 200
2981-
allOf:
2982-
- $ref: '#/components/schemas/Limit'
29832980
query:
29842981
$ref: '#/components/schemas/Query'
29852982
sorts:
@@ -3516,24 +3513,11 @@ components:
35163513
format: double
35173514
description: prices
35183515
description: Representation of a group of variant products by an attribute. This is a non-buyable entity, provides inheritable attributes for it's product variants, and is used for navigation. *Does'nt have a SKU.*
3519-
ISOCurrency:
3520-
pattern: ^[A-Z][A-Z][A-Z]$
3521-
description: A three letter uppercase currency code conforming to the [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) standard.
3522-
example: USD
3523-
type: string
3524-
NoValue:
3525-
default: N/A
3526-
description: A specialized value indicating the lack of definition of a currency, for example, if the value of the monetary value of the currency is an undefined number.
3527-
example: N/A
3528-
enum:
3529-
- N/A
3530-
type: string
35313516
CurrencyCode:
35323517
description: A three letter uppercase currency code conforming to the [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) standard, or the string `N/A` indicating that a currency is not applicable.
3518+
pattern: ^([A-Z][A-Z][A-Z]|N/A)$
35333519
example: USD
3534-
oneOf:
3535-
- $ref: '#/components/schemas/ISOCurrency'
3536-
- $ref: '#/components/schemas/NoValue'
3520+
type: string
35373521
Money:
35383522
description: A combination of a Currency and an amount of that Currency.
35393523
type: object
@@ -3872,6 +3856,13 @@ components:
38723856
offset: 2
38733857
total: 8
38743858
additionalProperties: false
3859+
Limit:
3860+
default: 10
3861+
minimum: 1
3862+
format: int32
3863+
description: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).
3864+
type: integer
3865+
example: 10
38753866
ExecutionJobStatusResult:
38763867
required:
38773868
- jobStatus
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Catalogs OAS",
44
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
55
"assetId": "catalogs-oas",
6-
"version": "1.0.43",
6+
"version": "1.0.46",
77
"classifier": "oas",
88
"tags": [],
99
"descriptorVersion": "1.0.0",

0 commit comments

Comments
 (0)