GET Integrations/Sun/V1/GetStockLocationMappings?SiteID={SiteID}

Gets the Stock Location Mappings for given site.

Request Information

URI Parameters

Name Type Description Additional information
SiteID integer

Site ID which you want the mappings for

Body Parameters

None.

Response Information

Resource Description

Collection of StockLocationMappingDto
Name Type Description Additional information
SiteID integer

None.

StockLocationID integer

None.

Name string

None.

AccountCode string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "SiteID": 1,
    "StockLocationID": 2,
    "Name": "sample string 3",
    "AccountCode": "sample string 4"
  },
  {
    "SiteID": 1,
    "StockLocationID": 2,
    "Name": "sample string 3",
    "AccountCode": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStockLocationMappingDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.Integrations.SSC.Models.Dto">
  <StockLocationMappingDto>
    <AccountCode>sample string 4</AccountCode>
    <Name>sample string 3</Name>
    <SiteID>1</SiteID>
    <StockLocationID>2</StockLocationID>
  </StockLocationMappingDto>
  <StockLocationMappingDto>
    <AccountCode>sample string 4</AccountCode>
    <Name>sample string 3</Name>
    <SiteID>1</SiteID>
    <StockLocationID>2</StockLocationID>
  </StockLocationMappingDto>
</ArrayOfStockLocationMappingDto>