| GET | /GetPricingRequest | Gsid or Pcgs Number is required. Grade, MinGrade and MaxGrade are optional. Specify ApiLevel=Advanced for additional collectible information. |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
/**
* Retrieve pricing data for a collectible.
*/
@Api(Description="Retrieve pricing data for a collectible.")
open class GetPricingRequest
{
open var Gsid:Long? = null
open var PcgsNumber:String? = null
open var FrNumber:String? = null
open var Grade:Int? = null
open var MinGrade:Int? = null
open var MaxGrade:Int? = null
open var ApiLevel:String? = null
}
open class GetPricingResponse : BaseResponse()
{
open var Data:ArrayList<CdnPricingDataDto>? = null
}
open class BaseResponse
{
open var Total:Int? = null
open var OpCode:Int? = null
open var ErrorText:String? = null
open var RequestTime:String? = null
open var ResponseTime:String? = null
open var TotalExecutionTime:String? = null
open var CachedResponse:Boolean? = null
open var PermitAccess:Boolean? = null
open var AccessDeniedMessage:String? = null
}
open class CdnPricingDataDto
{
open var GsId:Long? = null
open var Name:String? = null
open var SortingPosition:Int? = null
open var IsType:Boolean? = null
open var IsSet:Boolean? = null
open var UiParentId:Long? = null
open var PricingData:ArrayList<CdnPricingItemDto>? = null
}
open class CdnPricingItemDto
{
open var Grade:Int? = null
open var GradeLabel:String? = null
open var IsCac:Boolean? = null
open var CpgVal:String? = null
open var GreyVal:String? = null
open var PcgsVal:String? = null
open var NgcVal:String? = null
open var BlueBookVal:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetPricingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.PublicApiV2.ResponseObjects">
<AccessDeniedMessage>String</AccessDeniedMessage>
<CachedResponse>false</CachedResponse>
<ErrorText>String</ErrorText>
<OpCode>0</OpCode>
<PermitAccess>false</PermitAccess>
<RequestTime>String</RequestTime>
<ResponseTime>String</ResponseTime>
<Total>0</Total>
<TotalExecutionTime>String</TotalExecutionTime>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cdn.PublicApiV2.Dto">
<d2p1:CdnPricingDataDto>
<d2p1:GsId>0</d2p1:GsId>
<d2p1:IsSet>false</d2p1:IsSet>
<d2p1:IsType>false</d2p1:IsType>
<d2p1:Name>String</d2p1:Name>
<d2p1:PricingData>
<d2p1:CdnPricingItemDto>
<d2p1:BlueBookVal>String</d2p1:BlueBookVal>
<d2p1:CpgVal>String</d2p1:CpgVal>
<d2p1:Grade>0</d2p1:Grade>
<d2p1:GradeLabel>String</d2p1:GradeLabel>
<d2p1:GreyVal>String</d2p1:GreyVal>
<d2p1:IsCac>false</d2p1:IsCac>
<d2p1:NgcVal>String</d2p1:NgcVal>
<d2p1:PcgsVal>String</d2p1:PcgsVal>
</d2p1:CdnPricingItemDto>
</d2p1:PricingData>
<d2p1:SortingPosition>0</d2p1:SortingPosition>
<d2p1:UiParentId>0</d2p1:UiParentId>
</d2p1:CdnPricingDataDto>
</Data>
</GetPricingResponse>