Skip to content

Add customer

POST
/api/connector/v1/customers/add

Adds a new customer to the system and returns details of the added customer. If a customer with the specified email already exists, and OverwriteExisting is set to true, then the existing customer profile information is overwritten and the existing customer data returned. If OverwriteExisting is set to false, an error response is returned. Note this operation supports Portfolio Access Tokens.

CustomerAddParameters
object
ClientToken
required

Token identifying the client application.

string
>= 1 characters
AccessToken
required

Access token of the client application.

string
>= 1 characters
Client
required

Name and version of the client application.

string
>= 1 characters
Title
Any of:
Title

Type of the title prefix of the customer.

Note that the value should not be used as-is, but localized. For example, the value Misses should be displayed as Mrs. in English and Fr. in German.

Mister (Mr.)

Miss (Ms.)

Misses (Mrs.)

string
Allowed values: Mister Miss Misses
FirstName

First name of the customer.

string
nullable
LastName
required

Last name of the customer.

string
>= 1 characters
SecondLastName

Second last name of the customer.

string
nullable
NationalityCode

ISO 3166-1 code of the Country.

string
nullable
Sex
Any of:
Sex
string
Allowed values: Male Female
BirthDate

Date of birth in ISO 8601 format.

string format: date
nullable
BirthPlace

Place of birth.

string
nullable
Occupation

Occupation of the customer.

string
nullable
Email

Email address of the customer.

string format: email
nullable
Phone

Phone number of the customer (possibly mobile).

string format: tel
nullable
LoyaltyCode

Loyalty code of the customer.

string
nullable
Notes

Internal notes about the customer.

string
nullable
CarRegistrationNumber

Registration number of the customer’s car.

string
nullable <= 255 characters
DietaryRequirements

Customer’s dietary requirements, e.g. Vegan, Halal.

string
nullable <= 255 characters
TaxIdentificationNumber

Tax identification number of the customer.

string
nullable
CompanyId

Unique identifier of Company the customer is associated with.

string format: uuid
nullable
Address
Address parameters

Address of the customer.

object
Line1

First line of the address.

string
nullable
Line2

Second line of the address.

string
nullable
City

The city.

string
nullable
PostalCode

Postal code.

string format: postal-code
nullable
CountryCode

ISO 3166-1 code of the Country.

string
nullable
CountrySubdivisionCode

ISO 3166-2 code of the administrative division, e.g. DE-BW

string
nullable
IdentityCard
Identity document parameters

Identity card details of the customer.

object
Number

Number of the document (e.g. passport number).

string
nullable
Expiration

Expiration date in ISO 8601 format.

string format: date
nullable
Issuance

Date of issuance in ISO 8601 format.

string format: date
nullable
IssuingCountryCode

ISO 3166-1 code of the Country.

string
nullable
IssuingCity

City from which document issued

string
nullable
Passport
Identity document parameters

Passport details of the customer.

object
Number

Number of the document (e.g. passport number).

string
nullable
Expiration

Expiration date in ISO 8601 format.

string format: date
nullable
Issuance

Date of issuance in ISO 8601 format.

string format: date
nullable
IssuingCountryCode

ISO 3166-1 code of the Country.

string
nullable
IssuingCity

City from which document issued

string
nullable
Visa
Identity document parameters

Visa details of the customer.

object
Number

Number of the document (e.g. passport number).

string
nullable
Expiration

Expiration date in ISO 8601 format.

string format: date
nullable
Issuance

Date of issuance in ISO 8601 format.

string format: date
nullable
IssuingCountryCode

ISO 3166-1 code of the Country.

string
nullable
IssuingCity

City from which document issued

string
nullable
DriversLicense
Identity document parameters

Drivers license details of the customer.

object
Number

Number of the document (e.g. passport number).

string
nullable
Expiration

Expiration date in ISO 8601 format.

string format: date
nullable
Issuance

Date of issuance in ISO 8601 format.

string format: date
nullable
IssuingCountryCode

ISO 3166-1 code of the Country.

string
nullable
IssuingCity

City from which document issued

