v1
latestOpenAPI 3.0.02026-07-263118119.8 KBUser Management
user
Create a user associated with the authorized merchant.
When creating a user, a userId is returned. This userId is required for referencing the user within the AeroPay system.
<details> <summary><strong>Error Glossary</strong> (click to expand)</summary>| Code | HTTP Status | Message |
|---|---|---|
| AP006 | 401 | Client not authorized for this scope |
| AP101 | 401 | No authenticated user |
| AP102 | 200 | Unable to create user |
| AP105 | 200 | Phone number missing area code |
| AP106 | 200 | Improperly formatted phone number |
| AP115 | 200 | Unsupported phone type |
| AP118 | 200 | Name cannot contain numbers or special characters |
| AP119 | 200 | Unsupported country code - US numbers only |
| AP700 | 400 | Missing or invalid required parameter |
post/v2/user
Headers
Content-Typestring required
authorizationstring required
A merchant scoped token.
Request body
Example request
{
"firstName": "Stephanie",
"lastName": "Jones",
"phoneNumber": "+11234567890",
"email": "stephjones@aeropay.com"
}Response
Success or Validation Failure (Unified 200)
Example response
{
"user": {
"id": "2ac82269-9315-4bb6-8a19-f37e20d50238",
"firstName": "JohnNew",
"lastName": "DoeNew",
"type": "consumer",
"email": "test-1754932665@aeropay.com",
"phoneNumber": "+11754932665",
"createdDate": "2025-02-27T12:59:32+00:00",
"userStatus": "Active"
},
"mfaType": "sms"
}