Loss Reasons

Supported loss reason attributes:

AttributeTypeDescription
idnumberUnique identifier of the loss reason.
namestringHuman-friendly loss reason explanation.
creator_idnumberUnique identifier of the user the loss reason was created by.
resource_typestringType name of the resource the source is attached to. Possible values: deal
created_atstringDate 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=tailAccept: application/jsonAuthorization: Bearer $ACCESS_TOKENUser-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  }}