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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.Purchase.ServiceModel;

namespace Richemont.Booster2.PublicApi.Purchase.ServiceModel
{
    public partial class Article
    {
        ///<summary>
        ///Reference ID / Code of the Article
        ///</summary>
        [ApiMember(Description="Reference ID / Code of the Article", IsRequired=true)]
        public virtual string articleCode { get; set; }

        ///<summary>
        ///Price of the article
        ///</summary>
        [ApiMember(Description="Price of the article", IsRequired=true)]
        public virtual decimal price { get; set; }

        ///<summary>
        ///Currency of the price of the article
        ///</summary>
        [ApiMember(Description="Currency of the price of the article", IsRequired=true)]
        public virtual string currency { get; set; }
    }

    public partial class GetCatalog
    {
        ///<summary>
        ///POS Legacy
        ///</summary>
        [ApiMember(Description="POS Legacy", IsRequired=true)]
        public virtual string posCode { get; set; }

        ///<summary>
        ///Brand Trigram of the POS
        ///</summary>
        [ApiMember(Description="Brand Trigram of the POS", IsRequired=true)]
        public virtual string brand { get; set; }
    }

    public partial class GetCatalogResponse
    {
        public virtual IEnumerable<Article> articles { get; set; }
    }

}

C# GetCatalog DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}