GET jxc_api/HomePage/GetPurchase?start={start}&end={end}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
start

string

Required

end

string

Required

Body Parameters

None.

Response Information

Resource Description

PurchaseModel
NameDescriptionTypeAdditional information
PurAmount

decimal number

None.

PurchaseList

Collection of SalesPurchase

None.

SupplierRankingList

Collection of RankingInfo

None.

ProductRankingList

Collection of RankingInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "PurAmount": 1.0,
  "PurchaseList": [
    {
      "DateTime": "2024-11-25",
      "InnerDateTime": "2024-11-25 02:34:11",
      "num": 2.0
    },
    {
      "DateTime": "2024-11-25",
      "InnerDateTime": "2024-11-25 02:34:11",
      "num": 2.0
    }
  ],
  "SupplierRankingList": [
    {
      "Index": 1,
      "Id": 2,
      "Value": 3.0,
      "Name": "sample string 4"
    },
    {
      "Index": 1,
      "Id": 2,
      "Value": 3.0,
      "Name": "sample string 4"
    }
  ],
  "ProductRankingList": [
    {
      "Index": 1,
      "Id": 2,
      "Value": 3.0,
      "Name": "sample string 4"
    },
    {
      "Index": 1,
      "Id": 2,
      "Value": 3.0,
      "Name": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<PurchaseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model.Dashboard">
  <_x003C_ProductRankingList_x003E_k__BackingField>
    <RankingInfo>
      <_x003C_Id_x003E_k__BackingField>2</_x003C_Id_x003E_k__BackingField>
      <_x003C_Index_x003E_k__BackingField>1</_x003C_Index_x003E_k__BackingField>
      <_x003C_Name_x003E_k__BackingField>sample string 4</_x003C_Name_x003E_k__BackingField>
      <_x003C_Value_x003E_k__BackingField>3</_x003C_Value_x003E_k__BackingField>
    </RankingInfo>
    <RankingInfo>
      <_x003C_Id_x003E_k__BackingField>2</_x003C_Id_x003E_k__BackingField>
      <_x003C_Index_x003E_k__BackingField>1</_x003C_Index_x003E_k__BackingField>
      <_x003C_Name_x003E_k__BackingField>sample string 4</_x003C_Name_x003E_k__BackingField>
      <_x003C_Value_x003E_k__BackingField>3</_x003C_Value_x003E_k__BackingField>
    </RankingInfo>
  </_x003C_ProductRankingList_x003E_k__BackingField>
  <_x003C_PurAmount_x003E_k__BackingField>1</_x003C_PurAmount_x003E_k__BackingField>
  <_x003C_PurchaseList_x003E_k__BackingField>
    <SalesPurchase>
      <_x003C_InnerDateTime_x003E_k__BackingField>2024-11-25T02:34:11.4317217+08:00</_x003C_InnerDateTime_x003E_k__BackingField>
      <_x003C_num_x003E_k__BackingField>2</_x003C_num_x003E_k__BackingField>
    </SalesPurchase>
    <SalesPurchase>
      <_x003C_InnerDateTime_x003E_k__BackingField>2024-11-25T02:34:11.4317217+08:00</_x003C_InnerDateTime_x003E_k__BackingField>
      <_x003C_num_x003E_k__BackingField>2</_x003C_num_x003E_k__BackingField>
    </SalesPurchase>
  </_x003C_PurchaseList_x003E_k__BackingField>
  <_x003C_SupplierRankingList_x003E_k__BackingField>
    <RankingInfo>
      <_x003C_Id_x003E_k__BackingField>2</_x003C_Id_x003E_k__BackingField>
      <_x003C_Index_x003E_k__BackingField>1</_x003C_Index_x003E_k__BackingField>
      <_x003C_Name_x003E_k__BackingField>sample string 4</_x003C_Name_x003E_k__BackingField>
      <_x003C_Value_x003E_k__BackingField>3</_x003C_Value_x003E_k__BackingField>
    </RankingInfo>
    <RankingInfo>
      <_x003C_Id_x003E_k__BackingField>2</_x003C_Id_x003E_k__BackingField>
      <_x003C_Index_x003E_k__BackingField>1</_x003C_Index_x003E_k__BackingField>
      <_x003C_Name_x003E_k__BackingField>sample string 4</_x003C_Name_x003E_k__BackingField>
      <_x003C_Value_x003E_k__BackingField>3</_x003C_Value_x003E_k__BackingField>
    </RankingInfo>
  </_x003C_SupplierRankingList_x003E_k__BackingField>
</PurchaseModel>