Skip to navigation

Introduction

View as Markdown

StockCoreAPI

StockCoreAPI is a RESTful API for managing the core operations of a stock and inventory system. It covers the full lifecycle of product management — from catalog organization and supplier relationships to real-time inventory tracking and stock movement recording.

Authentication

All requests are authenticated using a Bearer Token. Use the Login endpoint to obtain a token and Logout to invalidate it. The token is stored in the {{token}} collection variable and automatically applied to every request.

Modules

FolderDescription
AuthLogin and logout endpoints for session management.
ProductsCreate, retrieve, and update products in the catalog.
CategoriesManage product categories and browse products by category.
SuppliersManage supplier records and associate them with products.
Product SuppliersAttach, update, and detach supplier relationships for individual products.
InventoryView and update stock levels for each product.
Stock MovementsRecord and query stock entries and exits across the system.
CustomersManage customer records linked to stock operations.
OrdersCreate and query sales orders and their associated items.

Variables

  • {{base_url}} — The base URL of the API server.
  • {{token}} — The Bearer token used for authentication.