AlphaAlpha Docs
API ReferenceCrm opportunity

Dynamic search opportunities enriched

Search opportunities with filters and pagination, returns enriched data

GET
/crm/opportunities/dynamic-search-enriched
AuthorizationBearer <token>

In: header

Query Parameters

search?array<string>
filters?array<string>
page?integer
Default0
Formatint32
size?integer
Default20
Formatint32
sort?string

Response Body

application/json

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,
      "adjustedValueWithTax": 0.1,
      "changeOrderTotal": 0.1,
      "changeOrders": [
        {
          "accessTokenHash": "string",
          "amount": 0.1,
          "approvedAt": "2019-08-24T14:15:22Z",
          "approvedBy": "string",
          "category": "string",
          "createdAt": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "date": "2019-08-24T14:15:22Z",
          "description": "string",
          "id": "string",
          "rejectedAt": "2019-08-24T14:15:22Z",
          "rejectionReason": "string",
          "sentAt": "2019-08-24T14:15:22Z",
          "sentBy": "string",
          "status": "DRAFT"
        }
      ],
      "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",
        "instagramHandle": "string",
        "lastName": "string"
      },
      "leadId": "string",
      "linkedInvoices": [
        {
          "amountPaid": 0.1,
          "datePaid": "2019-08-24T14:15:22Z",
          "dueDate": "2019-08-24T14:15:22Z",
          "id": "string",
          "invoiceNumber": "string",
          "milestoneId": "string",
          "status": "DRAFT",
          "total": 0.1,
          "totalWithTax": 0.1
        }
      ],
      "milestoneInvoicedAmounts": {
        "property1": 0.1,
        "property2": 0.1
      },
      "milestoneInvoicedAmountsWithTax": {
        "property1": 0.1,
        "property2": 0.1
      },
      "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"
        }
      ],
      "planningBlocks": [
        {
          "endDate": "2019-08-24",
          "id": "string",
          "notes": "string",
          "startDate": "2019-08-24",
          "status": "PLANNED",
          "teamId": "string"
        }
      ],
      "probability": 0,
      "productIds": [
        "string"
      ],
      "questionnaire": [
        {
          "id": "string",
          "label": "string",
          "numberValue": 0.1,
          "options": [
            "string"
          ],
          "photoFileIds": [
            "string"
          ],
          "questionId": "string",
          "required": true,
          "selectedOption": "string",
          "sortOrder": 0,
          "textValue": "string",
          "type": "TEXT"
        }
      ],
      "remainingToInvoice": 0.1,
      "scheduledEndDate": "2019-08-24",
      "scheduledStartDate": "2019-08-24",
      "source": "string",
      "status": "NEW",
      "subsidiary": {
        "color": "string",
        "id": "string",
        "name": "string"
      },
      "subsidiaryId": "string",
      "tags": [
        "string"
      ],
      "team": {
        "color": "string",
        "dailyCapacity": 0,
        "id": "string",
        "name": "string"
      },
      "teamId": "string",
      "tenantId": "string",
      "totalInvoiced": 0.1,
      "totalInvoicedWithTax": 0.1,
      "totalToInvoice": 0.1,
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string",
      "value": 0.1,
      "valueWithTax": 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"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}