POST api/Contracts/AddNewContract
Добавление договора Берлио из внешних систем
Request Information
URI Parameters
None.
Body Parameters
ContractInfo| Наименование | Описание | Тип | Дополнительная информация |
|---|---|---|---|
| CenterNumber | integer |
None. |
|
| ContractAccount | string |
None. |
|
| ContractAddress | string |
None. |
|
| ContractBankCode | string |
None. |
|
| ContractBankName | string |
None. |
|
| ContractBankAdress | string |
None. |
|
| ContractBeginDate | string |
None. |
|
| ContractEmail | string |
None. |
|
| ContractFullName | string |
None. |
|
| ContractNumber | integer |
None. |
|
| ContractPhone | string |
None. |
|
| ContractUnp | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CenterNumber": 1,
"ContractAccount": "sample string 2",
"ContractAddress": "sample string 3",
"ContractBankCode": "sample string 4",
"ContractBankName": "sample string 5",
"ContractBankAdress": "sample string 6",
"ContractBeginDate": "sample string 7",
"ContractEmail": "sample string 8",
"ContractFullName": "sample string 9",
"ContractNumber": 10,
"ContractPhone": "sample string 11",
"ContractUnp": "sample string 12"
}
application/xml, text/xml
Sample:
<ContractInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiBerlioInfo.Dto.DataTypes"> <CenterNumber>1</CenterNumber> <ContractAccount>sample string 2</ContractAccount> <ContractAddress>sample string 3</ContractAddress> <ContractBankAdress>sample string 6</ContractBankAdress> <ContractBankCode>sample string 4</ContractBankCode> <ContractBankName>sample string 5</ContractBankName> <ContractBeginDate>sample string 7</ContractBeginDate> <ContractEmail>sample string 8</ContractEmail> <ContractFullName>sample string 9</ContractFullName> <ContractNumber>10</ContractNumber> <ContractPhone>sample string 11</ContractPhone> <ContractUnp>sample string 12</ContractUnp> </ContractInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Информация о ответе
Resource Description
ResultInfoOfInt64| Наименование | Описание | Тип | Дополнительная информация |
|---|---|---|---|
| Value | integer |
None. |
|
| Message | string |
None. |
|
| Success | boolean |
None. |
|
| Code | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Value": 1,
"Message": "sample string 2",
"Success": true,
"Code": 4
}
application/xml, text/xml
Sample:
<ResultInfoOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BerlioSoft.Core.Common.Results"> <Code>4</Code> <Message>sample string 2</Message> <Success>true</Success> <Value>1</Value> </ResultInfoOflong>