| GET | /price/{brand} | Get the list of prices of the requested items |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.MasterFile.ServiceModel
Namespace Global
Namespace Richemont.Booster2.PublicApi.MasterFile.ServiceModel
Public Partial Class DealerCostPrice
'''<Summary>
'''Currency of the Dealer Cost Price
'''</Summary>
<ApiMember(Description:="Currency of the Dealer Cost Price", IsRequired:=true)>
Public Overridable Property currency As String
'''<Summary>
'''Dealer Cost Price of the item
'''</Summary>
<ApiMember(Description:="Dealer Cost Price of the item", IsRequired:=true)>
Public Overridable Property price As Nullable(Of Decimal)
End Class
Public Partial Class GetPrice
Public Sub New()
articleCodes = New List(Of String)
End Sub
'''<Summary>
'''Brand
'''</Summary>
<ApiMember(Description:="Brand", IsRequired:=true)>
Public Overridable Property brand As String
'''<Summary>
'''POS Legacy
'''</Summary>
<ApiMember(Description:="POS Legacy", IsRequired:=true)>
Public Overridable Property posCode As String
'''<Summary>
'''List of Article Codes
'''</Summary>
<ApiMember(Description:="List of Article Codes", IsRequired:=true)>
Public Overridable Property articleCodes As List(Of String)
'''<Summary>
'''Include Dealer Cost Price in the response
'''</Summary>
<ApiMember(Description:="Include Dealer Cost Price in the response", IsRequired:=true)>
Public Overridable Property includeDealerCostPrice As Boolean
End Class
Public Partial Class GetPriceResponse
Inherits List(Of Price)
End Class
Public Partial Class Price
'''<Summary>
'''Reference Code of the item
'''</Summary>
<ApiMember(Description:="Reference Code of the item", IsRequired:=true)>
Public Overridable Property articleCode As String
'''<Summary>
'''Currency of the price
'''</Summary>
<ApiMember(Description:="Currency of the price", IsRequired:=true)>
Public Overridable Property currency As String
'''<Summary>
'''Retail price of the item
'''</Summary>
<ApiMember(Description:="Retail price of the item")>
Public Overridable Property retailSalePrice As Decimal
'''<Summary>
'''Code of currency applied
'''</Summary>
<ApiMember(Description:="Code of currency applied", IsRequired:=true)>
Public Overridable Property priceListCode As String
'''<Summary>
'''Dealer Cost Price
'''</Summary>
<ApiMember(Description:="Dealer Cost Price")>
Public Overridable Property dealerCostPrice As DealerCostPrice
End Class
End Namespace
End Namespace
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /price/{brand} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length []