POST api/Customer/Customer

Request Information

URI Parameters

None.

Body Parameters

SaveCustomerModel
NameDescriptionTypeAdditional information
CustomerId

integer

None.

CompanyName

string

None.

FirstName

string

None.

LastName

string

None.

Email

string

None.

PrimaryPhone

string

None.

BillingAddressLine1

string

None.

BillingAddressLine2

string

None.

BillingCity

string

None.

BillingPostalCode

string

None.

BillingCountry

string

None.

DeliveryAddressLine1

string

None.

DeliveryAddressLine2

string

None.

DeliveryCity

string

None.

DeliveryPostalCode

string

None.

DeliveryCountry

string

None.

Website

string

None.

BankName

string

None.

AccountName

string

None.

AccountNumber

string

None.

OtherDetail

string

None.

SecondaryPhone

string

None.

CompanyNumber

string

None.

IsReminders

boolean

None.

ExternalCode

string

None.

Type

boolean

None.

SwiftNumber

string

None.

DefaulTheme

integer

None.

Since

date

None.

DefaultDelieveryOption

integer

None.

DefaultCurrency

integer

None.

PaymentTerms

string

None.

CreditDays

integer

None.

CustomerType

integer

None.

ContactFirstName

string

None.

ContactLastName

string

None.

LanguageId

integer

None.

IsDomestic

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "CompanyName": "sample string 2",
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "Email": "sample string 5",
  "PrimaryPhone": "sample string 6",
  "BillingAddressLine1": "sample string 7",
  "BillingAddressLine2": "sample string 8",
  "BillingCity": "sample string 9",
  "BillingPostalCode": "sample string 10",
  "BillingCountry": "sample string 11",
  "DeliveryAddressLine1": "sample string 12",
  "DeliveryAddressLine2": "sample string 13",
  "DeliveryCity": "sample string 14",
  "DeliveryPostalCode": "sample string 15",
  "DeliveryCountry": "sample string 16",
  "Website": "sample string 17",
  "BankName": "sample string 18",
  "AccountName": "sample string 19",
  "AccountNumber": "sample string 20",
  "OtherDetail": "sample string 21",
  "SecondaryPhone": "sample string 22",
  "CompanyNumber": "sample string 23",
  "IsReminders": true,
  "ExternalCode": "sample string 25",
  "Type": true,
  "SwiftNumber": "sample string 27",
  "DefaulTheme": 1,
  "Since": "2021-10-27T08:22:44.5078882+01:00",
  "DefaultDelieveryOption": 1,
  "DefaultCurrency": 28,
  "PaymentTerms": "sample string 29",
  "CreditDays": 1,
  "CustomerType": 1,
  "ContactFirstName": "sample string 30",
  "ContactLastName": "sample string 31",
  "LanguageId": 32,
  "IsDomestic": true
}

text/html

Sample:
{"CustomerId":1,"CompanyName":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","Email":"sample string 5","PrimaryPhone":"sample string 6","BillingAddressLine1":"sample string 7","BillingAddressLine2":"sample string 8","BillingCity":"sample string 9","BillingPostalCode":"sample string 10","BillingCountry":"sample string 11","DeliveryAddressLine1":"sample string 12","DeliveryAddressLine2":"sample string 13","DeliveryCity":"sample string 14","DeliveryPostalCode":"sample string 15","DeliveryCountry":"sample string 16","Website":"sample string 17","BankName":"sample string 18","AccountName":"sample string 19","AccountNumber":"sample string 20","OtherDetail":"sample string 21","SecondaryPhone":"sample string 22","CompanyNumber":"sample string 23","IsReminders":true,"ExternalCode":"sample string 25","Type":true,"SwiftNumber":"sample string 27","DefaulTheme":1,"Since":"2021-10-27T08:22:44.5078882+01:00","DefaultDelieveryOption":1,"DefaultCurrency":28,"PaymentTerms":"sample string 29","CreditDays":1,"CustomerType":1,"ContactFirstName":"sample string 30","ContactLastName":"sample string 31","LanguageId":32,"IsDomestic":true}

application/xml, text/xml

Sample:
<SaveCustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <AccountName>sample string 19</AccountName>
  <AccountNumber>sample string 20</AccountNumber>
  <BankName>sample string 18</BankName>
  <BillingAddressLine1>sample string 7</BillingAddressLine1>
  <BillingAddressLine2>sample string 8</BillingAddressLine2>
  <BillingCity>sample string 9</BillingCity>
  <BillingCountry>sample string 11</BillingCountry>
  <BillingPostalCode>sample string 10</BillingPostalCode>
  <CompanyName>sample string 2</CompanyName>
  <CompanyNumber>sample string 23</CompanyNumber>
  <ContactFirstName>sample string 30</ContactFirstName>
  <ContactLastName>sample string 31</ContactLastName>
  <CreditDays>1</CreditDays>
  <CustomerId>1</CustomerId>
  <CustomerType>1</CustomerType>
  <DefaulTheme>1</DefaulTheme>
  <DefaultCurrency>28</DefaultCurrency>
  <DefaultDelieveryOption>1</DefaultDelieveryOption>
  <DeliveryAddressLine1>sample string 12</DeliveryAddressLine1>
  <DeliveryAddressLine2>sample string 13</DeliveryAddressLine2>
  <DeliveryCity>sample string 14</DeliveryCity>
  <DeliveryCountry>sample string 16</DeliveryCountry>
  <DeliveryPostalCode>sample string 15</DeliveryPostalCode>
  <Email>sample string 5</Email>
  <ExternalCode>sample string 25</ExternalCode>
  <FirstName>sample string 3</FirstName>
  <IsDomestic>true</IsDomestic>
  <IsReminders>true</IsReminders>
  <LanguageId>32</LanguageId>
  <LastName>sample string 4</LastName>
  <OtherDetail>sample string 21</OtherDetail>
  <PaymentTerms>sample string 29</PaymentTerms>
  <PrimaryPhone>sample string 6</PrimaryPhone>
  <SecondaryPhone>sample string 22</SecondaryPhone>
  <Since>2021-10-27T08:22:44.5078882+01:00</Since>
  <SwiftNumber>sample string 27</SwiftNumber>
  <Type>true</Type>
  <Website>sample string 17</Website>
</SaveCustomerModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.