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+json
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": [
{
"id": "1640",
"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": "315"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1641",
"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": "315"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1642",
"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": "315"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1643",
"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": "315"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1644",
"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": "315"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
{
"id": "1645",
"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": "315"
}
},
"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/1651
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+json
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1651",
"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": "316"
}
},
"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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "test name",
"position": 1
},
"relationships": {
"pipeline": {
"data": {
"type": "pipelines",
"id": "389"
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1658",
"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": "317"
}
},
"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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": ""
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"source": {
"pointer": "data/attributes/name"
}
},
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "Probability",
"probability": 20,
"probability_enabled": true
},
"relationships": {
"pipeline": {
"data": {
"type": "pipelines",
"id": "393"
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "feature unavailable",
"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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "Probability",
"probability": 20,
"probability_enabled": true
},
"relationships": {
"pipeline": {
"data": {
"type": "pipelines",
"id": "395"
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1677",
"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": "320"
}
},
"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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "Probability",
"probability_enabled": true
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"source": {
"pointer": "data/attributes/probability"
}
},
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"source": {
"pointer": "data/attributes/pipeline"
}
}
]
}
PATCH /api/v2/deal_statuses/1689
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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": "new name"
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1689",
"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": "322"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deal_statuses/1695
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+json
Body
{
"data": {
"type": "deal_statuses",
"relationships": {
"pipeline": {
"data": {
"type": "pipelines",
"id": "403"
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1695",
"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": "323"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deal_statuses/1701
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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"status_id": 3
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"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/1707
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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"status_id": 3
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1707",
"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": "325"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deal_statuses/1713
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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"probability": 30,
"probability_enabled": true
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1713",
"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": "326"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deal_statuses/1719
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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"probability": 30,
"probability_enabled": true
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "feature unavailable",
"source": {
"pointer": "data/attributes/probability"
}
}
]
}
PATCH /api/v2/deal_statuses/1725
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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"probability": 30,
"probability_enabled": true
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1725",
"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": "328"
}
},
"pipeline": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deal_statuses/1731
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+json
Body
{
"data": {
"type": "deal_statuses",
"attributes": {
"name": ""
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"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/1737/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+json
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "1737",
"type": "deal_statuses",
"attributes": {
"name": "test deal status",
"position": null,
"color_id": null,
"archived_at": "2025-08-02T02:06:26.000+02: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": "330"
}
},
"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+json
Body
{
"winner_id": 1772,
"loser_id": 1771
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "cannot merge stages with different statuses",
"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/1779
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+json
DELETE /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+json
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "409",
"code": "deal_status_in_use",
"title": "Conflict error",
"source": {}
}
]
}
DELETE /api/v2/deal_statuses/1793
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+json
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "409",
"code": "deal_status_in_use",
"title": "Conflict error",
"source": {}
}
]
}
DELETE /api/v2/deal_statuses/1797
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+json
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "must have at least one stage with status 'Won'",
"source": {
"pointer": "data/attributes/status_id"
}
}
]
}
DELETE /api/v2/deal_statuses/1806
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+json
Destroy a deal statusDELETE/api/v2/deal_statuses/{id}
- id
number
(required) Example: 1deal status id
Generated by aglio on 02 Aug 2025