Skip to content

Commit 021ca76

Browse files
committed
Updated API from documentation release
1 parent 8b9f674 commit 021ca76

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

api-specs/api/resources/carts.raml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ post:
114114
displayName: Merge Cart
115115
securedBy: [oauth_2_0: { scopes: ['manage_orders:{projectKey}'] }]
116116
description: |
117-
Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
118-
117+
Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.
119118
For more information, see [Merge behavior](/../api/carts-orders-overview#merge-behavior).
120119
121120
body:

api-specs/api/resources/customers.raml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ post:
2929
displayName: Create (sign up) Customer
3030
securedBy: [oauth_2_0: { scopes: ['manage_customers:{projectKey}'] }]
3131
description: |
32+
Allows converting an anonymous Cart to the active Cart of a Customer with [cart merge](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up).
33+
3234
Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message. Simultaneously creating two Customers with the same email address can return a [LockedField](ctp:api:type:LockedFieldError) error.
3335
body:
3436
application/json:

api-specs/api/resources/in-store/carts-in-store.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ post:
137137
},
138138
]
139139
description: |
140-
Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
140+
Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.
141141
142142
If the Cart exists in the Project but does not have a `store` specified, or the `store` field references a different Store, a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
143143

api-specs/api/resources/in-store/customers-in-store.raml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ post:
4646
4747
If a Cart with a `store` field specified, the `store` field must reference the same [Store](ctp:api:type:Store) specified in the `{storeKey}` path parameter.
4848
49-
If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
49+
Allows converting an anonymous Cart to the active Cart of a Customer with [cart merge](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up).
50+
If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
5051
5152
Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message. Simultaneously creating two Customers with the same email address can return a [LockedField](ctp:api:type:LockedFieldError) error.
5253
body:

api-specs/api/resources/in-store/in-store.raml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ uriParameters:
2626
description: |
2727
Authenticates a Customer associated with a [Store](ctp:api:type:Store).
2828
29-
If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
29+
Allows [merging](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) items from an anonymous Cart into the most recently modified active Cart of a Customer.
30+
If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.
31+
If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
3032
3133
If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), this method returns an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error.
3234
securedBy:

api-specs/api/resources/login.raml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ post:
55
description: |
66
Authenticates a global Customer.
77
8-
If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
8+
Allows [merging](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) items from an anonymous Cart into the most recently modified active Cart of a Customer.
9+
If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.
10+
If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
911
1012
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
1113
securedBy: [oauth_2_0: { scopes: ['manage_customers:{projectKey}'] }]

0 commit comments

Comments
 (0)