TariffAdd
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>TariffAdd</Type> <TariffAdd> <Name>Racibórz</Name> <TypeID>2</TypeID> <!-- z tabeli: finances.tariffs_typ / TariffTypeMapGetAll --> <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 --> </TariffAdd> </Request> </Net47> //BEGINEND//
Odpowiedź:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>TariffAdd</Type> <TariffAdd> <TariffID>42<TariffID> </TariffAdd> </Request> </Net47> //BEGINEND//
Błędy:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>Error</Type> <Error>Taryfa o podanej nazwie już istnieje</Error> </Request> </Net47> //BEGINEND//