Receipts endpoint wrapper class
Possible requests:
get_by_query: get receipts that respect passed in query parameters
get_by_id: get receipt with a given ID
get_by_date: get receipts for a given date
get_by_dates: get receipts between two dates
loyverse.endpoints.receipts.
Receipts
get_by_query
Retrieves receipts that respect the specific query criteria passed in. A detailed description of the query parameters is available here.
receipt_numbers (list) – filter receipts by receipt numbers
since_receipt_number (str) – return only receipts after this receipt number
before_receipt_number (str) – return only receipts before this receipt number
store_id (str) – filter receipts by store id
order (str) – filter receipts by order
source (str) – filter receipts by source (e.g. My app)
updated_at_min (datetime) – filter receipts updated after this date (includes timezone info)
updated_at_max (datetime) – filter receipts updated before this date (includes timezone info)
created_at_min (datetime) – filter receipts created after this date (includes timezone info)
created_at_max (datetime) – filter receipts created before this date (includes timezone info)
limit (int) – maximum number of receipts to return per request (1 to 250)
cursor (str) – token to get continuation of return list for requests exceeding limits
formatted receipts information (JSON)
response (dict)
get_by_id
Retrieves the receipts information for a specific receipt ID
receipt_id (str) – string uniquely identifying the receipt to be retrieved
formatted receipt information (JSON)
get_by_date
Retrieve receipts information for a specific day
date (datetime) – datetime object representing day in question (including time zone info)
get_by_dates
Retrieves receipts information for a specific date interval.
start_date (datetime) – start date, including time-zone info
end_date (datetime) – end date, including time-zone info (if not provided, defaults to UTC now)
to_dataframes
Formats receipts API return data into three dataframes (receipts, items, payments)
response (dict) – receipt endpoint response
receipt level information items_df (pandas.Dataframe): receipt items information payments_df (pandas.Dataframe): receipt payments information
receipt_df (pandas.Dataframe)