Skip to main content
GET/deal-segments/:id/deals/

View deal segment

You can return all deals assigned to a specific deal segment.

Attributes

Optional unless marked required

idintegerrequired
A unique identifier for the deals' segment which is given by User automatically.

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/deal-segments/:id/deals/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": 20,
"name": "Example name",
"value": "100.00",
"currency": "EUR",
"custom_id": null,
"stage": 27,
"pipeline": 11,
"assigned_to": 102,
"agent": null,
"company": null,
"person": null,
"products": [],
"status": 1,
"scope": 2,
"created_by": 65,
"created_at": "2026-08-26T14:53:12.438560Z",
"updated_at": "2026-09-18T09:56:55.494413Z",
"tags": [],
"activities_status": "no planned",
"expected_close_date": null,
"loss_reason": null,
"loss_reason_description": "",
"lost_at": null,
"won_at": null,
"participants": [],
"attributes": [],
"order_products": [],
"user_custom_id": null,
"products_custom_id": [],
"description": null
},
{
"id": 18,
"name": "Example name",
"value": "12.00",
"currency": "TRY",
"custom_id": null,
"stage": 19,
"pipeline": 11,
"assigned_to": null,
"agent": null,
"company": null,
"person": null,
"products": [],
"status": 1,
"scope": 2,
"created_by": 35,
"created_at": "2026-06-16T07:43:00.684831Z",
"updated_at": "2026-11-09T15:42:03.591295Z",
"tags": [],
"activities_status": "no planned",
"expected_close_date": null,
"loss_reason": null,
"loss_reason_description": "",
"lost_at": null,
"won_at": null,
"participants": [],
"attributes": [],
"order_products": [],
"user_custom_id": null,
"products_custom_id": [],
"description": null
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the deals' segment which is given by User automatically.
results[].namestring
A deal name.
results[].valuestring
A value of a deal.
results[].currencystring
A currency of a deal.
results[].custom_idstringnullable
A unique identifier for the deal which is provided by the client.
results[].stageinteger
An id of a stage of the pipeline the deal is currently at.
results[].pipelineinteger
An id of a pipeline where the deal is assigned to.
results[].assigned_tointegernullable
A unique identifier for the agent which is given by User automatically.
results[].agentobjectnullable
The agent the deal is assigned to, or null.
results[].companyintegernullable
ID of the company the deal belongs to, or null.
results[].personintegernullable
ID of the contact the deal belongs to, or null.
results[].productsarray
A list of products' ids.
results[].statusinteger
A status of your deal (0 - abandoned, 1 - in progress, 2 - won, 3 - lost, 4 - archived)
results[].scopeinteger
Deal scope: 1 (open) or 2 (participants, the default). It currently has no effect.
results[].created_byinteger
ID of the agent who created the deal.
results[].created_atstring (date-time)
A creation date of a deal.
results[].updated_atstring (date-time)
A date of last deal update.
results[].tagsarray
A list of tags.
results[].activities_statusstring
A status of an activity assigned to the user.
results[].expected_close_datestring (date)nullable
A date when the deal is expected to be closed.
results[].loss_reasonintegernullable
A reason for a lost deal.
results[].loss_reason_descriptionstring
Free-text note on why the deal was lost.
results[].lost_atstring (date-time)nullable
A date when the deal has been marked as lost.
results[].won_atstring (date-time)nullable
A date when the deal has been marked as won.
results[].participantsarray
A list of user_ids assigned to a deal.
results[].attributesarray of objects
Custom deal attributes that have a value, each with name, name_std, value, description and value_type.
results[].attributes[].namestring
Name of the attribute.
results[].attributes[].name_stdstring
Standardized name of the attribute, used as its key in the API.
results[].attributes[].valuestring
Value of the attribute for this deal.
results[].attributes[].descriptionstring
Description of the attribute.
results[].attributes[].value_typeinteger
Value type of the attribute: 1 boolean, 2 integer, 3 date, 4 string, 5 datetime, 6 fixed (a list of choices), 7 float or 8 JSON.
results[].order_productsarray of objects
A list of basic information per each ordered product which is provided by the client. Those information have to contain: product_id (integer) OR product_custom_id (string) quantity (integer) value (integer) currency (string)
results[].order_products[].product_idinteger
ID of the product.
results[].order_products[].product_custom_idstring
Your own identifier of the product.
results[].order_products[].currencystring
A currency of a deal.
results[].order_products[].valuestring
Value of this product in the deal, as a string with two decimal places.
results[].order_products[].quantityinteger
Number of units of the product in the deal.
results[].user_custom_idstringnullable
Your own identifier of the contact the deal belongs to.
results[].products_custom_idarray
Your own identifiers of the products in the deal.
results[].descriptionstringnullable
Deal description.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.