CustomerGroupAssignmentGetAll
Z Net47 2.0
(Różnice między wersjami)
| (Nie pokazano 4 wersji utworzonych przez jednego użytkownika) | |||
| Linia 11: | Linia 11: | ||
<CustomerGroupAssignmentGetAll> | <CustomerGroupAssignmentGetAll> | ||
<CustomerID>3</CustomerID> <!-- opcjonalne --> | <CustomerID>3</CustomerID> <!-- opcjonalne --> | ||
| − | |||
<GroupID>3</GroupID> <!-- opcjonalne --> | <GroupID>3</GroupID> <!-- opcjonalne --> | ||
<SortName>id</SortName> <!-- id, customers_id, group_id, name, opis --> | <SortName>id</SortName> <!-- id, customers_id, group_id, name, opis --> | ||
| Linia 18: | Linia 17: | ||
<Offset>1</Offset> <!-- w przypadku limit = 0, pole to nie moze istnieć --> <!-- opcjonalne --> | <Offset>1</Offset> <!-- w przypadku limit = 0, pole to nie moze istnieć --> <!-- opcjonalne --> | ||
<CustomerStatus>1</CustomerStatus> <!-- 1 = aktywny, 2 = zainteresowany, 3 = usunięty, 0 = wszyscy --> <!-- opcjonalne --> | <CustomerStatus>1</CustomerStatus> <!-- 1 = aktywny, 2 = zainteresowany, 3 = usunięty, 0 = wszyscy --> <!-- opcjonalne --> | ||
| + | <Company>1</Company> <!-- 1 = true (firmy), 0 = false (klienci detaliczni), brak opcji = wszystko --> <!-- opcjonalne --> | ||
</CustomerGroupAssignmentGetAll> | </CustomerGroupAssignmentGetAll> | ||
</Request> | </Request> | ||
| Linia 32: | Linia 32: | ||
<Type>CustomerGroupAssignmentGetAll</Type> | <Type>CustomerGroupAssignmentGetAll</Type> | ||
<CustomerGroupAssignmentGetAll> | <CustomerGroupAssignmentGetAll> | ||
| − | < | + | <Assignment> |
| + | <ID>1</ID> | ||
| + | <CustomerID>4</CustomerID> | ||
| + | <GroupID>7</GroupID> | ||
| + | <GroupName>Firmy</GroupName> | ||
| + | <GroupDescription>Klienci biznesowi</GroupDescription> | ||
| + | <Company>true</Company> | ||
| + | <CustomerStatus>1</CustomerStatus> | ||
| + | </Assignment> | ||
| + | <Assignment> | ||
| + | <ID>2</ID> | ||
| + | <CustomerID>4</CustomerID> | ||
| + | <GroupID>7</GroupID> | ||
| + | <GroupName>Firmy</GroupName> | ||
| + | <GroupDescription>Klienci biznesowi</GroupDescription> | ||
| + | <Company>true</Company> | ||
| + | <CustomerStatus>1</CustomerStatus> | ||
| + | </Assignment> | ||
</CustomerGroupAssignmentGetAll> | </CustomerGroupAssignmentGetAll> | ||
</Request> | </Request> | ||
| Linia 46: | Linia 63: | ||
<Request> | <Request> | ||
<Type>Error</Type> | <Type>Error</Type> | ||
| − | <Error> | + | <Error>Nie ma takiego klienta/grupy lub brak uprawnień</Error> |
</Request> | </Request> | ||
</Net47> | </Net47> | ||
Aktualna wersja na dzień 14:02, 12 lip 2012
Zapytanie:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID> <Priority>3</Priority> <Term>Short</Term> <Request> <Type>CustomerGroupAssignmentGetAll</Type> <CustomerGroupAssignmentGetAll> <CustomerID>3</CustomerID> <!-- opcjonalne --> <GroupID>3</GroupID> <!-- opcjonalne --> <SortName>id</SortName> <!-- id, customers_id, group_id, name, opis --> <SortType>ASC</SortType> <Limit>50</Limit> <!-- limit = 0 oznacza brak limitu --> <Offset>1</Offset> <!-- w przypadku limit = 0, pole to nie moze istnieć --> <!-- opcjonalne --> <CustomerStatus>1</CustomerStatus> <!-- 1 = aktywny, 2 = zainteresowany, 3 = usunięty, 0 = wszyscy --> <!-- opcjonalne --> <Company>1</Company> <!-- 1 = true (firmy), 0 = false (klienci detaliczni), brak opcji = wszystko --> <!-- opcjonalne --> </CustomerGroupAssignmentGetAll> </Request> </Net47> //BEGINEND//
Odpowiedź:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>CustomerGroupAssignmentGetAll</Type> <CustomerGroupAssignmentGetAll> <Assignment> <ID>1</ID> <CustomerID>4</CustomerID> <GroupID>7</GroupID> <GroupName>Firmy</GroupName> <GroupDescription>Klienci biznesowi</GroupDescription> <Company>true</Company> <CustomerStatus>1</CustomerStatus> </Assignment> <Assignment> <ID>2</ID> <CustomerID>4</CustomerID> <GroupID>7</GroupID> <GroupName>Firmy</GroupName> <GroupDescription>Klienci biznesowi</GroupDescription> <Company>true</Company> <CustomerStatus>1</CustomerStatus> </Assignment> </CustomerGroupAssignmentGetAll> </Request> </Net47> //BEGINEND//
Błędy:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>Error</Type> <Error>Nie ma takiego klienta/grupy lub brak uprawnień</Error> </Request> </Net47> //BEGINEND//