POST api/Cards/UpdateCards?centerNumber={centerNumber}&contractNumber={contractNumber}
обновить список карт по указанному центру и договору
Request Information
URI Parameters
| Наименование | Описание | Тип | Дополнительная информация |
|---|---|---|---|
| centerNumber |
номер центра |
integer |
Required |
| contractNumber |
номер договора |
integer |
Required |
Body Parameters
список обновляемых карт в формате JSON
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. |
Request Formats
application/json, text/json
[
{
"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
<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>
application/x-www-form-urlencoded
Sample not available.
Информация о ответе
Resource Description
результат обновления
booleanResponse Formats
application/json, text/json
true
application/xml, text/xml
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>