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: An [ExpiredCustomerEmailToken](ctp:api:type:ExpiredCustomerEmailTokenError) error is returned as the provided token has expired.
83
+
404:
84
+
description: The provided token is invalid or does not exist.
77
85
/email-token:
78
86
type: base
79
87
post:
@@ -83,6 +91,7 @@ post:
83
91
Use this method to create an email token for a global Customer during their [email verification process](/../api/customers-overview#customer-email-verification).
84
92
85
93
Creating an email token for the Customer produces the [CustomerEmailTokenCreated](ctp:api:type:CustomerEmailTokenCreatedMessage) Message.
94
+
The Message will include the token's value, if the token's validity is 60 minutes or less.
Use this method to verify a global Customer's email during their [email verification process](/../api/customers-overview#customer-email-verification).
101
110
102
111
Verifying the email of the Customer produces the [CustomerEmailVerified](ctp:api:type:CustomerEmailVerifiedMessage) Message.
112
+
113
+
After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
description: An [ExpiredCustomerEmailToken](ctp:api:type:ExpiredCustomerEmailToken) error is returned as the provided token is has expired.
128
+
404:
129
+
description: The provided token is invalid or does not exist.
115
130
/password:
116
131
type: base
117
132
post:
@@ -136,9 +151,9 @@ post:
136
151
description: |
137
152
Use this method to reset a global Customer's password during their [password reset process](/../api/customers-overview#customer-password-reset).
138
153
139
-
After the password is reset, any previously issued access and/or refresh tokens created through the [password flow](/authorization#password-flow) or [refresh token flow](/authorization#refresh-token-flow) are invalidated.
140
-
141
154
Resetting the password of the Customer produces the [CustomerPasswordUpdated](ctp:api:type:CustomerPasswordUpdatedMessage) Message with `reset=true`.
155
+
156
+
After the password is reset, all password tokens issued previously through the [password reset flow](/../api/projects/customers#password-reset-of-customer) are invalidated. In addition, any access and refresh tokens issued previously through the [password flow](/../api/authorization#password-flow) and [refresh token flow](/../api/authorization#refresh-token-flow) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
description: An [ExpiredCustomerPasswordToken](ctp:api:type:ExpiredCustomerPasswordTokenError) error is returned as the provided token has expired.
170
+
404:
171
+
description: The provided token is invalid or does not exist.
153
172
/password-token:
154
173
type: base
155
174
description: Produces the [CustomerPasswordTokenCreated](ctp:api:type:CustomerPasswordTokenCreatedMessage) Message.
@@ -159,7 +178,8 @@ post:
159
178
description: |
160
179
Use this method to create a password reset token for a global Customer during their [password reset process](/../api/customers-overview#customer-password-reset).
161
180
162
-
Creating a password reset token does not invalidate existing tokens.
181
+
Creating a password reset token for the Customer produces the [CustomerPasswordTokenCreated](ctp:api:type:CustomerPasswordTokenCreatedMessage) Message.
182
+
The Message will include the token's value, if the token's validity is 60 minutes or less.
Copy file name to clipboardExpand all lines: api-specs/api/resources/in-store.raml
+38-7Lines changed: 38 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1600,11 +1600,12 @@ uriParameters:
1600
1600
description: |
1601
1601
This is the last step in the [email verification process of a Customer](/../api/projects/customers#email-verification-of-customer-in-store). Returns a `200 OK` status if successful.
1602
1602
1603
+
After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
1604
+
1603
1605
A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios:
1604
1606
1605
1607
- If no Customer exists with the `id` specified in the [customer:{id}](/scopes#composable-commerce-oauth) scope.
1606
1608
- If the Customer exists but is associated with a different Store than what is specified in the `manage_my_profile:{projectKey}:{storeKey}` scope.
description: An [ExpiredCustomerEmailToken](ctp:api:type:ExpiredCustomerEmailToken) error is returned as the provided token is has expired.
1634
+
404:
1635
+
description: The provided token is invalid or does not exist.
1631
1636
/password:
1632
1637
type: base
1633
1638
post:
@@ -1673,11 +1678,12 @@ uriParameters:
1673
1678
1674
1679
Resetting a password produces the Customer [CustomerPasswordUpdated](ctp:api:type:CustomerPasswordUpdatedMessage) Message with `reset=true`.
1675
1680
1681
+
After the password is reset, all password tokens issued previously through the [password reset flow](/../api/projects/customers#password-reset-of-customer) are invalidated. In addition, any access and refresh tokens issued previously through the [password flow](/../api/authorization#password-flow) and [refresh token flow](/../api/authorization#refresh-token-flow) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
1682
+
1676
1683
A [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned in the following scenarios:
1677
1684
1678
1685
- If no Customer exists with the `id` specified in the [customer:{id}](/scopes#composable-commerce-oauth) scope.
1679
1686
- If the Customer exists but is associated with a different Store than what is specified in the `manage_my_profile:{projectKey}:{storeKey}` scope.
description: An [ExpiredCustomerEmailToken](ctp:api:type:ExpiredCustomerEmailTokenError) error is returned as the provided token has expired.
1898
+
404:
1899
+
description: The provided token is invalid or does not exist.
1882
1900
/email-token:
1883
1901
type: base
1884
1902
post:
@@ -1887,6 +1905,9 @@ uriParameters:
1887
1905
Use this method to create an email token for a Store-specific Customer during their [email verification process](/../api/customers-overview#customer-email-verification).
1888
1906
1889
1907
If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
1908
+
1909
+
Creating an email token for the Customer produces the [CustomerEmailTokenCreated](ctp:api:type:CustomerEmailTokenCreatedMessage) Message.
1910
+
The Message will include the token's value, if the token's validity is 60 minutes or less.
1890
1911
securedBy:
1891
1912
- oauth_2_0:
1892
1913
scopes:
@@ -1911,6 +1932,8 @@ uriParameters:
1911
1932
Verifying the email of the Customer produces the [CustomerEmailVerified](ctp:api:type:CustomerEmailVerifiedMessage) Message.
1912
1933
1913
1934
If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
1935
+
1936
+
After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
description: An [ExpiredCustomerEmailToken](ctp:api:type:ExpiredCustomerEmailTokenError) error is returned as the provided token has expired.
1955
+
404:
1956
+
description: The provided token is invalid or does not exist.
1930
1957
/password:
1931
1958
type: base
1932
1959
post:
@@ -1955,12 +1982,11 @@ uriParameters:
1955
1982
description: |
1956
1983
Use this method to reset a Store-specific Customer's password during their [password reset process](/../api/customers-overview#customer-password-reset).
1957
1984
1958
-
After the password is reset, any previously issued access and/or refresh tokens created through the [password flow](/authorization#password-flow) or [refresh token flow](/authorization#refresh-token-flow) are invalidated.
1959
-
1960
1985
Resetting the password of the Customer produces the [CustomerPasswordUpdated](ctp:api:type:CustomerPasswordUpdatedMessage) Message with `reset=true`.
1961
1986
1962
-
If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), then this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
1987
+
After the password is reset, all password tokens issued previously through the [password reset flow](/../api/projects/customers#password-reset-of-customer) are invalidated. In addition, any access and refresh tokens issued previously through the [password flow](/../api/authorization#password-flow) and [refresh token flow](/../api/authorization#refresh-token-flow) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
1963
1988
1989
+
If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), then this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
description: An [ExpiredCustomerPasswordToken](ctp:api:type:ExpiredCustomerPasswordTokenError) error is returned as the provided token has expired.
2007
+
404:
2008
+
description: The provided token is invalid or does not exist.
1979
2009
/password-token:
1980
2010
type: base
1981
2011
post:
1982
2012
displayName: Create password reset token for Customer in Store
1983
2013
description: |
1984
2014
Use this method to create a password reset token for a Store-specific Customer during their [password reset process](/../api/customers-overview#customer-password-reset).
1985
2015
1986
-
Creating a password reset token does not invalidate existing tokens.
1987
-
1988
2016
If the Customer exists in the Project but the `stores` field references a different Store, this method returns a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error.
2017
+
2018
+
Creating a password reset token for the Customer produces the [CustomerPasswordTokenCreated](ctp:api:type:CustomerPasswordTokenCreatedMessage) Message.
2019
+
The Message will include the token's value, if the token's validity is 60 minutes or less.
Copy file name to clipboardExpand all lines: api-specs/api/resources/me.raml
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,8 @@ delete:
68
68
displayName: Verify email of My Customer
69
69
description: |
70
70
This is the last step in the [email verification process of a Customer](/../api/projects/customers#email-verification-of-customer).
71
+
72
+
After the email is verified, all email tokens issued previously through the [email verification flow](/../api/projects/customers#email-verification-of-customer) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
description: An [ExpiredCustomerEmailToken](ctp:api:type:ExpiredCustomerEmailToken) error is returned as the provided token is has expired.
91
+
404:
92
+
description: The provided token is invalid or does not exist.
87
93
/password:
88
94
type: base
89
95
post:
@@ -117,6 +123,8 @@ delete:
117
123
This is the last step in the [password reset process of a Customer](/../api/projects/customers#password-reset-of-customer).
118
124
119
125
Resetting a password of the Customer produces the [CustomerPasswordUpdated](ctp:api:type:CustomerPasswordUpdatedMessage) Message with `reset=true`.
126
+
127
+
After the password is reset, all password tokens issued previously through the [password reset flow](/../api/projects/customers#password-reset-of-customer) are invalidated. In addition, any access and refresh tokens issued previously through the [password flow](/../api/authorization#password-flow) and [refresh token flow](/../api/authorization#refresh-token-flow) are invalidated. This invalidation of tokens is [eventually consistent](/../api/general-concepts#eventual-consistency).
Returned when the provided email token of the Customer has expired.
8
+
9
+
The error is returned as a failed response to:
10
+
11
+
- [Get Customer by email token](ctp:api:endpoint:/{projectKey}/customers/email-token={emailToken}:GET) and [Get Customer in Store by email token](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email-token={emailToken}:GET) requests
12
+
- [Verify email of Customer](ctp:api:endpoint:/{projectKey}/customers/email/confirm:POST) and [Verify email of Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email/confirm:POST) requests
Returned when the provided password token of the Customer has expired.
8
+
9
+
The error is returned as a failed response to:
10
+
11
+
- [Get Customer by password token](ctp:api:endpoint:/{projectKey}/customers/password-token={passwordToken}:GET) and [Get Customer in Store by password token](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password-token={passwordToken}:GET) requests
12
+
- [Reset password of Customer](ctp:api:endpoint:/{projectKey}/customers/password/reset:POST) and [Reset password of Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password/reset:POST) requests
Returned when the provided email token of the Customer has expired.
8
+
9
+
The error is returned as a failed response to:
10
+
11
+
- [Get Customer by email token](ctp:api:endpoint:/{projectKey}/customers/email-token={emailToken}:GET) and [Get Customer in Store by email token](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email-token={emailToken}:GET) requests
12
+
- [Verify email of Customer](ctp:api:endpoint:/{projectKey}/customers/email/confirm:POST) and [Verify email of Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/email/confirm:POST) requests
0 commit comments