GET api/Contracts/GetContractPhones?centerNumber={centerNumber}&contractNumber={contractNumber}

получить список телефонов договора

Request Information

URI Parameters

НаименованиеОписаниеТипДополнительная информация
centerNumber

integer

Required

contractNumber

integer

Required

Body Parameters

None.

Информация о ответе

Resource Description

Collection of ContractPhoneInfo
НаименованиеОписаниеТипДополнительная информация
Binding

привязка

string

None.

PhoneNumber

номер телефона

string

None.

SmsOptions

настройки отправки смс

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Binding": "sample string 1",
    "PhoneNumber": "sample string 2",
    "SmsOptions": 3
  },
  {
    "Binding": "sample string 1",
    "PhoneNumber": "sample string 2",
    "SmsOptions": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfContractPhoneInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiBerlioInfo.Dto.DataTypes.Contract">
  <ContractPhoneInfo>
    <Binding>sample string 1</Binding>
    <PhoneNumber>sample string 2</PhoneNumber>
    <SmsOptions>3</SmsOptions>
  </ContractPhoneInfo>
  <ContractPhoneInfo>
    <Binding>sample string 1</Binding>
    <PhoneNumber>sample string 2</PhoneNumber>
    <SmsOptions>3</SmsOptions>
  </ContractPhoneInfo>
</ArrayOfContractPhoneInfo>

text/csv

Sample:
Binding;PhoneNumber;SmsOptions;
sample string 1;sample string 2;3;
sample string 1;sample string 2;3;