Skip to main content

Suppliers (v1)

This section documents workspace supplier management endpoints: suppliers, supplier invoices, and supplier payments. Use these APIs to manage the workspace’s relationship with suppliers (فواتير، دفعات، حسابات).

Base path

All endpoints use the base path:

/api/v1/workspace/:workspaceId

Actual backend path: /v1/workspace/:workspaceId for supplier resources; invoice/payment by-ID endpoints use /v1/workspace/:workspaceId/supplier-invoices/:invoiceId and /v1/workspace/:workspaceId/supplier-payments/:paymentId.

Authentication

Required: Workspace authentication (JWT). Access is typically restricted to Workspace Owner (e.g. suppliers section is owner-only by default). Staff access can be granted via workspace menu and permissions if configured.

Supplier management

Supplier invoices

Supplier payments

Persona access

  • Workspace Owner: Full access to all supplier endpoints when the suppliers section is enabled for the workspace (via business category or menu override).
  • Staff / Customer: No access unless explicitly configured via permissions and menu.