POST Relations/AddUpdateContact

Contactpersoon toevoegen of updaten

Request Information

URI Parameters

None.

Body Parameters

CustomerContact
NameDescriptionTypeAdditional information
EmailAddress

string

None.

FirstName

Voornaam

string

None.

Function

Functie

string

None.

Gender

Geslacht

Gender

None.

Initials

Initialen

string

None.

InsertionName

Tussenvoegsel

string

None.

LastName

Achternaam

string

None.

MobileNumber

Mobiel nummer

string

None.

Id

Nummer

integer

None.

DebtorId

Debiteurnummer

integer

None.

CreditorId

Crediteurnummer

integer

None.

IsMainContact

Is hoofdcontact/adres

boolean

None.

CountryCode

Landcode

string

None.

IsoCode

ISO code

string

None.

City

Woonplaats

string

None.

Zipcode

Postcode

string

None.

Street

Straatnaam

string

None.

HouseNumber

Huisnummer

string

None.

HouseNumberAddition

Huisnummer toevoeging

string

None.

TelephoneNumber

Telefoonnummer

string

None.

CountryId

Land nummer

integer

None.

ZoneId

Zone nummer

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EmailAddress": "sample string 1",
  "FirstName": "sample string 2",
  "Function": "sample string 3",
  "Gender": {
    "Id": 1,
    "Name": "sample string 2"
  },
  "Initials": "sample string 4",
  "InsertionName": "sample string 5",
  "LastName": "sample string 6",
  "MobileNumber": "sample string 7",
  "Id": 1,
  "DebtorId": 1,
  "CreditorId": 1,
  "IsMainContact": true,
  "CountryCode": "sample string 9",
  "IsoCode": "sample string 10",
  "City": "sample string 11",
  "Zipcode": "sample string 12",
  "Street": "sample string 13",
  "HouseNumber": "sample string 14",
  "HouseNumberAddition": "sample string 15",
  "TelephoneNumber": "sample string 16",
  "CountryId": 17,
  "ZoneId": 18
}

application/xml, text/xml

Sample:
<CustomerContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <City>sample string 11</City>
  <CountryCode>sample string 9</CountryCode>
  <CountryId>17</CountryId>
  <HouseNumber>sample string 14</HouseNumber>
  <HouseNumberAddition>sample string 15</HouseNumberAddition>
  <IsoCode>sample string 10</IsoCode>
  <Street>sample string 13</Street>
  <TelephoneNumber>sample string 16</TelephoneNumber>
  <Zipcode>sample string 12</Zipcode>
  <ZoneId>18</ZoneId>
  <CreditorId>1</CreditorId>
  <DebtorId>1</DebtorId>
  <Id>1</Id>
  <IsMainContact>true</IsMainContact>
  <EmailAddress>sample string 1</EmailAddress>
  <FirstName>sample string 2</FirstName>
  <Function>sample string 3</Function>
  <Gender>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Gender>
  <Initials>sample string 4</Initials>
  <InsertionName>sample string 5</InsertionName>
  <LastName>sample string 6</LastName>
  <MobileNumber>sample string 7</MobileNumber>
</CustomerContact>

Response Information

Resource Description

Logic4ResponseOfInt32
NameDescriptionTypeAdditional information
Value

integer

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": 1,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Value>1</Value>
</Logic4ResponseOfint>