string
nullable
Classifications

Classifications of the customer.

Array<string>
nullable unique items
Allowed values: PaymasterAccount Blacklist Media LoyaltyProgram PreviousComplaint Returning Staff FriendOrFamily TopManagement Important VeryImportant Problematic Cashlist DisabledPerson Military Airline HealthCompliant InRoom WaitingForRoom Student
Options

Options of the customer.

Array<string>
nullable unique items
Allowed values: SendMarketingEmails Invoiceable BillAddressObjection SendMarketingPostalMail SendPartnerMarketingEmails SendPartnerMarketingPostalMail WithdrawCardConsent GuestPhotoConsent IdPhotosConsent
ChainId

Unique identifier of the chain. Required when using PortfolioAccessTokens, ignored otherwise.

string format: uuid
nullable
OverwriteExisting
required

Whether an existing customer should be overwritten in case of duplicity. This applies only to basic personal information (Title, FirstName, LastName, …).

boolean
ItalianDestinationCode

Value of Italian destination code.

string
nullable
ItalianFiscalCode

Value of Italian fiscal code.

string
nullable
Example
{
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"ChainId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"OverwriteExisting": false,
"ItalianDestinationCode": "7654321",
"ItalianFiscalCode": "ZGNZLR17U72P554F",
"Title": "Miss",
"FirstName": "Thea",
"LastName": "Carbone",
"BirthDate": "1985-09-30",
"BirthPlace": "Pescara (BI)",
"Occupation": "Giornalista",
"Email": "thea@quotidiano.example",
"Phone": "+39 06 555 5555",
"Notes": "Check-in notturno.",
"CarRegistrationNumber": "AA 111AA",
"TaxIdentificationNumber": "ZGNZLR17U72P554F",
"Address": {
"Line1": "Via Antimo 474 Piano 5",
"City": "Liborio laziale",
"PostalCode": "30228",
"CountryCode": "IT",
"CountrySubdivisionCode": "IT-65"
},
"Classifications": [
"Media",
"FriendOrFamily"
],
"Options": [
"SendMarketingEmails"
]
}

OK

Customer
object
Id
required

Unique identifier of the customer.

string format: uuid
ChainId
required

Unique identifier of the chain.

string format: uuid
Number
required

Number of the customer.

string
>= 1 characters
Title

Title of the customer.

Mister (Mr.)

Miss (Ms.)

Misses (Mrs.)

string
Allowed values: Mister Miss Misses
Sex

Sex of the customer.

Male

Female

string
Allowed values: Male Female
FirstName

First name of the customer.

string
nullable
LastName
required

Last name of the customer.

string
>= 1 characters
SecondLastName

Second last name of the customer.

string
nullable
NationalityCode

ISO 3166-1 code of the Country.

string
nullable
PreferredLanguageCode

Language and culture code of the customer’s preferred language, according to their profile. For example: en-GB, fr-CA.

string
nullable
LanguageCode

Language and culture code of the customer’s language, based on multiple sources. These sources include the preferred language specified in internal data based on previous bookings, and the preferred language of the customer specified in their profile. If neither of these sources are present, we use the native language based on the customer’s nationality. The format is, for example, en-US or fr-FR.

string
nullable
BirthDate

Date of birth in ISO 8601 format.

string
nullable
BirthPlace

Place of birth.

string
nullable
Occupation

Occupation of the customer.

string
nullable
Email

Email address of the customer.

string
nullable
HasOtaEmail

Whether the customer’s email address is a temporary email address from an OTA. For more details, see the product documentation.

boolean
Phone

Phone number of the customer (possibly mobile).

string
nullable
TaxIdentificationNumber

Tax identification number of the customer.

string
nullable
LoyaltyCode

Loyalty code of the customer.

string
nullable
AccountingCode

Accounting code of the customer.

string
nullable
BillingCode

Billing code of the customer.

string
nullable
Notes

Internal notes about the customer.

string
nullable
CarRegistrationNumber

Registration number of the customer’s car.

string
nullable <= 255 characters
DietaryRequirements

