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