GET api/v1/Points/TotalForContactCompany?contactCompanyId={contactCompanyId}&type={type}&from={from}&to={to}

Retrieve sum for a ContactCompany - within the datetime from (including) and to - with specified type. If no point exist - NULL is returned.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contactCompanyId

Id of the ContactCompany

integer

Required

type

Type of points

string

Required

from

The from datetime (including) - Datetimeoffset

date

Required

to

The to datetime - Datetimeoffset

date

Required

Body Parameters

None.

Response Information

Resource Description

ReadPointContactCompanySumDto
NameDescriptionTypeAdditional information
ContactCompanyId

ID of the ContactCompany

integer

None.

Sum

The sum of all the points

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "ContactCompanyId": 1,
  "Sum": 2.0
}