Account¶
get_account¶
-
Client.
get_account
()¶ Get an Account object
Return type: dict Returns: account data Example:
data = api.get_account()
get_account_transactions¶
-
Client.
list_account_transactions
(max_items=None, to_date=None, from_date=None, trans_type=None, size=None, number=None, **kwargs)¶ Get the transactions from the user’s account
Parameters: - max_items (str) – Limit the number of transactions that will be returned.
- to_date (str) – Return only transactions that are newer than the parameter. Format: “yyyy-MM-dd’T’HH:mm:ssZ”
- from_date (str) – Return only transactions that are older than the parameter. Format: “yyyy-MM-dd’T’HH:mm:ssZ”
- trans_type (str) – Return only transactions that are this type.
- size (int) – Used for pagination to indicate the size of each page requested for querying a list of items. If no value is specified the default value is 25. (Maximum value 1000)
- number (str) – Search transactions by phone number
Return type: types.GeneratorType
Returns: list of transactions
Example: Get transactions:
list = api.get_account_transactions(type = 'charge')
Example: Get transactions by date:
list = api.get_account_transactions(type = 'charge')
Example: Get transactions filtering by date:
list = api.get_account_transactions(type = 'charge')
Example: Get transactions limiting result:
list = api.get_account_transactions(type = 'charge')
Example: Get transactions of payment type:
list = api.get_account_transactions(type = 'charge')