POST jxc_api/SimpleResource/GetSimpleProductsV2

Request Information

URI Parameters

None.

Body Parameters

ProductCondition
NameDescriptionTypeAdditional information
WhId

integer

None.

CatIds

Collection of integer

None.

ShowZeroQTY

boolean

None.

IsAp

boolean

None.

ShowDisabled

boolean

None.

ShowDisabledExt

integer

None.

Ftype

integer

None.

Keywords

string

None.

LoadStockData

boolean

None.

FilterSpecialProd

boolean

None.

ShowDisabledApProd

boolean

None.

scene

SimpleProdcutScene

None.

CategoryKeyword

string

None.

PageIndex

integer

None.

PageSize

integer

None.

UsePager

boolean

None.

CurrUserSn

integer

None.

CanViewAllBill

boolean

None.

CanOpeAllWh

boolean

None.

OpeWhList

Collection of integer

None.

DocumentDateType

integer

None.

DocumentDateArr

Collection of date

None.

DeliveryDateType

integer

None.

DeliveryDateArr

Collection of date

None.

OffDateType

integer

None.

OffDateArr

Collection of date

None.

InventoryDateType

integer

None.

InventoryDateArr

Collection of date

None.

Request Formats

application/json, text/json

Sample:
{
  "WhId": 1,
  "CatIds": [
    1,
    2
  ],
  "ShowZeroQTY": true,
  "IsAp": true,
  "ShowDisabled": true,
  "ShowDisabledExt": 1,
  "Ftype": 1040,
  "Keywords": "sample string 5",
  "LoadStockData": true,
  "FilterSpecialProd": true,
  "ShowDisabledApProd": true,
  "scene": 0,
  "CategoryKeyword": "sample string 9",
  "PageIndex": 10,
  "PageSize": 11,
  "UsePager": true,
  "CurrUserSn": 13,
  "CanViewAllBill": true,
  "CanOpeAllWh": true,
  "OpeWhList": [
    1,
    2
  ],
  "DocumentDateType": 16,
  "DocumentDateArr": [
    "2024-11-25 02:50:24",
    "2024-11-25 02:50:24"
  ],
  "DeliveryDateType": 17,
  "DeliveryDateArr": [
    "2024-11-25 02:50:24",
    "2024-11-25 02:50:24"
  ],
  "OffDateType": 18,
  "OffDateArr": [
    "2024-11-25 02:50:24",
    "2024-11-25 02:50:24"
  ],
  "InventoryDateType": 19,
  "InventoryDateArr": [
    "2024-11-25 02:50:24",
    "2024-11-25 02:50:24"
  ]
}

application/xml, text/xml

Sample:
<ProductCondition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.NewApi">
  <_x003C_DeliveryDateArr_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.Setting">
    <d2p1:dateTime>2024-11-25T02:50:24.6805945+08:00</d2p1:dateTime>
    <d2p1:dateTime>2024-11-25T02:50:24.6805945+08:00</d2p1:dateTime>
  </_x003C_DeliveryDateArr_x003E_k__BackingField>
  <_x003C_DeliveryDateType_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.Setting">17</_x003C_DeliveryDateType_x003E_k__BackingField>
  <_x003C_DocumentDateArr_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.Setting">
    <d2p1:dateTime>2024-11-25T02:50:24.6805945+08:00</d2p1:dateTime>
    <d2p1:dateTime>2024-11-25T02:50:24.6805945+08:00</d2p1:dateTime>
  </_x003C_DocumentDateArr_x003E_k__BackingField>
  <_x003C_DocumentDateType_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.Setting">16</_x003C_DocumentDateType_x003E_k__BackingField>
  <_x003C_InventoryDateArr_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.Setting">
    <d2p1:dateTime>2024-11-25T02:50:24.6805945+08:00</d2p1:dateTime>
    <d2p1:dateTime>2024-11-25T02:50:24.6805945+08:00</d2p1:dateTime>
  </_x003C_InventoryDateArr_x003E_k__BackingField>
  <_x003C_InventoryDateType_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.Setting">19</_x003C_InventoryDateType_x003E_k__BackingField>
  <_x003C_OffDateArr_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.Setting">
    <d2p1:dateTime>2024-11-25T02:50:24.6805945+08:00</d2p1:dateTime>
    <d2p1:dateTime>2024-11-25T02:50:24.6805945+08:00</d2p1:dateTime>
  </_x003C_OffDateArr_x003E_k__BackingField>
  <_x003C_OffDateType_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Abstraction.Setting">18</_x003C_OffDateType_x003E_k__BackingField>
  <_x003C_CanOpeAllWh_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Setting">true</_x003C_CanOpeAllWh_x003E_k__BackingField>
  <_x003C_CanViewAllBill_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Setting">true</_x003C_CanViewAllBill_x003E_k__BackingField>
  <_x003C_CurrUserSn_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Setting">13</_x003C_CurrUserSn_x003E_k__BackingField>
  <_x003C_OpeWhList_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Setting">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </_x003C_OpeWhList_x003E_k__BackingField>
  <_x003C_PageIndex_x003E_k__BackingField>10</_x003C_PageIndex_x003E_k__BackingField>
  <_x003C_PageSize_x003E_k__BackingField>11</_x003C_PageSize_x003E_k__BackingField>
  <_x003C_UsePager_x003E_k__BackingField>true</_x003C_UsePager_x003E_k__BackingField>
  <_x003C_CategoryKeyword_x003E_k__BackingField>sample string 9</_x003C_CategoryKeyword_x003E_k__BackingField>
  <_x003C_Ftype_x003E_k__BackingField>0</_x003C_Ftype_x003E_k__BackingField>
  <_x003C_CatIds_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </_x003C_CatIds_x003E_k__BackingField>
  <_x003C_FilterSpecialProd_x003E_k__BackingField>true</_x003C_FilterSpecialProd_x003E_k__BackingField>
  <_x003C_IsAp_x003E_k__BackingField>true</_x003C_IsAp_x003E_k__BackingField>
  <_x003C_Keywords_x003E_k__BackingField>sample string 5</_x003C_Keywords_x003E_k__BackingField>
  <_x003C_LoadStockData_x003E_k__BackingField>true</_x003C_LoadStockData_x003E_k__BackingField>
  <_x003C_ShowDisabledApProd_x003E_k__BackingField>true</_x003C_ShowDisabledApProd_x003E_k__BackingField>
  <_x003C_ShowDisabledExt_x003E_k__BackingField>1</_x003C_ShowDisabledExt_x003E_k__BackingField>
  <_x003C_ShowDisabled_x003E_k__BackingField>true</_x003C_ShowDisabled_x003E_k__BackingField>
  <_x003C_ShowZeroQTY_x003E_k__BackingField>true</_x003C_ShowZeroQTY_x003E_k__BackingField>
  <_x003C_WhId_x003E_k__BackingField>1</_x003C_WhId_x003E_k__BackingField>
  <_x003C_scene_x003E_k__BackingField>MANUAL</_x003C_scene_x003E_k__BackingField>
