Cdn Public Collector's Pricing Guide (CPG) API V2

<back to all web services

GetPricingRequest

Pricing

Retrieve pricing data for a collectible.

The following routes are available for this service:
GET/GetPricingRequestGsid 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.*;

public class dtos
{

    /**
    * Retrieve pricing data for a collectible.
    */
    @Api(Description="Retrieve pricing data for a collectible.")
    public static class GetPricingRequest
    {
        public Long Gsid = null;
        public String PcgsNumber = null;
        public String FrNumber = null;
        public Integer Grade = null;
        public Integer MinGrade = null;
        public Integer MaxGrade = null;
        public String ApiLevel = null;
        
        public Long getGsid() { return Gsid; }
        public GetPricingRequest setGsid(Long value) { this.Gsid = value; return this; }
        public String getPcgsNumber() { return PcgsNumber; }
        public GetPricingRequest setPcgsNumber(String value) { this.PcgsNumber = value; return this; }
        public String getFrNumber() { return FrNumber; }
        public GetPricingRequest setFrNumber(String value) { this.FrNumber = value; return this; }
        public Integer getGrade() { return Grade; }
        public GetPricingRequest setGrade(Integer value) { this.Grade = value; return this; }
        public Integer getMinGrade() { return MinGrade; }
        public GetPricingRequest setMinGrade(Integer value) { this.MinGrade = value; return this; }
        public Integer getMaxGrade() { return MaxGrade; }
        public GetPricingRequest setMaxGrade(Integer value) { this.MaxGrade = value; return this; }
        public String getApiLevel() { return ApiLevel; }
        public GetPricingRequest setApiLevel(String value) { this.ApiLevel = value; return this; }
    }

    public static class GetPricingResponse extends BaseResponse
    {
        public ArrayList<CdnPricingDataDto> Data = null;
        
        public ArrayList<CdnPricingDataDto> getData() { return Data; }
        public GetPricingResponse setData(ArrayList<CdnPricingDataDto> value) { this.Data = value; return this; }
    }

    public static class BaseResponse
    {
        public Integer Total = null;
        public Integer OpCode = null;
        public String ErrorText = null;
        public String RequestTime = null;
        public String ResponseTime = null;
        public String TotalExecutionTime = null;
        public Boolean CachedResponse = null;
        public Boolean PermitAccess = null;
        public String AccessDeniedMessage = null;
        
        public Integer getTotal() { return Total; }
        public BaseResponse setTotal(Integer value) { this.Total = value; return this; }
        public Integer getOpCode() { return OpCode; }
        public BaseResponse setOpCode(Integer value) { this.OpCode = value; return this; }
        public String getErrorText() { return ErrorText; }
        public BaseResponse setErrorText(String value) { this.ErrorText = value; return this; }
        public String getRequestTime() { return RequestTime; }
        public BaseResponse setRequestTime(String value) { this.RequestTime = value; return this; }
        public String getResponseTime() { return ResponseTime; }
        public BaseResponse setResponseTime(String value) { this.ResponseTime = value; return this; }
        public String getTotalExecutionTime() { return TotalExecutionTime; }
        public BaseResponse setTotalExecutionTime(String value) { this.TotalExecutionTime = value; return this; }
        public Boolean isCachedResponse() { return CachedResponse; }
        public BaseResponse setCachedResponse(Boolean value) { this.CachedResponse = value; return this; }
        public Boolean isPermitAccess() { return PermitAccess; }
        public BaseResponse setPermitAccess(Boolean value) { this.PermitAccess = value; return this; }
        public String getAccessDeniedMessage() { return AccessDeniedMessage; }
        public BaseResponse setAccessDeniedMessage(String value) { this.AccessDeniedMessage = value; return this; }
    }

    public static class CdnPricingDataDto
    {
        public Long GsId = null;
        public String Name = null;
        public Integer SortingPosition = null;
        public Boolean IsType = null;
        public Boolean IsSet = null;
        public Long UiParentId = null;
        public ArrayList<CdnPricingItemDto> PricingData = null;
        
        public Long getGsId() { return GsId; }
        public CdnPricingDataDto setGsId(Long value) { this.GsId = value; return this; }
        public String getName() { return Name; }
        public CdnPricingDataDto setName(String value) { this.Name = value; return this; }
        public Integer getSortingPosition() { return SortingPosition; }
        public CdnPricingDataDto setSortingPosition(Integer value) { this.SortingPosition = value; return this; }
        public Boolean getIsType() { return IsType; }
        public CdnPricingDataDto setIsType(Boolean value) { this.IsType = value; return this; }
        public Boolean getIsSet() { return IsSet; }
        public CdnPricingDataDto setIsSet(Boolean value) { this.IsSet = value; return this; }
        public Long getUiParentId() { return UiParentId; }
        public CdnPricingDataDto setUiParentId(Long value) { this.UiParentId = value; return this; }
        public ArrayList<CdnPricingItemDto> getPricingData() { return PricingData; }
        public CdnPricingDataDto setPricingData(ArrayList<CdnPricingItemDto> value) { this.PricingData = value; return this; }
    }

    public static class CdnPricingItemDto
    {
        public Integer Grade = null;
        public String GradeLabel = null;
        public Boolean IsCac = null;
        public String CpgVal = null;
        public String GreyVal = null;
        public String PcgsVal = null;
        public String NgcVal = null;
        public String BlueBookVal = null;
        
        public Integer getGrade() { return Grade; }
        public CdnPricingItemDto setGrade(Integer value) { this.Grade = value; return this; }
        public String getGradeLabel() { return GradeLabel; }
        public CdnPricingItemDto setGradeLabel(String value) { this.GradeLabel = value; return this; }
        public Boolean getIsCac() { return IsCac; }
        public CdnPricingItemDto setIsCac(Boolean value) { this.IsCac = value; return this; }
        public String getCpgVal() { return CpgVal; }
        public CdnPricingItemDto setCpgVal(String value) { this.CpgVal = value; return this; }
        public String getGreyVal() { return GreyVal; }
        public CdnPricingItemDto setGreyVal(String value) { this.GreyVal = value; return this; }
        public String getPcgsVal() { return PcgsVal; }
        public CdnPricingItemDto setPcgsVal(String value) { this.PcgsVal = value; return this; }
        public String getNgcVal() { return NgcVal; }
        public CdnPricingItemDto setNgcVal(String value) { this.NgcVal = value; return this; }
        public String getBlueBookVal() { return BlueBookVal; }
        public CdnPricingItemDto setBlueBookVal(String value) { this.BlueBookVal = value; return this; }
    }

}

Java GetPricingRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + 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>