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
description: Checks if one or more Orders exist for the provided query predicate. Returns a `200 OK` status if any Orders match the query predicate, or a `404 Not Found` otherwise.
615
+
description: Checks if one or more Orders exist with provided query predicate in a [BusinessUnit](ctp:api:type:BusinessUnit). Returns a `200 OK` status if any Orders match the query predicate, or a `404 Not Found` otherwise.
615
616
queryParameters:
616
617
where?:
617
618
type: QueryPredicate[]
@@ -682,6 +683,7 @@ type: base
682
683
displayName: Get order by order number in business unit
Retrieves an Order with the provided `orderNumber` in a [BusinessUnit](ctp:api:type:BusinessUnit).
685
687
If the Order exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
description: Checks if an Order exists for a given `orderNumber`. Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
695
+
description: Checks if an Order exists with the provided `orderNumber` in a [BusinessUnit](ctp:api:type:BusinessUnit). Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
694
696
post:
695
697
displayName: Update order by order number in business unit
If the Order exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
700
+
Updates an Order in a [BusinessUnit](ctp:api:type:BusinessUnit) using one or more [update actions](/../api/projects/orders#update-actions).
701
+
If the Order exists in the [Project](ctp:api:type:Project) but does not reference the requested Business Unit, this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
If the Order exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
721
+
Retrieves an Order with the provided `id` in a [BusinessUnit](ctp:api:type:BusinessUnit).
722
+
If the Order exists in the [Project](ctp:api:type:Project) but does not reference the requested Business Unit, this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
description: Checks if an Order exists with the provided `id`. Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
730
+
description: Checks if an Order exists with the provided `id` in a [BusinessUnit](ctp:api:type:BusinessUnit). Returns a `200 OK` status if the Order exists or a `404 Not Found` otherwise.
If the Order exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
735
+
Updates an Order in a [BusinessUnit](ctp:api:type:BusinessUnit) using one or more [update actions](/../api/projects/orders#update-actions).
736
+
If the Order exists in the [Project](ctp:api:type:Project) but does not reference the requested Business Unit, this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
Copy file name to clipboardExpand all lines: api-specs/api/resources/in-store.raml
+30-16Lines changed: 30 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -370,6 +370,7 @@ uriParameters:
370
370
been completed.
371
371
get:
372
372
displayName: Query Orders in Store
373
+
description: Retrieves Orders in a [Store](ctp:api:type:Store).
373
374
securedBy:
374
375
[
375
376
oauth_2_0:
@@ -399,7 +400,7 @@ uriParameters:
399
400
],
400
401
},
401
402
]
402
-
description: Checks if one or more Orders exist for the provided query predicate. Returns a `200 OK` status if any Orders match the query predicate, or [Not Found](/../api/errors#404-not-found) otherwise.
403
+
description: Checks if one or more Orders exist for the provided query predicate in a [Store](ctp:api:type:Store). Returns a `200 OK` status if any Orders match the query predicate, or [Not Found](/../api/errors#404-not-found) otherwise.
403
404
queryParameters:
404
405
where?:
405
406
type: QueryPredicate[]
@@ -417,6 +418,7 @@ uriParameters:
417
418
},
418
419
]
419
420
description: |
421
+
Creates an Order from a Cart in a [Store](ctp:api:type:Store).
420
422
Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
421
423
The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
422
424
@@ -507,6 +509,7 @@ uriParameters:
507
509
},
508
510
]
509
511
description: |
512
+
Retrieves an Order with the provided `orderNumber` in a [Store](ctp:api:type:Store).
510
513
If the Order 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.
511
514
responses:
512
515
200:
@@ -526,7 +529,7 @@ uriParameters:
526
529
],
527
530
},
528
531
]
529
-
description: Checks if an Order exists for a given `orderNumber`. Returns a `200 OK` status if the Order exists or [Not Found](/../api/errors#404-not-found) otherwise.
532
+
description: Checks if an Order exists with the provided `orderNumber` in a [Store](ctp:api:type:Store). Returns a `200 OK` status if the Order exists or [Not Found](/../api/errors#404-not-found) otherwise.
530
533
post:
531
534
displayName: Update Order in Store by OrderNumber
532
535
securedBy:
@@ -541,6 +544,7 @@ uriParameters:
541
544
},
542
545
]
543
546
description: |
547
+
Updates an Order in a [Store](ctp:api:type:Store) using one or more [update actions](/../api/projects/orders#update-actions).
544
548
If the Order 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.
545
549
body:
546
550
application/json:
@@ -553,6 +557,7 @@ uriParameters:
553
557
delete:
554
558
displayName: Delete Order in Store by OrderNumber
555
559
description: |
560
+
Deletes an Order in a [Store](ctp:api:type:Store).
556
561
If the Order 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.
557
562
558
563
Deleting an Order produces the [OrderDeleted](ctp:api:type:OrderDeletedMessage) Message.
@@ -595,6 +600,7 @@ uriParameters:
595
600
},
596
601
]
597
602
description: |
603
+
Retrieves an Order with the provided `id` in a [Store](ctp:api:type:Store).
598
604
If the Order 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.
599
605
responses:
600
606
200:
@@ -614,7 +620,7 @@ uriParameters:
614
620
],
615
621
},
616
622
]
617
-
description: Checks if an Order exists with the provided `id`. Returns a `200 OK` status if the Order exists or [Not Found](/../api/errors#404-not-found) otherwise.
623
+
description: Checks if an Order exists with the provided `id` in a [Store](ctp:api:type:Store). Returns a `200 OK` status if the Order exists or [Not Found](/../api/errors#404-not-found) otherwise.
618
624
post:
619
625
displayName: Update Order in Store by ID
620
626
securedBy:
@@ -629,6 +635,7 @@ uriParameters:
629
635
},
630
636
]
631
637
description: |
638
+
Updates an Order in a [Store](ctp:api:type:Store) using one or more [update actions](/../api/projects/orders#update-actions).
632
639
If the Order 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.
633
640
body:
634
641
application/json:
@@ -641,6 +648,7 @@ uriParameters:
641
648
delete:
642
649
displayName: Delete Order in Store by ID
643
650
description: |
651
+
Deletes an Order in a [Store](ctp:api:type:Store).
644
652
If the Order 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.
645
653
646
654
Deleting an Order produces the [OrderDeleted](ctp:api:type:OrderDeletedMessage) Message.
@@ -893,7 +901,13 @@ uriParameters:
893
901
},
894
902
]
895
903
description: |
896
-
Returns all Orders in a Store that match a given Query Predicate and contain either a `customerId` that matches the [customer_id:{id}](/scopes#composable-commerce-oauth) scope, or an `anonymousId` that matches the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
904
+
Retrieves Orders in a [Store](ctp:api:type:Store) for the authenticated Customer or anonymous user.
905
+
906
+
A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios:
907
+
908
+
- If no Orders exist that match the provided query predicate.
909
+
- If an Order exists but does not have a `customerId` that matches the [customer:{id}](/scopes#composable-commerce-oauth) scope, or `anonymousId` that matches the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
910
+
897
911
responses:
898
912
200:
899
913
body:
@@ -915,9 +929,9 @@ uriParameters:
915
929
},
916
930
]
917
931
description: |
918
-
Checks if one or more Orders exist for the provided query predicate in a Store. Returns a `200 OK` status if successful.
932
+
Checks if one or more Orders exist for the provided query predicate in a [Store](ctp:api:type:Store) for the authenticated Customer or anonymous user. Returns a `200 OK` status if successful.
919
933
920
-
A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios:
934
+
A [Not Found](/../api/errors#404-not-found) error is returned in the following scenarios:
921
935
922
936
- If no Orders exist in the Store that match the Query Predicate.
923
937
- If an Order matches the Query Predicate, but no `store` is specified, or the `store` field references a different Store.
@@ -932,7 +946,7 @@ uriParameters:
932
946
displayName: Create My Order in Store from Cart
933
947
description: |
934
948
935
-
Creates an Order in a Store from a Cart for the Customer or anonymous user. The `customerId` or `anonymousId` field on the Order is automatically set based on the [customer:{id}](/scopes#composable-commerce-oauth) or [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
949
+
Creates an Order from a Cart in a [Store](ctp:api:type:Store) for the Customer or anonymous user. The `customerId` or `anonymousId` field on the Order is automatically set based on the [customer:{id}](/scopes#composable-commerce-oauth) or [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
936
950
937
951
The Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction) for taxes to be calculated. When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts` [Permission](ctp:api:type:Permission).
938
952
@@ -981,13 +995,13 @@ uriParameters:
981
995
get:
982
996
displayName: Get My Order in Store by ID
983
997
description: |
984
-
Returns an Order for a given `id` in a Store. Returns a `200 OK` status if successful.
998
+
Retrieves an Order with the provided `id` in a [Store](ctp:api:type:Store) for the authenticated Customer or anonymous user. Returns a `200 OK` status if successful.
985
999
986
1000
A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios:
987
1001
988
-
- If no Order exists in the Store for the given `id`.
989
-
- If the Order exists but does not have a `store` specified, or the `store` field references a different Store.
990
-
- If the Order exists but does not have a `customerId` that matches the [customer:{id}](/scopes#composable-commerce-oauth) scope, or `anonymousId` that matches the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
1002
+
- If no Orders exists in the Store with the provided `id`.
1003
+
- If an Order exists but does not have a `store` specified, or the `store` field references a different Store.
1004
+
- If an Order exists but does not have a `customerId` that matches the [customer:{id}](/scopes#composable-commerce-oauth) scope, or `anonymousId` that matches the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
991
1005
992
1006
securedBy:
993
1007
[
@@ -1023,13 +1037,13 @@ uriParameters:
1023
1037
},
1024
1038
]
1025
1039
description: |
1026
-
Checks if an Order exists with the provided `id` in a Store. Returns a `200 OK` status if successful.
1040
+
Checks if an Order exists with the provided `id` in a [Store](ctp:api:type:Store) for the authenticated Customer or anonymous user. Returns a `200 OK` status if successful.
1027
1041
1028
-
A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios:
1042
+
A [Not Found](/../api/errors#404-not-found) error is returned in the following scenarios:
1029
1043
1030
-
- If no Order exists in the Store for the given `id`.
1031
-
- If the Order exists but does not have a `store` specified, or the `store` field references a different Store.
1032
-
- If the Order exists but does not have a `customerId` that matches the [customer:{id}](/scopes#composable-commerce-oauth) scope, or `anonymousId` that matches the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
1044
+
- If no Order exists in the Store with the provided `id`.
1045
+
- If an Order exists but does not have a `store` specified, or the `store` field references a different Store.
1046
+
- If an Order exists but does not have a `customerId` that matches the [customer:{id}](/scopes#composable-commerce-oauth) scope, or `anonymousId` that matches the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
0 commit comments