POST ProductBarcode/PostProductBarcode
Adds an additional barcode to a product.
Request Information
URI Parameters
Body Parameters
ClsProductBarcodeAdd| Name | Description | Type | Additional Information |
|---|---|---|---|
| DepartmentId |
The department Id of the product |
string |
Required Max length: 6 |
| ProductId |
The Id of the product |
string |
Required Max length: 10 |
| Barcode |
The barcode to add to the product |
string |
Required Max length: 20 |
Request Formats
application/json, text/json
Sample:
{
"DepartmentId": "sample string 1",
"ProductId": "sample string 2",
"Barcode": "sample string 3"
}
application/xml, text/xml
Sample:
<ClsProductBarcode.ClsProductBarcodeAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory.ProductBarcode"> <Barcode>sample string 3</Barcode> <DepartmentId>sample string 1</DepartmentId> <ProductId>sample string 2</ProductId> </ClsProductBarcode.ClsProductBarcodeAdd>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Adds an additional barcode to a product.
AgvProductBarcode| Name | Description | Type | Additional Information |
|---|---|---|---|
| Status |
0 = Success. 1 = An error occurred. |
string | |
| Message |
Informational message that corresponds to the Status returned. 0 - Message will be "OK". 1 - Detailed message returned to give user an indication of what went wrong. |
string | |
| Count |
Number of barcode results returned. |
string | |
| ProductBarcodes |
List of Properties and Values returned for each Barcode record that matches the request. |
Collection of ClsProductBarcode |
Response Formats
application/json, text/json
Sample:
{
"Status": "sample string 1",
"Message": "sample string 2",
"Count": "2",
"ProductBarcodes": [
{
"DepartmentId": "sample string 1",
"ProductId": "sample string 2",
"Barcode": "sample string 3"
},
{
"DepartmentId": "sample string 1",
"ProductId": "sample string 2",
"Barcode": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<AgvProductBarcode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Product.Barcode">
<Message>sample string 2</Message>
<ProductBarcodes xmlns:d2p1="http://schemas.datacontract.org/2004/07/SKY.Core.Inventory.ProductBarcode">
<d2p1:ClsProductBarcode>
<d2p1:Barcode>sample string 3</d2p1:Barcode>
<d2p1:DepartmentId>sample string 1</d2p1:DepartmentId>
<d2p1:ProductId>sample string 2</d2p1:ProductId>
</d2p1:ClsProductBarcode>
<d2p1:ClsProductBarcode>
<d2p1:Barcode>sample string 3</d2p1:Barcode>
<d2p1:DepartmentId>sample string 1</d2p1:DepartmentId>
<d2p1:ProductId>sample string 2</d2p1:ProductId>
</d2p1:ClsProductBarcode>
</ProductBarcodes>
<Status>sample string 1</Status>
</AgvProductBarcode>