Loss Reasons
Supported loss reason attributes:
Attribute | Type | Description |
---|---|---|
id | number | Unique identifier of the loss reason. |
name | string | Human-friendly loss reason explanation. |
creator_id | number | Unique identifier of the user the loss reason was created by. |
resource_type | string | Type name of the resource the source is attached to. Possible values: deal |
created_at | string | Date and time that the loss reason was created in UTC (ISO8601 format). |
Endpoints
Stream Loss Reason
Read the stream of loss reason events.
See the Firehose Overview article for more details on request and response formats and parameters.
Action
GET /v3/loss_reasons/stream
Examples
Read the stream of loss reasons events
GET /v3/loss_reasons/stream?position=tail
Accept: application/json
Authorization: Bearer $ACCESS_TOKEN
User-Agent: $CLIENT_NAME
HTTP/1.1 200 OK
Content-Type: application/json
{
"items": [
{
"data": {
"name": "We were too expensive",
"creator_id": 439233,
"resource_type": "deal",
"created_at": "2017-09-30T12:33:02Z",
"id": 1032769
},
"meta": {
"event_cause": "interaction",
"sequence": 1,
"event_id": "sbJ7Hn2PR_O3GjCQPSqA4g",
"event_type": "created",
"type": "loss_reason",
"event_time": "2017-09-30T12:33:02Z"
}
}
],
"meta": {
"links": {
"next": "https://api.getbase.com/v3/loss_reasons/stream?position=ZmlyZWhvc2UuZmFjdG9pZC5jb250YWN0LnNuYXBzaG90cywxLDMwNTQ5Mg=="
},
"position": "ZmlyZWhvc2UuZmFjdG9pZC5jb250YWN0LnNuYXBzaG90cywxLDMwNTQ5Mg==",
"top": false
}
}