Customers endpoint wrapper class
Possible requests:
get_by_query: get customers that respect passed in query parameters
get_by_id: get customer with given customer ID
get_by_email: get customer with given email
get_by_creation_date: get customers created at specific date
get_by_creation_dates: get customers created between specific dates
loyverse.endpoints.customers.
Customers
get_by_query
Retrieves customers that respect the specific query criteria passed in. A detailed description of the query parameters is available here.
customer_ids (list) – filter customers by customer id
email (str) – filter customer by email
created_at_min (datetime) – filter customers created after this date (includes timezone info)
created_at_max (datetime) – filter customers created before this date (includes timezone info)
updated_at_min (datetime) – filter customers updated after this date (includes timezone info)
updated_at_max (datetime) – filter customers updated before this date (includes timezone info)
limit (int) – maximum number of customers to return per request (1 to 250)
cursor (str) – token to get continuation of return list for requests exceeding limits
formatted customers information (JSON)
response (dict)
get_by_id
Retrieves the customer information for specific customer ID
customer_id (str) – string uniquely identifying the customer to be retrieved
formatted customer information (JSON)
get_by_email
Retrieves the customer information for a user with the specific email
email (str) – email identifying the customer to be retrieved
get_by_creation_date
Retrieve customers information for a specific creation date
date (datetime) – datetime object representing day in question (including time zone info)
get_by_creation_dates
Retrieve customers information for a creation date range
start_date (datetime) – datetime object representing starting day in question (including time zone info)
end_date (datetime) – datetime object for end-date (default: UTC now)