3Dolphins
5.2 EN
Search
K

Deal API

This API is used to get list deal, add deal, edit deal, delete deal, close deal, get deal timeline, changelogs, etc. in the Sales SRM module.

Get Deal

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals?pipelineId=[pipeline_id]&start=0&count=2
Header
Authorization : Bearer [generatedToken] pipelineId : [pipeline_id]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603206777046, “createdBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “modifiedDate”: 1603206777046, “modifiedBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “partial”: null, “contactId”: [contact_id], “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: 500, “closeStatus”: null, “products”: [product], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1603206777046, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “D2010200000102”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: 0, “expectedCloseDate”: null, “closeNote”: “”, “additionalField”: null }, { “id”: “[id]”, “owner”: “[owner]”, “createdDate”: 1603206013519, “createdBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “modifiedDate”: 1603206013519, “modifiedBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “partial”: null, “contactId”: [contact_id], “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: 0, “closeStatus”: null, “products”: [product], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1603206013519, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “D2010200000097”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipelineId]”, “stageId”: “[stage_id]”, “discount”: 0, “expectedCloseDate”: null, “closeNote”: “”, “additionalField”: null } ], “hasMore”: true, “nextIndex”: 2, “prevIndex”: 0, “totalResults”: 110 }

Get Deal by Deal Number

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/[deal_number]
Header
Authorization : Bearer [generatedToken] dealNumber : [deal_number]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603206777046, “createdBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “modifiedDate”: 1603206777046, “modifiedBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “partial”: null, “contactId”: [contact_id], “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “[name]” , “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1603206777046, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “[dealNumber]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: “”, “additionalField”: null } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Get Latest Deal by Deal Number

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/latest/[deal_number]
Header
Authorization : Bearer [generatedToken] dealNumber : [deal_number]
Body
Status
200
Response
{ “status”: “success”, “data”: { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603206777046, “createdBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “modifiedDate”: 1603206777046, “modifiedBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “partial”: null, “contactId”: [contact_id], “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1603206777046, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “[dealNumber]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: “”, “additionalField”: null }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Get Deal by Tokopedia Order Id

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/order/[tokopedia_order_id]
Header
Authorization : Bearer [generatedToken] orderId : [tokopedia_order_id]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603277075189, “createdBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “modifiedDate”: 1603277075189, “modifiedBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “partial”: null, “contactId”: “[contact_id]”, “companyId”: “[company_id]”, “tokopediaOrderId”: “123456”, “name”: “Add Deal melalui API”, “parent”: 1, “dealValue”: 1000000, “closeStatus”: null, “products”: null, “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: null, “lastActivity”: 1603277075189, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “D2010210000046”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: null, “expectedCloseDate”: null, “closeNote”: null, “additionalField”: null } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Add Deal

