POST Relations/AddUpdateCustomer

Debiteur toevoegen of updaten

Request Information

URI Parameters

None.

Body Parameters

Customer
NameDescriptionTypeAdditional information
Id

Debiteurnummer (leeg laten bij een nieuwe debiteur toevoegen)

integer

None.

IsoCode

ISO code

string

None.

CountryCode

Landcode

string

None.

CountryId

Land nummer

integer

None.

CompanyName

Bedrijfsnaam

string

None.

FirstName

Voornaam

string

None.

LastName

Achternaam

string

None.

EmailAddress

Emailadres

string

None.

PaymentMethodId

Betaalmethode

integer

None.

PricelistIds

Prijslijsten

Collection of integer

None.

VatCode

BTW-Gegevens

VatCode

None.

TelephoneNumber

Telefoonnummer

string

None.

MobileNumber

Mobiel nummer

string

None.

Faxnumber

Faxnummer

string

None.

ChamberOfCommerceCode

Kamer van koophandel nummer

string

None.

Website

Website

string

None.

Status

Status

RelationStatus

None.

Hide

Verborgen in systeem

boolean

None.

Discount

Korting

decimal number

None.

Representative

Vertegenwoordiger

Representative

None.

Type

Type

RelationType

None.

StandardReportIdForPickingList

Specifieke pakbon layout rapportnummer voor debiteur

integer

None.

StandardReportIdForSalesOrderDelivery

Specifieke pakbon bij uitlevering layout rapportnummer voor debiteur

integer

None.

City

Woonplaats

string

None.

Zipcode

Postcode

string

None.

Street

Straatnaam

string

None.

HouseNumber

Huisnummer

string

None.

HouseNumberAddition

Huisnummer toevoeging

string

None.

VatNumber

BTW nummer

string

None.

DontPrintPaperInvoiceForDebtor

Geen papieren facturen uitprinten voor debiteur.

boolean

None.

ReceiveInvoiceElectronically

Elektronisch factureren

boolean

None.

ElectronicInvoiceAttachmentType

Type factuur bijlage

integer

None.

StandardInvoiceLayoutReportId

Specifieke factuur layout

integer

None.

FreeValue1

Vrij veld 1

string

None.

FreeValue2

Vrij veld 2

string

None.

FreeValue3

Vrij veld 3

string

None.

Gender

Geslacht

Gender

None.

Preposition

Tussenvoegsel

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IsoCode": "sample string 3",
  "CountryCode": "sample string 4",
  "CountryId": 5,
  "CompanyName": "sample string 6",
  "FirstName": "sample string 7",
  "LastName": "sample string 8",
  "EmailAddress": "sample string 9",
  "PaymentMethodId": 1,
  "PricelistIds": [
    1,
    2
  ],
  "VatCode": {
    "Id": 1,
    "Percent": 2.0,
    "Name": "sample string 3"
  },
  "TelephoneNumber": "sample string 10",
  "MobileNumber": "sample string 11",
  "Faxnumber": "sample string 12",
  "ChamberOfCommerceCode": "sample string 13",
  "Website": "sample string 14",
  "Status": {
    "Id": 1,
    "Description": "sample string 2"
  },
  "Hide": true,
  "Discount": 1.0,
  "Representative": {
    "Id": 1,
    "Name": "sample string 2"
  },
  "Type": {
    "Id": 1,
    "Description": "sample string 2"
  },
  "StandardReportIdForPickingList": 1,
  "StandardReportIdForSalesOrderDelivery": 1,
  "City": "sample string 16",
  "Zipcode": "sample string 17",
  "Street": "sample string 18",
  "HouseNumber": "sample string 19",
  "HouseNumberAddition": "sample string 20",
  "VatNumber": "sample string 21",
  "DontPrintPaperInvoiceForDebtor": true,
  "ReceiveInvoiceElectronically": true,
  "ElectronicInvoiceAttachmentType": 1,
  "StandardInvoiceLayoutReportId": 1,
  "FreeValue1": "sample string 24",
  "FreeValue2": "sample string 25",
  "FreeValue3": "sample string 26",
  "Gender": {
    "Id": 1,
    "Name": "sample string 2"
  },
  "Preposition": "sample string 27"
}

application/xml, text/xml

Sample:
<Customer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <ChamberOfCommerceCode>sample string 13</ChamberOfCommerceCode>
  <City>sample string 16</City>
  <CompanyName>sample string 6</CompanyName>
  <CountryCode>sample string 4</CountryCode>
  <CountryId>5</CountryId>
  <Discount>1</Discount>
  <DontPrintPaperInvoiceForDebtor>true</DontPrintPaperInvoiceForDebtor>
  <ElectronicInvoiceAttachmentType>1</ElectronicInvoiceAttachmentType>
  <EmailAddress>sample string 9</EmailAddress>
  <Faxnumber>sample string 12</Faxnumber>
  <FirstName>sample string 7</FirstName>
  <FreeValue1>sample string 24</FreeValue1>
  <FreeValue2>sample string 25</FreeValue2>
  <FreeValue3>sample string 26</FreeValue3>
  <Gender>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Gender>
  <Hide>true</Hide>
  <HouseNumber>sample string 19</HouseNumber>
  <HouseNumberAddition>sample string 20</HouseNumberAddition>
  <Id>1</Id>
  <IsoCode>sample string 3</IsoCode>
  <LastName>sample string 8</LastName>
  <MobileNumber>sample string 11</MobileNumber>
  <PaymentMethodId>1</PaymentMethodId>
  <Preposition>sample string 27</Preposition>
  <PricelistIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </PricelistIds>
  <ReceiveInvoiceElectronically>true</ReceiveInvoiceElectronically>
  <Representative>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Representative>
  <StandardInvoiceLayoutReportId>1</StandardInvoiceLayoutReportId>
  <StandardReportIdForPickingList>1</StandardReportIdForPickingList>
  <StandardReportIdForSalesOrderDelivery>1</StandardReportIdForSalesOrderDelivery>
  <Status>
    <Description>sample string 2</Description>
    <Id>1</Id>
  </Status>
  <Street>sample string 18</Street>
  <TelephoneNumber>sample string 10</TelephoneNumber>
  <Type>
    <Description>sample string 2</Description>
    <Id>1</Id>
  </Type>
  <VatCode>
    <Id>1</Id>
    <Name>sample string 3</Name>
    <Percent>2</Percent>
  </VatCode>
  <VatNumber>sample string 21</VatNumber>
  <Website>sample string 14</Website>
  <Zipcode>sample string 17</Zipcode>
</Customer>

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>