| 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.*;
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; }
}
}
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 /GetPricingRequest HTTP/1.1 Host: publicapiv2dev.greysheet.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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"}