Method
POST
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/add
Header
Authorization : Bearer [generatedToken]
Body
Body Example : { “name”: “[name]”, “dealValue”: [deal_value], “userAccess”: “[everyone, owner, group, selectedGroup]”, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]” }
Note : If the selected user access is selectedGroup, then you must enter userAccessId.
Status
200
Response
{ “status”: “success”, “data”: { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603247933916, “createdBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “modifiedDate”: 1603247933917, “modifiedBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “partial”: null, “contactId”: [contact_id], “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1603247933916, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: null, “additionalField”: null }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Edit Deal

Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/edit
Header
Authorization : Bearer [generatedToken]
Body
Body Example : { “id”: “[id]”, “name”: “Mira Agustina”, “dealValue”: 2000000, “userAccess”: “[everyone, owner, owner group, group]”, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]” }
Note : If you update user access to selectedGroup, then you must enter userAccessId.
Status
200
Response
{ “status”: “success”, “data”: { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603335054841, “createdBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “modifiedDate”: 1603335054841, “modifiedBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “partial”: null, “contactId”: null, “companyId”: null, “tokopediaOrderId”: null, “name”: “Mira Agustina”, “parent”: 1, “dealValue”: 2000000, “closeStatus”: null, “products”: null, “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: null, “lastActivity”: 1603335054841, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: null, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: null, “expectedCloseDate”: null, “closeNote”: null, “additionalField”: null }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Move Deal to Another Stage

Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/move?dealNumber=[deal_number]&stageId=[stage_id]
Header
Authorization : Bearer [generatedToken] dealNumber : [deal_number] stageId : [stage_id]
Body
Status
200
Response
{ “status”: “success”, “data”: “Deal moved to B”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Transfer Deal to Another Pipeline

Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/transfer?dealNumber=[deal_number]&pipelineId=[pipeline_id]&stageId=[stage_id]
Header
Authorization : Bearer [generatedToken] dealNumber : [deal_number] pipelineId : [pipeline_id] stageId : [stage_id]
Body
Status
200
Response
{ “status”: “success”, “data”: “Deal moved to pipeline [pipeline_name] and stage [stage_name] “, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Delete Deal

Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/delete/[deal_number]
Header
Authorization : Bearer [generatedToken] dealNumber : [deal_number]
Body
Status
200
Response
{ “status”: “success”, “data”: “Deal Deleted”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Get Latest Deal by Pipeline Id

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/pipeline/[pipeline_id]?start=0&count=2
Header
Authorization : Bearer [generatedToken] pipelineId : [pipeline_id]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603248518302, “createdBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “modifiedDate”: 1603248518302, “modifiedBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “partial”: null, “contactId”: [contact_id], “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “update deal melalui API”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1603248518302, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: [deal_number], “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: null, “additionalField”: null, “stageName”: “[stage_name]”, “prettyContactName”: “”, “prettyUserName”: “Mira Sales”, “companyName”: “”, “pipeline”: [pipeline], “stageProgress”: null, “overdue”: false, “rotten”: false, “additionalFieldsObject”: [ { “name”: “invoice”, “value”: null }, { “name”: ” returbarang”, “value”: null } ], “dealTag”: “”, “dealTagStyle”: “”, “prettyCreatedDate”: “26 minutes ago”, “additionalFieldValueAsMap”: {}, “prettyExpectedCloseDate”: “”, “otherExpectedCloseDate”: “”, “currencyFormatValue”: “Rp 1.500.000” }, { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603206777046, “createdBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “modifiedDate”: 1603249220355, “modifiedBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “partial”: null, “contactId”: [contact_id], “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “dealll”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1603249220355, “deleted”: null, “movedIn”: 1603249220355, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: “”, “additionalField”: null, “stageName”: “[stage_name]”, “prettyContactName”: “”, “prettyUserName”: “Mira Sales”, “companyName”: “”, “pipeline”: [pipeline], “stageProgress”: null, “overdue”: false, “rotten”: false, “additionalFieldsObject”: [ { “name”: “invoice”, “value”: null }, { “name”: ” returbarang”, “value”: null } ], “dealTag”: “”, “dealTagStyle”: “”, “prettyCreatedDate”: “12 hours ago”, “additionalFieldValueAsMap”: {}, “prettyExpectedCloseDate”: “”, “otherExpectedCloseDate”: “”, “currencyFormatValue”: “Rp 500” } ], “hasMore”: true, “nextIndex”: 2, “prevIndex”: 0, “totalResults”: 110 }

Get Latest Deal by Stage Id

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/stage/[stage_id]
Header
Authorization : Bearer [generatedToken] stageId : [stage_id]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1602746124864, “createdBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “modifiedDate”: 1602749476925, “modifiedBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “partial”: null, “contactId”: “[contact_id]”, “companyId”: “[company_id]”, “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: null, “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1602749476925, “deleted”: null, “movedIn”: 1602749476925, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: “”, “additionalField”: null }, { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1601545722245, “createdBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “modifiedDate”: 1601545722245, “modifiedBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “partial”: null, “contactId”: “[contact_id]”, “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1601545722245, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: null, “additionalField”: null } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 2 }

