For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Accounts

Update accounts

Updates one or more existing accounts in the system. Note this operation supports Portfolio Access Tokens.

Request

[PlatformAddress]/api/connector/v1/accounts/update

{
  "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
          }
        }
      }
    }
  ]
}
Property
Type
Contract
Description

ClientToken

string

required

Token identifying the client application.

AccessToken

string

required

Access token of the client application.

Client

string

required

Name and version of the client application.

ChainId

string

optional

Unique identifier of the chain. Required when using Portfolio Access Tokens, ignored otherwise.

AccountUpdates

required, max 1000 items

Accounts to be updated.

Account update parameters

Property
Type
Contract
Description

Id

string

required

Unique identifier of the account.

Discriminator

required

Type of the account.

Customer

optional

Customer data to be updated. Required when Discriminator is Customer.

Company

optional

Company data to be updated. Required when Discriminator is Company.

Account type discriminator

  • Customer

  • Company

Customer update parameters

Property
Type
Contract
Description

Email

optional

Email address. Set the value to null to clear it; omit the property to leave it unchanged.

TaxIdentifier

optional

Tax identification number. Set the value to null to clear it; omit the property to leave it unchanged.

BillingCode

optional

Billing code. Set the value to null to clear it; omit the property to leave it unchanged.

AccountingCode

optional

Accounting code. Set the value to null to clear it; omit the property to leave it unchanged.

Notes

optional

Notes. Set the value to null to clear it; omit the property to leave it unchanged.

LastName

optional

Last name. Set the value to null to clear it; omit the property to leave it unchanged.

FirstName

optional

First name. Set the value to null to clear it; omit the property to leave it unchanged.

SecondLastName

optional

Second last name. Set the value to null to clear it; omit the property to leave it unchanged.

BirthPlace

optional

Birth place. Set the value to null to clear it; omit the property to leave it unchanged.

Telephone

optional

Telephone number. Set the value to null to clear it; omit the property to leave it unchanged.

Occupation

optional

Occupation. Set the value to null to clear it; omit the property to leave it unchanged.

CarRegistrationNumber

optional, max length 255 characters

Car registration number. Set the value to null to clear it; omit the property to leave it unchanged.

DietaryRequirements

optional, max length 255 characters

Dietary requirements. Set the value to null to clear it; omit the property to leave it unchanged.

LoyaltyCode

optional

Loyalty code. Set the value to null to clear it; omit the property to leave it unchanged.

NationalityCode

optional

Nationality code. Set the value to null to clear it; omit the property to leave it unchanged.

CompanyId

optional

Unique identifier of the company. Set the value to null to clear it; omit the property to leave it unchanged.

BirthDate

optional

Birth date. Set the value to null to clear it; omit the property to leave it unchanged.

Sex

optional

Sex. Set the value to null to clear it; omit the property to leave it unchanged.

Title

optional

New title. Set the value to null to clear it; omit the property to leave it unchanged. Mutually exclusive with CustomTitleId: sending both with a value fails, and setting this removes the custom title the customer already had.

CustomTitleId

optional

Unique identifier of the CustomTitle to assign to the customer, as configured in the chain's guest titles. Must be a title of the caller's chain that has not been deleted; use Get all custom titles to discover the available ids. Set the value to null to clear it; omit the property to leave it unchanged. Mutually exclusive with Title: sending both with a value fails, and setting this removes the title the customer already had.

PreferredLanguageCode

optional

Preferred language code. Set the value to null to clear it; omit the property to leave it unchanged.

Options

optional

Options of the customer.

Classifications

optional

Classifications of the customer.

LegalEntityIdentifiers

optional

Legal entity identifiers of the customer.

Customer update options

Property
Type
Contract
Description

SendMarketingEmails

optional

Send marketing email. Omit the property to leave it unchanged.

Invoiceable

optional

Invoiceable. Omit the property to leave it unchanged.

BillAddressObjection

optional

Bill address objection. Omit the property to leave it unchanged.

Customer update classifications

Property
Type
Contract
Description

PaymasterAccount

optional

Paymaster account. Omit the property to leave it unchanged.

Blocklist

optional

Blocklist. Omit the property to leave it unchanged.

Media

optional

