G
Not authenticated — log in first
Vendor

Vendor API

Authenticated REST API for a single vendor — profile, products, orders, shipments, and bulk import.

What this means in plain English

The Vendor API is for suppliers integrating with Glass Next on behalf of one vendor account. Every endpoint requires authentication. Start at Login — your token and vendor ID are saved automatically and reused across all Try it panels.

Getting started

  1. Log inPOST /api/v1/auth/login with your vendor user credentials.
  2. Session saved — The docs portal stores your access_token and vendor.id from the login response.
  3. Call vendor endpoints — Open any page below and click Send request. Token and X-Vendor-Id are pre-filled.

Session bar

Check the toolbar at the top right — it shows whether you are authenticated and which vendor is active. Use Clear to reset the session.

Authentication headers

Every vendor endpoint requires:

HeaderValue
AuthorizationBearer {access_token} from login
X-Vendor-Id{vendor.id} from login response

Vendor roles

RoleReadWrite (create/update/delete)
OWNERYesYes
ADMINYesYes
EDITORYesYes
VIEWERYesNo

Write operations require OWNER, ADMIN, or EDITOR.

API sections

All paths use the singular /vendor/ prefix and are scoped to your authenticated vendor.

SectionBase pathDescription
Profile/vendor/me/*Profile and logo
Shipping Methods/vendor/me/shipping-methodsShipping options
Products/vendor/productsCatalog CRUD
Bulk Import/vendor/products/importAsync CSV import
Orders/vendor/ordersSuborder fulfillment
Shipments/vendor/shipmentsTracking and fulfillment

Base URL: https://api.gcommerce.glass/api/v1 (production) or http://localhost:8080/api/v1 (local).

Live testing

Each endpoint page has a Try it panel. After logging in once, token and vendor ID flow automatically to every vendor endpoint — no need to copy-paste again.