POST TCPv1/order/product/batch/Add?Token={Token}&UserID={UserID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Token | string |
Required |
|
| UserID | integer |
Required |
Body Parameters
Barcode| Name | Description | Type | Additional information |
|---|---|---|---|
| purchaseorderid | integer |
None. |
|
| productid | integer |
None. |
|
| batchno | string |
None. |
|
| expirydate | date |
None. |
|
| quantity | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"purchaseorderid": 1,
"productid": 2,
"batchno": "sample string 3",
"expirydate": "2026-06-08T00:05:42.0361481+01:00",
"quantity": 5
}
application/xml, text/xml
Sample:
<Barcode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartTCPWebAPI.Models.HHT"> <batchno>sample string 3</batchno> <expirydate>2026-06-08T00:05:42.0361481+01:00</expirydate> <productid>2</productid> <purchaseorderid>1</purchaseorderid> <quantity>5</quantity> </Barcode>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |