Trendsic Platform Service

<back to all web services

SalesPackageRequest

The following routes are available for this service:
GET/v1/SalesPackage
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class SalesPackage
            Public Overridable Property ID As Integer
            Public Overridable Property PackageName As String
            Public Overridable Property HashingPower As String
            Public Overridable Property ControllerType As Integer
            Public Overridable Property ControllerQuantity As Integer
            Public Overridable Property MinerType As Integer
            Public Overridable Property MinerQuantity As Integer
            Public Overridable Property Price As Decimal
            Public Overridable Property Description As String
            Public Overridable Property ImageURL As String
            Public Overridable Property SpecialSaleText As String
            Public Overridable Property ShipPrice As Decimal
            Public Overridable Property DiscountPrice As Decimal
        End Class

        Public Partial Class SalesPackageRequest
            Public Overridable Property SalesPackage As List(Of SalesPackage) = New List(Of SalesPackage)
        End Class

        Public Partial Class SalesPackageResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property SalesPackage As List(Of SalesPackage) = New List(Of SalesPackage)
        End Class
    End Namespace
End Namespace

VB.NET 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
		}
	]
}