ServiceStack Home (Live)

<back to all web services

Product

The following routes are available for this service:
GET/Product
GET/Product/{Id}
Product Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
NamequerystringNo
CreatedDatequeryDateTimeNo
ModifiedDatequeryDateTimeNo
SkusqueryList<Sku>No
ActivequeryboolNo
Sku Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ProductIdformintNo
TypeformSkuTypeNo
FeatureformLicenseFeatureNo
CodeformstringNo
NameformstringNo
NotesformstringNo
MinQtyformint?No
MaxQtyformint?No
PriceformintNo
PlanformstringNo
DiscountOffformintNo
DiscountLabelOffformstringNo
ActualPriceformintNo
IsPlanformboolNo
IsRenewalformboolNo
SubscriptionDurationDaysformint?No
ExpiryDurationDaysformint?No
TrialPeriodDaysformint?No
SupportQtyformintNo
CoresQtyformint?No
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
LicenseTypeformLicenseTypeNo
ActiveformboolNo
SkuType Enum:
Product
PerDev
PerCore
Site
Support
Training
Register
Payment
LicenseFeature Enum:
NameValue
None0
Free0
Premium1
Text2
Client4
Common8
Redis16
RedisSku18
OrmLite32
OrmLiteSku34
ServiceStack64
Server128
Razor256
Admin512
Aws1024
AwsSku1026
All2047
LicenseType Enum:
Free
FreeIndividual
FreeOpenSource
Indie
Business
Enterprise
TextIndie
TextBusiness
OrmLiteIndie
OrmLiteBusiness
RedisIndie
RedisBusiness
AwsIndie
AwsBusiness
Trial
Site
TextSite
RedisSite
OrmLiteSite
Product Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
NamequerystringNo
CreatedDatequeryDateTimeNo
ModifiedDatequeryDateTimeNo
SkusqueryList<Sku>No
ActivequeryboolNo

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 /Product HTTP/1.1 
Host: account.servicestack.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	name: String,
	createdDate: 0001-01-01,
	modifiedDate: 0001-01-01,
	skus: 
	[
		{
			id: 0,
			productId: 0,
			type: Product,
			feature: 0,
			code: String,
			name: String,
			notes: String,
			maxQty: 0,
			price: 0,
			plan: String,
			discountOff: 0,
			discountLabelOff: String,
			actualPrice: 0,
			isPlan: False,
			isRenewal: False,
			subscriptionDurationDays: 0,
			expiryDurationDays: 0,
			trialPeriodDays: 0,
			supportQty: 0,
			coresQty: 0,
			createdDate: 0001-01-01,
			modifiedDate: 0001-01-01,
			licenseType: Free,
			active: False
		}
	],
	active: False
}