Required permission: | StockTransfer-Transaction.GET |
GET | /StockTransfers/simple | ||
---|---|---|---|
GET | /StockTransfers/simple/page/{Page} | Get records by given a page number | Each page consists of 20 records |
GET | /StockTransfers/simple/StockTransfer/{AcStockTransferMID} | Get a record by given a Document Number | Header and Detail record would be return if found. |
GET | /StockTransfers/simple/DocumentDate/{fromDocumentDate}/{toDocumentDate} | Get a record by given a Document Date | Date format yyyy-MM-dd |
GET | /StockTransfers/simple/EditDate/{fromEditDate}/{toEditDate} | Get a record by given a Edit Date | Date format yyyy-MM-dd |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Page | path | int? | No | |
AcStockTransferMID | path | string | No | |
fromDocumentDate | path | string | No | |
toDocumentDate | path | string | No | |
fromEditDate | path | string | No | |
toEditDate | path | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
StockTransfers | form | List<StockTransferSimple> | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
DocumentHeader | form | AcStockTransferMSimple | No | |
DocumentDetails | form | List<AcStockTransferDSimple> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcStockTransferMID | form | NVARCHAR(20) | Yes | Stock Transfer Document Number |
AcLocationIDFrom | form | NVARCHAR(20) | Yes | Location ID From |
AcLocationIDTo | form | NVARCHAR(20) | Yes | Location ID To |
DocumentDate | form | DATE | Yes | Document Date |
RefDocumentNo | form | NVARCHAR(20) | No | Reference Number |
DocumentRemark | form | NVARCHAR(100) | No | Document Remark |
ExtraRemark1 | form | NVARCHAR(100) | No | Extra Remark 1 |
ExtraRemark2 | form | NVARCHAR(100) | No | Extra Remark 2 |
ExtraRemark3 | form | NVARCHAR(100) | No | Extra Remark 3 |
ExtraRemark4 | form | NVARCHAR(100) | No | Extra Remark 4 |
AcVehicleID | form | NVARCHAR(20) | Yes | Vehicle ID |
AcDriverID | form | NVARCHAR(20) | Yes | Driver ID |
CreateBy | form | NVARCHAR(20) | Yes | Create By |
CreateDate | form | DATETIME | Yes | Create Date |
EditBy | form | NVARCHAR(20) | Yes | Edit By |
EditDate | form | DATETIME | Yes | Create Date |
Stamp | form | INT | Yes | Record Stamp. Always 0 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcStockTransferDID | form | NVARCHAR(40) | Yes | Record ID. Recommend use GUID |
AcStockTransferMID | form | NVARCHAR(20) | Yes | Stock Transfer Document Number |
ItemNo | form | INT | Yes | Item Number |
AcStockID | form | NVARCHAR(40) | Yes | Stock ID |
AcStockUOMID | form | NVARCHAR(20) | Yes | Stock UOM ID |
ItemQuantity | form | NUMERIC(18,4) | Yes | Item Quantity |
ItemRemark1 | form | NVARCHAR(MAX) | Yes | Item Remark 1 |
MatchIsActive | form | NVARCHAR(1) | Yes | Match Is Active |
MatchType | form | NVARCHAR(20) | Yes | Match Type |
MatchDocumentNo | form | NVARCHAR(20) | Yes | Match Document No |
MatchItemNo | form | INT | Yes | Match Item No |
AcStockTransferDSerial | form | List | No | Stock Transfer Serial List. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcStockTransferMID | form | NVARCHAR(20) | Yes | Stock Transfer Number |
ItemNo | form | INTEGER | Yes | Item Number (Referred to AcSupInvoiceD.ItemNo) |
AcStockID | form | NVARCHAR(20) | No | Stock ID |
AcStockUOMID | form | NVARCHAR(20) | No | Stock UOM ID |
StockSerialNumber | form | NVARCHAR(40) | Yes | Stock Serial Number |
ItemQuantity | form | INT | No | Item Quantity. Always 1. |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /StockTransfers/simple HTTP/1.1 Host: snr2u.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"StockTransfers":[{"DocumentHeader":{"AcStockTransferMID":"String","AcLocationIDFrom":"String","AcLocationIDTo":"String","DocumentDate":"\/Date(-62135596800000-0000)\/","RefDocumentNo":"String","DocumentRemark":"String","ExtraRemark1":"String","ExtraRemark2":"String","ExtraRemark3":"String","ExtraRemark4":"String","AcVehicleID":"String","AcDriverID":"String","CreateBy":"String","CreateDate":"\/Date(-62135596800000-0000)\/","EditBy":"String","EditDate":"\/Date(-62135596800000-0000)\/","Stamp":0},"DocumentDetails":[{"AcStockTransferDID":"String","AcStockTransferMID":"String","ItemNo":0,"AcStockID":"String","AcStockUOMID":"String","ItemQuantity":0,"ItemRemark1":"String","MatchIsActive":"String","MatchType":"String","MatchDocumentNo":"String","MatchItemNo":0,"AcStockTransferDSerial":[{"AcStockTransferMID":"String","ItemNo":0,"AcStockID":"String","AcStockUOMID":"String","StockSerialNumber":"String","ItemQuantity":0}]}]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}