Difference between revisions of "LiveCatalog XML-RPC API"
From Opentaps Wiki
Jump to navigationJump to searchm (Protected "LiveCatalog XML-RPC API": Sysop page [edit=sysop:move=sysop]) |
m |
||
Line 372: | Line 372: | ||
: Return''<array>'' of ''<struct>'' of product data (see catalogexport.getProduct) | : Return''<array>'' of ''<struct>'' of product data (see catalogexport.getProduct) | ||
− | ==== catalogexport.search. | + | ==== catalogexport.search.findRecentProducts ==== |
: Default product search limited to most recent products, ordered by creationDate descending. Limit, fromDate and toDate arguments are optional - if none are specified the entire catalog will be returned. | : Default product search limited to most recent products, ordered by creationDate descending. Limit, fromDate and toDate arguments are optional - if none are specified the entire catalog will be returned. |
Revision as of 18:35, 4 September 2007
Contents
- 1 Opentaps LiveCatalog XML-RPC API
- 1.1 Overview
- 1.2 Methods
- 1.2.1 Catalog Export Methods
- 1.2.1.1 catalogexport.getProductCatalogIds
- 1.2.1.2 catalogexport.getBrowseRootCategoryId
- 1.2.1.3 catalogexport.getSpecialCategoryIds
- 1.2.1.4 catalogexport.getCategory
- 1.2.1.5 catalogexport.getCategoryContent
- 1.2.1.6 catalogexport.getProduct
- 1.2.1.7 catalogexport.getProductContent
- 1.2.1.8 catalogexport.getProductKeywords
- 1.2.1.9 catalogexport.getAssociatedProducts
- 1.2.1.10 catalogexport.getAvailablePromotions
- 1.2.1.11 catalogexport.getCategoryHierarchy
- 1.2.1.12 catalogexport.getProductTypes
- 1.2.2 Catalog Export Helper Methods
- 1.2.1 Catalog Export Methods
- 1.3 Membership Methods
- 1.4 Search Methods
Opentaps LiveCatalog XML-RPC API
Overview
... description text ...
Methods
Catalog Export Methods
catalogexport.getProductCatalogIds
- Starting point
- Arguments
- <string> systemId
' - <string> productStoreId
- <string> systemId
- Return<array> CatalogIds
catalogexport.getBrowseRootCategoryId
- Get the root categoryId for a catalog
- Arguments
- <string> systemId
' - <string> catalogId
- <string> systemId
- Return<string> CategoryId
catalogexport.getSpecialCategoryIds
- To get IDs for special categories like Default Search, Most Popular, etc.
- Arguments
- <string> systemId
' - <string> catalogId
- <string> systemId
- 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
- ProductId - <string> Product ID
- 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
- <struct> Product Data
- associationType => <array> products
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)
catalogexport.getProductTypes
- Provides a list of all product types.
- Arguments
- <string> systemId
- <string> userLocale
- Return<struct> ProductTypes
- productType => <struct>
- Description - <string> Product type description
- IsPhysical - <boolean> Product is a physical product
- IsDigital - <boolean> Product is a digital product
- productType => <struct>
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.performExternalLogin
- Authenticates a user and stores an external login key.
- Arguments
- <string> systemId
- <string> userLoginId
- <string> password
- Return<struct>
- ExternalLoginKey - <string> Key to be provided to Opentaps in the request querystring
- ExternalLoginKey - <string> Key to be provided to Opentaps in the request querystring
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> Key to be provided to Opentaps in the request querystring
- ExternalLoginKey - <string> Key to be provided to Opentaps in the request querystring
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
- ...
- FeatureTypeID - <string> Product feature type ID
- <struct>
- featureTypeDescription => <struct>
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'
catalogexport.search.findProductsByKeyword
- Simplified access to the searchProducts method, specifying only a keyword string and using all default settings.
- Arguments
- <string> systemId
- <string> catalogId
- <string> productStoreId
- <string> keywordString
- <string> userLocale
- Return<array> of <struct> of product data (see catalogexport.getProduct)
catalogexport.search.findRecentProducts
- Default product search limited to most recent products, ordered by creationDate descending. Limit, fromDate and toDate arguments are optional - if none are specified the entire catalog will be returned.
- Arguments
- <string> systemId
- <string> catalogId
- <string> productStoreId
- <int> limit
- <dateTime.iso8601> fromDate
- <dateTime.iso8601> toDate
- Return<array> of <struct> of product data (see catalogexport.getProduct)