mesquitafoz
POS = Master Website = Client

Overview

REST API specification for the Mesquita online store integration. Build this API on the POS side; the website consumes it as a read-only catalog client and sends online orders.

Architecture

POS
Master
REST API
Website
Client

Base URL

BASE https://{your-pos-host}/api/v1

Endpoints

MethodPathDescription
GET/productsList products (paginated, incremental sync)
GET/products/{sku}Single product
GET/categoriesCategory tree
GET/inventoryBulk stock
GET/inventory/{sku}Stock for one SKU
POST/ordersCreate order from website checkout
GET/orders/{pos_order_id}Order status

Order flow

Checkout
Website
POST /orders
POS validates & decrements stock
Webhook
Website updated

Synchronization rules

All catalog data is managed only inside POS. The website never writes products, categories, prices, or stock.

Website CAN ONLY

Website CANNOT

Recommended sync