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.
Sandbox
https://api.sandbox.cws.digitalFirst call
- Request your sandbox credentials: see how in Start here.
- Generate the token in Get Access Token: it returns the
access_tokenused in all other API calls. - 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.