Entity reference · v1
win-loss
WL-NNNNNNtable win_loss_recordssoft deletePer-deal won/lost outcome with primary reason and contributing factors.
Endpoints
GET
/api/v1/win-lossPOST
/api/v1/win-lossGET
/api/v1/win-loss/{id}PATCH
/api/v1/win-loss/{id}DELETE
/api/v1/win-loss/{id}POST
/api/v1/win-loss/{id}/restoreWritable fields
* required on create. PATCH treats every field as optional.
| Field | Type | Constraints | Notes |
|---|---|---|---|
| title | string | ||
| account_id | uuid | ||
| outcome* | string | won | lost | |
| deal_value | float | ||
| competitor_id | uuid | ||
| primary_reason | string | ||
| contributing_factors | json | ||
| lessons | text | ||
| close_date | date | ||
| is_draft | boolean | ||
| metadata | json |
Listing & filtering
- Pagination:
?limit=50&offset=0· max limit 200 - Default sort:
?sort=close_date&order=desc - Sortable fields: created_at · updated_at · close_date · deal_value · id_number
- Search (?q=): title, primary_reason, lessons
- Filters: ?outcome= ?competitor_id= ?account_id= , repeat any filter to OR multiple values
- Trash: hidden by default; pass
?include_deleted=true
Examples
curlbash
curl 'https://productos.ca/api/v1/win-loss?limit=10' \
-H "Authorization: Bearer $TOKEN"Try it out
Paste a token and hit a real endpoint. The request goes from your browser straight to /api/v1/win-loss. The token is held in this page only for the request and is never stored.
Try it out
Issue tokens in Settings → API tokens. Token never leaves this page.
GET/api/v1/win-loss?limit=3