| 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 .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
articleCode: String,
brand: String,
posCode: String,
currentStockQuantity: 0,
sharedStockLocation:
{
name: String,
posCode: String,
posCodeToBeDisplayed: String,
country: String,
city: String,
postalCode: String,
state: String,
street: String
},
stockPositions:
[
{
quantity: 0,
serialNumber: String,
stockDate: String,
loadedOnDate: String,
type: String,
isConsignmentSellable: False,
unitNetAmount:
{
currencyIsoCode: String,
value: 0
},
retailSalesPrice:
{
currencyIsoCode: String,
value: 0
}
}
]
}