Trendsic Platform Service

<back to all web services

SalesPackageRequest

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

namespace CRM.AgencyPlatform.API.Internal
{
    public partial class SalesPackage
    {
        public virtual int ID { get; set; }
        public virtual string PackageName { get; set; }
        public virtual string HashingPower { get; set; }
        public virtual int ControllerType { get; set; }
        public virtual int ControllerQuantity { get; set; }
        public virtual int MinerType { get; set; }
        public virtual int MinerQuantity { get; set; }
        public virtual decimal Price { get; set; }
        public virtual string Description { get; set; }
        public virtual string ImageURL { get; set; }
        public virtual string SpecialSaleText { get; set; }
        public virtual decimal ShipPrice { get; set; }
        public virtual decimal DiscountPrice { get; set; }
    }

    public partial class SalesPackageRequest
    {
        public virtual List<SalesPackage> SalesPackage { get; set; } = [];
    }

    public partial class SalesPackageResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual List<SalesPackage> SalesPackage { get; set; } = [];
    }

}

C# 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
		}
	]
}