POST api/Services/AddUpdateSupplier

Request Information

URI Parameters

None.

Body Parameters

SupplierEntity
NameDescriptionTypeAdditional information
IsPasswordChange

boolean

None.

Password

string

None.

Suppliers

tbl_Suppliers

None.

Request Formats

application/json, text/json

Sample:
{
  "IsPasswordChange": true,
  "Password": "sample string 2",
  "Suppliers": {
    "SupplierId": 1,
    "StoreId": 2,
    "SupplierCode": "sample string 3",
    "Name": "sample string 4",
    "MobileNo": "sample string 5",
    "PhoneNo": "sample string 6",
    "Address": "sample string 7",
    "Email": "sample string 8",
    "RouteId": 1,
    "IsActive": true,
    "CreatedBy": 1,
    "CreatedDate": "2024-12-23T04:02:57.4010531+05:30",
    "UpdatedBy": 1,
    "UpdatedDate": "2024-12-23T04:02:57.4010531+05:30"
  }
}

text/html, multipart/form-data

Sample:
{"IsPasswordChange":true,"Password":"sample string 2","Suppliers":{"SupplierId":1,"StoreId":2,"SupplierCode":"sample string 3","Name":"sample string 4","MobileNo":"sample string 5","PhoneNo":"sample string 6","Address":"sample string 7","Email":"sample string 8","RouteId":1,"IsActive":true,"CreatedBy":1,"CreatedDate":"2024-12-23T04:02:57.4010531+05:30","UpdatedBy":1,"UpdatedDate":"2024-12-23T04:02:57.4010531+05:30"}}

application/xml, text/xml

Sample:
<SupplierEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entity">
  <IsPasswordChange>true</IsPasswordChange>
  <Password>sample string 2</Password>
  <Suppliers xmlns:d2p1="http://schemas.datacontract.org/2004/07/DataBase">
    <d2p1:Address>sample string 7</d2p1:Address>
    <d2p1:CreatedBy>1</d2p1:CreatedBy>
    <d2p1:CreatedDate>2024-12-23T04:02:57.4010531+05:30</d2p1:CreatedDate>
    <d2p1:Email>sample string 8</d2p1:Email>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:MobileNo>sample string 5</d2p1:MobileNo>
    <d2p1:Name>sample string 4</d2p1:Name>
    <d2p1:PhoneNo>sample string 6</d2p1:PhoneNo>
    <d2p1:RouteId>1</d2p1:RouteId>
    <d2p1:StoreId>2</d2p1:StoreId>
    <d2p1:SupplierCode>sample string 3</d2p1:SupplierCode>
    <d2p1:SupplierId>1</d2p1:SupplierId>
    <d2p1:UpdatedBy>1</d2p1:UpdatedBy>
    <d2p1:UpdatedDate>2024-12-23T04:02:57.4010531+05:30</d2p1:UpdatedDate>
  </Suppliers>
</SupplierEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResponce
NameDescriptionTypeAdditional information
Status

string

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "Data": {}
}

text/html, multipart/form-data

Sample:
{"Status":"sample string 1","Message":"sample string 2","Data":{}}

application/xml, text/xml

Sample:
<APIResponce xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Controllers">
  <Data />
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</APIResponce>