Customers Quickstart

Using the Appollo Customers methods

Getting started with customers

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

When creating a customer, you should use the customer object structure.

The methods you can use for customers are the following:

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

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

appollo.getCustomer(merchantId, customerId)
.then(res => console.log(res))
// Get a particular customer from a merchant store

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

appollo.updateCustomer(merchantId, customer, customerID)
.then(res => console.log(res))
// Update a customer within a merchant store

appollo.deleteCustomer(merchantId, customerID)
.then(res => console.log(res))
// Delete a customer within a merchant store

Did this page help you?