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.
"use strict";
export class BaseResponse {
    /** @param {{Total?:number,OpCode?:number,ErrorText?:string,RequestTime?:string,ResponseTime?:string,TotalExecutionTime?:string,CachedResponse?:boolean,PermitAccess?:boolean,AccessDeniedMessage?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Total;
    /** @type {number} */
    OpCode;
    /** @type {string} */
    ErrorText;
    /** @type {string} */
    RequestTime;
    /** @type {string} */
    ResponseTime;
    /** @type {string} */
    TotalExecutionTime;
    /** @type {boolean} */
    CachedResponse;
    /** @type {boolean} */
    PermitAccess;
    /** @type {string} */
    AccessDeniedMessage;
}
export class CdnPricingItemDto {
    /** @param {{Grade?:number,GradeLabel?:string,IsCac?:boolean,CpgVal?:string,GreyVal?:string,PcgsVal?:string,NgcVal?:string,BlueBookVal?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Grade;
    /** @type {string} */
    GradeLabel;
    /** @type {boolean} */
    IsCac;
    /** @type {string} */
    CpgVal;
    /** @type {string} */
    GreyVal;
    /** @type {string} */
    PcgsVal;
    /** @type {string} */
    NgcVal;
    /** @type {string} */
    BlueBookVal;
}
export class CdnPricingDataDto {
    /** @param {{GsId?:number,Name?:string,SortingPosition?:number,IsType?:boolean,IsSet?:boolean,UiParentId?:number,PricingData?:CdnPricingItemDto[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    GsId;
    /** @type {string} */
    Name;
    /** @type {number} */
    SortingPosition;
    /** @type {boolean} */
    IsType;
    /** @type {boolean} */
    IsSet;
    /** @type {number} */
    UiParentId;
    /** @type {CdnPricingItemDto[]} */
    PricingData;
}
export class GetPricingResponse extends BaseResponse {
    /** @param {{Data?:CdnPricingDataDto[],Total?:number,OpCode?:number,ErrorText?:string,RequestTime?:string,ResponseTime?:string,TotalExecutionTime?:string,CachedResponse?:boolean,PermitAccess?:boolean,AccessDeniedMessage?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {CdnPricingDataDto[]} */
    Data;
}
export class GetPricingRequest {
    /** @param {{Gsid?:number,PcgsNumber?:string,FrNumber?:string,Grade?:number,MinGrade?:number,MaxGrade?:number,ApiLevel?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Gsid;
    /** @type {string} */
    PcgsNumber;
    /** @type {string} */
    FrNumber;
    /** @type {number} */
    Grade;
    /** @type {number} */
    MinGrade;
    /** @type {number} */
    MaxGrade;
    /** @type {string} */
    ApiLevel;
}

JavaScript 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>