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: api-specs/api/resources/in-store/shipping-methods-in-store.raml
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
1
/matching-cart:
2
2
type: base
3
-
description: Get ShippingMethods for a cart in a store
3
+
description: Get matching ShippingMethods for a Cart in a Store
4
4
get:
5
-
displayName: Get matching ShippingMethods for a Cart in Store
5
+
displayName: Get matching ShippingMethods for a Cart in a Store
6
6
description: |
7
-
Retrieves the active ShippingMethods that can ship to the shipping address of the given Cart in a given [Store](ctp:api:type:Store).
8
-
Each ShippingMethod contains exactly one ShippingRate with the flag `isMatching` set to `true`.
9
-
This ShippingRate is used when the ShippingMethod is [added to the Cart](ctp:api:type:CartSetShippingMethodAction).
7
+
Retrieves the active ShippingMethods that can ship to the shipping address of the provided Cart in a [Store](ctp:api:type:Store).
8
+
9
+
Each ShippingMethod contains exactly one ShippingRate with the flag `isMatching` set to `true`. This ShippingRate is used when the ShippingMethod is [added to the Cart](ctp:api:type:CartSetShippingMethodAction).
10
+
10
11
If a matching ShippingMethod has `isDefault` set to `true`, it is returned as the first item in the array.
displayName: Check if matching ShippingMethod exists for a Cart in Store
36
+
description: Checks if an active ShippingMethod that can ship to the shipping address of the provided Cart exists in a [Store](ctp:api:type:Store). Returns a `200 OK` status if the ShippingMethod exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
35
37
securedBy:
36
38
- oauth_2_0:
37
39
scopes:
@@ -46,4 +48,3 @@
46
48
type: string
47
49
description: |
48
50
ID of the Cart with a shipping address set.
49
-
description: Checks if an active ShippingMethod that can ship to the shipping address of the given Cart exists in the given [Store](ctp:api:type:Store). Returns a `200` status if the ShippingMethod exists, or a `404` status otherwise.
displayName: Check if ShippingMethod exists by Query Predicate
34
+
description: Checks if one or more ShippingMethods exist for the provided query predicate. Returns a `200 OK` status if any ShippingMethods match the query predicate or a [Not Found](/../api/errors#404-not-found) error otherwise.
33
35
securedBy:
34
36
[
35
37
oauth_2_0:
@@ -42,12 +44,12 @@ head:
42
44
],
43
45
},
44
46
]
45
-
description: Checks if one or more ShippingMethods exist for the provided query predicate. Returns a `200` status if any ShippingMethods match the query predicate, or a `404` status otherwise.
46
47
queryParameters:
47
48
where?:
48
49
type: QueryPredicate[]
49
50
post:
50
51
displayName: Create ShippingMethod
52
+
description: Creates a ShippingMethod in the Project.
51
53
securedBy:
52
54
[
53
55
oauth_2_0:
@@ -76,6 +78,7 @@ post:
76
78
resourceUpdateType: ShippingMethodUpdate
77
79
get:
78
80
displayName: Get ShippingMethod by Key
81
+
description: Retrieves a ShippingMethod with the provided `key`.
displayName: Check if ShippingMethod exists by Key
101
+
description: Checks if a ShippingMethod exists with the provided `key`. Returns a `200 OK` status if the ShippingMethod exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
98
102
securedBy:
99
103
[
100
104
oauth_2_0:
@@ -107,9 +111,9 @@ post:
107
111
],
108
112
},
109
113
]
110
-
description: Checks if a ShippingMethod exists with the provided `key`. Returns a `200` status if the ShippingMethod exists, or a `404` status otherwise.
111
114
post:
112
115
displayName: Update ShippingMethod by Key
116
+
description: Updates a ShippingMethod in the Project using one or more [update actions](/../api/projects/shippingMethods#update-actions).
description: Get matching ShippingMethods for a Cart
153
158
get:
154
-
displayName: Get ShippingMethods for a Cart
159
+
displayName: Get matching ShippingMethods for a Cart
155
160
description: |
156
-
Retrieves the active ShippingMethods that can ship to the shipping address of the given Cart.
157
-
Each ShippingMethod contains exactly one ShippingRate with the flag `isMatching` set to `true`.
158
-
This ShippingRate is used when the ShippingMethod is [added to the Cart](ctp:api:type:CartSetShippingMethodAction).
161
+
Retrieves the active ShippingMethods that can ship to the shipping address of the provided Cart.
162
+
163
+
Each ShippingMethod contains exactly one ShippingRate with the flag `isMatching` set to `true`. This ShippingRate is used when the ShippingMethod is [added to the Cart](ctp:api:type:CartSetShippingMethodAction).
164
+
159
165
If a matching ShippingMethod has `isDefault` set to `true`, it is returned as the first item in the array.
displayName: Check if matching ShippingMethod exists for a Cart
193
+
description: Checks if an active ShippingMethod exists for the provided Cart. Returns a `200 OK` status if the ShippingMethod exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
187
194
securedBy:
188
195
[
189
196
oauth_2_0:
@@ -201,17 +208,17 @@ post:
201
208
type: string
202
209
description: |
203
210
ID of the Cart with a shipping address set.
204
-
description: Checks if an active ShippingMethod exists for the given Cart. If a matching ShippingMethod has `isDefault` set to `true`, it is returned as the first item in the array. Returns a `200` status if the ShippingMethod exists, or a `404` status otherwise.
205
211
/matching-cart-location:
206
212
type: base
207
-
description: Get ShippingMethods for a Cart and Location
213
+
description: Get matching ShippingMethods for a Cart and Location
208
214
get:
209
-
displayName: Get ShippingMethods for a Cart and Location
215
+
displayName: Get matching ShippingMethods for a Cart and Location
210
216
description: |
211
-
Retrieves the active ShippingMethods that can ship to the given [Location](ctp:api:type:Location)
212
-
with a `predicate` that matches the given Cart.
213
-
Each ShippingMethod contains exactly one ShippingRate with the flag `isMatching` set to `true`.
214
-
This ShippingRate is used when the ShippingMethod is [added to the Cart](ctp:api:type:CartSetShippingMethodAction).
217
+
Retrieves the active ShippingMethods that can ship to the provided [Location](ctp:api:type:Location)
218
+
with a `predicate` that matches the provided Cart.
219
+
220
+
Each ShippingMethod contains exactly one ShippingRate with the flag `isMatching` set to `true`. This ShippingRate is used when the ShippingMethod is [added to the Cart](ctp:api:type:CartSetShippingMethodAction).
221
+
215
222
If a matching ShippingMethod has `isDefault` set to `true`, it is returned as the first item in the array.
displayName: Check if matching ShippingMethod exists for a Cart and Location
258
+
description: Checks if an active ShippingMethod that can ship to the provided [Location](ctp:api:type:Location) exists for the provided Cart. Returns a `200 OK` status if the ShippingMethod exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
251
259
securedBy:
252
260
[
253
261
oauth_2_0:
@@ -273,15 +281,16 @@ post:
273
281
type: string
274
282
description: |
275
283
ID of the Cart.
276
-
description: Checks if an active ShippingMethod that can ship to the given [Location](ctp:api:type:Location) exists for the given Cart. Returns a `200` status if the ShippingMethod exists, or a `404` status otherwise.
277
284
/matching-orderedit:
278
285
type: base
279
-
description: Get ShippingMethods for an Order Edit
286
+
description: Get matching ShippingMethods for an OrderEdit
280
287
get:
281
-
displayName: Get ShippingMethods for an Order Edit
288
+
displayName: Get matching ShippingMethods for an OrderEdit
282
289
description: |
283
-
Retrieves the active ShippingMethods that can ship to the given [Location](ctp:api:type:Location) for an [OrderEdit](ctp:api:type:OrderEdit).
290
+
Retrieves the active ShippingMethods that can ship to the provided [Location](ctp:api:type:Location) for an [OrderEdit](ctp:api:type:OrderEdit).
291
+
284
292
If a matching ShippingMethod has `isDefault` set to `true`, it is returned as the first item in the array.
293
+
285
294
If the OrderEdit preview cannot be generated, an [EditPreviewFailed](ctp:api:type:EditPreviewFailedError) error is returned.
displayName: Check if matching ShippingMethod exists for an Order Edit
326
+
description: Checks if an active ShippingMethod that can ship to the provided [Location](ctp:api:type:Location) exists for the provided [OrderEdit](ctp:api:type:OrderEdit). Returns a `200 OK` status if the ShippingMethod exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
317
327
securedBy:
318
328
[
319
329
oauth_2_0:
@@ -337,19 +347,22 @@ post:
337
347
type: string
338
348
description: |
339
349
Name of the state, for example, Colorado.
340
-
description: Checks if an active ShippingMethod that can ship to the given [Location](ctp:api:type:Location) exists for the given [OrderEdit](ctp:api:type:OrderEdit). Returns a `200` status if the ShippingMethod exists, or a `404` status otherwise.
341
350
/matching-location:
342
351
type: base
343
-
description: Get ShippingMethods for a Location
352
+
description: Get matching ShippingMethods for a Location
344
353
get:
345
-
displayName: Get ShippingMethods for a Location
354
+
displayName: Get matching ShippingMethods for a Location
346
355
description: |
347
-
Retrieves the active ShippingMethods that can ship to the given [Location](/projects/zones#location).
348
-
ShippingMethods that have a `predicate` defined are automatically disqualified.
349
-
If the `currency` parameter is given, then the ShippingMethods must also have a rate defined in the specified currency.
350
-
Each ShippingMethod contains at least one ShippingRate with the flag `isMatching` set to `true`.
351
-
If the `currency` parameter is given, exactly one ShippingRate will contain it.
352
-
If a matching ShippingMethod has `isDefault` set to `true`, it is returned as the first item in the array.
356
+
Retrieves the active ShippingMethods that can ship to the provided [Location](/projects/zones#location).
357
+
358
+
The following applies:
359
+
360
+
- ShippingMethods that have a `predicate` defined are automatically disqualified.
361
+
- If the `currency` parameter is provided, then the ShippingMethods must also have a rate defined in the specified currency.
362
+
- Each ShippingMethod contains at least one ShippingRate with the flag `isMatching` set to `true`.
363
+
- If the `currency` parameter is provided, exactly one ShippingRate will contain it.
364
+
- If a matching ShippingMethod has `isDefault` set to `true`, it is returned as the first item in the array.
displayName: Check if matching ShippingMethod exists for a Location
402
+
description: Checks if an active ShippingMethod that can ship to the provided [Location](ctp:api:type:Location) exists. Returns a `200 OK` status if the ShippingMethod exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
389
403
securedBy:
390
404
[
391
405
oauth_2_0:
@@ -411,7 +425,6 @@ post:
411
425
type: string
412
426
description: |
413
427
The currency code compliant to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
414
-
description: Checks if an active ShippingMethod that can ship to the given [Location](ctp:api:type:Location) exists. Returns a `200` status if the ShippingMethod exists, or a `404` status otherwise.
415
428
/{ID}:
416
429
(methodName): withId
417
430
type:
@@ -421,6 +434,7 @@ post:
421
434
resourceUpdateType: ShippingMethodUpdate
422
435
get:
423
436
displayName: Get ShippingMethod by ID
437
+
description: Retrieves a ShippingMethod with the provided `id`.
description: Checks if a ShippingMethod exists with the provided `id`. Returns a `200 OK` status if the ShippingMethod exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
443
458
securedBy:
444
459
[
445
460
oauth_2_0:
@@ -452,9 +467,9 @@ post:
452
467
],
453
468
},
454
469
]
455
-
description: Checks if a ShippingMethod exists with the provided `id`. Returns a `200` status if the ShippingMethod exists, or a `404` status otherwise.
456
470
post:
457
471
displayName: Update ShippingMethod by ID
472
+
description: Updates a ShippingMethod in the Project using one or more [update actions](/../api/projects/shippingMethods#update-actions).
displayName: Check if Zone exists by Query Predicate
23
+
description: Checks if one or more Zones exist for the provided query predicate. Returns a `200 OK` status if any Zones match the query predicate, or a [Not Found](/../api/errors#404-not-found) error otherwise.
description: Checks if one or more Zones exist for the provided query predicate. Returns a `200` status if any Zones match the query predicate, or a `404` status otherwise.
description: Checks if a Zone exists with the provided `key`. Returns a `200 OK` status if the Zone exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
description: Checks if a Zone exists with the provided `id`. Returns a `200 OK` status if the Zone exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
0 commit comments