Customer’s dietary requirements, e.g. Vegan, Halal.

string
nullable <= 255 characters
CreatedUtc
required

Creation date and time of the customer in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
UpdatedUtc
required

Last update date and time of the customer in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
Passport
Identity document
object
Id

Unique identifier of the document.

string format: uuid
CustomerId

Identifier of the Customer.

string format: uuid
Type
Document type

Type of the document.

IdentityCard

Passport

Visa

DriversLicense

string
Allowed values: IdentityCard Passport Visa DriversLicense
Number

Number of the document (e.g. passport number).

string
nullable
Expiration

Expiration date in ISO 8601 format.

string format: date
nullable
Issuance

Date of issuance in ISO 8601 format.

string format: date
nullable
IssuingCountryCode

ISO 3166-1 code of the Country.

string
nullable
IssuingCity

City where the document was issued.

string
nullable
IdentityDocumentSupportNumber

Identity document support number. Only required for Spanish identity cards in Spanish hotels.

string
nullable
IdentityCard
Identity document
object
Id

Unique identifier of the document.

string format: uuid
CustomerId

Identifier of the Customer.

string format: uuid
Type
Document type

Type of the document.

IdentityCard

Passport

Visa

DriversLicense

string
Allowed values: IdentityCard Passport Visa DriversLicense
Number

Number of the document (e.g. passport number).

string
nullable
Expiration

Expiration date in ISO 8601 format.

string format: date
nullable
Issuance

Date of issuance in ISO 8601 format.

string format: date
nullable
IssuingCountryCode

ISO 3166-1 code of the Country.

string
nullable
IssuingCity

City where the document was issued.

string
nullable
IdentityDocumentSupportNumber

Identity document support number. Only required for Spanish identity cards in Spanish hotels.

string
nullable
Visa
Identity document
object
Id

Unique identifier of the document.

string format: uuid
CustomerId

Identifier of the Customer.

string format: uuid
Type
Document type

Type of the document.

IdentityCard

Passport

Visa

DriversLicense

string
Allowed values: IdentityCard Passport Visa DriversLicense
Number

Number of the document (e.g. passport number).

string
nullable
Expiration

Expiration date in ISO 8601 format.

string format: date
nullable
Issuance

Date of issuance in ISO 8601 format.

string format: date
nullable
IssuingCountryCode

ISO 3166-1 code of the Country.

string
nullable
IssuingCity

City where the document was issued.

string
nullable
IdentityDocumentSupportNumber

Identity document support number. Only required for Spanish identity cards in Spanish hotels.

string
nullable
DriversLicense
Identity document
object
Id

Unique identifier of the document.

string format: uuid
CustomerId

Identifier of the Customer.

string format: uuid
Type
Document type

Type of the document.

IdentityCard

Passport

Visa

DriversLicense

string
Allowed values: IdentityCard Passport Visa DriversLicense
Number

Number of the document (e.g. passport number).

string
nullable
Expiration

Expiration date in ISO 8601 format.

string format: date
nullable
Issuance

Date of issuance in ISO 8601 format.

string format: date
nullable
IssuingCountryCode

ISO 3166-1 code of the Country.

string
nullable
IssuingCity

City where the document was issued.

string
nullable
IdentityDocumentSupportNumber

Identity document support number. Only required for Spanish identity cards in Spanish hotels.

string
nullable
Address
Address
object
Id

Unique identifier of the address.

string format: uuid
Line1

First line of the address.

string
nullable
Line2

Second line of the address.

string
nullable
City

The city.

string
nullable
PostalCode

Postal code.

string
nullable
CountryCode

ISO 3166-1 code of the Country.

string
nullable
CountrySubdivisionCode

ISO 3166-2 code of the administrative division, e.g. DE-BW.

string
nullable
Latitude

The latitude.

number format: double
nullable
Longitude

The longitude.

number format: double
nullable
AddressId

Unique identifier of the Address of the customer.

string format: uuid
nullable
Classifications
required

Classifications of the customer.

