| GET | /GetPricingRequest | Gsid or Pcgs Number is required. Grade, MinGrade and MaxGrade are optional. Specify ApiLevel=Advanced for additional collectible information. |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Cdn.PublicApiV2.RequestObjects;
using Cdn.PublicApiV2.ResponseObjects;
using Cdn.PublicApiV2.Dto;
namespace Cdn.PublicApiV2.Dto
{
public partial class CdnPricingDataDto
{
public virtual long GsId { get; set; }
public virtual string Name { get; set; }
public virtual int SortingPosition { get; set; }
public virtual bool IsType { get; set; }
public virtual bool IsSet { get; set; }
public virtual long UiParentId { get; set; }
public virtual List<CdnPricingItemDto> PricingData { get; set; }
}
public partial class CdnPricingItemDto
{
public virtual int Grade { get; set; }
public virtual string GradeLabel { get; set; }
public virtual bool IsCac { get; set; }
public virtual string CpgVal { get; set; }
public virtual string GreyVal { get; set; }
public virtual string PcgsVal { get; set; }
public virtual string NgcVal { get; set; }
public virtual string BlueBookVal { get; set; }
}
}
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 virtual long Gsid { get; set; }
public virtual string PcgsNumber { get; set; }
public virtual string FrNumber { get; set; }
public virtual int Grade { get; set; }
public virtual int MinGrade { get; set; }
public virtual int MaxGrade { get; set; }
public virtual string ApiLevel { get; set; }
}
}
namespace Cdn.PublicApiV2.ResponseObjects
{
public partial class BaseResponse
{
public virtual int Total { get; set; }
public virtual int OpCode { get; set; }
public virtual string ErrorText { get; set; }
public virtual string RequestTime { get; set; }
public virtual string ResponseTime { get; set; }
public virtual string TotalExecutionTime { get; set; }
public virtual bool CachedResponse { get; set; }
public virtual bool PermitAccess { get; set; }
public virtual string AccessDeniedMessage { get; set; }
}
public partial class GetPricingResponse
: BaseResponse
{
public virtual List<CdnPricingDataDto> Data { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}