Partners
Add an overview of the Admin - Partners API here. This block is preserved across regenerations.
Endpoints
GET /api/v1/partners
Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.
Max items to return (1–100, default 20)
20Number of items to skip (default 0)
0Paginated list of partner users
A partner user enriched with their partner profile
GET /api/v1/partners HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*
Paginated list of partner users
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "name@gmail.com",
"isActive": true,
"partnerProfile": {
"companyName": "text",
"contactName": "text",
"contactEmail": "text",
"tier": "text",
"commissionStructureId": "text"
}
}Notes, examples, or caveats for GET /partners go here.
GET /api/v1/partners/{userId}
Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.
Partner details
A partner user enriched with their partner profile
Not found
GET /api/v1/partners/{userId} HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"email": "name@gmail.com",
"isActive": true,
"partnerProfile": {
"companyName": "text",
"contactName": "text",
"contactEmail": "text",
"tier": "text",
"commissionStructureId": "text"
}
}Notes, examples, or caveats for GET /partners/{userId} go here.
GET /api/v1/partners/{userId}/commissions
Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.
Max items to return (1–100, default 20)
20Number of items to skip (default 0)
0Paginated list of commission records
No content
Partner not found
GET /api/v1/partners/{userId}/commissions HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*
No content
Notes, examples, or caveats for GET /partners/{userId}/commissions go here.
PUT /api/v1/partners/{userId}/profile
Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.
Partner profile updated
No content
Partner not found
PUT /api/v1/partners/{userId}/profile HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 110
{
"companyName": "text",
"contactName": "text",
"contactEmail": "text",
"tier": "text",
"commissionStructureId": "text"
}No content
Notes, examples, or caveats for PUT /partners/{userId}/profile go here.
GET /api/v1/partners/commission-structures
Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.
Max items to return (1–100, default 20)
20Number of items to skip (default 0)
0Paginated list of commission structures
A commission calculation structure for partner earnings
GET /api/v1/partners/commission-structures HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*
Paginated list of commission structures
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"commissionType": "text",
"rate": 1,
"flatAmount": 1,
"currency": "text",
"isActive": true,
"createdAt": "2026-01-01T00:00:00.000Z"
}Notes, examples, or caveats for GET /partners/commission-structures go here.
POST /api/v1/partners/commission-structures
Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.
Commission structure created
A commission calculation structure for partner earnings
Validation error
POST /api/v1/partners/commission-structures HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 81
{
"name": "text",
"commissionType": "text",
"rate": 1,
"flatAmount": 1,
"currency": "text"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"commissionType": "text",
"rate": 1,
"flatAmount": 1,
"currency": "text",
"isActive": true,
"createdAt": "2026-01-01T00:00:00.000Z"
}Notes, examples, or caveats for POST /partners/commission-structures go here.
DELETE /api/v1/partners/commission-structures/{id}
Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.
Commission structure deleted
No content
Not found
DELETE /api/v1/partners/commission-structures/{id} HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*
No content
Notes, examples, or caveats for DELETE /partners/commission-structures/{id} go here.
GET /api/v1/partners/commission-structures/{id}
Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.
Commission structure details
A commission calculation structure for partner earnings
Not found
GET /api/v1/partners/commission-structures/{id} HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"commissionType": "text",
"rate": 1,
"flatAmount": 1,
"currency": "text",
"isActive": true,
"createdAt": "2026-01-01T00:00:00.000Z"
}Notes, examples, or caveats for GET /partners/commission-structures/{id} go here.
PATCH /api/v1/partners/commission-structures/{id}
Scoped secret API key — send an sk_live_… value (keys issued before the typed format carry a bare pk_<hex> prefix and are also secret; they still work). A publishable pk_live_…/pk_test_… key is browser-safe, carries no scopes, and is refused by every endpoint in this spec with publishable_key_not_allowed. Coarse scopes: read, commerce, admin (admin covers everything below). Narrow per-resource scopes: journeys|pages :read|write|publish|delete, productsets :read|write|publish|delete, components|rules :read|write|delete, context :read (read-only context tier), catalog :read|write-native. publish is never implied by write.
Commission structure updated
No content
Not found
PATCH /api/v1/partners/commission-structures/{id} HTTP/1.1
Host: api.peakcommerce.app
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"name": "text",
"commissionType": "text",
"rate": 1,
"isActive": true
}No content
Notes, examples, or caveats for PATCH /partners/commission-structures/{id} go here.
Last updated
Was this helpful?
