Skip to main content
GET
/
v2
/
vendors
List Vendors
curl --request GET \
  --url https://api.puppetvendors.com/v2/vendors \
  --header 'x-access-token: <api-key>'
V2 Alpha — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Retrieve a paginated list of vendors for the authenticated merchant’s shop. Supports filtering by name, visibility, and commission type with cursor-based pagination.

Use Cases

  • Vendor directory — Display all vendors in a custom dashboard
  • Commission auditing — Filter vendors by commission type for reporting
  • Active vendor management — Find hidden or active vendors

Query Parameters

Search by vendor name or alias (max 200 characters).
isHidden
boolean
Filter by visibility. true returns hidden (soft-deleted) vendors, false returns active vendors.
commissionType
string
Filter by commission type. One of: percentage, flat.
first
integer
Number of items to return, forward pagination (1-100).
after
string
Cursor for forward pagination.
last
integer
Number of items to return, backward pagination (1-100).
before
string
Cursor for backward pagination.

Response

200
{
  "success": true,
  "data": {
    "vendors": [
      {
        "_id": "507f1f77bcf86cd799439011",
        "vendorName": "Acme Supplies",
        "vendorNameAlias": "acme-supplies",
        "commissionType": "percentage",
        "commissionAmount": 14,
        "reportingEmail": "reports@acmesupplies.com",
        "isHidden": false,
        "createdAt": "2024-03-10T08:00:00.000Z",
        "updatedAt": "2024-06-15T10:30:00.000Z"
      }
    ],
    "totalCount": 42,
    "pageInfo": {
      "hasNextPage": true,
      "hasPreviousPage": false,
      "startCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9",
      "endCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAyMCJ9"
    }
  }
}

Example

curl -X GET "https://api.puppetvendors.com/v2/vendors?first=20&commissionType=percentage" \
  -H "x-access-token: YOUR_JWT_TOKEN"