Products Quickstart

Using the Appollo Products methods

Getting started with products

If your app interacts with a merchant's products, you can use our various methods to create, read, update and delete products.

When creating an order, you should use the product object structure.

The methods you can use for products are the following:

const Appollo = require("appollo");
const appollo = new Appollo(apiKey, apiSecret);

appollo.getProducts(merchantId, limit, page)
.then(res => console.log(res))
// Get a list of products from a merchants store

appollo.getProduct(merchantId, productId)
.then(res => console.log(res))
// Get a particular product from a merchant store

appollo.createProduct(merchantId, product)
.then(res => console.log(res))
// Create a product within a merchant store

appollo.updateProduct(merchantId, product, productID)
.then(res => console.log(res))
// Update a product within a merchant store

appollo.deleteProduct(merchantId, productID)
.then(res => console.log(res))
// Delete a product within a merchant store

Did this page help you?