API documentation

Welcome to the CWS Platform API

What the API offers

This documentation brings together everything Retailers and Distributors need to integrate their systems with our platform, keeping stock, prices and orders synchronized in real time.

Each endpoint brings the complete contract — parameters, body, business rules, field-by-field response and errors — with request and response examples. The endpoints are organized by block:

Environments

The portal documents and tests the API in the sandbox environment, at the URL below.

The production URL is provided after homologation.

Sandboxhttps://api.sandbox.cws.digital

First call

  1. Request your sandbox credentials: see how in Start here.
  2. Generate the token in Get Access Token: it returns the access_token used in all other API calls.
  3. Call the other endpoints with the Authorization: Bearer <access_token> header, from the Try it panel on each endpoint page or from the Postman collection, in Downloads.