GET api/GiftCertificate/points?userId={userId}

Метод получения доступных пользователю баллов

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

None.

Body Parameters

None.

Response Information

Resource Description

UserPointsResponse
NameDescriptionTypeAdditional information
Info

Детализированная информация по начисленным баллам

Collection of UserPointsData

None.

Sum

Общее количество начисленных баллов

decimal number

None.

UsedSum

Обшее количество использованных баллов

decimal number

None.

Balance

Общее количество доступных баллов

decimal number

None.

ResultQueryInfo

Сообщения

ResultQueryInfoContainer

None.

Response Formats

application/json, text/json

Sample:
{
  "Info": [
    {
      "CertificateId": 1,
      "ParentId": 1,
      "PaymentId": 1,
      "Sum": 2.1,
      "UsedSum": 3.1,
      "Balance": 4.1
    },
    {
      "CertificateId": 1,
      "ParentId": 1,
      "PaymentId": 1,
      "Sum": 2.1,
      "UsedSum": 3.1,
      "Balance": 4.1
    }
  ],
  "Sum": 1.1,
  "UsedSum": 2.1,
  "Balance": 3.1,
  "RedirectUrl": "sample string 4",
  "ResultQueryInfo": {
    "ResultsCount": 1,
    "HasError": false,
    "Info": [],
    "CacheStorageTimeEnd": true,
    "RefreshPeriod": 0,
    "DelFromCacheDateTime": "2024-11-23T17:28:36.7021395+03:00",
    "UserMessages": "",
    "UserMessagesHtml": ""
  }
}

application/xml, text/xml

Sample:
<UserPointsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Certificates">
  <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 4</RedirectUrl>
  <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
    <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:28:36.7021395+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField>
    <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField>
    <info />
  </ResultQueryInfo>
  <Balance>3.1</Balance>
  <Info>
    <UserPointsData>
      <Balance>4.1</Balance>
      <CertificateId>1</CertificateId>
      <ParentId>1</ParentId>
      <PaymentId>1</PaymentId>
      <Sum>2.1</Sum>
      <UsedSum>3.1</UsedSum>
    </UserPointsData>
    <UserPointsData>
      <Balance>4.1</Balance>
      <CertificateId>1</CertificateId>
      <ParentId>1</ParentId>
      <PaymentId>1</PaymentId>
      <Sum>2.1</Sum>
      <UsedSum>3.1</UsedSum>
    </UserPointsData>
  </Info>
  <Sum>1.1</Sum>
  <UsedSum>2.1</UsedSum>
</UserPointsResponse>