Create a user
Changed onRequired scope: users:write </br>Organization authorization: supported<br><br>If the email or phone matches an existing Monta user, that user is linked to your application and returned with 201; the profile fields in the request are not applied to it. Use PATCH /users/{userId} to update an existing user's profile.
Request
- Base URLhttps://partner-api.monta.com
- URLhttps://partner-api.monta.com/api/v1/users
- AuthHTTP bearer
Request body
Example request
{
"email": "example@monta.com",
"countryId": 1,
"phone": "+4512345678",
"firstName": "John",
"lastName": "Doe",
"language": "en",
"legalEmail": "legal@example.com",
"address1": "Strandboulevarden 122",
"address2": "Apt 4B",
"address3": "5. sal",
"zip": "2100",
"city": "Copenhagen",
"province": "Capital Region"
}Response
user with provided id
Example response
{
"id": 10,
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"legalEmail": "legal@ut.com",
"phone": "+1234567890",
"profileImageUrl": "https://example.com/profile.jpg",
"address": {
"address1": "Strandboulevarden 122",
"address2": "København",
"address3": "5. sal",
"zip": "2100",
"city": "Copenhagen",
"province": "Lombardy",
"country": "Denmark",
"countryAreaId": 1
},
"language": "en",
"termsReadAt": "2023-06-21T15:03:14Z",
"taxIdentificationNumber": "X12345678A",
"vatNumber": " IT07643520567",
"recipientCode": "2021-10-001",
"createdAt": "2023-06-21T15:03:14Z",
"updatedAt": "2023-06-21T15:03:14Z",
"deletedAt": "2023-06-21T15:03:14Z",
"emailVerifiedAt": "2023-06-21T15:03:14Z",
"phoneVerifiedAt": "2023-06-21T15:03:14Z",
"marketingEmailsAcceptedAt": "2023-06-21T15:03:14Z",
"defaultTeamId": 10,
"nationalId": "123456-7890",
"hasPaymentCard": true,
"hasValidPaymentCard": true
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
became nullable - info
the request property
became optional - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info