|
1
|
post: |
|
2
|
operationId: PostVerificationConfirm |
|
3
|
summary: Confirm Customer Verification |
|
4
|
x-sidebar-summary: Confirm Verification |
|
5
|
description: >- |
|
6
|
Confirm a verification token of the customer. This API route is used as the |
|
7
|
last step part of the email verification flow. It can also be used for |
|
8
|
custom flows, such as phone number verification. Once successfully verified, |
|
9
|
a customer can complete their registration and log into their account. |
|
10
|
externalDocs: |
|
11
|
url: >- |
|
12
|
https://docs.medusajs.com/resources/storefront-development/customers/verify-account |
|
13
|
description: 'Storefront guide: Register Customer with Email Verification.' |
|
14
|
x-authenticated: false |
|
15
|
requestBody: |
|
16
|
content: |
|
17
|
application/json: |
|
18
|
schema: |
|
19
|
type: object |
|
20
|
description: The verification details |
|
21
|
required: |
|
22
|
- code |
|
23
|
properties: |
|
24
|
code: |
|
25
|
type: string |
|
26
|
title: code |
|
27
|
description: >- |
|
28
|
The token, OTP, or any other code that was sent to the customer |
|
29
|
for verification. |
|
30
|
code_provider: |
|
31
|
type: string |
|
32
|
title: code_provider |
|
33
|
description: >- |
|
34
|
The provider to use for verification. This is optional. When not |
|
35
|
provided, the default `token` provider is used. |
|
36
|
x-codeSamples: |
|
37
|
- lang: Shell |
|
38
|
label: cURL |
|
39
|
source: |
|
40
|
$ref: ../code_samples/Shell/auth_verification_confirm/post.sh |
|
41
|
tags: |
|
42
|
- Auth |
|
43
|
responses: |
|
44
|
'200': |
|
45
|
description: OK |
|
46
|
'400': |
|
47
|
$ref: ../components/responses/400_error.yaml |
|
48
|
'401': |
|
49
|
$ref: ../components/responses/unauthorized.yaml |
|
50
|
'404': |
|
51
|
$ref: ../components/responses/not_found_error.yaml |
|
52
|
'409': |
|
53
|
$ref: ../components/responses/invalid_state_error.yaml |
|
54
|
'422': |
|
55
|
$ref: ../components/responses/invalid_request_error.yaml |
|
56
|
'500': |
|
57
|
$ref: ../components/responses/500_error.yaml |
|
58
|
x-since: 2.16.0 |