POST api/Supplier/Supplier

Request Information

URI Parameters

None.

Body Parameters

SaveSupplierModel
NameDescriptionTypeAdditional information
SupplierId

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.

SecondaryPhone

string

None.

CompanyNumber

string

None.

IsReminders

boolean

None.

ExternalCode

string

None.

Type

boolean

None.

DefaulTheme

integer

None.

Since

date

None.

DefaultCurrency

integer

None.

PaymentTerms

string

None.

Supplierbanklist

Collection of Supplierbanklist

None.

AccountNameId

integer

None.

CustomerType

integer

None.

ContactFirstName

string

None.

ContactLastName

string

None.

LanguageId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SupplierId": 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",
  "SecondaryPhone": "sample string 18",
  "CompanyNumber": "sample string 19",
  "IsReminders": true,
  "ExternalCode": "sample string 21",
  "Type": true,
  "DefaulTheme": 1,
  "Since": "2021-10-27T06:52:48.9110855+01:00",
  "DefaultCurrency": 23,
  "PaymentTerms": "sample string 24",
  "Supplierbanklist": [
    {
      "BankName": "sample string 1",
      "AccountName": "sample string 2",
      "AccountNumber": "sample string 3",
      "OtherDetail": "sample string 4",
      "SwiftNumber": "sample string 5",
      "SupplierBankInformationId": 6,
      "SupplierId": 7,
      "IsDomestic": true,
      "IsDefault": true
    },
    {
      "BankName": "sample string 1",
      "AccountName": "sample string 2",
      "AccountNumber": "sample string 3",
      "OtherDetail": "sample string 4",
      "SwiftNumber": "sample string 5",
      "SupplierBankInformationId": 6,
      "SupplierId": 7,
      "IsDomestic": true,
      "IsDefault": true
    }
  ],
  "AccountNameId": 25,
  "CustomerType": 1,
  "ContactFirstName": "sample string 26",
  "ContactLastName": "sample string 27",
  "LanguageId": 28
}

text/html

Sample:
{"SupplierId":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","SecondaryPhone":"sample string 18","CompanyNumber":"sample string 19","IsReminders":true,"ExternalCode":"sample string 21","Type":true,"DefaulTheme":1,"Since":"2021-10-27T06:52:48.9110855+01:00","DefaultCurrency":23,"PaymentTerms":"sample string 24","Supplierbanklist":[{"BankName":"sample string 1","AccountName":"sample string 2","AccountNumber":"sample string 3","OtherDetail":"sample string 4","SwiftNumber":"sample string 5","SupplierBankInformationId":6,"SupplierId":7,"IsDomestic":true,"IsDefault":true},{"BankName":"sample string 1","AccountName":"sample string 2","AccountNumber":"sample string 3","OtherDetail":"sample string 4","SwiftNumber":"sample string 5","SupplierBankInformationId":6,"SupplierId":7,"IsDomestic":true,"IsDefault":true}],"AccountNameId":25,"CustomerType":1,"ContactFirstName":"sample string 26","ContactLastName":"sample string 27","LanguageId":28}

application/xml, text/xml

Sample:
<SaveSupplierModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <AccountNameId>25</AccountNameId>
  <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 19</CompanyNumber>
  <ContactFirstName>sample string 26</ContactFirstName>
  <ContactLastName>sample string 27</ContactLastName>
  <CustomerType>1</CustomerType>
  <DefaulTheme>1</DefaulTheme>
  <DefaultCurrency>23</DefaultCurrency>
  <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 21</ExternalCode>
  <FirstName>sample string 3</FirstName>
  <IsReminders>true</IsReminders>
  <LanguageId>28</LanguageId>
  <LastName>sample string 4</LastName>
  <PaymentTerms>sample string 24</PaymentTerms>
  <PrimaryPhone>sample string 6</PrimaryPhone>
  <SecondaryPhone>sample string 18</SecondaryPhone>
  <Since>2021-10-27T06:52:48.9110855+01:00</Since>
  <SupplierId>1</SupplierId>
  <Supplierbanklist>
    <Supplierbanklist>
      <AccountName>sample string 2</AccountName>
      <AccountNumber>sample string 3</AccountNumber>
      <BankName>sample string 1</BankName>
      <IsDefault>true</IsDefault>
      <IsDomestic>true</IsDomestic>
      <OtherDetail>sample string 4</OtherDetail>
      <SupplierBankInformationId>6</SupplierBankInformationId>
      <SupplierId>7</SupplierId>
      <SwiftNumber>sample string 5</SwiftNumber>
    </Supplierbanklist>
    <Supplierbanklist>
      <AccountName>sample string 2</AccountName>
      <AccountNumber>sample string 3</AccountNumber>
      <BankName>sample string 1</BankName>
      <IsDefault>true</IsDefault>
      <IsDomestic>true</IsDomestic>
      <OtherDetail>sample string 4</OtherDetail>
      <SupplierBankInformationId>6</SupplierBankInformationId>
      <SupplierId>7</SupplierId>
      <SwiftNumber>sample string 5</SwiftNumber>
    </Supplierbanklist>
  </Supplierbanklist>
  <Type>true</Type>
  <Website>sample string 17</Website>
</SaveSupplierModel>

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.