get
https://api.duodeal.app/api/deals
Retrieves a paginated list of deals.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
itemsPerPage | integer | Items per page (default: 10) |
archived | boolean | Filter by archived status |
template | boolean | Filter template deals |
search | string | Full-text search query (see below) |
Full-Text Search
The search parameter performs a PostgreSQL full-text search with multi-language support (French, English).
Searchable fields:
| Field | Priority | Description |
|---|---|---|
name | High | Deal name |
number | High | Deal reference number |
contactFullName | Medium | Contact person name |
customer.firstName | Normal | Customer first name |
customer.lastName | Normal | Customer last name |
customer.email | Normal | Customer email |
customer.customerCompany.name | Normal | Customer company name |
Example:
?search=acme project
Filtering
This endpoint supports advanced filtering. See the Filter System Documentation for the complete list of operators and usage examples.
Quick examples:
?filters[name][contains]=project
?filters[value][gte]=1000
?filters[customer.firstName][eq]=John
?filters[customFields.priority][eq]=high
Response
Returns a paginated array of deals with the same fields as GET /api/deals/{id}.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Successful response
401Unauthorized
