Orders Quickstart

Using the Appollo Orders methods

Getting started with orders

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

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

The methods you can use for products are the following:

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

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

appollo.getOrder(merchantId, orderId)
.then(res => console.log(res))
// Get a particular order from a merchant store

appollo.createOrder(merchantId, order)
.then(res => console.log(res))
// Create an order within a merchant store

appollo.updateOrder(merchantId, order, orderID)
.then(res => console.log(res))
// Update an order within a merchant store

appollo.deleteProduct(merchantId, orderID)
.then(res => console.log(res))
// Delete an order within a merchant store

Did this page help you?