---
title: "confirmUser"
method: POST
path: "/v2/confirmUser"
tags: ["User Management"]
---

# confirmUser

`POST /v2/confirmUser`

Verifies a user account with the MFA code they receive.

<details>
<summary><strong>Error Glossary</strong> (click to expand)</summary>

| Code | HTTP Status | Message |
|------|-------------|-------------|
| `AP101` | 401 | No authenticated user |
| `AP111` | 200 | Invalid verification code |
| `AP112` | 200 | Max verification attempts exceeded |
| `AP113` | 200 | User does not exist |
| `AP700` | 400 | Missing or invalid required parameter |
| `AP701` | 400 | Improperly formatted parameter |

</details>

## Headers

- `authorization` string, required
- `Content-Type` string, required

## Request body

- object
  - `userId` string, required — Id of the user to be confirmed
  - `code` string, required — Verification code
  - `merchantId` integer, required — Merchant identifier

## Response `200`

Success - User Confirmed

- union
  - ConfirmUserObject
    - `user` object
      - `id` string — The id of the user, in uuid format
      - `firstName` string — The user's first name
      - `lastName` string — The user's last name
      - `type` string — Type of user. (consumer, business)
      - `email` string, email — The user's email
      - `phoneNumber` string — The user's phone number
      - `createdDate` string, date-time — Date user was created
      - `userStatus` string, date-time — Date user was created
  - 200failure
    - `error` object
      - `code` string
      - `message` string
      - `help` string — Support contact information

## Other responses

- `400` — Bad Request - Validation Errors

---

[API](https://skmtc.net/aero/apis/aeropay-v2-api.md) · [All operations](https://skmtc.net/aero/apis/aeropay-v2-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aero/aeropay-v2-api/revisions/4700c4ceeaad/schema)
