V2 Alpha — This endpoint is part of the V2 API preview. Breaking changes may occur.
Overview
Retrieve a paginated list of commission rates configured at the vendor level. Both merchant and vendor tokens are accepted. Vendor tokens are automatically scoped to the authenticated vendor’s own commission record.
Use Cases
- Audit commission structures across all vendors
- Display vendor-specific rates in a self-service portal
- Export commission data for accounting reconciliation
Query Parameters
Number of items to return, forward pagination (1–100).
Cursor for forward pagination.
Number of items to return, backward pagination (1–100).
Cursor for backward pagination.
Response
{
"success": true,
"data": {
"edges": [
{
"node": {
"vendorId": "507f1f77bcf86cd799439011",
"vendorName": "Acme Supplies",
"commissionType": "percentage",
"commissionAmount": 14
},
"cursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
},
{
"node": {
"vendorId": "507f1f77bcf86cd799439012",
"vendorName": "Widgets Co",
"commissionType": "flat",
"commissionAmount": 5.00
},
"cursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMiJ9"
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9",
"endCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMiJ9"
}
}
}
Example
curl -X GET "https://api.puppetvendors.com/v2/commissions/vendor?first=20" \
-H "x-access-token: YOUR_JWT_TOKEN"