C R M Opportunity
API calls for CRM opportunities
Create an opportunity
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/opportunities" \ -H "Content-Type: application/json" \ -d '{ "customerId": "string", "invoiceIds": [ "string" ], "name": "string", "productIds": [ "string" ], "status": "NEW", "tags": [ "string" ] }'{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get active opportunities
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/active"[
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get opportunities by customer
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/by-customer/string"[
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get opportunities by owner
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/by-owner/string"[
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get opportunities by status
In: header
Path Parameters
"NEW" | "IN_DISCUSSION" | "PROPOSAL_SENT" | "ACCEPTED" | "IN_EXECUTION" | "COMPLETED" | "LOST"Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/by-status/NEW"[
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Download Csv_ Opportunity
In: header
Query Parameters
0int3220int32Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/csv-export""string"{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Delete a list of entities by their IDs
In: header
Query Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:18080/api/v1/crm/opportunities/delete-list?ids=string"{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Dynamic Search_ Opportunity
In: header
Query Parameters
0int3220int32Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/dynamic-search"{
"content": [
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Dynamic Search Post_ Opportunity
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/opportunities/dynamic-search" \ -H "Content-Type: application/json" \ -d '{ "filters": { "property1": null, "property2": null }, "page": 0, "search": [ "string" ], "size": 0, "sort": [ { "ascending": true, "field": "string" } ] }'{
"content": [
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Dynamic search opportunities enriched
In: header
Query Parameters
0int3220int32Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/dynamic-search-enriched"{
"content": [
{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Find by list of ids in current tenant
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/find?ids=string"[
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Find all for current tenant
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/find-all"[
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Find a list of entities by their IDs
In: header
Query Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/find-list"[
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Find by id in current tenant
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/find/string"{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get overdue actions
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/overdue-actions"[
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get paginated opportunities
In: header
Query Parameters
int32int32"ASC" | "DESC"Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/page"{
"content": [
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get pipeline stats
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/pipeline/stats"{
"property1": 0,
"property2": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get pipeline value
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/pipeline/value"{
"property1": 0.1,
"property2": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get today's actions
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/todays-actions"[
{
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}
]{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Get enriched opportunity
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/crm/opportunities/string"{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Update an opportunity
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/crm/opportunities/string" \ -H "Content-Type: application/json" \ -d '{ "customerId": "string", "invoiceIds": [ "string" ], "name": "string", "productIds": [ "string" ], "status": "NEW", "tags": [ "string" ] }'{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Delete by id in current tenant
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:18080/api/v1/crm/opportunities/string"{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Add change order
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/opportunities/string/change-orders" \ -H "Content-Type: application/json" \ -d '{ "amount": 0.1, "description": "string" }'{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Update change order
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/crm/opportunities/string/change-orders/string" \ -H "Content-Type: application/json" \ -d '{ "amount": 0.1, "description": "string" }'{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Remove change order
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "http://localhost:18080/api/v1/crm/opportunities/string/change-orders/string"{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Add a comment to an entity
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/opportunities/string/comment" \ -H "Content-Type: application/json" \ -d 'string'{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Link invoice to opportunity
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/opportunities/string/link-invoice/string"{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Link order to opportunity
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/opportunities/string/link-order/string"{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Update next action
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/crm/opportunities/string/next-action" \ -H "Content-Type: application/json" \ -d '{}'{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Update payment schedule
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "http://localhost:18080/api/v1/crm/opportunities/string/payment-schedule" \ -H "Content-Type: application/json" \ -d '{ "milestones": [ { "includeChangeOrders": true, "label": "string", "percentage": 0.1, "triggerType": "STATUS_CHANGE" } ] }'{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Apply payment schedule template
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/opportunities/string/payment-schedule/apply-template"{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Generate milestone invoice
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/opportunities/string/payment-schedule/string/generate-invoice"{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Trigger milestone
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "http://localhost:18080/api/v1/crm/opportunities/string/payment-schedule/string/trigger"{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}Update opportunity status
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "http://localhost:18080/api/v1/crm/opportunities/string/status" \ -H "Content-Type: application/json" \ -d '{ "status": "NEW" }'{
"adjustedValue": 0.1,
"changeOrderTotal": 0.1,
"changeOrders": [
{
"amount": 0.1,
"category": "string",
"createdAt": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string"
}
],
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"customer": {
"email": "string",
"id": "string",
"name": "string",
"phone": "string"
},
"customerId": "string",
"description": "string",
"estimateIds": [
"string"
],
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"expectedCloseDate": "2019-08-24T14:15:22Z",
"fulfillmentDate": "2019-08-24T14:15:22Z",
"id": "string",
"invoiceIds": [
"string"
],
"lead": {
"companyName": "string",
"email": "string",
"firstName": "string",
"id": "string",
"lastName": "string"
},
"leadId": "string",
"name": "string",
"nextAction": "string",
"nextActionDueDate": "2019-08-24T14:15:22Z",
"notes": "string",
"orderDate": "2019-08-24T14:15:22Z",
"orderId": "string",
"owner": {
"displayName": "string",
"id": "string",
"username": "string"
},
"ownerId": "string",
"paymentSchedule": [
{
"id": "string",
"includeChangeOrders": true,
"invoiceId": "string",
"label": "string",
"paymentDueDays": 0,
"percentage": 0.1,
"relativeDays": 0,
"status": "PENDING",
"triggerStatus": "NEW",
"triggerType": "STATUS_CHANGE",
"triggeredAt": "2019-08-24T14:15:22Z"
}
],
"probability": 0,
"productIds": [
"string"
],
"scheduledEndDate": "2019-08-24",
"scheduledStartDate": "2019-08-24",
"source": "string",
"status": "NEW",
"tags": [
"string"
],
"team": {
"color": "string",
"dailyCapacity": 0,
"id": "string",
"name": "string"
},
"teamId": "string",
"tenantId": "string",
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string",
"value": 0.1
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}