POST api/OutletStock/AssignTrackableStockToHeadquarter
Request Information
URI Parameters
None.
Body Parameters
AssignTrackableStockToHeadquarterRequestName | Description | Type | Additional information |
---|---|---|---|
CreatedByID | integer |
None. |
|
AllTrackableReturnStockToHeadquarterList | Collection of TrackableReturnStockToHeadquarterItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "CreatedByID": 1, "AllTrackableReturnStockToHeadquarterList": [ { "OutletStockHistoryID": 1, "StockHistoryID": 2, "OutletID": 3, "AllTrackableOutletAssignmentItemDetailList": [ { "TrackableForShoppingID": 1 }, { "TrackableForShoppingID": 1 } ] }, { "OutletStockHistoryID": 1, "StockHistoryID": 2, "OutletID": 3, "AllTrackableOutletAssignmentItemDetailList": [ { "TrackableForShoppingID": 1 }, { "TrackableForShoppingID": 1 } ] } ] }
application/xml, text/xml
Sample:
<AssignTrackableStockToHeadquarterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request"> <AllTrackableReturnStockToHeadquarterList xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <d2p1:TrackableReturnStockToHeadquarterItem> <d2p1:AllTrackableOutletAssignmentItemDetailList> <d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableForShoppingID>1</d2p1:TrackableForShoppingID> </d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableForShoppingID>1</d2p1:TrackableForShoppingID> </d2p1:TrackableOutletAssignmentItemDetail> </d2p1:AllTrackableOutletAssignmentItemDetailList> <d2p1:OutletID>3</d2p1:OutletID> <d2p1:OutletStockHistoryID>1</d2p1:OutletStockHistoryID> <d2p1:StockHistoryID>2</d2p1:StockHistoryID> </d2p1:TrackableReturnStockToHeadquarterItem> <d2p1:TrackableReturnStockToHeadquarterItem> <d2p1:AllTrackableOutletAssignmentItemDetailList> <d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableForShoppingID>1</d2p1:TrackableForShoppingID> </d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableOutletAssignmentItemDetail> <d2p1:TrackableForShoppingID>1</d2p1:TrackableForShoppingID> </d2p1:TrackableOutletAssignmentItemDetail> </d2p1:AllTrackableOutletAssignmentItemDetailList> <d2p1:OutletID>3</d2p1:OutletID> <d2p1:OutletStockHistoryID>1</d2p1:OutletStockHistoryID> <d2p1:StockHistoryID>2</d2p1:StockHistoryID> </d2p1:TrackableReturnStockToHeadquarterItem> </AllTrackableReturnStockToHeadquarterList> <CreatedByID>1</CreatedByID> </AssignTrackableStockToHeadquarterRequest>
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>