POST TCPv1/PurchaseOrder/InsertStockForPOProductBatch?Token={Token}&UserID={UserID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Token

string

Required

UserID

integer

Required

Body Parameters

InsertStockForPOProductBatchRequest
NameDescriptionTypeAdditional information
PurchaseOrderID

integer

None.

ProductID

integer

None.

BatchNo

string

None.

ExpiryDate

date

None.

CreatedBy

integer

None.

Qty

integer

None.

ReturnBatch

boolean

None.

JourneyFlag

integer

None.

NoofBoxes

integer

None.

ProductAttribute

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PurchaseOrderID": 1,
  "ProductID": 2,
  "BatchNo": "sample string 3",
  "ExpiryDate": "2026-08-27T04:00:03.6968099+01:00",
  "CreatedBy": 5,
  "Qty": 6,
  "ReturnBatch": true,
  "JourneyFlag": 8,
  "NoofBoxes": 1,
  "ProductAttribute": "sample string 9"
}

application/xml, text/xml

Sample:
<InsertStockForPOProductBatchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartTCPWebAPI.Models.SmartAPI">
  <BatchNo>sample string 3</BatchNo>
  <CreatedBy>5</CreatedBy>
  <ExpiryDate>2026-08-27T04:00:03.6968099+01:00</ExpiryDate>
  <JourneyFlag>8</JourneyFlag>
  <NoofBoxes>1</NoofBoxes>
  <ProductAttribute>sample string 9</ProductAttribute>
  <ProductID>2</ProductID>
  <PurchaseOrderID>1</PurchaseOrderID>
  <Qty>6</Qty>
  <ReturnBatch>true</ReturnBatch>
</InsertStockForPOProductBatchRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.