GET api/v7/PrePacks/{prePackCode}
Returns a prePack record from the database.
Request Information
URI Parameters
Name | Description | Type | Required? | Additional information |
---|---|---|---|---|
prePackCode * |
Code of the prePack record. |
string |
Yes |
None. |
Body Parameters
None.
Response Information
Resource Description
A response containing an acknowledgment and the requested prePack information.
PrePackName | Description | Type |
---|---|---|
prePackCode |
The PrePackCode is the SKU/Product Code for the prepack |
string |
prePackDescription |
The name/description for the prepack |
string |
prePackProducts |
The list of products and counts for the prepack |
Collection of PrePackProduct |
customerAuditDate |
Audit information |
date |
Response Formats
application/json, text/json
Sample:
{ "prePackCode": "sample string 1", "prePackDescription": "sample string 2", "prePackProducts": [ { "productCode": "sample string 1", "count": 2 }, { "productCode": "sample string 1", "count": 2 } ], "customerAuditDate": "2018-01-01T00:00:00" }
application/xml, text/xml
Sample:
<PrePack xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <prePackCode>sample string 1</prePackCode> <prePackDescription>sample string 2</prePackDescription> <prePackProducts> <PrePackProduct> <productCode>sample string 1</productCode> <count>2</count> </PrePackProduct> <PrePackProduct> <productCode>sample string 1</productCode> <count>2</count> </PrePackProduct> </prePackProducts> <customerAuditDate>2018-01-01T00:00:00</customerAuditDate> </PrePack>