Deal Endpoints
Manage sales deals within pipeline stages.
Base Pathβ
/api/deals
Endpointsβ
List Dealsβ
GET /api/deals
Authorization: Bearer {token}
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
stageId | UUID | Filter by stage |
page | number | Page number |
limit | number | Items per page |
relations | string | Include relations |
Get Deal by IDβ
GET /api/deals/:id
Authorization: Bearer {token}
Create Dealβ
POST /api/deals
Authorization: Bearer {token}
Request Body:
{
"title": "Enterprise License β Acme Corp",
"probability": 75,
"stageId": "stage-uuid",
"clientId": "contact-uuid"
}
Update Dealβ
PUT /api/deals/:id
Authorization: Bearer {token}
Delete Dealβ
DELETE /api/deals/:id
Authorization: Bearer {token}
Data Modelβ
interface IDeal {
id: string;
title: string;
probability?: number;
stageId: string;
stage?: IPipelineStage;
clientId?: string;
client?: IOrganizationContact;
createdByUserId?: string;
organizationId: string;
tenantId: string;
}
Related Pagesβ
- Pipeline & Deal Endpoints β pipeline management
- Contact Endpoints β CRM contacts
- Sales Pipelines β feature guide