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
Creates a [Cart](ctp:api:type:Cart) in the [BusinessUnit](ctp:api:type:BusinessUnit) referenced by `businessUnitKey`. As such, the `businessUnit` field on [CartDraft](ctp:api:type:CartDraft) is ignored for this request.
1541
+
Creates a Cart in the [BusinessUnit](ctp:api:type:BusinessUnit) referenced by `businessUnitKey`. As such, the `businessUnit` field on [CartDraft](ctp:api:type:CartDraft) is ignored for this request.
1542
1542
Creating a Cart can fail with an [InvalidOperation](ctp:api:type:InvalidOperationError) if the referenced [ShippingMethod](ctp:api:type:ShippingMethod) in the [CartDraft](ctp:api:type:CartDraft) has a predicate that does not match the Cart.
1543
1543
1544
1544
Specific Error Codes:
@@ -5774,6 +5774,8 @@ paths:
5774
5774
- oauth_2_0:
5775
5775
- "view_orders:{projectKey}"
5776
5776
operationId: ByProjectKeyCartsGet
5777
+
description: |-
5778
+
Retrieves all Carts in the Project.
5777
5779
parameters:
5778
5780
- name: expand
5779
5781
in: query
@@ -5866,7 +5868,7 @@ paths:
5866
5868
- "view_orders:{projectKey}"
5867
5869
operationId: ByProjectKeyCartsHead
5868
5870
description: |-
5869
-
Checks if a Cart exists for a given Query Predicate. Returns a `200 OK` status if any Carts match the Query Predicate, or a `404 Not Found` otherwise.
5871
+
Checks if one or more Carts exist for the provided query predicate. Returns a `200 OK` status if any Carts match the query predicate, or a `404 Not Found` otherwise.
5870
5872
parameters:
5871
5873
- name: where
5872
5874
in: query
@@ -5902,6 +5904,8 @@ paths:
5902
5904
- "manage_orders:{projectKey}"
5903
5905
operationId: ByProjectKeyCartsPost
5904
5906
description: |-
5907
+
Creates a Cart in the Project.
5908
+
5905
5909
If the referenced [ShippingMethod](ctp:api:type:ShippingMethod) in the [CartDraft](ctp:api:type:CartDraft) has a predicate that does not match, or if the Shipping Method is not active, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
Checks if a Cart of a Customer exists. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
6016
+
Checks if a Cart exists for a Customer. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
6013
6017
responses:
6014
6018
"200":
6015
6019
description: |-
@@ -6047,6 +6051,7 @@ paths:
6047
6051
- "view_orders:{projectKey}"
6048
6052
operationId: ByProjectKeyCartsKeyByKeyGet
6049
6053
description: |-
6054
+
Retrieves a Cart with the provided `key`.
6050
6055
To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the [Recalculate](ctp:api:type:CartRecalculateAction) update action.
6051
6056
parameters:
6052
6057
- name: expand
@@ -6087,7 +6092,7 @@ paths:
6087
6092
- "view_orders:{projectKey}"
6088
6093
operationId: ByProjectKeyCartsKeyByKeyHead
6089
6094
description: |-
6090
-
Checks if a Cart exists for a given `key`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
6095
+
Checks if a Cart exists for the provided `key`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
6091
6096
responses:
6092
6097
"200":
6093
6098
description: |-
@@ -6112,6 +6117,8 @@ paths:
6112
6117
- oauth_2_0:
6113
6118
- "manage_orders:{projectKey}"
6114
6119
operationId: ByProjectKeyCartsKeyByKeyPost
6120
+
description: |-
6121
+
Updates a Cart in the Project using one or more [update actions](/../projects/carts#update-actions).
6115
6122
parameters:
6116
6123
- name: expand
6117
6124
in: query
@@ -6158,6 +6165,8 @@ paths:
6158
6165
- oauth_2_0:
6159
6166
- "manage_orders:{projectKey}"
6160
6167
operationId: ByProjectKeyCartsKeyByKeyDelete
6168
+
description: |-
6169
+
Deletes a Cart in the Project.
6161
6170
parameters:
6162
6171
- name: dataErasure
6163
6172
x-annotation-default: false
@@ -6279,6 +6288,7 @@ paths:
6279
6288
- "view_orders:{projectKey}"
6280
6289
operationId: ByProjectKeyCartsByIDGet
6281
6290
description: |-
6291
+
Retrieves a Cart with the provided `id`.
6282
6292
To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the [Recalculate](ctp:api:type:CartRecalculateAction) update action.
6283
6293
parameters:
6284
6294
- name: expand
@@ -6319,7 +6329,7 @@ paths:
6319
6329
- "view_orders:{projectKey}"
6320
6330
operationId: ByProjectKeyCartsByIDHead
6321
6331
description: |-
6322
-
Checks if a Cart exists for a given `id`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
6332
+
Checks if a Cart exists for the provided `id`. Returns a `200 OK` status if the Cart exists or a `404 Not Found` otherwise.
6323
6333
responses:
6324
6334
"200":
6325
6335
description: |-
@@ -6344,6 +6354,8 @@ paths:
6344
6354
- oauth_2_0:
6345
6355
- "manage_orders:{projectKey}"
6346
6356
operationId: ByProjectKeyCartsByIDPost
6357
+
description: |-
6358
+
Updates a Cart in the Project using one or more [update actions](/../projects/carts#update-actions).
Checks if a Cart exists for a given Query Predicate. Returns a `200 OK` status if any Carts match the Query Predicate or a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error otherwise.
11914
+
Checks if one or more Carts exist for the provided query predicate in a [Store](ctp:api:type:Store). Returns a `200 OK` status if any Carts match the query predicate or a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error otherwise.
Creates a [Cart](ctp:api:type:Cart) in the [Store](ctp:api:type:Store) specified by `storeKey`.
11951
+
Creates a Cart in a [Store](ctp:api:type:Store).
11938
11952
11939
11953
If the referenced [ShippingMethod](ctp:api:type:ShippingMethod) in the [CartDraft](ctp:api:type:CartDraft) has a predicate that does not match, or if the Shipping Method is not active, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
Checks if a Cart of a Customer exists. Returns a `200 OK` status if the Cart exists or a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error otherwise.
12070
+
Checks if one or more Carts exist for a Customer in a [Store](ctp:api:type:Store). Returns a `200 OK` status if the Cart exists or a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error otherwise.
Retrieves a Cart with the provided `key` in a [Store](ctp:api:type:Store).
12115
+
12100
12116
If the Cart exists in the Project but does not have a `store` specified, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
12101
12117
12102
12118
To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the [Recalculate](ctp:api:type:CartRecalculateAction) update action.
Checks if a Cart exists for a given `key`. Returns a `200 OK` status if the Cart exists or a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error otherwise.
12159
+
Checks if a Cart exists for the provided `key` in a [Store](ctp:api:type:Store). Returns a `200 OK` status if the Cart exists or a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error otherwise.
Updates a Cart in a [Store](ctp:api:type:Store) using one or more [update actions](/../projects/carts#update-actions).
12187
+
12170
12188
If the Cart exists in the Project but does not have a `store` specified, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
If the Cart exists in the Project but does not have a `store` specified, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
Retrieves a Cart with the provided `id` in a [Store](ctp:api:type:Store).
12374
+
12353
12375
If the Cart exists in the Project but does not have a `store` specified, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
12354
12376
12355
12377
To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the [Recalculate](ctp:api:type:CartRecalculateAction) update action.
Checks if a Cart exists for a given `id`. Returns a `200 OK` status if the Cart exists or a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error otherwise.
12418
+
Checks if a Cart exists for the provided `id` in a Store. Returns a `200 OK` status if the Cart exists or a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error otherwise.
Updates a [Cart](ctp:api:type:Cart) in the [Store](ctp:api:type:Store) specified by `storeKey`.
12445
+
Updates a Cart in a [Store](ctp:api:type:Store) using one or more [update actions](/../projects/carts#update-actions).
12446
+
12424
12447
If the Cart exists in the Project but does not have a `store` specified, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
If the Cart exists in the Project but does not have a `store` specified, or the `store` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
0 commit comments