What the API provides
The API gives you access to three core data domains: sales, inventory, and returns. Read endpoints expose list, detail, and summary views so you can fetch exactly the level of detail your integration needs. Write endpoints onsales let external systems (POS, e-commerce, marketplaces) push transactions into SmartPyme and update pending sales or quotations. The API is purpose-built for scenarios such as supplier sell-through reporting, external analytics dashboards, automated inventory reconciliation, and bidirectional sales sync.
Base URL
Every request goes to the following base URL:Available endpoints
Standard response envelope
Every successful response from the API wraps its payload in a consistent envelope. Thedata field holds the records you requested, pagination describes the current page of results, and meta provides context about the company and the filters that were applied.
Error response format
When a request fails, the API returns asuccess: false envelope with a human-readable error message and the corresponding HTTP status code.
HTTP status codes
Most endpoints are read-only. Write operations are limited to
POST /sales and PUT /sales/{id} (create and update sales or quotations) and POST /packages/import (bulk-import package data from external systems).