O2M Logo
One to Many
Introduction
Was this page helpful?

Introduction

Connect your ERP, website or own sales channel to O2M stock, orders and shipments.

Please reach out to your account manager to enable the public API and webhooks for your company.

Overview

The O2M API lets your own systems read stock, orders and shipments, create orders, goods receipts and stock adjustments, and hear about changes as they happen.

Why use it

  • Connect an ERP, your own website or a marketplace O2M has no connector for.
  • Keep stock in step everywhere, without manual exports.
  • Control exactly what each connected system may do.

Before you begin

  • The public API is enabled for your company by your O2M account manager.
  • You are an admin, or your role includes See and manage API keys, API logs and webhooks.
  • A developer can make HTTPS requests from your server.

What the API covers

AreaReadCreate or change
StockStock per item and per SKUStock adjustments
WarehousesList of warehousesNone
Stock movementsEvery stock changeNone
OrdersAll orders and one orderCreate and cancel
ShipmentsList of parcelsNone
Goods receiptsNoneReceive goods
WebhooksEvents sent to your serverSet up in O2M

Good to know  Products, listings, prices, invoices and customers are managed in O2M and are not available through the API.

How an integration works

Make a key

in Settings

Call the API

from your server

Receive webhooks

as things happen

Check the logs

every request is listed

Figure 1.1  The four parts of an integration.

Your server calls O2M at https://api.o2m.in/api/v1 over HTTPS with JSON. O2M answers each request and can also send events to your server the moment stock or an order changes, so you do not need to keep asking.

Where to go next