| GET | /purchase/catalog | Get a list of purchasable articles for the given Pos and Brand |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.Purchase.ServiceModel
Namespace Global
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 Overridable Property articleCode As String
'''<Summary>
'''Price of the article
'''</Summary>
<ApiMember(Description:="Price of the article", IsRequired:=true)>
Public Overridable Property price As Decimal
'''<Summary>
'''Currency of the price of the article
'''</Summary>
<ApiMember(Description:="Currency of the price of the article", IsRequired:=true)>
Public Overridable Property currency As String
End Class
Public Partial Class GetCatalog
'''<Summary>
'''POS Legacy
'''</Summary>
<ApiMember(Description:="POS Legacy", IsRequired:=true)>
Public Overridable Property posCode As String
'''<Summary>
'''Brand Trigram of the POS
'''</Summary>
<ApiMember(Description:="Brand Trigram of the POS", IsRequired:=true)>
Public Overridable Property brand As String
End Class
Public Partial Class GetCatalogResponse
Public Overridable Property articles As IEnumerable(Of Article)
End Class
End Namespace
End Namespace
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
{}