POST api/PurchaseOrder/ListPurchaseOrderItems

Request Information

URI Parameters

None.

Body Parameters

SearchPurchaseOrderItemsRequest
NameDescriptionTypeAdditional information
Code

string

None.

Name

string

None.

PurchaserOrderId

globally unique identifier

None.

PageSize

integer

None.

PageIndex

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Name": "sample string 2",
  "PurchaserOrderId": "c2400360-c2a1-4be5-bb5f-f88cdad86651",
  "PageSize": 1,
  "PageIndex": 1
}

application/xml, text/xml

Sample:
<SearchPurchaseOrderItemsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.PurchaseOrder">
  <Code>sample string 1</Code>
  <Name>sample string 2</Name>
  <PageIndex>1</PageIndex>
  <PageSize>1</PageSize>
  <PurchaserOrderId>c2400360-c2a1-4be5-bb5f-f88cdad86651</PurchaserOrderId>
</SearchPurchaseOrderItemsRequest>

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

Response Information

Resource Description

PaginatorResponseOfPurchaseOrderItemDto
NameDescriptionTypeAdditional information
Count

integer

None.

TotalMoney

decimal number

None.

PayingAmount

decimal number

None.

TotalIncome

decimal number

None.

TotalSpend

decimal number

None.

TotalDebt

decimal number

None.

TotalOrderAmount

decimal number

None.

TotalPaid

decimal number

None.

NhapHang_SoTienDaDua

decimal number

None.

NhapHang_SoLuongSanPham

decimal number

None.

NhapHang_TongTienSanPham

decimal number

None.

NhapHang_HoanTien

decimal number

None.

NhapHang_GhiChuTien

decimal number

None.

Items

Collection of PurchaseOrderItemDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Count": 1,
  "TotalMoney": 2.0,
  "PayingAmount": 3.0,
  "TotalIncome": 4.0,
  "TotalSpend": 5.0,
  "TotalDebt": 6.0,
  "TotalOrderAmount": 7.0,
  "TotalPaid": 8.0,
  "NhapHang_SoTienDaDua": 9.0,
  "NhapHang_SoLuongSanPham": 10.0,
  "NhapHang_TongTienSanPham": 11.0,
  "NhapHang_HoanTien": 12.0,
  "NhapHang_GhiChuTien": 13.0,
  "Items": [
    {
      "Id": 1,
      "ProductId": "47a328ad-aa83-4f00-bc48-b88625dc3850",
      "Quantity": 3,
      "UnitPrice": 4.0,
      "Discount": 5.0,
      "DiscountType": 6,
      "TotalPrice": 7.0,
      "Note": "sample string 8",
      "PurchaseOrderId": "62596392-b041-4934-a7fc-f51af94d7114",
      "ProductCode": "sample string 10",
      "ProductName": "sample string 11",
      "SupplierName": "sample string 12"
    },
    {
      "Id": 1,
      "ProductId": "47a328ad-aa83-4f00-bc48-b88625dc3850",
      "Quantity": 3,
      "UnitPrice": 4.0,
      "Discount": 5.0,
      "DiscountType": 6,
      "TotalPrice": 7.0,
      "Note": "sample string 8",
      "PurchaseOrderId": "62596392-b041-4934-a7fc-f51af94d7114",
      "ProductCode": "sample string 10",
      "ProductName": "sample string 11",
      "SupplierName": "sample string 12"
    }
  ]
}

application/xml, text/xml

Sample:
<PaginatorResponseOfPurchaseOrderItemDtojCUzq9jQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Generics">
  <Count>1</Count>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Common.Model.Dto.PurchaseOrder">
    <d2p1:PurchaseOrderItemDto>
      <d2p1:Discount>5</d2p1:Discount>
      <d2p1:DiscountType>6</d2p1:DiscountType>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Note>sample string 8</d2p1:Note>
      <d2p1:ProductCode>sample string 10</d2p1:ProductCode>
      <d2p1:ProductId>47a328ad-aa83-4f00-bc48-b88625dc3850</d2p1:ProductId>
      <d2p1:ProductName>sample string 11</d2p1:ProductName>
      <d2p1:PurchaseOrderId>62596392-b041-4934-a7fc-f51af94d7114</d2p1:PurchaseOrderId>
      <d2p1:Quantity>3</d2p1:Quantity>
      <d2p1:SupplierName>sample string 12</d2p1:SupplierName>
      <d2p1:TotalPrice>7</d2p1:TotalPrice>
      <d2p1:UnitPrice>4</d2p1:UnitPrice>
    </d2p1:PurchaseOrderItemDto>
    <d2p1:PurchaseOrderItemDto>
      <d2p1:Discount>5</d2p1:Discount>
      <d2p1:DiscountType>6</d2p1:DiscountType>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Note>sample string 8</d2p1:Note>
      <d2p1:ProductCode>sample string 10</d2p1:ProductCode>
      <d2p1:ProductId>47a328ad-aa83-4f00-bc48-b88625dc3850</d2p1:ProductId>
      <d2p1:ProductName>sample string 11</d2p1:ProductName>
      <d2p1:PurchaseOrderId>62596392-b041-4934-a7fc-f51af94d7114</d2p1:PurchaseOrderId>
      <d2p1:Quantity>3</d2p1:Quantity>
      <d2p1:SupplierName>sample string 12</d2p1:SupplierName>
      <d2p1:TotalPrice>7</d2p1:TotalPrice>
      <d2p1:UnitPrice>4</d2p1:UnitPrice>
    </d2p1:PurchaseOrderItemDto>
  </Items>
  <NhapHang_GhiChuTien>13</NhapHang_GhiChuTien>
  <NhapHang_HoanTien>12</NhapHang_HoanTien>
  <NhapHang_SoLuongSanPham>10</NhapHang_SoLuongSanPham>
  <NhapHang_SoTienDaDua>9</NhapHang_SoTienDaDua>
  <NhapHang_TongTienSanPham>11</NhapHang_TongTienSanPham>
  <PayingAmount>3</PayingAmount>
  <TotalDebt>6</TotalDebt>
  <TotalIncome>4</TotalIncome>
  <TotalMoney>2</TotalMoney>
  <TotalOrderAmount>7</TotalOrderAmount>
  <TotalPaid>8</TotalPaid>
  <TotalSpend>5</TotalSpend>
</PaginatorResponseOfPurchaseOrderItemDtojCUzq9jQ>