| GET | /purchase/catalog | Get 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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{}