Richemont.Booster2.PublicApi

<back to all web services

GetWarehouseStock

Requires Authentication
The following routes are available for this service:
GET/warehouseItems/{brand}/{posCode}Get a list Paginated Warehouse Stock
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class GetWarehouseStock : IPagedRequest
{
    /**
    * Brand
    */
    @ApiMember(Description="Brand", IsRequired=true)
    open var brand:String? = null

    /**
    * POS Legacy
    */
    @ApiMember(Description="POS Legacy", IsRequired=true)
    open var posCode:String? = null

    /**
    * List of Article Codes
    */
    @ApiMember(Description="List of Article Codes")
    open var articleCodes:ArrayList<String>? = null

    /**
    * Index of the result set returned
    */
    @ApiMember(Description="Index of the result set returned")
    override var page:Int? = null

    /**
    * Size of the result set returned
    */
    @ApiMember(Description="Size of the result set returned")
    override var items:Int? = null

    /**
    * Omit precise record count - save on performance
    */
    @ApiMember(Description="Omit precise record count - save on performance")
    override var noCount:Boolean? = null

    /**
    * Sorting expression
    */
    @ApiMember(Description="Sorting expression")
    override var sortBy:String? = null
}

open class GetWarehouseStockResponse
{
    /**
    * Total Pages
    */
    @ApiMember(Description="Total Pages", IsRequired=true)
    open var totalPages:Int? = null

    /**
    * Total Results
    */
    @ApiMember(Description="Total Results", IsRequired=true)
    open var totalResults:Int? = null

    /**
    * Index of the result set returned
    */
    @ApiMember(Description="Index of the result set returned", IsRequired=true)
    open var page:Int? = null

    /**
    * Size of the result set returned
    */
    @ApiMember(Description="Size of the result set returned", IsRequired=true)
    open var items:Int? = null

    /**
    * List of movements
    */
    @ApiMember(Description="List of movements", IsRequired=true)
    open var elements:ArrayList<WarehouseStockElement>? = null
}

open class WarehouseStockElement
{
    /**
    * Article Code
    */
    @ApiMember(Description="Article Code", IsRequired=true)
    open var articleCode:String? = null

    /**
    * Current Stock Quantity
    */
    @ApiMember(Description="Current Stock Quantity", IsRequired=true)
    open var atpQuantity:Int? = null
}

Kotlin GetWarehouseStock DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /warehouseItems/{brand}/{posCode} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"totalPages":0,"totalResults":0,"page":0,"items":0}