Trendsic Platform Service

<back to all web services

SalesPackageRequest

The following routes are available for this service:
GET/v1/SalesPackage
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class SalesPackageRequest
{
    open var SalesPackage:ArrayList<SalesPackage> = ArrayList<SalesPackage>()
}

open class SalesPackage
{
    open var ID:Int? = null
    open var PackageName:String? = null
    open var HashingPower:String? = null
    open var ControllerType:Int? = null
    open var ControllerQuantity:Int? = null
    open var MinerType:Int? = null
    open var MinerQuantity:Int? = null
    open var Price:BigDecimal? = null
    open var Description:String? = null
    open var ImageURL:String? = null
    open var SpecialSaleText:String? = null
    open var ShipPrice:BigDecimal? = null
    open var DiscountPrice:BigDecimal? = null
}

open class SalesPackageResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var SalesPackage:ArrayList<SalesPackage> = ArrayList<SalesPackage>()
}

Kotlin SalesPackageRequest DTOs

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

HTTP + JSV

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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	]
}