POST Relations/AddUpdateAddress

Adres toevoegen of updaten

Request Information

URI Parameters

None.

Body Parameters

CustomerAddress
NameDescriptionTypeAdditional information
Type

Typenummer

AddressType

None.

Province

Provincie

Province

None.

Email

Emailadres

string

None.

ContactName

Contactpersoon

string

None.

CompanyName

Bedrijfsnaam

string

None.

Address2

Address 2

string

None.

Id

Nummer

integer

None.

DebtorId

Debiteurnummer

integer

None.

CreditorId

Crediteurnummer

integer

None.

IsMainContact

Is hoofdcontact/adres

boolean

None.

OwnContactNumber

Eigen nummering

string

String length: inclusive between 0 and 50

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:
{
  "Type": {
    "Id": 1,
    "Name": "sample string 2"
  },
  "Province": {
    "Id": 1,
    "Name": "sample string 2"
  },
  "Email": "sample string 1",
  "ContactName": "sample string 2",
  "CompanyName": "sample string 3",
  "Address2": "sample string 4",
  "Id": 1,
  "DebtorId": 1,
  "CreditorId": 1,
  "IsMainContact": true,
  "OwnContactNumber": "sample string 6",
  "CountryCode": "sample string 7",
  "IsoCode": "sample string 8",
  "City": "sample string 9",
  "Zipcode": "sample string 10",
  "Street": "sample string 11",
  "HouseNumber": "sample string 12",
  "HouseNumberAddition": "sample string 13",
  "TelephoneNumber": "sample string 14",
  "CountryId": 15,
  "ZoneId": 16
}

application/xml, text/xml

Sample:
<CustomerAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <City>sample string 9</City>
  <CountryCode>sample string 7</CountryCode>
  <CountryId>15</CountryId>
  <HouseNumber>sample string 12</HouseNumber>
  <HouseNumberAddition>sample string 13</HouseNumberAddition>
  <IsoCode>sample string 8</IsoCode>
  <Street>sample string 11</Street>
  <TelephoneNumber>sample string 14</TelephoneNumber>
  <Zipcode>sample string 10</Zipcode>
  <ZoneId>16</ZoneId>
  <CreditorId>1</CreditorId>
  <DebtorId>1</DebtorId>
  <Id>1</Id>
  <IsMainContact>true</IsMainContact>
  <OwnContactNumber>sample string 6</OwnContactNumber>
  <Address2>sample string 4</Address2>
  <CompanyName>sample string 3</CompanyName>
  <ContactName>sample string 2</ContactName>
  <Email>sample string 1</Email>
  <Province>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Province>
  <Type>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Type>
</CustomerAddress>

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>