VINTAGE VIBES ERP API

Developer & Enterprise API Reference (OpenAPI 3.1.0)

Clean REST API contract powering Vintage Vibes Enterprise Retail OS by Makkani AI. Public catalog routes support headless commerce, while ERP back-office modules enforce Bearer JWT authentication, RBAC role guards, TLS 1.3 PostgreSQL persistence, and immutable audit logs.

Authentication & Security Model

Protected ERP routes require an Authorization: Bearer <JWT> header scoped to tenant RBAC permissions. Sensitive administrative operations and system configuration require elevated operator privileges.

curl -sS https://vintagevibesgk.com/api/health
curl -sS -H "Authorization: Bearer $ERP_OPERATOR_JWT" https://vintagevibesgk.com/api/finance/coa

Core Public & Enterprise ERP Endpoints

GET /api/health System uptime & PostgreSQL readiness check
Public
GET /api/ecommerce/catalog 1-of-1 authenticated garment inventory, grades & multi-currency pricing
Public
POST /api/ecommerce/orders Create storefront order with atomic cart reservation lock
Checkout Token
GET /api/purchase/bale-sessions Bale & container sorting sessions, tare weights & landed COGS
Bearer JWT + RBAC
GET /api/purchase/invoices Supplier purchase invoices & inward gate passes
Bearer JWT + RBAC
POST /api/sales/invoices POS, retail & wholesale tax invoices with automatic ledger posting
Bearer JWT + RBAC
GET /api/finance/vouchers Double-entry payment, receipt & journal vouchers
Bearer JWT + RBAC
GET /api/finance/coa Chart of Accounts hierarchy & real-time trial balances
Bearer JWT + RBAC
GET /api/parties Suppliers, customers & automated COA sub-ledger links
Bearer JWT + RBAC
GET /api/hr/employees Staff attendance, shifts & payroll sheets
Bearer JWT + RBAC
GET /api/setup/tax-profiles Multi-country localization: UAE FTA, Pakistan FBR, KSA ZATCA, UK, US, EU
Bearer JWT + RBAC
GET /api/audit/logs Immutable security & accounting audit trail
Bearer JWT + RBAC

Live OpenAPI 3.1 Schema Preview

Synchronized directly from /openapi.json:

Loading /openapi.json...