Client

The Client class encapsulates the endpoints of the Loyverse API and provides a single point of initialization for API requests.

The Client class exposes the following end-points

  • receipts

  • customers

class loyverse.client.Client(access_token: str = None)

Loyverse API client

Parameters

access_token (str) – Access token string to be used to initialize the client

request(method: str, path: str, params: dict = None)

Client general request

property customers

Customers endpoint

Returns

Customer endpoint wrapper

Return type

customers (loyverse.endpoints.Customer)

property receipts

Receipts endpoint

Returns

Receipts endpoint wrapper

Return type

receipts (loyverse.endpoints.Receipts)