Media. Omit the property to leave it unchanged.

LoyaltyProgram

optional

Loyalty program. Omit the property to leave it unchanged.

PreviousComplaint

optional

Previous complaint. Omit the property to leave it unchanged.

Returning

optional

Returning. Omit the property to leave it unchanged.

Staff

optional

Staff. Omit the property to leave it unchanged.

FriendOrFamily

optional

Friend or family. Omit the property to leave it unchanged.

TopManagement

optional

Top management. Omit the property to leave it unchanged.

Important

optional

Important. Omit the property to leave it unchanged.

VeryImportant

optional

Very important. Omit the property to leave it unchanged.

Problematic

optional

Problematic. Omit the property to leave it unchanged.

Cashlist

optional

Cashlist. Omit the property to leave it unchanged.

DisabledPerson

optional

Disabled person. Omit the property to leave it unchanged.

Military

optional

Military. Omit the property to leave it unchanged.

Airline

optional

Airline. Omit the property to leave it unchanged.

HealthCompliant

optional

Health compliant. Omit the property to leave it unchanged.

InRoom

optional

In room. Omit the property to leave it unchanged.

WaitingForRoom

optional

Waiting for room. Omit the property to leave it unchanged.

Student

optional

Student. Omit the property to leave it unchanged.

Blacklist

optional

Synonym of Blocklist, left for backward compatibility. Omit the property to leave it unchanged. Deprecated! Use Blocklist instead.

Property
Type
Contract
Description

ItDestinationCode

optional

Italian destination code. Set the value to null to clear it; omit the property to leave it unchanged.

ItFiscalCode

optional

Italian fiscal code. Set the value to null to clear it; omit the property to leave it unchanged.

ItLotteryCode

optional, max length 15 characters

Italian lottery code. Set the value to null to clear it; omit the property to leave it unchanged.

Company update parameters

Property
Type
Contract
Description

Email

optional

Email address (or null if the email should not be updated).

TaxIdentifier

optional

Tax identification number (or null if the tax identification number should not be updated).

BillingCode

optional

Billing code (or null if the billing code should not be updated).

AccountingCode

optional

Accounting code (or null if the accounting code should not be updated).

Notes

optional

Notes (or null if the notes should not be updated).

Name

optional

Name (or null if the name should not be updated).

MotherCompanyId

optional

Mother company identifier (or null if the mother company identifier should not be updated).

WebsiteUrl

optional

Website url (or null if the website url should not be updated).

InvoiceDueInterval

optional

Invoice due interval (or null if the invoice due interval should not be updated).

Classifications

optional

Classifications of the company.

Options

optional

Options of the company.

CreditRatingBasic

optional

Basic credit rating (or null if the basic credit rating should not be updated).

Department

optional

Department (or null if the department should not be updated).

DunsNumber

optional

Duns number (or null if the duns number should not be updated).

ReferenceId

optional

Reference identifier (or null if the reference identifier should not be updated).

ExternalIdentifier

optional, max length 255 characters

External identifier (or null if the external identifier should not be updated).

AdditionalTaxIdentifier

optional

Additional tax identifier (or null if the additional tax identifier should not be updated).

Contact

optional

Contact (or null if the contact should not be updated).

ContactPerson

optional

Contact person (or null if the contact person should not be updated).

FiscalIdentifier

optional

Fiscal identifier (or null if the fiscal identifier should not be updated).

Iata

optional

IATA of the company (or null if the iata should not be updated).

Telephone

optional

Telephone number (or null if the telephone number should not be updated).

SourceId

optional

Source identifier (or null if the source identifier should not be updated).

Company update classifications

Property
Type
Contract
Description

Corporate

optional

Corporate (or null if the value should not be updated).

Internal

optional

Internal (or null if the value should not be updated).

Private

optional

Private (or null if the value should not be updated).

OnlineTravelAgency

optional

Online travel agency (or null if the value should not be updated).

GlobalDistributionSystem

optional

Global distribution system (or null if the value should not be updated).

Marketing

optional

Marketing (or null if the value should not be updated).

Inactive

optional

Inactive (or null if the value should not be updated).

GovernmentEntity

optional

Government Entity (or null if the value should not be updated).

