POST api/v1/Supplier/Add

Request Information

URI Parameters

None.

Body Parameters

SupplierModel
NameDescriptionTypeAdditional information
Id

string

None.

SupplierCode

string

None.

SupplierName

string

None.

SupplierShortName

string

None.

TaxCode

string

None.

IdentityCard

string

None.

DateOfBirth

decimal number

None.

SupplierEmployerName

string

None.

SupplierEmployerPhone

string

None.

SupplierEmployerIdentify

string

None.

Address

string

None.

Phone

string

None.

Fax

string

None.

Email

string

None.

Bank

string

None.

AccountBank

string

None.

DebtNorm

decimal number

None.

Disable

boolean

None.

SupplierType

string

None.

SupplierTypeId

string

None.

Note

string

None.

btn_ChangeDisable

string

None.

IsChecked

boolean

None.

AccDebit

string

None.

IM_Barcode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "SupplierCode": "sample string 2",
  "SupplierName": "sample string 3",
  "SupplierShortName": "sample string 4",
  "TaxCode": "sample string 5",
  "IdentityCard": "sample string 6",
  "DateOfBirth": 1.1,
  "SupplierEmployerName": "sample string 7",
  "SupplierEmployerPhone": "sample string 8",
  "SupplierEmployerIdentify": "sample string 9",
  "Address": "sample string 10",
  "Phone": "sample string 11",
  "Fax": "sample string 12",
  "Email": "sample string 13",
  "Bank": "sample string 14",
  "AccountBank": "sample string 15",
  "DebtNorm": 16.0,
  "Disable": true,
  "SupplierType": "sample string 18",
  "SupplierTypeId": "sample string 19",
  "Note": "sample string 20",
  "btn_ChangeDisable": "sample string 21",
  "IsChecked": true,
  "AccDebit": "sample string 23",
  "IM_Barcode": "sample string 24"
}

application/xml, text/xml

Sample:
<SupplierModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AllianceSolidAPI.Shared.Models">
  <AccDebit>sample string 23</AccDebit>
  <AccountBank>sample string 15</AccountBank>
  <Address>sample string 10</Address>
  <Bank>sample string 14</Bank>
  <DateOfBirth>1.1</DateOfBirth>
  <DebtNorm>16</DebtNorm>
  <Disable>true</Disable>
  <Email>sample string 13</Email>
  <Fax>sample string 12</Fax>
  <IM_Barcode>sample string 24</IM_Barcode>
  <Id>sample string 1</Id>
  <IdentityCard>sample string 6</IdentityCard>
  <IsChecked>true</IsChecked>
  <Note>sample string 20</Note>
  <Phone>sample string 11</Phone>
  <SupplierCode>sample string 2</SupplierCode>
  <SupplierEmployerIdentify>sample string 9</SupplierEmployerIdentify>
  <SupplierEmployerName>sample string 7</SupplierEmployerName>
  <SupplierEmployerPhone>sample string 8</SupplierEmployerPhone>
  <SupplierName>sample string 3</SupplierName>
  <SupplierShortName>sample string 4</SupplierShortName>
  <SupplierType>sample string 18</SupplierType>
  <SupplierTypeId>sample string 19</SupplierTypeId>
  <TaxCode>sample string 5</TaxCode>
  <btn_ChangeDisable>sample string 21</btn_ChangeDisable>
</SupplierModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SupplierModel'.

Response Information

Resource Description

EzyResultObjectOfSupplierModel
NameDescriptionTypeAdditional information
Data

SupplierModel

None.

ExtraData

Dictionary of string [key] and Object [value]

None.

StartTime

decimal number

None.

EndTime

decimal number

None.

TotalMili

decimal number

None.

StatusCode

integer

None.

Msg

string

None.

MsgShowInUI

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "Id": "sample string 1",
    "SupplierCode": "sample string 2",
    "SupplierName": "sample string 3",
    "SupplierShortName": "sample string 4",
    "TaxCode": "sample string 5",
    "IdentityCard": "sample string 6",
    "DateOfBirth": 1.1,
    "SupplierEmployerName": "sample string 7",
    "SupplierEmployerPhone": "sample string 8",
    "SupplierEmployerIdentify": "sample string 9",
    "Address": "sample string 10",
    "Phone": "sample string 11",
    "Fax": "sample string 12",
    "Email": "sample string 13",
    "Bank": "sample string 14",
    "AccountBank": "sample string 15",
    "DebtNorm": 16.0,
    "Disable": true,
    "SupplierType": "sample string 18",
    "SupplierTypeId": "sample string 19",
    "Note": "sample string 20",
    "btn_ChangeDisable": "sample string 21",
    "IsChecked": true,
    "AccDebit": "sample string 23",
    "IM_Barcode": "sample string 24"
  },
  "ExtraData": null,
  "StartTime": 1.1,
  "EndTime": 2.1,
  "TotalMili": 3.1,
  "StatusCode": 4,
  "Msg": "sample string 5",
  "MsgShowInUI": "sample string 6"
}

application/xml, text/xml

Sample:
<EzyResultObjectOfSupplierModel3BwjWE5f xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ezy.Module.Library.Message">
  <Msg>sample string 5</Msg>
  <MsgShowInUI>sample string 6</MsgShowInUI>
  <StatusCode>4</StatusCode>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/AllianceSolidAPI.Shared.Models">
    <d2p1:AccDebit>sample string 23</d2p1:AccDebit>
    <d2p1:AccountBank>sample string 15</d2p1:AccountBank>
    <d2p1:Address>sample string 10</d2p1:Address>
    <d2p1:Bank>sample string 14</d2p1:Bank>
    <d2p1:DateOfBirth>1.1</d2p1:DateOfBirth>
    <d2p1:DebtNorm>16</d2p1:DebtNorm>
    <d2p1:Disable>true</d2p1:Disable>
    <d2p1:Email>sample string 13</d2p1:Email>
    <d2p1:Fax>sample string 12</d2p1:Fax>
    <d2p1:IM_Barcode>sample string 24</d2p1:IM_Barcode>
    <d2p1:Id>sample string 1</d2p1:Id>
    <d2p1:IdentityCard>sample string 6</d2p1:IdentityCard>
    <d2p1:IsChecked>true</d2p1:IsChecked>
    <d2p1:Note>sample string 20</d2p1:Note>
    <d2p1:Phone>sample string 11</d2p1:Phone>
    <d2p1:SupplierCode>sample string 2</d2p1:SupplierCode>
    <d2p1:SupplierEmployerIdentify>sample string 9</d2p1:SupplierEmployerIdentify>
    <d2p1:SupplierEmployerName>sample string 7</d2p1:SupplierEmployerName>
    <d2p1:SupplierEmployerPhone>sample string 8</d2p1:SupplierEmployerPhone>
    <d2p1:SupplierName>sample string 3</d2p1:SupplierName>
    <d2p1:SupplierShortName>sample string 4</d2p1:SupplierShortName>
    <d2p1:SupplierType>sample string 18</d2p1:SupplierType>
    <d2p1:SupplierTypeId>sample string 19</d2p1:SupplierTypeId>
    <d2p1:TaxCode>sample string 5</d2p1:TaxCode>
    <d2p1:btn_ChangeDisable>sample string 21</d2p1:btn_ChangeDisable>
  </Data>
  <EndTime>2.1</EndTime>
  <ExtraData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <StartTime>1.1</StartTime>
  <TotalMili>3.1</TotalMili>
</EzyResultObjectOfSupplierModel3BwjWE5f>