| GET | /stock/{brand}/{posCode}/{articleCode} | Get stock details |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| brand | path | string | Yes | Brand |
| posCode | path | string | Yes | POS Legacy |
| articleCode | path | string | Yes | Article Code |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| articleCode | form | string | Yes | Article code |
| brand | form | string | Yes | Brand |
| posCode | form | string | Yes | Pos Code |
| currentStockQuantity | form | int | Yes | Current Stock Quantity |
| sharedStockLocation | form | Pos | Yes | Shared Stock Location |
| stockPositions | form | List<StockPositionItem> | Yes | Stock Positions |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| name | form | string | Yes | Name of the POS |
| posCode | form | string | Yes | POS Code |
| posCodeToBeDisplayed | form | string | Yes | Pos Code To Be Displayed |
| country | form | string | Yes | Country of the POS |
| city | form | string | Yes | City of the POS |
| postalCode | form | string | Yes | Postal Code |
| state | form | string | Yes | State |
| street | form | string | Yes | Street |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| quantity | form | int | Yes | Quantity |
| serialNumber | form | string | No | Serial Number |
| stockDate | form | string | Yes | Stock Date |
| loadedOnDate | form | string | Yes | Loaded On Date |
| type | form | string | Yes | Type e.g. consignment or standard |
| isConsignmentSellable | form | bool | Yes | Is Consignment Sellable |
| unitNetAmount | form | UnitNetAmount | No | Sell-In Price. Disclaimer: this data will be arriving empty/null due to DealerCost project still being in test phase. |
| retailSalesPrice | form | UnitNetAmount | No | Retail Sales Price |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| currencyIsoCode | form | string | Yes | Currency Iso Code |
| value | form | decimal? | Yes | Value |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /stock/{brand}/{posCode}/{articleCode} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetStockDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Stock.ServiceModel">
<articleCode>String</articleCode>
<brand>String</brand>
<currentStockQuantity>0</currentStockQuantity>
<posCode>String</posCode>
<sharedStockLocation>
<city>String</city>
<country>String</country>
<name>String</name>
<posCode>String</posCode>
<posCodeToBeDisplayed>String</posCodeToBeDisplayed>
<postalCode>String</postalCode>
<state>String</state>
<street>String</street>
</sharedStockLocation>
<stockPositions>
<StockPositionItem>
<isConsignmentSellable>false</isConsignmentSellable>
<loadedOnDate>String</loadedOnDate>
<quantity>0</quantity>
<retailSalesPrice>
<currencyIsoCode>String</currencyIsoCode>
<value>0</value>
</retailSalesPrice>
<serialNumber>String</serialNumber>
<stockDate>String</stockDate>
<type>String</type>
<unitNetAmount>
<currencyIsoCode>String</currencyIsoCode>
<value>0</value>
</unitNetAmount>
</StockPositionItem>
</stockPositions>
</GetStockDetailResponse>