opentaps XML-RPC Integration API
Overview
... description text ...
Methods
Catalog Export Methods
catalogexport.getProductCatalogIds
Starting point
Arguments
<string> systemId
<string> productStoreId
Return <array>
CatalogIds
catalogexport.getBrowseRootCategoryId
Get the root categoryId for a catalog
Arguments
<string> systemId
<string> catalogId
Return <string>
CategoryId
catalogexport.getSpecialCategoryIds
To get IDs for special categories like
Default Search, Most Popular, etc.
Arguments
<string> systemId
<string> catalogId
Return <struct>
CategoryIds
productCategoryTypeId => <string>
productCategoryId
...
catalogexport.getCategory
Retrieve data for a category, including its
product or category children.
Arguments
<string> systemId
<string> productStoreId
<string> catalogId
<string> categoryId
<string> userLocale
Return <struct> Category
Data
Name - <string> Category Name
Description - <string> Category Description
LongDescription - <string> Long category
Description
CategoryImageURL - <string> Category image URL
CategoryImageAltText - <string> Alt text for category
image
ProductData => <array> of <struct>
of type:
ProductId - <string> Product ID
Name - <string> Product Name
Description - <string> Product Description
ImageURL - <string> Product image URL
ImageAltText - <string> Product image alt
text
PriceCurrencyCode - <string> Product
price currency
IsSale - <boolean> Is the product on sale?
Price - <double> Product Price
ListPrice - <double> List Price
ChildData => <array> of <struct>
of type:
CategoryId - <string> Category ID
Name - <string> Category Name
Description - <string> Category Description
CategoryImageURL - <string> Child
category image URL
CategoryImageAltText - <string> Child
category image alt text
catalogexport.getCategoryContent
Retrieve content for a category
Arguments
<string> systemId
<string> productStoreId
<string> catalogId
<string> categoryId
<string> userLocale
Return <struct> Category
Data
Name - <string> Category Name
Description - <string> Category Description
LongDescription - <string> Long category
Description
CategoryImageURL - <string> Category image URL
CategoryImageAltText - <string> Alt text for category
image
catalogexport.getProduct
Retrieve data for a product.
Arguments
<string> systemId
<string> productId
<string> productStoreId
<string> catalogId
<string> userLocale
Return <struct> Product
Data
Name - <string> Product Name
Description - <string> Product Description
LongDescription - <string> Long product
Description
SmallImageURL - <string> URL for thumbnail
image
MediumImageURL - <string> URL for medium image
LargeImageURL - <string> URL for large image
DetailImageURL - <string> URL for detail image
SmallImageAltText - <string> Alt text for
thumbnail image
MediumImageAltText - <string> Alt text for
medium image
LargeImageAltText - <string> Alt text for
large image
DetailImageAltText - <string> Alt text for
detail image
PriceCurrencyCode - <string> Price Currency
Code
Price - <double> Product Price
IsSale - <boolean> Is product on sale?
ListPrice - <double>
Product List Price
RequireInventory - <boolean> Require
Inventory for sale?
IntroductionDate - <dateTime> Timestamp of
product introduction
DiscontinuationDate - <dateTime> Timestamp of
product discontinuation
ProductType - <string> Product Type
QuantityInStock - <double> Product Quantity
In Stock
DaysToShip -
<double> Days to Shipping Availability
catalogexport.getProductContent
Retrieve content for a product.
Arguments
<string> systemId
<string> productId
<string> userLocale
Return <struct> Product
Data
Name - <string> Product Name
Description - <string> Product Description
LongDescription - <string> Long product
Description
SmallImageURL - <string> URL for thumbnail
image
MediumImageURL - <string> URL for medium image
LargeImageURL - <string> URL for large image
DetailImageURL - <string> URL for detail image
SmallImageAltText - <string> Alt text for
thumbnail image
MediumImageAltText - <string> Alt text for
medium image
LargeImageAltText - <string> Alt text for
large image
DetailImageAltText - <string> Alt text for
detail image
catalogexport.getProductKeywords
Retrieve keywords for a product.
Arguments
<string> systemId
<string> productId
Return <struct> Keywords
keyword - <i4> weight
...
catalogexport.getAssociatedProducts
Retrieve associated products (eg:
cross-sell, upgrade, etc) to a given product.
Arguments
<string> systemId
<string> productId
<string> productStoreId
<string> catalogId
<string>
Return <struct>
AssociatedProducts
associationType => <array> products
<struct> Product Data
ProductId - <string> Product ID
Name - <string> Product Name
Description - <string> Product
Description
ImageURL - <string> Image URL
ImageAltText - <string> Image alt text
IsSale - <boolean> Is the product on
sale?
Price - <double> Product Price
ListPrice - <double> List Price
PriceCurrencyCode - <string> Currency
catalogexport.getAvailablePromotions
Provides a list of descriptions of promotions available. If a userId and password are specified, the promotions will be filtered accordingly.
Arguments
<string> systemId
<string> productStoreId
<string> userLoginId
<string> password
Return <struct>
AvailablePromotions - <array> Descriptions of available promotions
catalogexport.getCategoryHierarchy
Provides a full representation of the category data structure, considering the top level as the given categoryId. Category names will be based on userLocale.
Arguments
<string> systemId
<string> categoryId
<string> userLocale
Return <struct>
CategoryId - <string> The argument categoryId
CategoryImageURL - <string> URL of the image for the argument category
Name - <string> Name of the argument category
ProductCount - <i4> Number of products in the argument category
ChildData - <array> Child categories of the argument category. Each array member mirrors the return structure of the procedure (CategoryId, CategoryImageURL, Name, ProductCount, ChildData)
Catalog Export Helper Methods
catalogexport.getProductPrices
Retrieve prices for a product.
Arguments
<string> systemId
<string> productId
<string> productStoreId
<string> catalogId
Return <struct>
PriceCurrencyCode - <string> Price Currency
Code
Price - <double> Product Price
IsSale - <boolean> Is product on sale?
ListPrice - <double>
Product List Price
catalogexport.getProductName
Simple product name retrieval.
Arguments
<string> systemId
<string> productId
<string> userLocale
Return <string> Name
catalogexport.getCategoryName
Simple category name retrieval.
Arguments
<string> systemId
<string> categoryId
<string> userLocale
Return <string> Name
catalogexport.getProductDescription
Simple product description retrieval.
Arguments
<string> systemId
<string> productId
<string> userLocale
Return <struct>
Description - <string> Product Description
LongDescription - <string> Long Product
Description
catalogexport.getCategoryDescription
Simple category description retrieval.
Arguments
<string> systemId
<string> categoryId
<string> userLocale
Return <struct>
Description - <string> Category Description
LongDescription - <string> Long Category
Description
Membership Methods
catalogexport.security.getAuthenticatedUser
Authenticate a user/member and return simple
member data.
Arguments
<string> systemId
<string> userLoginId
<string> password
Return <struct>
FirstName - <string> User first name
LastName - <string> User last name
FullName - <string> User full name
Suffix - <string> User suffix (eg. Jr)
Title - <string> User form of address
Email - <string> User email
Locale - <string> User's last locale
catalogexport.security.initializeCheckout
Authenticate a user, set up a shopping cart, and return an external login key which can be used to redirect the user to the Opentaps checkout. (IE: http://demo1.opentaps.org/ecommerce/control/showcart?externalLoginKey=EL7429384 )
Arguments
<string> systemId
<string> userLoginId
<string> password
<string> catalogId
<string> productStoreId
<struct> cartItems of product Id - <double> quantity
Return <struct>
ExternalLoginKey - <string>
Search Methods
catalogexport.search.getAvailableProductFeatures
Get available product features for populating
a search form
Arguments
<string> systemId
<string> userLocale
Return <struct>
AvailableFeatures
featureTypeDescription => <struct>
<struct>
FeatureTypeID - <string> Product
feature type ID
Features - <struct> Features available
<struct>
featureDescription - < struct >
< struct >
FeatureID - <string> Product
feature ID
...
catalogexport.search.getSortOrders
Get available sort orders for populating a
search form
Arguments
<string> systemId
<string> userLocale
Return <struct>
SortOrders
sort order key - <string> Sort order
description
...
catalogexport.search.searchProducts
Search the catalog for products
Arguments
<string> systemId
<string> catalogId
<string> productStoreId
<string> countryCode
<string> categoryId
<string> sortOrder
<string> keywordString
<string> searchOperator
<boolean> searchSubcategories
< boolean > ascendingSort
<array> includeFeatureIds
< array > excludeFeatureIds
<double> priceRangeLow
< double > priceRangeHigh
Return <array> ProductIds