Update contact

Update an existing contact

Query parameters

NameDescription
guid globally unique identifier

Unique identifier for the contact information

Required

organizationId string

Request model

Content of the contact to update
NameDescription
ExternalReference string

Your external id This can be used for ID'ing in external apps/services e.g. a web shop. The maximum length is 128 characters

String length: inclusive between 0 and 128

Name string

Name of the contact person or the company name

Required

Street string

Street name

ZipCode string

Zip code

City string

City

CountryKey string

Country key Two character string e.g. DK for Denmark, DE for Germany or SE for Sweden

Required

Phone string

Phone number

Email string

Email address

Webpage string

Webpage address

AttPerson string

Name of the att. person in cases here the contact is a company. If IsPerson this should be NULL.

VatNumber string

VAT number. If IsPerson this should be NULL.

EanNumber string

EAN number. This number is used for digital invoicing. If IsPerson this should be NULL.

PaymentConditionType string

Type of the payment condition for the contact. Netto, NettoCash or CurrentMonthOut. If NettoCash, then PaymentConditionNumberOfDays should be null. Defaults to Netto.

PaymentConditionNumberOfDays integer

Number of days for payment for the contact. E.g. that the contact has 7 days until payment has to be made. This field depends on PaymentConditionType. If left empty, defaults to 8 for all other payment types then NettoCash.

IsPerson boolean

Boolean to indicate whether the contact is a private person or a company. If true, the contact is a person.

Required

IsMember boolean

Boolean to indicate whether the contact is a member. If true, the contact is a member else a private person of a company depending on IsPerson. Only usable by unions.

MemberNumber string

A membership number used if the contact is a member. Only usable by unions.

UseCvr boolean

Boolean to indicate whether the contacts name and address should be updated with data from CVR.

CompanyTypeKey string

String with the key of the company type. The following keys are allowed: EmptyCompanyType, SoleProprietorship, PrivateLimitedCompany, PublicLimitedCompany, GeneralPartnership, LimitedPartnership, LimitedLiabilityCooperative, LimitedLiabilityVoluntaryAssociation, LimitedLiabilityCompany, EntreprenurLimitedCompany, Union, VoluntaryUnion, SmallPersonallyOwnedCompany, TrustFund and Others.

Returns

Returns 200 (OK) if the contact is updated successfully

v1/{organizationId}/contacts/{guid}

Requests Formats

{
  "ExternalReference": "Fx. WebShopID:42",
  "Name": "John Doe",
  "Street": "Main road 42",
  "ZipCode": "2100",
  "City": "Copenhagen",
  "CountryKey": "DK",
  "Phone": "+45 99 99 99 99",
  "Email": "test@test.com",
  "Webpage": "test.com",
  "AttPerson": "Donald Duck",
  "VatNumber": "12345674",
  "EanNumber": "1111000022223",
  "PaymentConditionType": "Netto",
  "PaymentConditionNumberOfDays": 8,
  "IsPerson": false,
  "IsMember": false,
  "MemberNumber": "A-123",
  "UseCvr": false,
  "CompanyTypeKey": "PrivateLimitedCompany"
}

Response Formats

Sample not available.