Get Open Deal by Company Id

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/company/[company_id]
Header
Authorization : Bearer [generatedToken] companyId : [company_id]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1602748834220, “createdBy”: “5a41312bedf36743446267e6a0788798”, “modifiedDate”: 1602909220177, “modifiedBy”: “2477f6c9f6ad00ad5922f78bd460ef3f”, “partial”: null, “contactId”: [contact_id], “companyId”: “[company_id]”, “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: 0, “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1602909220177, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: 0, “expectedCloseDate”: null, “closeNote”: “”, “additionalField”: null }, { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1602966574042, “createdBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “modifiedDate”: 1602994781588, “modifiedBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “partial”: null, “contactId”: “[contact_id]”, “companyId”: “[company_id]”, “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAceessId], “lastActivity”: 1602994781588, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: “”, “additionalField”: null }, { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603124478094, “createdBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “modifiedDate”: 1603163857399, “modifiedBy”: “4ff19a781cddbb4efe036f4e53b86fe9”, “partial”: null, “contactId”: “[contact_id]”, “companyId”: “[company_id]”, “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [usrAccessId], “lastActivity”: 1603163857399, “deleted”: null, “movedIn”: null, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage-id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: “”, “additionalField”: null } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Get Open Deal by Contact Id

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/contact/[contact_id]
Header
Authorization : Bearer [generatedToken] contactId : [contact_id]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603173196576, “createdBy”: “5a41312bedf36743446267e6a0788798”, “modifiedDate”: 1603173232502, “modifiedBy”: “5a41312bedf36743446267e6a0788798”, “partial”: null, “contactId”: “[contact_id]”, “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: 0, “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [ “[userAccessId]” ], “lastActivity”: 1603173196576, “deleted”: null, “movedIn”: 1603173196576, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: null, “additionalField”: null } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Get Open Deal by Product Id

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/product/[product_id]
Header
Authorization : Bearer [generatedToken] productId : [product_id]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1595146283852, “createdBy”: “8e8c2328425057241e808b6abe6881da”, “modifiedDate”: 1595171611715, “modifiedBy”: “8e8c2328425057241e808b6abe6881da”, “partial”: null, “contactId”: [contact_id], “companyId”: [company_id], “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [ “\”e77151a3b695cf3894b9b44a6726d62c, 19, 0, 0\””, “\”59406219eb4031533fc6938fdb876c67, 7, 50, 11111111\””, “\”71ae8a3e4aef7ccd844f0b9af2081abe, 3, 90, 1000000\””, “\”ea932ad19d3f2147077953026313dc0b, 2, 0, 0\””, “\”fdd05ba3f8a0431639d44583366bcd06, 2, 0, 0\”” ], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [ “[userAccessId]” ], “lastActivity”: 1595166149506, “deleted”: null, “movedIn”: 1595166149506, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: null, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: null, “additionalField”: null } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Get Deal Additional Fields

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/additionalFields
Header
Authorization : Bearer [generatedToken]
Body
Status
200
Response
{ “status”: “success”, “data”: { “additionalFields”: “invoice, returbarang” }, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Get Latest Deal by Stage Id and Filter

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/filter?stageId=[stage_id]&status=[won/lost]
Header
Authorization : Bearer [generatedToken] stageId : [stage_id]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1600914842116, “createdBy”: “7b429f4a7a5309b438ed269f4111df35”, “modifiedDate”: 1601019946950, “modifiedBy”: “7b429f4a7a5309b438ed269f4111df35”, “partial”: null, “contactId”: “[contact_id]”, “companyId”: [compsny_id], “tokopediaOrderId”: null, “name”: “[name]”, “parent”: 1, “dealValue”: [deal_value], “closeStatus”: null, “products”: [products], “userAccess”: “[everyone, owner, group, selectedGroup]”, “userAccessId”: [userAccessId], “lastActivity”: 1600914842116, “deleted”: null, “movedIn”: 1601019946950, “forward”: null, “dealNumber”: “[deal_number]”, “transferredFrom”: “6a1d96684364ca9d284626061248939a”, “transferredTo”: null, “pipelineId”: “[pipeline_id]”, “stageId”: “[stage_id]”, “discount”: [discount], “expectedCloseDate”: null, “closeNote”: null, “additionalField”: null } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Close Deal

Method
PUT
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/close?dealNumber=[deal_number]&status=win
Header
Authorization : Bearer [generatedToken] dealNumber : [deal_number] status : [status]
Body
Status
200
Response
{ “status”: “success”, “data”: “Deal Closed”, “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 0 }

Get Deal Timeline with Pagination

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/timelines/[deal_number]?start=0&count=2
Header
Authorization : Bearer [generatedToken] dealNumber : [deal_number]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603255404248, “createdBy”: “system”, “modifiedDate”: 1603255404248, “modifiedBy”: “system”, “dealNumber”: “[deal_number]”, “action”: “add”, “actionType”: “sales-note”, “payload”: “{\”id\”:\”[id]\”}” }, { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603255317023, “createdBy”: “system”, “modifiedDate”: 1603255317023, “modifiedBy”: “system”, “dealNumber”: “[deal_number]”, “action”: “add”, “actionType”: “sales-note”, “payload”: “{\”id\”:\”[id]\”}” } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 2 }

Get Deal Changelog with Pagination

Method
GET
Media Type
application/json
URL
http://[server]/dolphin/apiv1/graph/deals/changelog/[deal_number]?start=0&count=2
Header
Authorization : Bearer [generatedToken] dealNumber : [deal_number]
Body
Status
200
Response
{ “status”: “success”, “data”: [ { “id”: “[id]”, “owner”: “[owner_id]”, “createdDate”: 1603249220379, “createdBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “modifiedDate”: 1603249220379, “modifiedBy”: “ac2c37cf90ee51edf54b2e4bc2298e03”, “dealNumber”: “[deal_number]”, “action”: “edit”, “field”: “stage_id”, “oldValue”: “A”, “newValue”: “B”, “actionType”: “deal” } ], “hasMore”: false, “nextIndex”: 0, “prevIndex”: 0, “totalResults”: 1 }