Skip to main content

📬 Shopify Ajax API

  1. What is the “Shopify Ajax API”?

  2. Does the Shopify Ajax API require access tokens or a client ID to access?

  3. What data type is returned from the Shopify Ajax APIs?

  4. What is the Cart API?

    • How can you add two different products to the cart?

      • What response would you get?
    • What response would you receive if you try to add more products than exist in stock?

    • Can you change a selling plan for a product via the Shopify Cart API?

      • For what types of tasks can this be used?
    • How can you retrieve the cart data?

      • Create a simple fetch request to retrieve it.
    • How can products in a cart be updated?

      • Provide a simple fetch POST request example.
    • How can you remove a product from the cart using the cart/update.js endpoint?

    • What unique feature of the cart/update.js endpoint should be kept in mind?

    • What is the difference between the cart/update.js and cart/change.js endpoints?

    • How can you update cart items based on the index position of the item in the cart?

    • What does the /cart/clear.js endpoint do?

    • How can shipping rates be retrieved via the Cart API?

    • What is “Bundled Section Rendering”, and what can it be used for?

  5. What is a "Product API reference"?

    1. What can it be used for?

    2. Create a simple fetch request to retrieve product data.

  6. What is the “Product Recommendations API”?

    1. Create a simple fetch request to get product recommendations using a product ID.

    2. What "intent" parameters does this API accept, and what are the differences between them?

  7. Additional topics:

    • What feature does Shopify offer for customer location detection?