YM REST Services

<back to all web services

Products

Requires Authentication
Requires any of the roles:admin, oauthadminRequires any of the permissions:/admin/store/, /admin/events/
The following routes are available for this service:
GET/Ams/{ClientID}/ProductsGet list of a products for client.
GET/Ams/{ClientID}/Products/{id}Get the details of a product.
Products Parameters:
NameParameterData TypeRequiredDescription
idpathintNo
BaseDto Parameters:
NameParameterData TypeRequiredDescription
UsingRedisformboolNo
AppInitTimeformDateTimeNo
ServerIDformstringNo
BaseSharedDto Parameters:
NameParameterData TypeRequiredDescription
ClientIDformintNo
ResponseStatusformResponseStatusNo
BypassCacheformboolNo
DateCachedformDateTimeNo
DeviceformDeviceNo
ProductResponse Parameters:
NameParameterData TypeRequiredDescription
weightformdoubleNo
hasSpecialTaxRateformboolNo
PrimaryCategoryformstringNo
ProductActiveformintNo
IsFeaturedformboolNo
ListInStoreformboolNo
TagLineformstringNo
SizeTypeformstringNo
ColorOptionsformstringNo
CustomFieldNameformstringNo
CustomFieldOptionsformstringNo
ProductDescriptionformstringNo
SpecialInstructionsformstringNo
RequireResponseformboolNo
ProductGroupformstringNo
IsAutoPromoCodeformboolNo
AutoPromoCodeformAutoPromoCodeNo
InvoiceItem Parameters:
NameParameterData TypeRequiredDescription
itemTypeIdformstringNo
idformintNo
shippingCostformdoubleNo
descriptionformstringNo
customDescriptionformstringNo
taxRateformdoubleNo
taxGLCodeformstringNo
quantityformdoubleNo
amountformdoubleNo
isProRatedformboolNo
GLCodeformstringNo
isModifierformboolNo
isDuesRuleformboolNo
taxQBClassformstringNo
QBClassformstringNo
skuformstringNo
taxableformboolNo
autoPromoCodeAmountformdoubleNo
autoPromoCodeTitleformstringNo
salesDiscountformdoubleNo
AutoPromoCode Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
TitleformstringNo
IsPercentformboolNo
DiscountformdoubleNo

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 /Ams/{ClientID}/Products HTTP/1.1 
Host: ws.yourmembership.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	weight: 0,
	hasSpecialTaxRate: False,
	PrimaryCategory: String,
	ProductActive: 0,
	IsFeatured: False,
	ListInStore: False,
	TagLine: String,
	SizeType: String,
	ColorOptions: String,
	CustomFieldName: String,
	CustomFieldOptions: String,
	ProductDescription: String,
	SpecialInstructions: String,
	RequireResponse: False,
	ProductGroup: String,
	IsAutoPromoCode: False,
	AutoPromoCode: 
	{
		Id: 0,
		Title: String,
		IsPercent: False,
		Discount: 0
	},
	itemTypeId: String,
	id: 0,
	shippingCost: 0,
	description: String,
	customDescription: String,
	taxRate: 0,
	taxGLCode: String,
	quantity: 0,
	amount: 0,
	isProRated: False,
	GLCode: String,
	isModifier: False,
	isDuesRule: False,
	taxQBClass: String,
	QBClass: String,
	sku: String,
	taxable: False,
	autoPromoCodeAmount: 0,
	autoPromoCodeTitle: String,
	salesDiscount: 0
}