Update accounts
POST /api/connector/v1/accounts/update
Updates one or more existing accounts in the system. Note this operation supports Portfolio Access Tokens.
Request Body
Section titled “Request Body ”object
Token identifying the client application.
Access token of the client application.
Name and version of the client application.
Unique identifier of the chain. Required when using Portfolio Access Tokens, ignored otherwise.
Accounts to be updated.
object
Unique identifier of the account.
Type of the account.
Customer
Company
Customer data to be updated. Required when Discriminator
is Customer
.
object
Email address (or null
if the email should not be updated).
object
Value which is to be updated.
Tax identification number (or null
if the tax identification number should not be updated).
object
Value which is to be updated.
Billing code (or null
if the billing code should not be updated).
object
Value which is to be updated.
Accounting code (or null
if the accounting code should not be updated).
object
Value which is to be updated.
Notes (or null
if the notes should not be updated).
object
Value which is to be updated.
Last name (or null
if the last name should not be updated).
object
Value which is to be updated.
First name (or null
if the first name should not be updated).
object
Value which is to be updated.
Second last name (or null
if the second last name should not be updated).
object
Value which is to be updated.
Birth place (or null
if the birth place should not be updated).
object
Value which is to be updated.
Telephone number (or null
if the telephone should not be updated).
object
Value which is to be updated.
Occupation (or null
if the occupation should not be updated).
object
Value which is to be updated.
Car registration number (or null
if the car registration number should not be updated).
object
Value which is to be updated.
Dietary requirements (or null
if the dietary requirements should not be updated).
object
Value which is to be updated.
Loyalty code (or null
if the loyalty code should not be updated).
object
Value which is to be updated.
Nationality code (or null
if the nationality code should not be updated).
object
Value which is to be updated.
Unique identifier of the company (or null
if the company should not be updated).
object
Value which is to be updated.
Birth date (or null
if the birth date should not be updated).
object
Value which is to be updated.
Sex (or null
if the sex should not be updated).
object
Value which is to be updated.
Title (or null
if the title should not be updated).
object
Value which is to be updated.
Preferred language code (or null
if the preferred language code should not be updated).
object
Value which is to be updated.
Options of the customer.
object
Send marketing email (or null
if the value should not be updated).
object
Value which is to be updated.
Invoiceable (or null
if the value should not be updated).
object
Value which is to be updated.
Bill address objection (or null
if the value should not be updated).
object
Value which is to be updated.
Classifications of the customer.
object
Paymaster account (or null
if the value should not be updated).
object
Value which is to be updated.
Blacklist (or null
if the value should not be updated).
object
Value which is to be updated.
Media (or null
if the value should not be updated).
object
Value which is to be updated.
Loyalty program (or null
if the value should not be updated).
object
Value which is to be updated.
Previous complaint (or null
if the value should not be updated).
object
Value which is to be updated.
Returning (or null
if the value should not be updated).
object
Value which is to be updated.
Staff (or null
if the value should not be updated).
object
Value which is to be updated.
Friend or family (or null
if the value should not be updated).
object
Value which is to be updated.
Top management (or null
if the value should not be updated).
object
Value which is to be updated.
Important (or null
if the value should not be updated).
object
Value which is to be updated.
Very important (or null
if the value should not be updated).
object
Value which is to be updated.
Problematic (or null
if the value should not be updated).
object
Value which is to be updated.
Cashlist (or null
if the value should not be updated).
object
Value which is to be updated.
Disabled person (or null
if the value should not be updated).
object
Value which is to be updated.
Military (or null
if the value should not be updated).
object
Value which is to be updated.
Airline (or null
if the value should not be updated).
object
Value which is to be updated.
Health compliant (or null
if the value should not be updated).
object
Value which is to be updated.
In room (or null
if the value should not be updated).
object
Value which is to be updated.
Waiting for room (or null
if the value should not be updated).
object
Value which is to be updated.
Student (or null
if the value should not be updated).
object
Value which is to be updated.
Legal entity identifiers of the customer.
object
Italian destination code (or null
if the Italian destination code should not be updated).
object
Value which is to be updated.
Italian fiscal code (or null
if the Italian fiscal code should not be updated).
object
Value which is to be updated.
Company data to be updated. Required when Discriminator
is Company
.
object
Email address (or null
if the email should not be updated).
object
Value which is to be updated.
Tax identification number (or null
if the tax identification number should not be updated).
object
Value which is to be updated.
Billing code (or null
if the billing code should not be updated).
object
Value which is to be updated.
Accounting code (or null
if the accounting code should not be updated).
object
Value which is to be updated.
Notes (or null
if the notes should not be updated).
object
Value which is to be updated.
Name (or null
if the name should not be updated).
object
Value which is to be updated.
Mother company identifier (or null
if the mother company identifier should not be updated).
object
Value which is to be updated.
Website url (or null
if the website url should not be updated).
object
Value which is to be updated.
Invoice due interval (or null
if the invoice due interval should not be updated).
object
Value which is to be updated.
Classifications of the company.
object
Corporate (or null
if the value should not be updated).
object
Value which is to be updated.
Internal (or null
if the value should not be updated).
object
Value which is to be updated.
Private (or null
if the value should not be updated).
object
Value which is to be updated.
Online travel agency (or null
if the value should not be updated).
object
Value which is to be updated.
Global distribution system (or null
if the value should not be updated).
object
Value which is to be updated.
Marketing (or null
if the value should not be updated).
object
Value which is to be updated.
Inactive (or null
if the value should not be updated).
object
Value which is to be updated.
Government Entity (or null
if the value should not be updated).
object
Value which is to be updated.
Options of the company.
object
Whether the company is invoiceable or not (or null
if the Invoiceable
field should not be updated).
object
Value which is to be updated.
Whether the company has an additional fee applied for invoicing or not (or null
if the AddFeesToInvoices
field should not be updated).
object
Value which is to be updated.
Whether tax-deducted payments should be automatically added to invoices (or null
if the AddTaxDeductedPaymentToInvoices
field should not be updated).
object
Value which is to be updated.
Department (or null
if the department should not be updated).
object
Value which is to be updated.
Duns number (or null
if the duns number should not be updated).
object
Value which is to be updated.
Reference identifier (or null
if the reference identifier should not be updated).
object
Value which is to be updated.
External identifier (or null
if the external identifier should not be updated).
object
Value which is to be updated.
Additional tax identifier (or null
if the additional tax identifier should not be updated).
object
Value which is to be updated.
Contact (or null
if the contact should not be updated).
object
Value which is to be updated.
Contact person (or null
if the contact person should not be updated).
object
Value which is to be updated.
Fiscal identifier (or null
if the fiscal identifier should not be updated).
object
Value which is to be updated.
IATA of the company (or null
if the iata should not be updated).
object
Value which is to be updated.
Telephone number (or null
if the telephone number should not be updated).
object
Value which is to be updated.
Source identifier (or null
if the source identifier should not be updated).
object
Value which is to be updated.
Example
{ "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D", "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D", "Client": "Sample Client 1.0.0", "AccountUpdates": [ { "Id": "3ff104e6-3ba8-4dfc-8d35-b0ec00c5fd4c", "Discriminator": "Company", "Customer": null, "Company": { "Email": { "Value": "example@example.com" }, "TaxIdentifier": { "Value": "CZ8810310963" }, "BillingCode": { "Value": null }, "AccountingCode": { "Value": null }, "Notes": { "Value": "Example notes" }, "Name": { "Value": "Example company" }, "MotherCompanyId": { "Value": "839e9d92-aa8b-48bf-8384-b0ec0081bb34" }, "WebsiteUrl": { "Value": "https://www.example.com" }, "InvoiceDueInterval": { "Value": null }, "CreditRatingBasic": { "Value": "CreditOk" }, "Department": { "Value": "Accounting" }, "DunsNumber": { "Value": "987654321" }, "ReferenceId": { "Value": null }, "ExternalIdentifier": { "Value": "COM-123" }, "AdditionalTaxIdentifier": { "Value": "XY00112233445" }, "Contact": { "Value": "Sample contact" }, "ContactPerson": { "Value": "Sample person" }, "FiscalIdentifier": { "Value": "FiscalIdentifier" }, "Iata": { "Value": "PAO" }, "Telephone": { "Value": "111-222-333" }, "SourceId": { "Value": "F42098A0-8507-4963-ACC9-B0EC00821949" }, "Classifications": { "Corporate": { "Value": true }, "Internal": { "Value": true }, "Private": { "Value": true }, "OnlineTravelAgency": { "Value": true }, "GlobalDistributionSystem": { "Value": true }, "Marketing": { "Value": true }, "Inactive": { "Value": true } }, "Options": { "Invoiceable": { "Value": "true" }, "AddFeesToInvoices": { "Value": "true" } } } }, { "Id": "71db411f-c1d6-4e1c-9cd7-44e8bf45f936", "Discriminator": "Customer", "Company": null, "Customer": { "Email": { "Value": "example@example.com" }, "TaxIdentifier": { "Value": "CZ8810310963" }, "BillingCode": { "Value": null }, "AccountingCode": { "Value": null }, "Notes": { "Value": "Example notes" }, "LastName": { "Value": "Sample" }, "FirstName": { "Value": "Sample" }, "SecondLastName": { "Value": null }, "BirthPlace": { "Value": "Sample place" }, "Telephone": { "Value": "111-222-333" }, "Occupation": { "Value": null }, "CarRegistrationNumber": { "Value": null }, "LoyaltyCode": { "Value": null }, "NationalityCode": { "Value": "US" }, "CompanyId": { "Value": "839e9d92-aa8b-48bf-8384-b0ec0081bb34" }, "BirthDate": { "Value": "2000-01-01" }, "Sex": { "Value": "Male" }, "Title": { "Value": "Mister" }, "PreferredLanguageCode": { "Value": null }, "Options": { "SendMarketingEmails": { "Value": true }, "Invoiceable": { "Value": true }, "BillAddressObjection": { "Value": true } }, "Classifications": { "PaymasterAccount": { "Value": true }, "Blacklist": { "Value": true }, "Media": { "Value": true }, "LoyaltyProgram": { "Value": true }, "PreviousComplaint": { "Value": true }, "Returning": { "Value": true }, "Staff": { "Value": true }, "FriendOrFamily": { "Value": true }, "TopManagement": { "Value": true }, "Important": { "Value": true }, "VeryImportant": { "Value": true }, "Problematic": { "Value": true }, "Cashlist": { "Value": true }, "DisabledPerson": { "Value": true }, "Military": { "Value": true }, "Airline": { "Value": true }, "HealthCompliant": { "Value": true }, "InRoom": { "Value": true }, "WaitingForRoom": { "Value": true }, "Student": { "Value": true } }, "LegalEntityIdentifiers": { "ItDestinationCode": { "Value": null }, "ItFiscalCode": { "Value": null } } } } ]}
Responses
Section titled “ Responses ”OK
object
Updated accounts.
object
Unique identifier of the account.
Type of the account.
Company
Customer
Updated customer data.
object
Unique identifier of the chain.
Creation date and time of the customer in UTC timezone in ISO 8601 format.
Last update date and time of the customer in UTC timezone in ISO 8601 format.
Unique identifier of the user who updated the customer.
Email address of the customer.
Tax identification number of the customer.
Billing code of the customer.
Accounting code of the customer.
Internal notes about the customer.
Last name of the customer.
First name of the customer.
Second last name of the customer.
Place of birth.
Telephone number of the customer (possibly mobile).
Occupation of the customer.
Registration number of the customer’s car.
Dietary requirements of the customer.
Loyalty code of the customer.
ISO 3166-1 code of the Country
.
Unique identifier of Company
the customer is associated with.
Date of birth in ISO 8601 format.
Sex of the customer.
Title prefix of the customer.
Mister (Mr.)
Miss (Ms.)
Misses (Mrs.)
Language and culture code of the customer’s preferred language. E.g. en-US
or fr-FR
.
Options of the customer.
object
Send marketing emails.
Invoiceable.
Bill address objection.
Classifications of the customer.
object
Paymaster account.
Blacklist.
Media.
Loyalty program.
Previous complaint.
Returning.
Staff.
Friend or family.
Top management.
Important.
Very important.
Problematic.
Cash list.
Disabled person.
Military.
Airline.
Health compliant.
In room.
Waiting for room.
Student.
Legal entity identifiers of the customer.
object
Italian destination code.
Italian fiscal code.
Updated company data.
object
Unique identifier of the chain.
Creation date and time of the Company
in UTC timezone in ISO 8601 format.
Last update date and time of the Company
in UTC timezone in ISO 8601 format.
Unique identifier of the user who updated the company.
Email address of the company.
Tax identification number of the company.
Billing code of the company.
Accounting code of the company.
Additional notes.
Name of the company.
Unique identifier of mother company.
The website url of the company.
The maximum time (in ISO 8601 duration format), when the invoice has to be be paid.
Credit rating to define credit worthiness of the company.
CreditOk (Company can book services.)
PaymentRequiredUpfront (Company must pay upfront.)
LocalDecisionRequired (Requires local approval.)
The internal segmentation of a company, e.g. sales department.
The Dun & Bradstreet unique 9-digit DUNS number.
External system identifier - custom identifier used by an external system such as an external database.
Identifier of company from external system.
Additional tax identifier of the company.
Other contact details, such as telephone, email or similar.
Contact person of the company.
Fiscal identifier of the company.
Iata of the company.
Contact telephone number.
Unique identifier of the Source
.
Classifications of the company.
object
Corporate.
Internal.
Private.
Online travel agency.
Global distribution system.
Marketing.
Inactive.
Government Entity
Options of the company.
object
Whether the company is invoiceable or not.
Whether the company has an additional fee applied for invoicing or not.
Whether tax-deducted payments should be automatically added to invoices.
Example
{ "Accounts": [ { "Id": "3ff104e6-3ba8-4dfc-8d35-b0ec00c5fd4c", "Discriminator": "Company", "Customer": null, "Company": { "ChainId": "79fa3c17-bec6-454f-b3be-b0ec00818acd", "CreatedUtc": "2024-01-03T07:52:20Z", "UpdatedUtc": "2024-01-18T10:20:31Z", "UpdaterProfileId": "93f03906-ed13-4a26-b8dc-b0ec0082194f", "Email": "example@example.com", "TaxIdentifier": "CZ8810310963", "BillingCode": null, "AccountingCode": null, "Notes": "Example notes", "Name": "Example company", "MotherCompanyId": "839e9d92-aa8b-48bf-8384-b0ec0081bb34", "WebsiteUrl": "https://www.example.com", "InvoiceDueInterval": null, "CreditRatingBasic": "CreditOk", "Department": "Accounting", "DunsNumber": "987654321", "ReferenceId": null, "ExternalIdentifier": "COM-123", "AdditionalTaxIdentifier": "XY00112233445", "Contact": "Sample contact", "ContactPerson": "Sample person", "FiscalIdentifier": "FiscalIdentifier", "Iata": "PAO", "Telephone": "111-222-333", "SourceId": "F42098A0-8507-4963-ACC9-B0EC00821949", "Classifications": { "Corporate": true, "Internal": true, "Private": true, "OnlineTravelAgency": true, "GlobalDistributionSystem": true, "Marketing": true, "Inactive": true }, "Options": { "Invoiceable": true, "AddFeesToInvoices": true } } }, { "Id": "71db411f-c1d6-4e1c-9cd7-44e8bf45f936", "Discriminator": "Customer", "Customer": { "ChainId": "79fa3c17-bec6-454f-b3be-b0ec00818acd", "CreatedUtc": "2024-01-03T07:52:19Z", "UpdatedUtc": "2024-01-18T10:25:41Z", "UpdaterProfileId": "93f03906-ed13-4a26-b8dc-b0ec0082194f", "Email": "example@example.com", "TaxIdentifier": "CZ8810310963", "BillingCode": null, "AccountingCode": null, "Notes": "Example notes", "LastName": "Sample", "FirstName": "Sample", "SecondLastName": null, "BirthPlace": "Sample place", "Telephone": "111-222-333", "Occupation": null, "CarRegistrationNumber": null, "LoyaltyCode": null, "NationalityCode": "US", "CompanyId": "839e9d92-aa8b-48bf-8384-b0ec0081bb34", "BirthDate": "2000-01-01T00:00:00Z", "Sex": "Male", "Title": "Mister", "PreferredLanguageCode": null, "Options": { "SendMarketingEmails": true, "Invoiceable": true, "BillAddressObjection": true }, "Classifications": { "PaymasterAccount": true, "Blacklist": true, "Media": true, "LoyaltyProgram": true, "PreviousComplaint": true, "Returning": true, "Staff": true, "FriendOrFamily": true, "TopManagement": true, "Important": true, "VeryImportant": true, "Problematic": true, "Cashlist": true, "DisabledPerson": true, "Military": true, "Airline": true, "HealthCompliant": true, "InRoom": true, "WaitingForRoom": true, "Student": true }, "LegalEntityIdentifiers": { "ItDestinationCode": null, "ItFiscalCode": null } }, "Company": null } ]}
Server has successfully fulfilled the request and there is no additional information to send back.
object
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).
object
Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.
object
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.
object
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
object
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.
object
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.