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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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}