</ProductCondition>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of SimpleProductNew
NameDescriptionTypeAdditional information
ProdId

integer

None.

ProdName

string

None.

TaxRate

decimal number

None.

ProdNo

string

None.

Spec

string

None.

Brand

string

None.

ProdLocation

string

None.

Note

string

None.

CategoryId

integer

None.

UnitId

integer

None.

WhId

integer

None.

ApId

integer

None.

ApName

string

None.

UseAp

boolean

None.

UseMultiUnits

boolean

None.

Image

string

None.

SaleUnitId

integer

None.

SaleUnitName

string

None.

PurUnitId

integer

None.

PurUnitName

string

None.

StockUnitId

integer

None.

StockUnitName

string

None.

BatchEnabled

boolean

None.

SerialEnabled

boolean

None.

LifeTimeEnabled

boolean

None.

LifeTime

integer

None.

BatchNo

string

None.

LifeTimeUnit

integer

None.

ExpDateCalMethodType

integer

None.

SerialNoItems

Collection of ProductSerialNoViewModel

None.

BillDirection

ProductTransferAction

None.

CategoryName

string

None.

WhName

string

None.

UnitName

string

None.

QTY

decimal number

None.

AvailableQTY

decimal number

None.

LifeTimeUnitName

string

None.

ProductionDate

string

None.

ExpirationDate

string

None.

Stocks

SimpleStockInfo

None.

Response Formats

application/json, text/json

Sample:
[
  null,
  {
    "ProdId": 1,
    "ProdName": "sample string 2",
    "TaxRate": 3.0,
    "ProdNo": "sample string 4",
    "Spec": "sample string 5",
    "Brand": "sample string 6",
    "ProdLocation": "sample string 7",
    "Note": "sample string 8",
    "CategoryId": 9,
    "UnitId": 10,
    "WhId": 11,
    "ApId": 12,
    "ApName": "sample string 13",
    "UseAp": true,
    "UseMultiUnits": true,
    "Image": "sample string 16",
    "SaleUnitId": 17,
    "SaleUnitName": "sample string 18",
    "PurUnitId": 19,
    "PurUnitName": "sample string 20",
    "StockUnitId": 21,
    "StockUnitName": "sample string 22",
    "BatchEnabled": true,
    "SerialEnabled": true,
    "LifeTimeEnabled": true,
    "LifeTime": 26,
    "BatchNo": "sample string 27",
    "LifeTimeUnit": 28,
    "ExpDateCalMethodType": 29,
    "SerialNoItems": [
      {
        "FlowId": "sample string 1",
        "SerialNo": "sample string 2",
        "SerialNote": "sample string 3"
      },
      {
        "FlowId": "sample string 1",
        "SerialNo": "sample string 2",
        "SerialNote": "sample string 3"
      }
    ],
    "BillDirection": 1001,
    "CategoryName": "sample string 30",
    "WhName": "sample string 31",
    "UnitName": "sample string 32",
    "QTY": 33.0,
    "AvailableQTY": 34.0,
    "LifeTimeUnitName": "",
    "ProductionDate": "",
    "ExpirationDate": "",
    "Stocks": null
  }
]

application/xml, text/xml

Sample:
<ArrayOfSimpleProductNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Framework">
  <SimpleProductNew i:nil="true" />
  <SimpleProductNew>
    <ProductionDate></ProductionDate>
    <Stocks xmlns:d3p1="http://schemas.datacontract.org/2004/07/LemonScm.Model.NewApi.BaseData.Product" i:nil="true" />
  </SimpleProductNew>
</ArrayOfSimpleProductNew>