| GET | /purchase/catalog | Get 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
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
{}