Trendsic Platform Service

<back to all web services

SalesPackageRequest

The following routes are available for this service:
GET/v1/SalesPackage
SalesPackageRequest Parameters:
NameParameterData TypeRequiredDescription
SalesPackagequeryList<SalesPackage>No
SalesPackage Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
PackageNameformstringNo
HashingPowerformstringNo
ControllerTypeformintNo
ControllerQuantityformintNo
MinerTypeformintNo
MinerQuantityformintNo
PriceformdecimalNo
DescriptionformstringNo
ImageURLformstringNo
SpecialSaleTextformstringNo
ShipPriceformdecimalNo
DiscountPriceformdecimalNo
SalesPackageResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
SalesPackageformList<SalesPackage>No

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

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/SalesPackage HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"SalesPackage":[{"ID":0,"PackageName":"String","HashingPower":"String","ControllerType":0,"ControllerQuantity":0,"MinerType":0,"MinerQuantity":0,"Price":0,"Description":"String","ImageURL":"String","SpecialSaleText":"String","ShipPrice":0,"DiscountPrice":0}]}