Skip to main content
GET
/
portal
/
auth
/
vendors
List Vendors for User
curl --request GET \
  --url https://staging-api.puppetvendors.com/portal/auth/vendors \
  --header 'x-access-token: <api-key>'

Documentation Index

Fetch the complete documentation index at: https://dev.puppetvendors.com/llms.txt

Use this file to discover all available pages before exploring further.

V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Return all vendor accounts associated with the currently authenticated user. This is useful when a single email address has been registered as a vendor on multiple shops.

Use Cases

  • Vendor switcher UI — Show a dropdown of available vendor accounts after login
  • Multi-shop vendors — Let a vendor see which shops they belong to

Headers

x-access-token
string
required
A valid vendor JWT (vendor scope).

Response

200
{
  "success": true,
  "data": [
    {
      "_id": "507f1f77bcf86cd799439012",
      "vendorName": "Acme Co",
      "vendorNameAlias": "acme"
    },
    {
      "_id": "507f1f77bcf86cd799439099",
      "vendorName": "Widget Works",
      "vendorNameAlias": "widget-works"
    }
  ]
}

Error Responses

401
{ "success": false, "error": { "message": "Invalid or expired token" } }

Example

curl -X GET "https://staging-api.puppetvendors.com/portal/auth/vendors" \
  -H "x-access-token: YOUR_VENDOR_JWT"