fin
Click here for a complete list of operations.
GetAdvBill
Получить биллинг расходов по пользователю
Вход:
Month - месяц
Year - год
ProjectID - Id проекта (если 0 - то биллинг по всем проектам)
ShowTotal - показывать общие данные за период (для них date=999999)
Выход:
List<AdvBilling>
Массив биллинга за указанный интервал
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /fin.asmx HTTP/1.1
Host: api.contema.ru
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.contema.ru/GetAdvBill"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetAdvBill xmlns="http://api.contema.ru/">
<Year>int</Year>
<Month>int</Month>
<ProjectID>int</ProjectID>
<ShowTotal>boolean</ShowTotal>
</GetAdvBill>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetAdvBillResponse xmlns="http://api.contema.ru/">
<GetAdvBillResult>Ok or UnknownError or NoProjects</GetAdvBillResult>
<Bills>
<AdvBilling>
<ProjectID>int</ProjectID>
<Date>int</Date>
<Click>int</Click>
<DirtyClick>int</DirtyClick>
<Show>int</Show>
<DirtyShow>int</DirtyShow>
<CTR>double</CTR>
<DirtyCTR>double</DirtyCTR>
<Sum>double</Sum>
</AdvBilling>
<AdvBilling>
<ProjectID>int</ProjectID>
<Date>int</Date>
<Click>int</Click>
<DirtyClick>int</DirtyClick>
<Show>int</Show>
<DirtyShow>int</DirtyShow>
<CTR>double</CTR>
<DirtyCTR>double</DirtyCTR>
<Sum>double</Sum>
</AdvBilling>
</Bills>
</GetAdvBillResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /fin.asmx HTTP/1.1
Host: api.contema.ru
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetAdvBill xmlns="http://api.contema.ru/">
<Year>int</Year>
<Month>int</Month>
<ProjectID>int</ProjectID>
<ShowTotal>boolean</ShowTotal>
</GetAdvBill>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetAdvBillResponse xmlns="http://api.contema.ru/">
<GetAdvBillResult>Ok or UnknownError or NoProjects</GetAdvBillResult>
<Bills>
<AdvBilling>
<ProjectID>int</ProjectID>
<Date>int</Date>
<Click>int</Click>
<DirtyClick>int</DirtyClick>
<Show>int</Show>
<DirtyShow>int</DirtyShow>
<CTR>double</CTR>
<DirtyCTR>double</DirtyCTR>
<Sum>double</Sum>
</AdvBilling>
<AdvBilling>
<ProjectID>int</ProjectID>
<Date>int</Date>
<Click>int</Click>
<DirtyClick>int</DirtyClick>
<Show>int</Show>
<DirtyShow>int</DirtyShow>
<CTR>double</CTR>
<DirtyCTR>double</DirtyCTR>
<Sum>double</Sum>
</AdvBilling>
</Bills>
</GetAdvBillResponse>
</soap12:Body>
</soap12:Envelope>