Skip to content
campaiDeveloper
campai.com

Crm · Contacts · Statistics

GET/{organizationId}/{mandateId}/crm/contacts/statistics/sponsorDealsReads only

Get sponsor deals

Returns the opportunities with contacts of the sponsor type created in a period, with their count and expected value in cents in total and per phase, open, won and lost

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • contact:sponsor.read
  • opportunity.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired

Query parameters

  • fromDatestringrequired
  • toDatestringrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/crm/contacts/statistics/sponsorDeals' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • opportunityCountinteger

    at least 0

  • expectedValuenumber

    at least 0

  • stagesobject[]
    3 properties
    • stagestring
      new qualified offer negotiation won lost
    • opportunityCountinteger

      at least 0

    • expectedValuenumber

      at least 0

Response200
{
  "opportunityCount": 0,
  "expectedValue": 0,
  "stages": [
    {
      "stage": "new",
      "opportunityCount": 0,
      "expectedValue": 0
    }
  ]
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.