POST api/BulkSales/AddBulkSales

Request Information

URI Parameters

None.

Body Parameters

BulkSalesSaveModels
NameDescriptionTypeAdditional information
BS_UserType

string

Required

BS_StockistSpeedSearch

StockiestSpeedSearchModels

Required

BS_BillCustomer_Id

integer

None.

BS_Bill_Name

string

Required

Max length: 50

BS_Bill_Email

string

Max length: 50

BS_Bill_MobileNo

integer

Required

BS_Bill_Address

string

Required

Max length: 500

BS_Bill_Pincode

integer

Required

BS_Ship_Name

string

Required

Max length: 50

BS_Ship_Email

string

Max length: 50

BS_Ship_MobileNo

integer

Required

BS_Ship_Address

string

Required

Max length: 500

BS_Ship_Pincode

integer

Required

BS_GST_TIN_NO

string

None.

BulkSalesList

Collection of BulkSalesListSaveModels

Required

PartnerId

integer

None.

PartnerName

string

None.

ProductSerialNo

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "BS_UserType": "sample string 1",
  "BS_StockistSpeedSearch": {
    "SK_Id": 1,
    "SK_Code": "sample string 2",
    "SK_Name": "sample string 3"
  },
  "BS_BillCustomer_Id": 2,
  "BS_Bill_Name": "sample string 3",
  "BS_Bill_Email": "sample string 4",
  "BS_Bill_MobileNo": 5,
  "BS_Bill_Address": "sample string 6",
  "BS_Bill_Pincode": 7,
  "BS_Ship_Name": "sample string 8",
  "BS_Ship_Email": "sample string 9",
  "BS_Ship_MobileNo": 10,
  "BS_Ship_Address": "sample string 11",
  "BS_Ship_Pincode": 12,
  "BS_GST_TIN_NO": "sample string 13",
  "BulkSalesList": [
    {
      "ProductId": 1,
      "ProductName": "sample string 2",
      "PackagingId": 3,
      "PackagingCode": "sample string 4",
      "Qty": 5,
      "CustomerPrice": 6.0,
      "VAT_Rate": 7.0,
      "ProductSerialNo": "sample string 8"
    },
    {
      "ProductId": 1,
      "ProductName": "sample string 2",
      "PackagingId": 3,
      "PackagingCode": "sample string 4",
      "Qty": 5,
      "CustomerPrice": 6.0,
      "VAT_Rate": 7.0,
      "ProductSerialNo": "sample string 8"
    }
  ],
  "PartnerId": 14,
  "PartnerName": "sample string 15",
  "ProductSerialNo": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<BulkSalesSaveModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <BS_BillCustomer_Id>2</BS_BillCustomer_Id>
  <BS_Bill_Address>sample string 6</BS_Bill_Address>
  <BS_Bill_Email>sample string 4</BS_Bill_Email>
  <BS_Bill_MobileNo>5</BS_Bill_MobileNo>
  <BS_Bill_Name>sample string 3</BS_Bill_Name>
  <BS_Bill_Pincode>7</BS_Bill_Pincode>
  <BS_GST_TIN_NO>sample string 13</BS_GST_TIN_NO>
  <BS_Ship_Address>sample string 11</BS_Ship_Address>
  <BS_Ship_Email>sample string 9</BS_Ship_Email>
  <BS_Ship_MobileNo>10</BS_Ship_MobileNo>
  <BS_Ship_Name>sample string 8</BS_Ship_Name>
  <BS_Ship_Pincode>12</BS_Ship_Pincode>
  <BS_StockistSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:SK_Code>sample string 2</d2p1:SK_Code>
    <d2p1:SK_Id>1</d2p1:SK_Id>
    <d2p1:SK_Name>sample string 3</d2p1:SK_Name>
  </BS_StockistSpeedSearch>
  <BS_UserType>sample string 1</BS_UserType>
  <BulkSalesList>
    <BulkSalesListSaveModels>
      <CustomerPrice>6</CustomerPrice>
      <PackagingCode>sample string 4</PackagingCode>
      <PackagingId>3</PackagingId>
      <ProductId>1</ProductId>
      <ProductName>sample string 2</ProductName>
      <ProductSerialNo>sample string 8</ProductSerialNo>
      <Qty>5</Qty>
      <VAT_Rate>7</VAT_Rate>
    </BulkSalesListSaveModels>
    <BulkSalesListSaveModels>
      <CustomerPrice>6</CustomerPrice>
      <PackagingCode>sample string 4</PackagingCode>
      <PackagingId>3</PackagingId>
      <ProductId>1</ProductId>
      <ProductName>sample string 2</ProductName>
      <ProductSerialNo>sample string 8</ProductSerialNo>
      <Qty>5</Qty>
      <VAT_Rate>7</VAT_Rate>
    </BulkSalesListSaveModels>
  </BulkSalesList>
  <PartnerId>14</PartnerId>
  <PartnerName>sample string 15</PartnerName>
  <ProductSerialNo xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ProductSerialNo>
</BulkSalesSaveModels>

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 'BulkSalesSaveModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.