POST api/v1/inventoryitems/paging

Request Information

URI Parameters

None.

Body Parameters

GraphInventoryItemPagingParam
NameDescriptionTypeAdditional information
KeySearch

Từ khóa tìm kiếm

string

None.

BranchId

Id chi nhánh

globally unique identifier

None.

CategoryId

Id nhóm hàng hóa

globally unique identifier

None.

IncludeInActive

Có lấy cả món ngừng hoạt động hay không

boolean

None.

Page

Số trang lấy dữ liệu

integer

None.

Limit

Số lượng bản ghi giới hạn

integer

None.

LastSyncDate

date

None.

Version

Phiên bản

string

None.

Request Formats

application/json, text/json

Sample:
{
  "KeySearch": "sample string 1",
  "BranchId": "a12ed052-b70d-4972-b0c8-0aa4c6f2e52e",
  "CategoryId": "98d5ff20-30ab-4caa-a2e4-1bea3eacfd6d",
  "IncludeInActive": true,
  "Page": 4,
  "Limit": 5,
  "LastSyncDate": "2025-06-25T22:07:37.8668661+07:00",
  "Version": "sample string 6"
}

text/html

Sample:
{
  "KeySearch": "sample string 1",
  "BranchId": "a12ed052-b70d-4972-b0c8-0aa4c6f2e52e",
  "CategoryId": "98d5ff20-30ab-4caa-a2e4-1bea3eacfd6d",
  "IncludeInActive": true,
  "Page": 4,
  "Limit": 5,
  "LastSyncDate": "2025-06-25T22:07:37.8661671+07:00",
  "Version": "sample string 6"
}

application/xml, text/xml

Sample:
<GraphInventoryItemPagingParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
  <Version>sample string 6</Version>
  <LastSyncDate>2025-06-25T22:07:37.8661671+07:00</LastSyncDate>
  <Limit>5</Limit>
  <Page>4</Page>
  <BranchId>a12ed052-b70d-4972-b0c8-0aa4c6f2e52e</BranchId>
  <IncludeInActive>true</IncludeInActive>
  <InventoryItemCategoryID>98d5ff20-30ab-4caa-a2e4-1bea3eacfd6d</InventoryItemCategoryID>
  <KeySearch>sample string 1</KeySearch>
</GraphInventoryItemPagingParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GraphServiceActionResult
NameDescriptionTypeAdditional information
Code

Mã HTTP trả về cho client

HttpStatusCode

None.

ErrorType

Loại lỗi

GrapAPIServiceErrorType

None.

ErrorMessage

Thông tin lỗi

string

None.

Data

Dữ liệu trả về cho client

Object

None.

Total

Tổng số bản ghi trên grid

integer

None.

Success

Thực thi Service thành công

boolean

None.

PrimaryKeyValue

Trả về ID của đối tượng khi cất thành công Phục vụ cho việc cập nhật ID của record trên grid sau khi thêm đối tượng

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "Code": 100,
  "ErrorType": 0,
  "ErrorMessage": "sample string 1",
  "Data": {},
  "Total": 3,
  "Success": true,
  "PrimaryKeyValue": {}
}

application/xml, text/xml

Sample:
<GraphServiceActionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.QLNH.BE.BO">
  <ActionType>Login</ActionType>
  <Code>Continue</Code>
  <Data />
  <ErrorMessage>sample string 1</ErrorMessage>
  <ErrorType>None</ErrorType>
  <PrimaryKeyValue />
  <ServerExceptionTraceMessage>sample string 6</ServerExceptionTraceMessage>
  <Success>true</Success>
  <Total>3</Total>
</GraphServiceActionResult>