Configuring OCAPI Settings for Commerce Cloud Endless Aisle

  1. In Business Manager, select Administration->Site Development > Open Commerce API Settings.
  2. For type, select Shop and for context, select Site Genesis or <your site>. You follow these steps for each site with which you plan to use Endless Aisle.
    1. Copy the contents of your existing OCAPI settings to another text file, so that you can merge your settings into the new OCAPI settings.
    2. Copy and paste the contents of the file int_ocapi_ext_core/config/EA_OCAPI_Shop_Settings.json into the text area.
    3. Change the setting for "resource_id":"/products/{id}/availability; set the cache to 0.
      If you specify a value other than 0, the minimum allowed value for cache_time is 60. If you want to specify that inventory data be updated every minute (and not more frequently), you can change the content to: "cache_time":60.

      Endless Aisle optimizes updating inventory data. For example, if there are only two of a particular product available to sell, and a customer orders both of them, you don't want other customers or associates to think that there are still two in stock. To ensure that your Endless Aisle app takes advantage of this capability, you can set the cache to 0.

    4. Change the client_id and other values as needed. Values you might need to change include the client_id, the allowed_origins section, the product.prices.price_book_ids, and product_search/images to contain correct view_types.
    5. If you are enabling multi-currency, in the following section, add the price book associated w/the currency in which you want to run the app; include both list and sale price books.
      "config":{
                  "product.prices.price_book_ids":"usd-sale-prices,usd-list-prices,eur-list-prices,eur-sale-prices"
                },
      Note: You can have multiple price books separated by commas.
  3. Click Save.
  4. For type, select Data and for context, select Global (organization-wide) as the context.
    1. Copy the contents of your existing OCAPI settings to another text file, so that you can merge your settings into the new OCAPI settings.
    2. Copy and paste the contents of the file int_ocapi_ext_core/config/EA_OCAPI_Data_Settings.json into the text area.
    3. Change the client_id.
  5. Click Save.
  6. Continue with Updating the Oauth Custom Object.