Credit rating basic

  • CreditOk - Company can book services.

  • PaymentRequiredUpfront - Company must pay upfront.

  • LocalDecisionRequired - Requires local approval.

Response

Property
Type
Contract
Description

Accounts

array of Account

required, max 1000 items

Updated accounts.

Account

Property
Type
Contract
Description

Id

string

required

Unique identifier of the account.

Discriminator

required

Type of the account.

Customer

optional

Updated customer data.

Company

optional

Updated company data.

Account type

  • Company

  • Customer

Customer

Updated customer data.

Property
Type
Contract
Description

ChainId

string

required

Unique identifier of the chain.

CreatedUtc

string

required

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

UpdatedUtc

string

required

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

UpdaterProfileId

string

required

Unique identifier of the user who updated the customer.

Email

string

optional

Email address of the customer.

TaxIdentifier

string

optional

Tax identification number of the customer.

BillingCode

string

optional

Billing code of the customer.

AccountingCode

string

optional

Accounting code of the customer.

Notes

string

optional

Internal notes about the customer.

LastName

string

required

Last name of the customer.

FirstName

string

optional

First name of the customer.

SecondLastName

string

optional

Second last name of the customer.

BirthPlace

string

optional

Place of birth.

Telephone

string

optional

Telephone number of the customer (possibly mobile).

Occupation

string

optional

Occupation of the customer.

CarRegistrationNumber

string

optional, max length 255 characters

Registration number of the customer's car.

DietaryRequirements

string

optional, max length 255 characters

Dietary requirements of the customer.

LoyaltyCode

string

optional

Loyalty code of the customer.

NationalityCode

string

optional

ISO 3166-1 code of the Country.

CompanyId

string

optional

Unique identifier of Company the customer is associated with.

BirthDate

string

optional

Date of birth in ISO 8601 format.

Sex

string

optional

Sex of the customer.

Title

optional

Title prefix of the customer. Mutually exclusive with CustomTitleName.

CustomTitleName

string

optional

Name of the customer's custom title, as configured in the chain's guest titles. Mutually exclusive with Title – a customer has either a standard title or a custom title. Unlike Title, the value is not localized; display it as returned.

CustomTitleId

string

optional

Unique identifier of the CustomTitle assigned to the customer, as configured in the chain's guest titles. Mutually exclusive with Title. Set whenever the customer has a custom title, even when CustomTitleName is null. Use Get all custom titles to resolve the name when custom titles are enabled for the chain.

PreferredLanguageCode

string

optional

Language and culture code of the customer's preferred language. E.g. en-US or fr-FR.

Options

required

Options of the customer.

Classifications

required

Classifications of the customer.

LegalEntityIdentifiers

required

Legal entity identifiers of the customer.

Customer options

Property
Type
Contract
Description

SendMarketingEmails

boolean

required

Send marketing emails.

Invoiceable

boolean

required

Invoiceable.

BillAddressObjection

boolean

required

Bill address objection.

Customer classifications

Property
Type
Contract
Description

PaymasterAccount

boolean

required

Paymaster account.

Blocklist

boolean

required

Blocklist.

Media

boolean

required

Media.

LoyaltyProgram

boolean

required

Loyalty program.

PreviousComplaint

boolean

required

Previous complaint.

Returning

boolean

required

Returning.

Staff

boolean

required

Staff.

FriendOrFamily

boolean

required

Friend or family.

TopManagement

boolean

required

Top management.

Important

boolean

required

Important.

VeryImportant

boolean

required

Very important.

Problematic

boolean

required

Problematic.

Cashlist

boolean

required

Cash list.

DisabledPerson

boolean

required

Disabled person.

Military

boolean

required

Military.

Airline

boolean

required

Airline.

HealthCompliant

boolean

required

Health compliant.

InRoom

boolean

required

In room.

WaitingForRoom

boolean

required

Waiting for room.

Student

boolean

required

Student.

Blacklist

boolean

required

Synonym of Blocklist, left for backward compatibility. Deprecated! Use Blocklist instead.

Property
Type
Contract
Description

ItDestinationCode

string

optional

Italian destination code.

ItFiscalCode

string

optional

Italian fiscal code.

ItLotteryCode

string

optional, max length 15 characters

Italian lottery code.

