POST api/OutletStock/AssignTrackableStockToOutlet
Request Information
URI Parameters
None.
Body Parameters
AssignTrackableStockToOutletRequestName | Description | Type | Additional information |
---|---|---|---|
CreatedByID | integer |
None. |
|
AllTrackableOutletAssignmentItemList | Collection of TrackableOutletAssignmentItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "CreatedByID": 1, "AllTrackableOutletAssignmentItemList": [ { "StockHistoryID": 1, "OutletID": 2, "AllTrackableOutletAssignmentItemDetailList": [ { "TrackableForShoppingID": 1 }, { "TrackableForShoppingID": 1 } ] }, { "StockHistoryID": 1, "OutletID": 2, "AllTrackableOutletAssignmentItemDetailList": [ { "TrackableForShoppingID": 1 }, { "TrackableForShoppingID": 1 } ] } ] }
application/xml, text/xml
Sample:
<AssignTrackableStockToOutletRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request"> <AllTrackableOutletAssignmentItemList xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <d2p1:TrackableOutletAssignmentItem> <d2p1:AllTrackableOutletAssignmentItemDetailList> <d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableForShoppingID>1</d2p1:TrackableForShoppingID> </d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableForShoppingID>1</d2p1:TrackableForShoppingID> </d2p1:TrackableOutletAssignmentItemDetail> </d2p1:AllTrackableOutletAssignmentItemDetailList> <d2p1:OutletID>2</d2p1:OutletID> <d2p1:StockHistoryID>1</d2p1:StockHistoryID> </d2p1:TrackableOutletAssignmentItem> <d2p1:TrackableOutletAssignmentItem> <d2p1:AllTrackableOutletAssignmentItemDetailList> <d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableForShoppingID>1</d2p1:TrackableForShoppingID> </d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableForShoppingID>1</d2p1:TrackableForShoppingID> </d2p1:TrackableOutletAssignmentItemDetail> </d2p1:AllTrackableOutletAssignmentItemDetailList> <d2p1:OutletID>2</d2p1:OutletID> <d2p1:StockHistoryID>1</d2p1:StockHistoryID> </d2p1:TrackableOutletAssignmentItem> </AllTrackableOutletAssignmentItemList> <CreatedByID>1</CreatedByID> </AssignTrackableStockToOutletRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseDetailName | Description | Type | Additional information |
---|---|---|---|
ResponseCode | integer |
None. |
|
ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ResponseCode": 1, "ResponseText": "sample string 2" }
application/xml, text/xml
Sample:
<ResponseDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <ResponseCode>1</ResponseCode> <ResponseText>sample string 2</ResponseText> </ResponseDetail>