Get all sales documents
get/api/v1/sales-documents/{documentTypeId}Retrieves a list of sales documents of the specified document type, with support for filtering, sorting, and pagination.
Code snippet
curl -X 'GET' \
'https://{yourdomain}/api/v1/sales-documents/{documentTypeId}' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}'
Path parameters
| documentTypeIdshortRequired | The unique identifier of the sales document type for which the sales documents need to be retrieved. |
Query parameters
| filterIdint | Applies a saved filter configuration identified by its numeric ID. Useful for retrieving data based on predefined logic stored in the system (e.g., saved views). |
| documentNumbersstring | Comma-separated document numbers of the sales documents to retrieve. |
| statusIdsstring | Comma-separated IDs of the statuses to filter sales documents by. |
| pipelineRecordIdsstring | Comma-separated IDs of the pipeline records to filter sales documents by. |
| ownerstring | Accepts one or more owner identifiers, separated by commas. Restricts results to pipeline records associated with the specified owners (e.g., 101,102). If filterId is provided, this is ignored. |
| creatorstring | Accepts creator identifiers to filter records by creator. Multiple creator IDs can be provided, comma-separated (e.g., 101, 102). If filterId is provided, this is ignored. |
| modifierstring | Accepts modifier identifiers to filter records by modifier. Multiple modifier IDs can be provided, comma-separated (e.g., 101, 102). If filterId is provided, this is ignored. |
| createdOnstring | Filters records by creation date within a specified time range. Format: {"from":"2025-07-28T18:30:00.000Z", "to":"2025-07-29T18:29:00.000Z"}. If filterId is provided, this is ignored. |
| modifiedOnstring | Filters records modified within a specific date range. Format: {"from":"2025-07-28T18:30:00.000Z", "to":"2025-07-29T18:29:00.000Z"}. If filterId is provided, this is ignored. |
| fieldsstring | Specifies which fields to retrieve for the sales document. Custom fields are returned only when their API name is passed in this parameter. |
| pageshort | Indicates the current page index in a paginated result set. Supports pagination by defining which chunk of results to retrieve, starting from page 1. |
| pageSizeshort | Specifies the maximum number of records to return per page (maximum 100). |
| includeTotalCountboolean | Determines if the response includes the total count of matching records. |
| orderBystring | Specifies the sorting criteria for the returned results. The value "lastAssignedOn desc" means records will be ordered by the last assignment date in descending order (most recent first). |
Example response
200 Success
{
"data": [
{
"salesdocumentId": 15217,
"documentNumber": "Quo-008089",
"name": "Quote May 04, 2026",
"template": {
"id": 1,
"name": "Standard Template"
},
"type": {
"id": 1,
"name": "Quote",
"contentFormat": {
"id": 1,
"name": "Standard (PDF-compatible)"
}
},
"hasMultipleDocument": false,
"pipelineRecord": {
"id": 31637,
"name": "Deal A",
"pipelineId": 1,
"pipelineSubgroupId": 1
},
"primaryContact": {
"id": 209724,
"name": "John Smith",
"firstName": "John",
"lastName": "Smith",
"email": "[email protected]"
},
"owner": {
"id": 322,
"name": "Sarah Johnson",
"email": "[email protected]",
"status": {
"id": 1,
"name": "Active"
}
},
"totalValue": 5000.00,
"validTill": "2026-06-03",
"signingDocumentId": null,
"signingClient": {
"id": 2,
"name": "BoldSign"
},
"status": {
"id": 1,
"name": "Draft",
"colorCode": "#98A2B3"
},
"reason": "",
"isPrimary": true,
"cf_purchase_order_number": 1001
}
],
"pagination": {
"page": 1,
"pageSize": 10,
"totalRecords": 20,
"totalPages": 2
}
}