GET api/Cards/GetContractCards?centerNumber={centerNumber}&contractNumber={contractNumber}&contractSubNumber={contractSubNumber}

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

Request Information

URI Parameters

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

номер центра

integer

Required

contractNumber

номер договора

integer

Required

contractSubNumber

номер поддоговора

string

Default value is

Body Parameters

None.

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

Resource Description

список с информацией по картам

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

выбранная норма за период

decimal number

None.

CardDistributionDate

Дата выдачи

string

None.

ContractNumber

Договор

unsigned integer

None.

ContractId

id договора

integer

None.

CardCategoryName

Наименование категории

string

None.

CardCategoryNumber

Категория (1-Дизель, 2-АИ-76, 3-АИ-92, 4-АИ-95, 5-АИ-98, 6-Газ, 7-Дор.Сбор, 8-Магазин, 9-Услуги, 10-все бензины, 12-все разрешено)

integer

None.

CardCategoryPrice

цена категории

decimal number

None.

CardPeriodLimit

месячная норма

decimal number

None.

CardNumber

Номер карты

unsigned integer

None.

CardBinding

Номер карты - имя

string

None.

CardDoze

Суточная доза

decimal number

None.

CardConditionsNumber

Состояние (2 - обслуживание, 5 - запрет, 10 - нет денег)

integer

None.

CardConditionsName

Наименование cостояния

string

None.

CardAllowSumma

Доступная сумма

decimal number

None.

CardRemainder

рассчитанная норма

integer

None.

CardWeight

вес карты

integer

None.

CardCode

пин-код карты

integer

None.

CardTypeId

id типа карты

integer

None.

ContractFlags

флаги договора

integer

None.

CardCenterCurrency

валюта картцентра

integer

None.

CardCenterCourceEUR

курс евро картцентар

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CardPeriodUsed": 1.1,
    "CardDistributionDate": "sample string 2",
    "ContractNumber": 3,
    "ContractId": 4,
    "CardCategoryName": "sample string 5",
    "CardCategoryNumber": 6,
    "CardCategoryPrice": 7.0,
    "CardPeriodLimit": 8.1,
    "CardNumber": 9,
    "CardBinding": "sample string 10",
    "CardDoze": 11.1,
    "CardConditionsNumber": 12,
    "CardConditionsName": "sample string 13",
    "CardAllowSumma": 14.1,
    "CardRemainder": 15,
    "CardWeight": 16,
    "CardCode": 17,
    "CardTypeId": 18,
    "ContractFlags": 19,
    "CardCenterCurrency": 20,
    "CardCenterCourceEUR": 21.0
  },
  {
    "CardPeriodUsed": 1.1,
    "CardDistributionDate": "sample string 2",
    "ContractNumber": 3,
    "ContractId": 4,
    "CardCategoryName": "sample string 5",
    "CardCategoryNumber": 6,
    "CardCategoryPrice": 7.0,
    "CardPeriodLimit": 8.1,
    "CardNumber": 9,
    "CardBinding": "sample string 10",
    "CardDoze": 11.1,
    "CardConditionsNumber": 12,
    "CardConditionsName": "sample string 13",
    "CardAllowSumma": 14.1,
    "CardRemainder": 15,
    "CardWeight": 16,
    "CardCode": 17,
    "CardTypeId": 18,
    "ContractFlags": 19,
    "CardCenterCurrency": 20,
    "CardCenterCourceEUR": 21.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfCardInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiBerlioInfo.Dto.DataTypes">
  <CardInfo>
    <CardAllowSumma>14.1</CardAllowSumma>
    <CardBinding>sample string 10</CardBinding>
    <CardCategoryName>sample string 5</CardCategoryName>
    <CardCategoryNumber>6</CardCategoryNumber>
    <CardCategoryPrice>7</CardCategoryPrice>
    <CardCenterCourceEUR>21</CardCenterCourceEUR>
    <CardCenterCurrency>20</CardCenterCurrency>
    <CardCode>17</CardCode>
    <CardConditionsName>sample string 13</CardConditionsName>
    <CardConditionsNumber>12</CardConditionsNumber>
    <CardDistributionDate>sample string 2</CardDistributionDate>
    <CardDoze>11.1</CardDoze>
    <CardNumber>9</CardNumber>
    <CardPeriodLimit>8.1</CardPeriodLimit>
    <CardPeriodUsed>1.1</CardPeriodUsed>
    <CardRemainder>15</CardRemainder>
    <CardTypeId>18</CardTypeId>
    <CardWeight>16</CardWeight>
    <ContractFlags>19</ContractFlags>
    <ContractId>4</ContractId>
    <ContractNumber>3</ContractNumber>
  </CardInfo>
  <CardInfo>
    <CardAllowSumma>14.1</CardAllowSumma>
    <CardBinding>sample string 10</CardBinding>
    <CardCategoryName>sample string 5</CardCategoryName>
    <CardCategoryNumber>6</CardCategoryNumber>
    <CardCategoryPrice>7</CardCategoryPrice>
    <CardCenterCourceEUR>21</CardCenterCourceEUR>
    <CardCenterCurrency>20</CardCenterCurrency>
    <CardCode>17</CardCode>
    <CardConditionsName>sample string 13</CardConditionsName>
    <CardConditionsNumber>12</CardConditionsNumber>
    <CardDistributionDate>sample string 2</CardDistributionDate>
    <CardDoze>11.1</CardDoze>
    <CardNumber>9</CardNumber>
    <CardPeriodLimit>8.1</CardPeriodLimit>
    <CardPeriodUsed>1.1</CardPeriodUsed>
    <CardRemainder>15</CardRemainder>
    <CardTypeId>18</CardTypeId>
    <CardWeight>16</CardWeight>
    <ContractFlags>19</ContractFlags>
    <ContractId>4</ContractId>
    <ContractNumber>3</ContractNumber>
  </CardInfo>
</ArrayOfCardInfo>

text/csv

Sample:
CardPeriodUsed;CardDistributionDate;ContractNumber;ContractId;CardCategoryName;CardCategoryNumber;CardCategoryPrice;CardPeriodLimit;CardNumber;CardBinding;CardDoze;CardConditionsNumber;CardConditionsName;CardAllowSumma;CardRemainder;CardWeight;CardCode;CardTypeId;ContractFlags;CardCenterCurrency;CardCenterCourceEUR;
1,1;sample string 2;3;4;sample string 5;6;7;8,1;9;sample string 10;11,1;12;sample string 13;14,1;15;16;17;18;19;20;21;
1,1;sample string 2;3;4;sample string 5;6;7;8,1;9;sample string 10;11,1;12;sample string 13;14,1;15;16;17;18;19;20;21;