Array<string>
Allowed values: None PaymasterAccount Blacklist Media LoyaltyProgram PreviousComplaint Returning Staff FriendOrFamily TopManagement Important VeryImportant Problematic Cashlist DisabledPerson Military Airline HealthCompliant InRoom WaitingForRoom Student
Options
required

Options of the customer.

Array<string>
Allowed values: None SendMarketingEmails Invoiceable BillAddressObjection SendMarketingPostalMail SendPartnerMarketingEmails SendPartnerMarketingPostalMail WithdrawCardConsent GuestPhotoConsent IdPhotosConsent
ItalianDestinationCode

Value of Italian destination code.

string
nullable
ItalianFiscalCode

Value of Italian fiscal code.

string
nullable
CompanyId

Unique identifier of Company the customer is associated with.

string format: uuid
nullable
MergeTargetId

Unique identifier of the account (Customer) to which this customer is linked.

string format: uuid
nullable
ActivityState

Activity State of customer record, i.e. whether active or deleted.

string
nullable
IsActive
required

Whether the customer record is still active.

boolean
PreferredSpaceFeatures
required

A list of room preferences, such as view type, bed type, and amenities.

Array<string>
Allowed values: SeaView RiverView OceanView TwinBeds DoubleBed RollawayBed UpperBed LowerBed Balcony AccessibleBathroom AccessibleRoom ElevatorAccess HighFloor Kitchenette AirConditioning PrivateJacuzzi PrivateSauna EnsuiteRoom PrivateBathroom SharedBathroom
CreatorProfileId
required

Unique identifier of the user who created the customer.

string format: uuid
UpdaterProfileId
required

Unique identifier of the user who last updated the customer.

string format: uuid
Example
{
"Id": "99b4f0af-9558-463b-8452-07a9bc414708",
"ChainId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"Number": "390881",
"Title": "Miss",
"Sex": null,
"FirstName": "Thea",
"LastName": "Carbone",
"SecondLastName": null,
"NationalityCode": null,
"PreferredLanguageCode": null,
"LanguageCode": null,
"BirthDate": "1985-09-30",
"BirthPlace": "Pescara (BI)",
"Occupation": "Giornalista",
"Email": "thea@quotidiano.example",
"HasOtaEmail": false,
"Phone": "+39 06 555 5555",
"TaxIdentificationNumber": "ZGNZLR17U72P554F",
"LoyaltyCode": null,
"AccountingCode": null,
"BillingCode": null,
"Notes": "Check-in notturno.",
"CarRegistrationNumber": "AA 111AA",
"DietaryRequirements": null,
"CreatedUtc": "2024-09-17T12:22:33Z",
"UpdatedUtc": "2024-10-12T09:45:00Z",
"Passport": null,
"IdentityCard": null,
"Visa": null,
"DriversLicense": null,
"Address": {
"Id": "81f62f08-26d5-408f-9b0d-d030957dc799",
"Line1": "Via Antimo 474 Piano 5",
"Line2": null,
"City": "Liborio laziale",
"PostalCode": "30228",
"CountryCode": "IT",
"CountrySubdivisionCode": "IT-65",
"Latitude": 28.56333,
"Longitude": -121.243143
},
"AddressId": "81f62f08-26d5-408f-9b0d-d030957dc799",
"Classifications": [
"Media",
"FriendOrFamily"
],
"Options": [],
"ItalianDestinationCode": "7654321",
"ItalianFiscalCode": "ZGNZLR17U72P554F",
"CompanyId": "f3b4f0af-9558-463b-8452-07a9bc414708",
"MergeTargetId": null,
"ActivityState": null,
"IsActive": true,
"PreferredSpaceFeatures": [
"LowerBed"
],
"CreatorProfileId": "3cd637ef-4728-47f9-8fb1-afb900c9cdcf",
"UpdaterProfileId": "122fc063-ec6e-4198-b8db-6b168a59ffae"
}

Server has successfully fulfilled the request and there is no additional information to send back.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see Request timeouts

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by too many requests sent in a given amount of time. Response contains Retry-After header indicating how long the user agent should wait before making a follow-up request. For more information, see Request limits.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our documentation repository.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable