POST Relations/AddUpdateCustomer

Debiteur toevoegen of updaten

Request Information

URI Parameters

None.

Body Parameters

CustomerCreate
NameDescriptionTypeAdditional information
Id

integer

None.

IsoCode

string

None.

CountryCode

string

None.

CountryId

integer

None.

CompanyName

string

None.

FirstName

string

None.

LastName

string

None.

EmailAddress

string

None.

PaymentMethodId

integer

None.

PricelistIds

Collection of integer

None.

VatCode

VatCode

None.

TelephoneNumber

string

None.

MobileNumber

string

None.

Faxnumber

string

None.

ChamberOfCommerceCode

string

None.

Website

string

None.

Status

RelationStatus

None.

Discount

decimal number

None.

Representative

Representative

None.

Type

RelationType

None.

StandardReportIdForPickingList

integer

None.

StandardReportIdForSalesOrderDelivery

integer

None.

City

string

None.

Zipcode

string

None.

Street

string

None.

HouseNumber

string

None.

HouseNumberAddition

string

None.

VatNumber

string

None.

DontPrintPaperInvoiceForDebtor

boolean

None.

ReceiveInvoiceElectronically

boolean

None.

ElectronicInvoiceAttachmentType

integer

None.

StandardInvoiceLayoutReportId

integer

None.

Gender

Gender

None.

Preposition

string

None.

CreditLimit

decimal number

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<CustomerCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <ChamberOfCommerceCode>sample string 11</ChamberOfCommerceCode>
  <City>sample string 13</City>
  <CompanyName>sample string 4</CompanyName>
  <CountryCode>sample string 2</CountryCode>
  <CountryId>3</CountryId>
  <CreditLimit>1</CreditLimit>
  <Discount>1</Discount>
  <DontPrintPaperInvoiceForDebtor>true</DontPrintPaperInvoiceForDebtor>
  <ElectronicInvoiceAttachmentType>1</ElectronicInvoiceAttachmentType>
  <EmailAddress>sample string 7</EmailAddress>
  <Faxnumber>sample string 10</Faxnumber>
  <FirstName>sample string 5</FirstName>
  <Gender>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Gender>
  <HouseNumber>sample string 16</HouseNumber>
  <HouseNumberAddition>sample string 17</HouseNumberAddition>
  <Id>1</Id>
  <IsoCode>sample string 1</IsoCode>
  <LastName>sample string 6</LastName>
  <MobileNumber>sample string 9</MobileNumber>
  <PaymentMethodId>1</PaymentMethodId>
  <Preposition>sample string 21</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 15</Street>
  <TelephoneNumber>sample string 8</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 18</VatNumber>
  <Website>sample string 12</Website>
  <Zipcode>sample string 14</Zipcode>
</CustomerCreate>

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>