POST api/purchasebill/save/{option}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
option

integer

Required

Body Parameters

PurchaseBillSaveDto
NameDescriptionTypeAdditional information
InvoiceNo

string

None.

PODate

date

None.

DelDate

date

None.

PaymentTermDays

integer

None.

VendorCode

integer

None.

SubTotal

decimal number

None.

Charges

decimal number

None.

Discount

decimal number

None.

RoundOff

decimal number

None.

TotalAmount

decimal number

None.

OrderNo

integer

None.

Notes

string

None.

PaymentStatus

integer

None.

Items

Collection of PurchaseOrderItemDto

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceNo": "sample string 1",
  "PODate": "2026-08-11T19:45:29.5900107-07:00",
  "DelDate": "2026-08-11T19:45:29.5900107-07:00",
  "PaymentTermDays": 1,
  "VendorCode": 2,
  "SubTotal": 3.0,
  "Charges": 4.0,
  "Discount": 5.0,
  "RoundOff": 6.0,
  "TotalAmount": 7.0,
  "OrderNo": 8,
  "Notes": "sample string 9",
  "PaymentStatus": 10,
  "Items": [
    {
      "ProductId": 1,
      "Qty": 2,
      "Price": 3.0,
      "DiscountAmount": 4.0,
      "TaxPercentage": 5.0,
      "TaxAmount": 6.0,
      "Amount": 7.0,
      "BatchNo": "sample string 8",
      "WareHouseId": 1,
      "LocationId": "sample string 9",
      "ExpiryDate": "2026-08-11T19:45:29.5900107-07:00",
      "MRP": 1.0
    },
    {
      "ProductId": 1,
      "Qty": 2,
      "Price": 3.0,
      "DiscountAmount": 4.0,
      "TaxPercentage": 5.0,
      "TaxAmount": 6.0,
      "Amount": 7.0,
      "BatchNo": "sample string 8",
      "WareHouseId": 1,
      "LocationId": "sample string 9",
      "ExpiryDate": "2026-08-11T19:45:29.5900107-07:00",
      "MRP": 1.0
    }
  ]
}

application/xml, text/xml

Sample:
<PurchaseBillSaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webapp2.Controllers">
  <Charges>4</Charges>
  <DelDate>2026-08-11T19:45:29.5900107-07:00</DelDate>
  <Discount>5</Discount>
  <InvoiceNo>sample string 1</InvoiceNo>
  <Items>
    <PurchaseOrderItemDto>
      <Amount>7</Amount>
      <BatchNo>sample string 8</BatchNo>
      <DiscountAmount>4</DiscountAmount>
      <ExpiryDate>2026-08-11T19:45:29.5900107-07:00</ExpiryDate>
      <LocationId>sample string 9</LocationId>
      <MRP>1</MRP>
      <Price>3</Price>
      <ProductId>1</ProductId>
      <Qty>2</Qty>
      <TaxAmount>6</TaxAmount>
      <TaxPercentage>5</TaxPercentage>
      <WareHouseId>1</WareHouseId>
    </PurchaseOrderItemDto>
    <PurchaseOrderItemDto>
      <Amount>7</Amount>
      <BatchNo>sample string 8</BatchNo>
      <DiscountAmount>4</DiscountAmount>
      <ExpiryDate>2026-08-11T19:45:29.5900107-07:00</ExpiryDate>
      <LocationId>sample string 9</LocationId>
      <MRP>1</MRP>
      <Price>3</Price>
      <ProductId>1</ProductId>
      <Qty>2</Qty>
      <TaxAmount>6</TaxAmount>
      <TaxPercentage>5</TaxPercentage>
      <WareHouseId>1</WareHouseId>
    </PurchaseOrderItemDto>
  </Items>
  <Notes>sample string 9</Notes>
  <OrderNo>8</OrderNo>
  <PODate>2026-08-11T19:45:29.5900107-07:00</PODate>
  <PaymentStatus>10</PaymentStatus>
  <PaymentTermDays>1</PaymentTermDays>
  <RoundOff>6</RoundOff>
  <SubTotal>3</SubTotal>
  <TotalAmount>7</TotalAmount>
  <VendorCode>2</VendorCode>
</PurchaseBillSaveDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.