POST Admin/saveStockHistory

Request Information

URI Parameters

None.

Body Parameters

Collection of StockHistoryDO
NameDescriptionTypeAdditional information
ID

integer

None.

LOCATION

string

None.

PRODUCT_CODE

string

None.

SIZE

string

None.

STOCK

integer

None.

GRN_NO

string

None.

GRN_DATE

date

None.

INVOICE_NO

string

None.

UPLOADED_BY

string

None.

UPLOADED_DATE

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "LOCATION": "sample string 2",
    "PRODUCT_CODE": "sample string 3",
    "SIZE": "sample string 4",
    "STOCK": 5,
    "GRN_NO": "sample string 6",
    "GRN_DATE": "2026-05-22T17:29:29.1978037+00:00",
    "INVOICE_NO": "sample string 8",
    "UPLOADED_BY": "sample string 9",
    "UPLOADED_DATE": "2026-05-22T17:29:29.1978037+00:00"
  },
  {
    "ID": 1,
    "LOCATION": "sample string 2",
    "PRODUCT_CODE": "sample string 3",
    "SIZE": "sample string 4",
    "STOCK": 5,
    "GRN_NO": "sample string 6",
    "GRN_DATE": "2026-05-22T17:29:29.1978037+00:00",
    "INVOICE_NO": "sample string 8",
    "UPLOADED_BY": "sample string 9",
    "UPLOADED_DATE": "2026-05-22T17:29:29.1978037+00:00"
  }
]

text/html

Sample:
[{"ID":1,"LOCATION":"sample string 2","PRODUCT_CODE":"sample string 3","SIZE":"sample string 4","STOCK":5,"GRN_NO":"sample string 6","GRN_DATE":"2026-05-22T17:29:29.1978037+00:00","INVOICE_NO":"sample string 8","UPLOADED_BY":"sample string 9","UPLOADED_DATE":"2026-05-22T17:29:29.1978037+00:00"},{"ID":1,"LOCATION":"sample string 2","PRODUCT_CODE":"sample string 3","SIZE":"sample string 4","STOCK":5,"GRN_NO":"sample string 6","GRN_DATE":"2026-05-22T17:29:29.1978037+00:00","INVOICE_NO":"sample string 8","UPLOADED_BY":"sample string 9","UPLOADED_DATE":"2026-05-22T17:29:29.1978037+00:00"}]

application/xml, text/xml

Sample:
<ArrayOfStockHistoryDO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGM.Models">
  <StockHistoryDO>
    <GRN_DATE>2026-05-22T17:29:29.1978037+00:00</GRN_DATE>
    <GRN_NO>sample string 6</GRN_NO>
    <ID>1</ID>
    <INVOICE_NO>sample string 8</INVOICE_NO>
    <LOCATION>sample string 2</LOCATION>
    <PRODUCT_CODE>sample string 3</PRODUCT_CODE>
    <SIZE>sample string 4</SIZE>
    <STOCK>5</STOCK>
    <UPLOADED_BY>sample string 9</UPLOADED_BY>
    <UPLOADED_DATE>2026-05-22T17:29:29.1978037+00:00</UPLOADED_DATE>
  </StockHistoryDO>
  <StockHistoryDO>
    <GRN_DATE>2026-05-22T17:29:29.1978037+00:00</GRN_DATE>
    <GRN_NO>sample string 6</GRN_NO>
    <ID>1</ID>
    <INVOICE_NO>sample string 8</INVOICE_NO>
    <LOCATION>sample string 2</LOCATION>
    <PRODUCT_CODE>sample string 3</PRODUCT_CODE>
    <SIZE>sample string 4</SIZE>
    <STOCK>5</STOCK>
    <UPLOADED_BY>sample string 9</UPLOADED_BY>
    <UPLOADED_DATE>2026-05-22T17:29:29.1978037+00:00</UPLOADED_DATE>
  </StockHistoryDO>
</ArrayOfStockHistoryDO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Output
NameDescriptionTypeAdditional information
statusCode

integer

None.

message

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "statusCode": 1,
  "message": "sample string 2",
  "data": {}
}

text/html

Sample:
{"statusCode":1,"message":"sample string 2","data":{}}

application/xml, text/xml

Sample:
<Output xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGM.Models">
  <data />
  <message>sample string 2</message>
  <statusCode>1</statusCode>
</Output>