POST api/Customers/AddCustomer
Request Information
URI Parameters
None.
Body Parameters
CustomerName | Description | Type | Additional information |
---|---|---|---|
Code | string |
None. |
|
Name | string |
None. |
|
Address | string |
None. |
|
Country | string |
None. |
|
PostalCode | string |
None. |
|
City | string |
None. |
|
ActivityCode | string |
None. |
|
RegistrationNumber | string |
None. |
|
WebSiteURL | string |
None. |
|
SubjectToVAT | string |
None. |
|
TaxNumber | string |
None. |
|
ExpirationDays | integer |
None. |
|
RebatePercent | decimal number |
None. |
|
Currency | string |
None. |
|
PriceList | string |
None. |
|
Notes | string |
None. |
|
Usage | string |
None. |
|
FirstGroupCode | string |
None. |
|
SecondGroupCode | string |
None. |
|
CustomerPayerCode | string |
None. |
|
EANCustomerCode | string |
None. |
|
BranchOfficeName | string |
None. |
|
TaxAccounting | string |
None. |
|
SuggestFirstFreeCode | integer |
None. |
|
SalesClerkID | string |
None. |
|
PurchaseClerkID | string |
None. |
|
Name1 | string |
None. |
|
Name2 | string |
None. |
|
Name3 | string |
None. |
|
CustomerStatus | boolean |
None. |
|
Name1Transfer | string |
None. |
|
Name2Transfer | string |
None. |
|
Name3Transfer | string |
None. |
|
CustomerType | string |
None. |
|
Region | string |
None. |
|
EntityType | string |
None. |
|
Street | string |
None. |
|
HomeNumber | string |
None. |
|
CustomerCodeGroup | string |
None. |
|
SupplierExpirationDays | integer |
None. |
|
ExpirationDaysGroupID | string |
None. |
|
DiscountGroupID | string |
None. |
|
SupplierDiscountGroupID | string |
None. |
|
LanguageID | string |
None. |
|
SupplierPriceList | string |
None. |
|
AccountingBookGroupID | string |
None. |
|
SupplierAccountingBookGroupID | string |
None. |
|
DiscountPriceList | string |
None. |
|
OrderBookID | string |
None. |
|
CustomerLocations | CustomerLocationsTemp |
None. |
|
Defaulter | boolean |
None. |
|
UpfrontPayment | boolean |
None. |
|
ShippingMethodId | string |
None. |
|
SearchTag | string |
None. |
|
RecordInserted | date |
None. |
|
RecordInsertedBy | string |
None. |
|
RecordLastModified | date |
None. |
|
RecordLastModifiedBy | string |
None. |
|
InstitutionalSector | string |
None. |
|
NRInstitutionalSector | string |
None. |
|
CustomerRating | string |
None. |
|
InvoicingMethod | string |
None. |
|
AlertMessage | string |
None. |
|
AlertMinimalAmount | decimal number |
None. |
|
BlockingUpMessage | string |
None. |
|
BlockingUpAmount | decimal number |
None. |
|
AlertNumberOfDays | integer |
None. |
|
BlockingUpNumberOfDays | integer |
None. |
|
SIDReporting | boolean |
None. |
|
SIDLimitAmount | decimal number |
None. |
|
AnalyticId | string |
None. |
|
ParityCode | string |
None. |
|
ExternalID | string |
None. |
Request Formats
application/xml, text/xml
Sample:
<Customer xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Code>sample string 1</Code> <Name>sample string 2</Name> <Address>sample string 3</Address> <Country>sample string 4</Country> <PostalCode>sample string 5</PostalCode> <City>sample string 6</City> <ActivityCode>sample string 7</ActivityCode> <RegistrationNumber>sample string 8</RegistrationNumber> <WebSiteURL>sample string 9</WebSiteURL> <SubjectToVAT>sample string 10</SubjectToVAT> <TaxNumber>sample string 11</TaxNumber> <ExpirationDays>1</ExpirationDays> <RebatePercent>12.1</RebatePercent> <Currency>sample string 13</Currency> <PriceList>sample string 14</PriceList> <Notes>sample string 15</Notes> <Usage>sample string 16</Usage> <FirstGroupCode>sample string 17</FirstGroupCode> <SecondGroupCode>sample string 18</SecondGroupCode> <CustomerPayerCode>sample string 19</CustomerPayerCode> <EANCustomerCode>sample string 20</EANCustomerCode> <BranchOfficeName>sample string 21</BranchOfficeName> <TaxAccounting>sample string 22</TaxAccounting> <SuggestFirstFreeCode>1</SuggestFirstFreeCode> <SalesClerkID>sample string 23</SalesClerkID> <PurchaseClerkID>sample string 24</PurchaseClerkID> <Name1>sample string 25</Name1> <Name2>sample string 26</Name2> <Name3>sample string 27</Name3> <CustomerStatus>true</CustomerStatus> <Name1Transfer>sample string 29</Name1Transfer> <Name2Transfer>sample string 30</Name2Transfer> <Name3Transfer>sample string 31</Name3Transfer> <CustomerType>sample string 32</CustomerType> <Region>sample string 33</Region> <EntityType>sample string 34</EntityType> <Street>sample string 35</Street> <HomeNumber>sample string 36</HomeNumber> <CustomerCodeGroup>sample string 37</CustomerCodeGroup> <SupplierExpirationDays>1</SupplierExpirationDays> <ExpirationDaysGroupID>sample string 38</ExpirationDaysGroupID> <DiscountGroupID>sample string 39</DiscountGroupID> <SupplierDiscountGroupID>sample string 40</SupplierDiscountGroupID> <LanguageID>sample string 41</LanguageID> <SupplierPriceList>sample string 42</SupplierPriceList> <AccountingBookGroupID>sample string 43</AccountingBookGroupID> <SupplierAccountingBookGroupID>sample string 44</SupplierAccountingBookGroupID> <DiscountPriceList>sample string 45</DiscountPriceList> <OrderBookID>sample string 46</OrderBookID> <CustomerLocations> <CustomerLocation> <LocationID>sample string 1</LocationID> <DefaultLocation>true</DefaultLocation> </CustomerLocation> <CustomerLocation> <LocationID>sample string 1</LocationID> <DefaultLocation>true</DefaultLocation> </CustomerLocation> </CustomerLocations> <Defaulter>true</Defaulter> <UpfrontPayment>true</UpfrontPayment> <ShippingMethodId>sample string 49</ShippingMethodId> <SearchTag>sample string 50</SearchTag> <RecordInserted>2024-11-23T04:03:37.8897879+01:00</RecordInserted> <RecordInsertedBy>sample string 51</RecordInsertedBy> <RecordLastModified>2024-11-23T04:03:37.8897879+01:00</RecordLastModified> <RecordLastModifiedBy>sample string 52</RecordLastModifiedBy> <InstitutionalSector>sample string 53</InstitutionalSector> <NRInstitutionalSector>sample string 54</NRInstitutionalSector> <CustomerRating>sample string 55</CustomerRating> <InvoicingMethod>sample string 56</InvoicingMethod> <AlertMessage>sample string 57</AlertMessage> <AlertMinimalAmount>58.1</AlertMinimalAmount> <BlockingUpMessage>sample string 59</BlockingUpMessage> <BlockingUpAmount>60.1</BlockingUpAmount> <AlertNumberOfDays>61</AlertNumberOfDays> <BlockingUpNumberOfDays>62</BlockingUpNumberOfDays> <SIDReporting>true</SIDReporting> <SIDLimitAmount>64.1</SIDLimitAmount> <AnalyticId>sample string 65</AnalyticId> <ParityCode>sample string 66</ParityCode> <ExternalID>sample string 67</ExternalID> </Customer>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CreateResultName | Description | Type | Additional information |
---|---|---|---|
Keys | Collection of EntityKeyField |
None. |
|
ResultCode | ExternalResultCode |
None. |
|
Errors | Collection of Error |
None. |
Response Formats
application/xml, text/xml
Sample:
<CreateResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Keys> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> </Keys> <ResultCode>None</ResultCode> <Errors> <Error> <Level>Warning</Level> <Message>sample string 1</Message> </Error> <Error> <Level>Warning</Level> <Message>sample string 1</Message> </Error> </Errors> </CreateResult>