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

HTTP + XML

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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ProductResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YM.Web.Services.Ams">
  <GLCode>String</GLCode>
  <QBClass>String</QBClass>
  <amount>0</amount>
  <autoPromoCodeAmount>0</autoPromoCodeAmount>
  <autoPromoCodeTitle>String</autoPromoCodeTitle>
  <customDescription>String</customDescription>
  <description>String</description>
  <id>0</id>
  <isDuesRule>false</isDuesRule>
  <isModifier>false</isModifier>
  <isProRated>false</isProRated>
  <itemTypeId>String</itemTypeId>
  <quantity>0</quantity>
  <salesDiscount>0</salesDiscount>
  <shippingCost>0</shippingCost>
  <sku>String</sku>
  <taxGLCode>String</taxGLCode>
  <taxQBClass>String</taxQBClass>
  <taxRate>0</taxRate>
  <taxable>false</taxable>
  <AutoPromoCode>
    <Discount>0</Discount>
    <Id>0</Id>
    <IsPercent>false</IsPercent>
    <Title>String</Title>
  </AutoPromoCode>
  <ColorOptions>String</ColorOptions>
  <CustomFieldName>String</CustomFieldName>
  <CustomFieldOptions>String</CustomFieldOptions>
  <IsAutoPromoCode>false</IsAutoPromoCode>
  <IsFeatured>false</IsFeatured>
  <ListInStore>false</ListInStore>
  <PrimaryCategory>String</PrimaryCategory>
  <ProductActive>0</ProductActive>
  <ProductDescription>String</ProductDescription>
  <ProductGroup>String</ProductGroup>
  <RequireResponse>false</RequireResponse>
  <SizeType>String</SizeType>
  <SpecialInstructions>String</SpecialInstructions>
  <TagLine>String</TagLine>
  <hasSpecialTaxRate>false</hasSpecialTaxRate>
  <weight>0</weight>
</ProductResponse>