Skip to main content
The SmartPyme External API is a REST API designed for B2B integrations — enabling suppliers, analytics platforms, and other third-party providers to programmatically access sales, inventory, and returns data from SmartPyme-powered businesses, and to create or update sales from external systems. All requests use standard HTTPS and return JSON responses.

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 on sales 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. The data 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 a success: 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).