Richemont.Booster2.PublicApi

<back to all web services

GetCatalog

Requires Authentication
The following routes are available for this service:
GET/purchase/catalogGet a list of purchasable articles for the given Pos and Brand
namespace Richemont.Booster2.PublicApi.Purchase.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Article() = 
        ///<summary>
        ///Reference ID / Code of the Article
        ///</summary>
        [<ApiMember(Description="Reference ID / Code of the Article", IsRequired=true)>]
        member val articleCode:String = null with get,set

        ///<summary>
        ///Price of the article
        ///</summary>
        [<ApiMember(Description="Price of the article", IsRequired=true)>]
        member val price:Decimal = new Decimal() with get,set

        ///<summary>
        ///Currency of the price of the article
        ///</summary>
        [<ApiMember(Description="Currency of the price of the article", IsRequired=true)>]
        member val currency:String = null with get,set

    [<AllowNullLiteral>]
    type GetCatalogResponse() = 
        member val articles:IEnumerable<Article> = null with get,set

    [<AllowNullLiteral>]
    type GetCatalog() = 
        ///<summary>
        ///POS Legacy
        ///</summary>
        [<ApiMember(Description="POS Legacy", IsRequired=true)>]
        member val posCode:String = null with get,set

        ///<summary>
        ///Brand Trigram of the POS
        ///</summary>
        [<ApiMember(Description="Brand Trigram of the POS", IsRequired=true)>]
        member val brand:String = null with get,set

F# GetCatalog DTOs

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

HTTP + JSV

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

GET /purchase/catalog HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}