POST api/v1/StockReturnSave

Request Information

URI Parameters

None.

Body Parameters

StockTransferSaveInput
NameDescriptionTypeAdditional information
TranID

integer

None.

RefNo

string

None.

Narration

string

None.

FromLocID

integer

None.

ToLocID

integer

None.

UserID

integer

None.

CompID

integer

None.

TranType

string

None.

TranDate

date

None.

json

string

None.

Result

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TranID": 1,
  "RefNo": "sample string 2",
  "Narration": "sample string 3",
  "FromLocID": 4,
  "ToLocID": 5,
  "UserID": 6,
  "CompID": 7,
  "TranType": "sample string 8",
  "TranDate": "2025-12-15T02:50:02.1368911+05:30",
  "json": "sample string 10",
  "Result": 11
}

application/xml, text/xml

Sample:
<StockTransferSaveInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <CompID>7</CompID>
  <FromLocID>4</FromLocID>
  <Narration>sample string 3</Narration>
  <RefNo>sample string 2</RefNo>
  <Result>11</Result>
  <ToLocID>5</ToLocID>
  <TranDate>2025-12-15T02:50:02.1368911+05:30</TranDate>
  <TranID>1</TranID>
  <TranType>sample string 8</TranType>
  <UserID>6</UserID>
  <json>sample string 10</json>
</StockTransferSaveInput>

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

Response Information

Resource Description

StockTransferSaveModel
NameDescriptionTypeAdditional information
Result

integer

None.

Error

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": 1,
  "Error": "sample string 2"
}

application/xml, text/xml

Sample:
<StockTransferSaveModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <Error>sample string 2</Error>
  <Result>1</Result>
</StockTransferSaveModel>