Skip to content
platform

CWS Platform API

Developers

The CWS Platform API connects your ERP and your systems to the platform: inventory, price, customers, credit and contracts on one side, orders on the other. This area organizes the public API reference by group and by endpoint, and shows how the calls combine into a real integration.

Base URL: https://ws.autorei.net · 13 groups · 78 endpoints

Get started

Four short reads that apply to the whole API, before the first call.

Environments and base URL

The base URL, the collection url variable and who calls whom.

Authentication

One token for 12 hours, sent as Bearer on every call.

Pagination and limits

limit and offset, per-endpoint caps and the two batch routes.

Errors

The five codes, the two body formats and the partial 200.

Use cases

How the endpoints combine to solve an integration end to end.

Ecommerce ERP integration: the typical path through the API

Inventory, price, customers, credit and contracts go up from the ERP; orders come down to be invoiced.

B2B customer portal: the typical path through the API

The customer buys alone with the price, credit and inventory that apply to them, and the sales rep stays in the same channel.

B2B marketplace: the typical path through the API

Each store integrates its own inventory, price and orders; the operator queries the whole through its own routes.

Complex retail and B2B2C: the typical path through the API

Business and end consumer in the same portal, with price and inventory by warehouse and the counter linked to the digital channel.

B2B procurement and supplies: the typical path through the API

Recurring replenishment under contract: agreed price, credit, ready-made cart and item-by-item tracking.

Guided selling and counter sales: the typical path through the API

The sales rep negotiates in the same portal the customer sees, and the integration maintains reps, portfolios and carts.

API reference

Each endpoint with method, route, parameters, body, responses, errors and example.

Authentication

The first step to consume the CWS API services is to obtain an access token. This token is required to authorize all subsequent calls.

1 endpoints

Inventory and Price

Endpoints dedicated to the complete management of inventory and product prices in your warehouses.

2 endpoints

Orders

Services for querying and managing orders.

17 endpoints

Customers

Services for full management of customer registration data, their addresses and groups.

13 endpoints

Credit Limit

Endpoints to create and manage credit limit types and assign them to customers.

3 endpoints

Contracts

Endpoints to manage fixed-price contracts for customers or customer groups.

14 endpoints

Price Rule

Services for creating and managing price rules.

3 endpoints

Quotes

Services for querying and responding to quotes requested by customers.

5 endpoints

Custom Cart

Endpoints to create, edit and delete custom shopping carts for customers.

3 endpoints

Sales Rep Module

Endpoints to manage sales reps and their customer portfolios.

7 endpoints

SKU Priority

Endpoints to manage the display priority of products (SKUs) in search results.

5 endpoints

CashBack

Endpoints for querying balances and managing customer cashback.

5 endpoints

Callbacks and Webhooks

This section documents the integrations where the CWS Platform initiates the communication and sends data to your store's system. Unlike the other sections of this collection, here we describe the endpoints that you will need to build to receive our calls.

4 events

Webhooks and events

What the platform sends to your system, and what it expects back.

Asynchronous webhook

Orders webhook

Short order notice, with id and status.

Asynchronous webhook

Orders webhook, full payload

The whole order in the notification body.

Asynchronous webhook

Customers webhook

Customer created or updated on the platform.

Synchronous callback

Tax calculation callback

Synchronous call: your ERP returns the taxes per item.

Frequently asked questions

How to integrate a B2B order portal with existing ERP systems?

The ERP stays where it is. The integrator authenticates against the CWS Platform API, sends inventory, price, customers, credit limits and contracts, receives orders by webhook and reports status and invoice back. The ERP integration use case in this area shows the typical path, endpoint by endpoint.

How to integrate a B2B self-service system with existing CRM software?

Through the same API. The customer endpoints create and update accounts and addresses, the customers webhook notifies your system when an account is created or updated on the platform, and the sales rep endpoints keep each rep's customer portfolio in sync.

Generated from the public API collection, published on 2026-09-04: api-docs.cws.digital.