TariffGetOne
Z Net47 2.0
Zapytanie:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID> <Priority>0</Priority> <Term>Long</Term> <Request> <Type>TariffGetOne</Type> <TariffGetOne> <TariffID>4</TariffID> </TariffGetOne> </Request> </Net47> //BEGINEND//
Odpowiedź:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>TariffGetOne</Type> <TariffGetOne> <ID>44</ID> <Name>Racibórz</Name> <TypeID>2</TypeID> <!-- z tabeli: finances.tariffs_typ --> <TaxID>3</TaxID> <!-- z tabeli: finances.podatek --> <Netto>true</Netto> <!-- netto/brutto --> <StartDate>2012-03-11 00:00:00</StartDate> <StopDate>2013-03-11 00:00:00</StopDate> <Description>taryfa podstawowa</Description> <Price>42,55</Price> <Upload>1024</Upload> <Download>8192</Download> <PeriodID>2</PeriodID> <!-- z tabeli: finances.okres_slownik --> <Currency>PLN</Currency> </TariffGetOne> </Request> </Net47> //BEGINEND//
Błędy:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>Error</Type> <Error>Brak taryfy o podanym ID</Error> </Request> </Net47> //BEGINEND//