These endpoints cover reading and mutating existing supplier records. A supplier in API-HUB is a database row — not code — that configures how the adapter framework connects to a wholesale vendor. All CRUD operations are immediate; deletes cascade to the entire catalog for that supplier.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/VisualGraphxLLC/API-HUB/llms.txt
Use this file to discover all available pages before exploring further.
No authentication is currently required on supplier endpoints during development. In production, restrict access to
vg_admin sessions via your reverse proxy or middleware.List all suppliers
Returns all suppliers ordered bycreated_at descending. Each item includes a product_count computed by a live aggregate query.
200 OK — array of SupplierRead
Supplier’s unique identifier.
Human-readable supplier name shown in the UI.
URL-safe identifier. Unique. Used as an alternative lookup key instead of UUID.
Transport protocol. One of:
soap, rest, hmac, ops_graphql, promostandards.Company code from the PromoStandards directory. Required for PromoStandards suppliers.
Override base URL. Used for REST/HMAC suppliers that do not use the PS directory endpoint.
Python class name registered in the adapter registry. Must be set before triggering an import.
Credential map stored encrypted at rest (Fernet AES-128). The exact keys depend on the adapter. Returned as-is (decrypted) to
vg_admin callers.Custom field remapping rules saved by the mappings editor.
Whether the supplier is enabled for sync operations.
UTC timestamp when the supplier was created.
Current count of products stored in the catalog for this supplier.
Get a single supplier
Fetch one supplier by UUID or slug. Both forms resolve to the same record.- By UUID
- By slug
UUID or slug of the supplier.
200 OK — single SupplierRead object (same shape as the list response).
Error responses
| Status | Detail |
|---|---|
404 Not Found | "Supplier not found" |
Get PS Directory endpoints
Returns the cached PromoStandards Directory endpoints for a supplier. The cache is stored in theendpoint_cache JSONB column on the supplier row and is refreshed by the sync process.
UUID or slug of the supplier. Only meaningful for PromoStandards suppliers.
200 OK
Returns the raw PS Directory endpoint cache object. Shape varies by supplier but typically contains service URLs keyed by PS service type (e.g., ProductData, PPC, Inventory).
Update supplier fields
Patch one or more fields on an existing supplier. Only the patchable field set is accepted; unknown keys are silently ignored.UUID or slug of the supplier to update.
Human-readable name.
One of:
soap, rest, hmac, ops_graphql, promostandards.PS directory company code.
Override base URL for REST/HMAC suppliers.
Python adapter class name. One of:
PromoStandardsAdapter, SanMarAdapter, FourOverAdapter, OPSAdapter, SSAdapter, AlphabroderAdapter.Full replacement of the encrypted credentials object.
Full replacement of the field mapping rules.
Enable or disable the supplier for sync.
Protocol-specific configuration stored as JSONB. Shape is adapter-defined.
200 OK — updated SupplierRead object.
Delete a supplier
Permanently deletes a supplier and cascades deletion to all associated products, product variants, product images, categories, and sync jobs. This operation is irreversible.UUID or slug of the supplier to delete.
200 OK
Save field mappings
Replace the supplier’sfield_mappings with a new object. The body is a free-form JSON object; the schema is adapter-defined.
UUID or slug of the supplier.
Field mapping pairs. The entire body replaces the existing
field_mappings value.200 OK