Company

Property
Type
Contract
Description

ChainId

string

required

Unique identifier of the chain.

CreatedUtc

string

required

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

UpdatedUtc

string

required

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

UpdaterProfileId

string

required

Unique identifier of the user who updated the company.

Email

string

optional

Email address of the company.

TaxIdentifier

string

optional

Tax identification number of the company.

BillingCode

string

optional

Billing code of the company.

AccountingCode

string

optional

Accounting code of the company.

Notes

string

optional

Additional notes.

Name

string

required

Name of the company.

MotherCompanyId

string

optional

Unique identifier of mother company.

WebsiteUrl

string

optional

The website url of the company.

InvoiceDueInterval

string

optional

The maximum time (in ISO 8601 duration format), when the invoice has to be be paid.

CreditRatingBasic

optional

Credit rating to define credit worthiness of the company.

Department

string

optional

The internal segmentation of a company, e.g. sales department.

DunsNumber

string

optional

The Dun & Bradstreet unique 9-digit DUNS number.

ReferenceId

string

optional

External system identifier - custom identifier used by an external system such as an external database.

ExternalIdentifier

string

optional

Identifier of company from external system.

AdditionalTaxIdentifier

string

optional

Additional tax identifier of the company.

Contact

string

optional

Other contact details, such as telephone, email or similar.

ContactPerson

string

optional

Contact person of the company.

FiscalIdentifier

string

optional

Fiscal identifier of the company.

Iata

string

optional

Iata of the company.

Telephone

string

optional

Contact telephone number.

SourceId

string

optional

Unique identifier of the Source.

Classifications

required

Classifications of the company.

Options

required

Options of the company.

Company classifications

Property
Type
Contract
Description

Corporate

boolean

required

Corporate.

Internal

boolean

required

Internal.

Private

boolean

required

Private.

OnlineTravelAgency

boolean

required

Online travel agency.

GlobalDistributionSystem

boolean

required

Global distribution system.

Marketing

boolean

required

Marketing.

Inactive

boolean

required

Inactive.

GovernmentEntity

boolean

required

Government Entity

Company options

Property
Type
Contract
Description

Invoiceable

boolean

required

Whether the company is invoiceable or not.

AddFeesToInvoices

boolean

required

Whether the company has an additional fee applied for invoicing or not.

AddTaxDeductedPaymentToInvoices

boolean

required

Whether tax-deducted payments should be automatically added to invoices.

Attaches the specified file to the account.

Allowed MIME types: application/pdf, image/bmp, image/gif, image/jpeg, image/png, image/tiff.

Note this operation supports Portfolio Access Tokens.

Request

[PlatformAddress]/api/connector/v1/accounts/addFile

Property
Type
Contract
Description

ClientToken

string

required

Token identifying the client application.

AccessToken

string

required

Access token of the client application.

Client

string

required

Name and version of the client application.

ChainId

string

optional

Unique identifier of the chain. Required when using Portfolio Access Tokens, ignored otherwise.

AccountId

string

required

Unique identifier of the account to which the file will be uploaded to.

Name

string

required, max length 1000 characters

Uploaded file name.

Type

string

required, max length 1000 characters

Content type of the uploaded file following defined by its MIME type.

Data

string

required

Uploaded file data serialized in base64 format.

Response

Property
Type
Contract
Description

FileId

string

required

Unique identifier of the uploaded file.

Merge accounts

Merges two or more accounts of the same account type together. The given source accounts will be merged into the given target account and the merged account will keep the target account ID.

Request

[PlatformAddress]/api/connector/v1/accounts/merge

Property
Type
Contract
Description

ClientToken

string

required

Token identifying the client application.

AccessToken

string

required

Access token of the client application.

Client

string

required

Name and version of the client application.

AccountMergeParameters

required, max 10 items

Accounts to be merged.

Account merge parameters

Property
Type
Contract
Description

SourceAccountIds

array of string

required, max 1000 items

Unique identifiers of the source accounts (Customer or Company).

TargetAccountId

string

required

Unique identifier of the target account (Customer or Company).

AccountType

required

Specifying types of the accounts provided (Customer or Company).

Account merge type

  • Customer

  • Company

Response

Last updated

Was this helpful?