| GET | /GetPricingRequest | Gsid or Pcgs Number is required. Grade, MinGrade and MaxGrade are optional. Specify ApiLevel=Advanced for additional collectible information. |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Cdn.PublicApiV2.RequestObjects
Imports Cdn.PublicApiV2.ResponseObjects
Imports Cdn.PublicApiV2.Dto
Namespace Global
Namespace Cdn.PublicApiV2.Dto
Public Partial Class CdnPricingDataDto
Public Overridable Property GsId As Long
Public Overridable Property Name As String
Public Overridable Property SortingPosition As Integer
Public Overridable Property IsType As Boolean
Public Overridable Property IsSet As Boolean
Public Overridable Property UiParentId As Long
Public Overridable Property PricingData As List(Of CdnPricingItemDto)
End Class
Public Partial Class CdnPricingItemDto
Public Overridable Property Grade As Integer
Public Overridable Property GradeLabel As String
Public Overridable Property IsCac As Boolean
Public Overridable Property CpgVal As String
Public Overridable Property GreyVal As String
Public Overridable Property PcgsVal As String
Public Overridable Property NgcVal As String
Public Overridable Property BlueBookVal As String
End Class
End Namespace
Namespace Cdn.PublicApiV2.RequestObjects
'''<Summary>
'''Retrieve pricing data for a collectible.
'''</Summary>
<Api(Description:="Retrieve pricing data for a collectible.")>
Public Partial Class GetPricingRequest
Public Overridable Property Gsid As Long
Public Overridable Property PcgsNumber As String
Public Overridable Property FrNumber As String
Public Overridable Property Grade As Integer
Public Overridable Property MinGrade As Integer
Public Overridable Property MaxGrade As Integer
Public Overridable Property ApiLevel As String
End Class
End Namespace
Namespace Cdn.PublicApiV2.ResponseObjects
Public Partial Class BaseResponse
Public Overridable Property Total As Integer
Public Overridable Property OpCode As Integer
Public Overridable Property ErrorText As String
Public Overridable Property RequestTime As String
Public Overridable Property ResponseTime As String
Public Overridable Property TotalExecutionTime As String
Public Overridable Property CachedResponse As Boolean
Public Overridable Property PermitAccess As Boolean
Public Overridable Property AccessDeniedMessage As String
End Class
Public Partial Class GetPricingResponse
Inherits BaseResponse
Public Overridable Property Data As List(Of CdnPricingDataDto)
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 /GetPricingRequest HTTP/1.1 Host: cpgpublicapiv2dev.greysheet.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Data":[{"GsId":0,"Name":"String","SortingPosition":0,"IsType":false,"IsSet":false,"UiParentId":0,"PricingData":[{"Grade":0,"GradeLabel":"String","IsCac":false,"CpgVal":"String","GreyVal":"String","PcgsVal":"String","NgcVal":"String","BlueBookVal":"String"}]}],"Total":0,"OpCode":0,"ErrorText":"String","RequestTime":"String","ResponseTime":"String","TotalExecutionTime":"String","CachedResponse":false,"PermitAccess":false,"AccessDeniedMessage":"String"}