DW.get_loyalty_customer (eng) - datawizio/pythonAPI GitHub Wiki
Returns data about clients of loyalty program.
Parameters:
date_from: datetime.date, str {%Y-%m-%d}
Starting date of selection.
date_to: datetime.date, str {%Y-%m-%d}
Ending date of selection.
If the interval [date_from, date_to]
has not been set, last 30 client's days will be used for selection.
If only one parameter has been set, then 30 client's days from selected parameter will be used for selection.
shops: int, list
Id of the shop or a list of ids.
name: str, list
Name of the client or a list of names.
loyalty_id: int, list
Іd of the client or a list of ids.
cardno: str, list
Number of the client's card or a list of numbers.
type: str, {"loyalty_id", "cardno", "name"}, default: loyalty_id
Type of identifier of a client (id, card number or name)
Returns:
Returns object 'DataFrame' with selection results.loyalty_id | last_visit | spend | number_visits | shop_name1 | ... | shop_nameN |
<loyalty_id> | <last_visit> | <spend> | <number_visits_total> | <number_visits> | <number_visits> | |
... | ||||||
<loyalty_id> | <last_visit> | <spend> | <number_visits_total> | <number_visits> | <number_visits> |
where the first column depends on type
.