POST api/Purchase/AddorUpdatePO

Request Information

URI Parameters

None.

Body Parameters

PurchaseEnitities
NameDescriptionTypeAdditional information
PoId

integer

None.

PoDate

date

None.

Date

string

None.

PoNo

string

None.

SupplierId

integer

None.

SupplierName

string

None.

SupplierInvNo

string

None.

SupplierInvAmt

decimal number

None.

SupplierInvDate

date

None.

SupInvDate

string

None.

City

string

None.

TransportDetails

string

None.

TransportDetailId

integer

None.

LR_No

string

None.

LR_Date

date

None.

LRDate

string

None.

No_of_Packages

string

None.

Total

decimal number

None.

TaxAmount

decimal number

None.

GrandTotal

decimal number

None.

PendAmount

decimal number

None.

RecAmount

decimal number

None.

UserId

integer

None.

purchaseDetails

Collection of PurchaseDetailEnitities

None.

Request Formats

application/json, text/json

Sample:
{
  "PoId": 1,
  "PoDate": "2021-09-26T22:02:55.5103342+05:30",
  "Date": "sample string 3",
  "PoNo": "sample string 4",
  "SupplierId": 1,
  "SupplierName": "sample string 5",
  "SupplierInvNo": "sample string 6",
  "SupplierInvAmt": 7.0,
  "SupplierInvDate": "2021-09-26T22:02:55.5103342+05:30",
  "SupInvDate": "sample string 9",
  "City": "sample string 10",
  "TransportDetails": "sample string 11",
  "TransportDetailId": 12,
  "LR_No": "sample string 13",
  "LR_Date": "2021-09-26T22:02:55.5103342+05:30",
  "LRDate": "sample string 15",
  "No_of_Packages": "sample string 16",
  "Total": 17.0,
  "TaxAmount": 18.0,
  "GrandTotal": 19.0,
  "PendAmount": 20.0,
  "RecAmount": 21.0,
  "UserId": 22,
  "purchaseDetails": [
    {
      "PoDetId": 1,
      "PoId": 2,
      "PoNo": "sample string 3",
      "CategoryId": 4,
      "CategoryName": "sample string 5",
      "SubcategoryId": 6,
      "SubCategoryName": "sample string 7",
      "BrandId": 8,
      "BrandName": "sample string 9",
      "ProductId": 10,
      "ProductName": "sample string 11",
      "SizeId": 12,
      "Size": "sample string 13",
      "ColorId": 14,
      "Color": "sample string 15",
      "Unit": "sample string 16",
      "Qty": "sample string 17",
      "Rate": 18.0,
      "PurchaseQty": "sample string 19",
      "PurchaseRate": 20.0,
      "TaxId": 21,
      "TaxName": "sample string 22",
      "TaxAmount": 23.0,
      "Total": 24.0,
      "GrandTotal": 25.0
    },
    {
      "PoDetId": 1,
      "PoId": 2,
      "PoNo": "sample string 3",
      "CategoryId": 4,
      "CategoryName": "sample string 5",
      "SubcategoryId": 6,
      "SubCategoryName": "sample string 7",
      "BrandId": 8,
      "BrandName": "sample string 9",
      "ProductId": 10,
      "ProductName": "sample string 11",
      "SizeId": 12,
      "Size": "sample string 13",
      "ColorId": 14,
      "Color": "sample string 15",
      "Unit": "sample string 16",
      "Qty": "sample string 17",
      "Rate": 18.0,
      "PurchaseQty": "sample string 19",
      "PurchaseRate": 20.0,
      "TaxId": 21,
      "TaxName": "sample string 22",
      "TaxAmount": 23.0,
      "Total": 24.0,
      "GrandTotal": 25.0
    }
  ]
}

text/html

Sample:
{"PoId":1,"PoDate":"2021-09-26T22:02:55.5103342+05:30","Date":"sample string 3","PoNo":"sample string 4","SupplierId":1,"SupplierName":"sample string 5","SupplierInvNo":"sample string 6","SupplierInvAmt":7.0,"SupplierInvDate":"2021-09-26T22:02:55.5103342+05:30","SupInvDate":"sample string 9","City":"sample string 10","TransportDetails":"sample string 11","TransportDetailId":12,"LR_No":"sample string 13","LR_Date":"2021-09-26T22:02:55.5103342+05:30","LRDate":"sample string 15","No_of_Packages":"sample string 16","Total":17.0,"TaxAmount":18.0,"GrandTotal":19.0,"PendAmount":20.0,"RecAmount":21.0,"UserId":22,"purchaseDetails":[{"PoDetId":1,"PoId":2,"PoNo":"sample string 3","CategoryId":4,"CategoryName":"sample string 5","SubcategoryId":6,"SubCategoryName":"sample string 7","BrandId":8,"BrandName":"sample string 9","ProductId":10,"ProductName":"sample string 11","SizeId":12,"Size":"sample string 13","ColorId":14,"Color":"sample string 15","Unit":"sample string 16","Qty":"sample string 17","Rate":18.0,"PurchaseQty":"sample string 19","PurchaseRate":20.0,"TaxId":21,"TaxName":"sample string 22","TaxAmount":23.0,"Total":24.0,"GrandTotal":25.0},{"PoDetId":1,"PoId":2,"PoNo":"sample string 3","CategoryId":4,"CategoryName":"sample string 5","SubcategoryId":6,"SubCategoryName":"sample string 7","BrandId":8,"BrandName":"sample string 9","ProductId":10,"ProductName":"sample string 11","SizeId":12,"Size":"sample string 13","ColorId":14,"Color":"sample string 15","Unit":"sample string 16","Qty":"sample string 17","Rate":18.0,"PurchaseQty":"sample string 19","PurchaseRate":20.0,"TaxId":21,"TaxName":"sample string 22","TaxAmount":23.0,"Total":24.0,"GrandTotal":25.0}]}

