API Documentation
Deal Statuses ¶
Deal Statuses ¶
GET /api/v2/deal_statuses
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": [
{
"id": "1695",
"type": "deal_statuses",
"attributes": {
"name": "Qualified Lead",
"position": 1,
"color_id": "0",
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "325"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1696",
"type": "deal_statuses",
"attributes": {
"name": "Needs Defined",
"position": 2,
"color_id": "4",
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "325"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1697",
"type": "deal_statuses",
"attributes": {
"name": "Proposal Sent",
"position": 3,
"color_id": "5",
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "325"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1698",
"type": "deal_statuses",
"attributes": {
"name": "Won Deals",
"position": 4,
"color_id": "14",
"archived_at": null,
"time_tracking_enabled": false,
"expense_tracking_enabled": false,
"booking_tracking_enabled": false,
"status_id": 2,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "325"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1699",
"type": "deal_statuses",
"attributes": {
"name": "Lost Deals",
"position": 5,
"color_id": "13",
"archived_at": null,
"time_tracking_enabled": false,
"expense_tracking_enabled": false,
"booking_tracking_enabled": false,
"status_id": 3,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": true,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "325"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1700",
"type": "deal_statuses",
"attributes": {
"name": "test deal status",
"position": null,
"color_id": null,
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "325"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deal_statuses?page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deal_statuses?page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 6,
"page_size": 30,
"max_page_size": 200
}
}Get deal statusesGET/api/v2/deal_statuses
GET /api/v2/deal_statuses/1706
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "1706",
"type": "deal_statuses",
"attributes": {
"name": "test deal status",
"position": null,
"color_id": null,
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "326"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}Gets a deal statusGET/api/v2/deal_statuses/{id}
- id
number(required) Example: 1deal status id
POST /api/v2/deal_statuses
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "test name",
"position": 1
},
"relationships": {
"pipeline": {
"data": {
"type": "pipelines",
"id": "404"
}
}
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "1713",
"type": "deal_statuses",
"attributes": {
"name": "test name",
"position": 1,
"color_id": null,
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "327"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}POST /api/v2/deal_statuses
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": ""
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"meta": {},
"source": {
"pointer": "data/attributes/name"
}
},
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"meta": {},
"source": {
"pointer": "data/attributes/pipeline"
}
}
]
}POST /api/v2/deal_statuses
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "Probability",
"probability": 20,
"probability_enabled": true
},
"relationships": {
"pipeline": {
"data": {
"type": "pipelines",
"id": "408"
}
}
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "feature unavailable",
"meta": {},
"source": {
"pointer": "data/attributes/probability"
}
}
]
}POST /api/v2/deal_statuses
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "Probability",
"probability": 20,
"probability_enabled": true
},
"relationships": {
"pipeline": {
"data": {
"type": "pipelines",
"id": "410"
}
}
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "1732",
"type": "deal_statuses",
"attributes": {
"name": "Probability",
"position": null,
"color_id": null,
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": true,
"probability": 20,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "330"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}POST /api/v2/deal_statuses
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "Probability",
"probability_enabled": true
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"meta": {
"if": {}
},
"source": {
"pointer": "data/attributes/probability"
}
},
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"meta": {},
"source": {
"pointer": "data/attributes/pipeline"
}
}
]
}PATCH /api/v2/deal_statuses/1744
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "new name"
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "1744",
"type": "deal_statuses",
"attributes": {
"name": "new name",
"position": null,
"color_id": null,
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "332"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/deal_statuses/1750
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"relationships": {
"pipeline": {
"data": {
"type": "pipelines",
"id": "418"
}
}
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "1750",
"type": "deal_statuses",
"attributes": {
"name": "prospective",
"position": null,
"color_id": null,
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "333"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/deal_statuses/1756
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"status_id": 3
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "not allowed to change stage status with active deals",
"source": {
"pointer": "data/attributes/status_id"
}
}
]
}PATCH /api/v2/deal_statuses/1762
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"status_id": 3
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "1762",
"type": "deal_statuses",
"attributes": {
"name": "test deal status",
"position": null,
"color_id": null,
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 3,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "335"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/deal_statuses/1768
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"probability": 30,
"probability_enabled": true
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "1768",
"type": "deal_statuses",
"attributes": {
"name": "prospective",
"position": null,
"color_id": null,
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": true,
"probability": 30,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "336"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/deal_statuses/1774
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"probability": 30,
"probability_enabled": true
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "feature unavailable",
"meta": {},
"source": {
"pointer": "data/attributes/probability"
}
}
]
}PATCH /api/v2/deal_statuses/1780
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"probability": 30,
"probability_enabled": true
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "1780",
"type": "deal_statuses",
"attributes": {
"name": "prospective",
"position": null,
"color_id": null,
"archived_at": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": true,
"probability": 30,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "338"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}PATCH /api/v2/deal_statuses/1786
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": ""
}
}
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"meta": {},
"source": {
"pointer": "data/attributes/name"
}
}
]
}Update a deal statusPATCH/api/v2/deal_statuses/{id}
- id
number(required) Example: 1deal status id
PATCH /api/v2/deal_statuses/1792/archive
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"data": {
"id": "1792",
"type": "deal_statuses",
"attributes": {
"name": "test deal status",
"position": null,
"color_id": null,
"archived_at": "2026-02-03T05:04:11.000+01:00",
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"status_id": 1,
"probability_enabled": false,
"probability": null,
"lost_reason_enabled": false,
"used": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "340"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}Archives a deal statusPATCH/api/v2/deal_statuses/{id}/archive
- id
number(required) Example: 1deal status id
PATCH /api/v2/deal_statuses/merge
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonBody
{
"winner_id": 1827,
"loser_id": 1826
}Headers
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "cannot merge stages with different statuses",
"meta": {},
"source": {
"pointer": "data/attributes/status_id"
}
}
]
}Merges a deal statusPATCH/api/v2/deal_statuses/merge
- id
number(required) Example: 1deal status id
DELETE /api/v2/deal_statuses/1834
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonDELETE /api/v2/deal_statuses/1841
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "409",
"code": "deal_status_in_use",
"title": "Conflict error",
"source": {}
}
]
}DELETE /api/v2/deal_statuses/1848
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "409",
"code": "deal_status_in_use",
"title": "Conflict error",
"source": {}
}
]
}DELETE /api/v2/deal_statuses/1852
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonHeaders
Content-Type: application/vnd.api+json; charset=utf-8Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "must have at least one stage with status 'Won'",
"meta": {},
"source": {
"pointer": "data/attributes/status_id"
}
}
]
}DELETE /api/v2/deal_statuses/1861
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+jsonDestroy a deal statusDELETE/api/v2/deal_statuses/{id}
- id
number(required) Example: 1deal status id
Generated by aglio on 03 Feb 2026