application/xml, text/xml

Sample:
<PurchaseEnitities xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Meridukan_API.Entities.Purchase">
  <City>sample string 10</City>
  <Date>sample string 3</Date>
  <GrandTotal>19</GrandTotal>
  <LRDate>sample string 15</LRDate>
  <LR_Date>2021-09-26T22:02:55.5103342+05:30</LR_Date>
  <LR_No>sample string 13</LR_No>
  <No_of_Packages>sample string 16</No_of_Packages>
  <PendAmount>20</PendAmount>
  <PoDate>2021-09-26T22:02:55.5103342+05:30</PoDate>
  <PoId>1</PoId>
  <PoNo>sample string 4</PoNo>
  <RecAmount>21</RecAmount>
  <SupInvDate>sample string 9</SupInvDate>
  <SupplierId>1</SupplierId>
  <SupplierInvAmt>7</SupplierInvAmt>
  <SupplierInvDate>2021-09-26T22:02:55.5103342+05:30</SupplierInvDate>
  <SupplierInvNo>sample string 6</SupplierInvNo>
  <SupplierName>sample string 5</SupplierName>
  <TaxAmount>18</TaxAmount>
  <Total>17</Total>
  <TransportDetailId>12</TransportDetailId>
  <TransportDetails>sample string 11</TransportDetails>
  <UserId>22</UserId>
  <purchaseDetails>
    <PurchaseDetailEnitities>
      <BrandId>8</BrandId>
      <BrandName>sample string 9</BrandName>
      <CategoryId>4</CategoryId>
      <CategoryName>sample string 5</CategoryName>
      <Color>sample string 15</Color>
      <ColorId>14</ColorId>
      <GrandTotal>25</GrandTotal>
      <PoDetId>1</PoDetId>
      <PoId>2</PoId>
      <PoNo>sample string 3</PoNo>
      <ProductId>10</ProductId>
      <ProductName>sample string 11</ProductName>
      <PurchaseQty>sample string 19</PurchaseQty>
      <PurchaseRate>20</PurchaseRate>
      <Qty>sample string 17</Qty>
      <Rate>18</Rate>
      <Size>sample string 13</Size>
      <SizeId>12</SizeId>
      <SubCategoryName>sample string 7</SubCategoryName>
      <SubcategoryId>6</SubcategoryId>
      <TaxAmount>23</TaxAmount>
      <TaxId>21</TaxId>
      <TaxName>sample string 22</TaxName>
      <Total>24</Total>
      <Unit>sample string 16</Unit>
    </PurchaseDetailEnitities>
    <PurchaseDetailEnitities>
      <BrandId>8</BrandId>
      <BrandName>sample string 9</BrandName>
      <CategoryId>4</CategoryId>
      <CategoryName>sample string 5</CategoryName>
      <Color>sample string 15</Color>
      <ColorId>14</ColorId>
      <GrandTotal>25</GrandTotal>
      <PoDetId>1</PoDetId>
      <PoId>2</PoId>
      <PoNo>sample string 3</PoNo>
      <ProductId>10</ProductId>
      <ProductName>sample string 11</ProductName>
      <PurchaseQty>sample string 19</PurchaseQty>
      <PurchaseRate>20</PurchaseRate>
      <Qty>sample string 17</Qty>
      <Rate>18</Rate>
      <Size>sample string 13</Size>
      <SizeId>12</SizeId>
      <SubCategoryName>sample string 7</SubCategoryName>
      <SubcategoryId>6</SubcategoryId>
      <TaxAmount>23</TaxAmount>
      <TaxId>21</TaxId>
      <TaxName>sample string 22</TaxName>
      <Total>24</Total>
      <Unit>sample string 16</Unit>
    </PurchaseDetailEnitities>
  </purchaseDetails>
</PurchaseEnitities>

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.