pluggy-sdk 1.0.0.post2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. pluggy_sdk/__init__.py +183 -0
  2. pluggy_sdk/api/__init__.py +26 -0
  3. pluggy_sdk/api/account_api.py +582 -0
  4. pluggy_sdk/api/acquirer_anticipation_api.py +658 -0
  5. pluggy_sdk/api/acquirer_receivable_api.py +658 -0
  6. pluggy_sdk/api/acquirer_sale_api.py +658 -0
  7. pluggy_sdk/api/auth_api.py +599 -0
  8. pluggy_sdk/api/bill_api.py +561 -0
  9. pluggy_sdk/api/bulk_payment_api.py +854 -0
  10. pluggy_sdk/api/category_api.py +1084 -0
  11. pluggy_sdk/api/connector_api.py +970 -0
  12. pluggy_sdk/api/identity_api.py +575 -0
  13. pluggy_sdk/api/income_report_api.py +308 -0
  14. pluggy_sdk/api/investment_api.py +909 -0
  15. pluggy_sdk/api/items_api.py +1441 -0
  16. pluggy_sdk/api/loan_api.py +561 -0
  17. pluggy_sdk/api/payment_customer_api.py +1399 -0
  18. pluggy_sdk/api/payment_intent_api.py +833 -0
  19. pluggy_sdk/api/payment_recipient_api.py +1976 -0
  20. pluggy_sdk/api/payment_request_api.py +1636 -0
  21. pluggy_sdk/api/portfolio_yield_api.py +574 -0
  22. pluggy_sdk/api/smart_account_api.py +1116 -0
  23. pluggy_sdk/api/transaction_api.py +954 -0
  24. pluggy_sdk/api/webhook_api.py +1391 -0
  25. pluggy_sdk/api_client.py +769 -0
  26. pluggy_sdk/api_response.py +21 -0
  27. pluggy_sdk/configuration.py +466 -0
  28. pluggy_sdk/exceptions.py +200 -0
  29. pluggy_sdk/models/__init__.py +145 -0
  30. pluggy_sdk/models/account.py +134 -0
  31. pluggy_sdk/models/accounts_list200_response.py +102 -0
  32. pluggy_sdk/models/acquirer_anticipation.py +117 -0
  33. pluggy_sdk/models/acquirer_anticipation_data.py +101 -0
  34. pluggy_sdk/models/acquirer_data.py +113 -0
  35. pluggy_sdk/models/acquirer_receivable.py +143 -0
  36. pluggy_sdk/models/acquirer_receivable_data.py +108 -0
  37. pluggy_sdk/models/acquirer_receivable_data_establishment.py +96 -0
  38. pluggy_sdk/models/acquirer_receivable_destination_account.py +92 -0
  39. pluggy_sdk/models/acquirer_receivable_related_sale.py +99 -0
  40. pluggy_sdk/models/acquirer_sale.py +171 -0
  41. pluggy_sdk/models/acquirer_sale_data.py +150 -0
  42. pluggy_sdk/models/acquirer_sale_installment.py +93 -0
  43. pluggy_sdk/models/acquirer_sale_installment_data.py +95 -0
  44. pluggy_sdk/models/address.py +110 -0
  45. pluggy_sdk/models/aggregated_portfolio.py +120 -0
  46. pluggy_sdk/models/aggregated_portfolio_response.py +102 -0
  47. pluggy_sdk/models/asset_distribution.py +88 -0
  48. pluggy_sdk/models/auth_request.py +90 -0
  49. pluggy_sdk/models/auth_response.py +88 -0
  50. pluggy_sdk/models/bank_data.py +92 -0
  51. pluggy_sdk/models/bill.py +109 -0
  52. pluggy_sdk/models/bill_finance_charge.py +103 -0
  53. pluggy_sdk/models/bills_list200_response.py +102 -0
  54. pluggy_sdk/models/bulk_payment.py +128 -0
  55. pluggy_sdk/models/bulk_payments_list200_response.py +102 -0
  56. pluggy_sdk/models/category.py +96 -0
  57. pluggy_sdk/models/client_category_rule.py +94 -0
  58. pluggy_sdk/models/company.py +90 -0
  59. pluggy_sdk/models/connect_token_request.py +94 -0
  60. pluggy_sdk/models/connect_token_response.py +88 -0
  61. pluggy_sdk/models/connector.py +141 -0
  62. pluggy_sdk/models/connector_credential.py +121 -0
  63. pluggy_sdk/models/connector_health.py +96 -0
  64. pluggy_sdk/models/connector_health_details.py +90 -0
  65. pluggy_sdk/models/connector_list_response.py +102 -0
  66. pluggy_sdk/models/connector_user_action.py +93 -0
  67. pluggy_sdk/models/create_bulk_payment.py +96 -0
  68. pluggy_sdk/models/create_client_category_rule.py +92 -0
  69. pluggy_sdk/models/create_item.py +111 -0
  70. pluggy_sdk/models/create_item_parameters.py +144 -0
  71. pluggy_sdk/models/create_or_update_payment_customer.py +105 -0
  72. pluggy_sdk/models/create_payment_customer_request_body.py +103 -0
  73. pluggy_sdk/models/create_payment_intent.py +94 -0
  74. pluggy_sdk/models/create_payment_recipient.py +100 -0
  75. pluggy_sdk/models/create_payment_request.py +102 -0
  76. pluggy_sdk/models/create_pix_qr_payment_request.py +96 -0
  77. pluggy_sdk/models/create_smart_account_request.py +102 -0
  78. pluggy_sdk/models/create_webhook.py +99 -0
  79. pluggy_sdk/models/credential_select_option.py +90 -0
  80. pluggy_sdk/models/credit_card_metadata.py +101 -0
  81. pluggy_sdk/models/credit_data.py +127 -0
  82. pluggy_sdk/models/document.py +100 -0
  83. pluggy_sdk/models/email.py +100 -0
  84. pluggy_sdk/models/global_error_response.py +94 -0
  85. pluggy_sdk/models/i_count_response.py +88 -0
  86. pluggy_sdk/models/identity_relation.py +102 -0
  87. pluggy_sdk/models/identity_response.py +149 -0
  88. pluggy_sdk/models/income_report.py +90 -0
  89. pluggy_sdk/models/income_reports_response.py +102 -0
  90. pluggy_sdk/models/investment.py +192 -0
  91. pluggy_sdk/models/investment_expenses.py +108 -0
  92. pluggy_sdk/models/investment_metadata.py +99 -0
  93. pluggy_sdk/models/investment_transaction.py +124 -0
  94. pluggy_sdk/models/investments_list200_response.py +102 -0
  95. pluggy_sdk/models/item.py +148 -0
  96. pluggy_sdk/models/item_creation_error_response.py +102 -0
  97. pluggy_sdk/models/item_error.py +94 -0
  98. pluggy_sdk/models/item_options.py +90 -0
  99. pluggy_sdk/models/loan.py +199 -0
  100. pluggy_sdk/models/loan_contracted_fee.py +118 -0
  101. pluggy_sdk/models/loan_contracted_finance_charge.py +92 -0
  102. pluggy_sdk/models/loan_installment_balloon_payment.py +95 -0
  103. pluggy_sdk/models/loan_installment_balloon_payment_amount.py +90 -0
  104. pluggy_sdk/models/loan_installments.py +130 -0
  105. pluggy_sdk/models/loan_interest_rate.py +136 -0
  106. pluggy_sdk/models/loan_payment_release.py +103 -0
  107. pluggy_sdk/models/loan_payment_release_over_parcel.py +106 -0
  108. pluggy_sdk/models/loan_payment_release_over_parcel_charge.py +92 -0
  109. pluggy_sdk/models/loan_payment_release_over_parcel_fee.py +92 -0
  110. pluggy_sdk/models/loan_payments.py +98 -0
  111. pluggy_sdk/models/loan_warranty.py +94 -0
  112. pluggy_sdk/models/loans_list200_response.py +102 -0
  113. pluggy_sdk/models/merchant.py +96 -0
  114. pluggy_sdk/models/monthly_portfolio.py +100 -0
  115. pluggy_sdk/models/monthly_portfolio_response.py +102 -0
  116. pluggy_sdk/models/not_authenticated_response.py +90 -0
  117. pluggy_sdk/models/page_response_acquirer_anticipations.py +102 -0
  118. pluggy_sdk/models/page_response_acquirer_receivables.py +102 -0
  119. pluggy_sdk/models/page_response_acquirer_sales.py +102 -0
  120. pluggy_sdk/models/page_response_category_rules.py +102 -0
  121. pluggy_sdk/models/page_response_investment_transactions.py +102 -0
  122. pluggy_sdk/models/page_response_transactions.py +102 -0
  123. pluggy_sdk/models/parameter_validation_error.py +92 -0
  124. pluggy_sdk/models/parameter_validation_response.py +98 -0
  125. pluggy_sdk/models/payment_customer.py +105 -0
  126. pluggy_sdk/models/payment_customers_list200_response.py +102 -0
  127. pluggy_sdk/models/payment_data.py +105 -0
  128. pluggy_sdk/models/payment_data_participant.py +101 -0
  129. pluggy_sdk/models/payment_institution.py +101 -0
  130. pluggy_sdk/models/payment_intent.py +145 -0
  131. pluggy_sdk/models/payment_intents_list200_response.py +102 -0
  132. pluggy_sdk/models/payment_recipient.py +106 -0
  133. pluggy_sdk/models/payment_recipient_account.py +99 -0
  134. pluggy_sdk/models/payment_recipients_institution_list200_response.py +102 -0
  135. pluggy_sdk/models/payment_recipients_list200_response.py +102 -0
  136. pluggy_sdk/models/payment_request.py +118 -0
  137. pluggy_sdk/models/payment_request_callback_urls.py +92 -0
  138. pluggy_sdk/models/payment_requests_list200_response.py +102 -0
  139. pluggy_sdk/models/percentage_over_index.py +90 -0
  140. pluggy_sdk/models/phone_number.py +100 -0
  141. pluggy_sdk/models/pix_data.py +90 -0
  142. pluggy_sdk/models/smart_account.py +107 -0
  143. pluggy_sdk/models/smart_account_address.py +112 -0
  144. pluggy_sdk/models/smart_account_balance.py +95 -0
  145. pluggy_sdk/models/smart_accounts_list200_response.py +102 -0
  146. pluggy_sdk/models/status_detail.py +142 -0
  147. pluggy_sdk/models/status_detail_product.py +101 -0
  148. pluggy_sdk/models/status_detail_product_warning.py +92 -0
  149. pluggy_sdk/models/transaction.py +145 -0
  150. pluggy_sdk/models/update_item.py +109 -0
  151. pluggy_sdk/models/update_item_parameters.py +144 -0
  152. pluggy_sdk/models/update_payment_recipient.py +100 -0
  153. pluggy_sdk/models/update_payment_request.py +102 -0
  154. pluggy_sdk/models/update_transaction.py +88 -0
  155. pluggy_sdk/models/webhook.py +106 -0
  156. pluggy_sdk/models/webhook_creation_error_response.py +90 -0
  157. pluggy_sdk/models/webhooks_list200_response.py +102 -0
  158. pluggy_sdk/py.typed +0 -0
  159. pluggy_sdk/rest.py +258 -0
  160. pluggy_sdk-1.0.0.post2.dist-info/METADATA +336 -0
  161. pluggy_sdk-1.0.0.post2.dist-info/RECORD +163 -0
  162. pluggy_sdk-1.0.0.post2.dist-info/WHEEL +5 -0
  163. pluggy_sdk-1.0.0.post2.dist-info/top_level.txt +1 -0
pluggy_sdk/rest.py ADDED
@@ -0,0 +1,258 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Pluggy API
5
+
6
+ Pluggy's main API to review data and execute connectors
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: hello@pluggy.ai
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ import io
17
+ import json
18
+ import re
19
+ import ssl
20
+
21
+ import urllib3
22
+
23
+ from pluggy_sdk.exceptions import ApiException, ApiValueError
24
+
25
+ SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
26
+ RESTResponseType = urllib3.HTTPResponse
27
+
28
+
29
+ def is_socks_proxy_url(url):
30
+ if url is None:
31
+ return False
32
+ split_section = url.split("://")
33
+ if len(split_section) < 2:
34
+ return False
35
+ else:
36
+ return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES
37
+
38
+
39
+ class RESTResponse(io.IOBase):
40
+
41
+ def __init__(self, resp) -> None:
42
+ self.response = resp
43
+ self.status = resp.status
44
+ self.reason = resp.reason
45
+ self.data = None
46
+
47
+ def read(self):
48
+ if self.data is None:
49
+ self.data = self.response.data
50
+ return self.data
51
+
52
+ def getheaders(self):
53
+ """Returns a dictionary of the response headers."""
54
+ return self.response.headers
55
+
56
+ def getheader(self, name, default=None):
57
+ """Returns a given response header."""
58
+ return self.response.headers.get(name, default)
59
+
60
+
61
+ class RESTClientObject:
62
+
63
+ def __init__(self, configuration) -> None:
64
+ # urllib3.PoolManager will pass all kw parameters to connectionpool
65
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
66
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
67
+ # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
68
+
69
+ # cert_reqs
70
+ if configuration.verify_ssl:
71
+ cert_reqs = ssl.CERT_REQUIRED
72
+ else:
73
+ cert_reqs = ssl.CERT_NONE
74
+
75
+ pool_args = {
76
+ "cert_reqs": cert_reqs,
77
+ "ca_certs": configuration.ssl_ca_cert,
78
+ "cert_file": configuration.cert_file,
79
+ "key_file": configuration.key_file,
80
+ }
81
+ if configuration.assert_hostname is not None:
82
+ pool_args['assert_hostname'] = (
83
+ configuration.assert_hostname
84
+ )
85
+
86
+ if configuration.retries is not None:
87
+ pool_args['retries'] = configuration.retries
88
+
89
+ if configuration.tls_server_name:
90
+ pool_args['server_hostname'] = configuration.tls_server_name
91
+
92
+
93
+ if configuration.socket_options is not None:
94
+ pool_args['socket_options'] = configuration.socket_options
95
+
96
+ if configuration.connection_pool_maxsize is not None:
97
+ pool_args['maxsize'] = configuration.connection_pool_maxsize
98
+
99
+ # https pool manager
100
+ self.pool_manager: urllib3.PoolManager
101
+
102
+ if configuration.proxy:
103
+ if is_socks_proxy_url(configuration.proxy):
104
+ from urllib3.contrib.socks import SOCKSProxyManager
105
+ pool_args["proxy_url"] = configuration.proxy
106
+ pool_args["headers"] = configuration.proxy_headers
107
+ self.pool_manager = SOCKSProxyManager(**pool_args)
108
+ else:
109
+ pool_args["proxy_url"] = configuration.proxy
110
+ pool_args["proxy_headers"] = configuration.proxy_headers
111
+ self.pool_manager = urllib3.ProxyManager(**pool_args)
112
+ else:
113
+ self.pool_manager = urllib3.PoolManager(**pool_args)
114
+
115
+ def request(
116
+ self,
117
+ method,
118
+ url,
119
+ headers=None,
120
+ body=None,
121
+ post_params=None,
122
+ _request_timeout=None
123
+ ):
124
+ """Perform requests.
125
+
126
+ :param method: http request method
127
+ :param url: http request url
128
+ :param headers: http request headers
129
+ :param body: request json body, for `application/json`
130
+ :param post_params: request post parameters,
131
+ `application/x-www-form-urlencoded`
132
+ and `multipart/form-data`
133
+ :param _request_timeout: timeout setting for this request. If one
134
+ number provided, it will be total request
135
+ timeout. It can also be a pair (tuple) of
136
+ (connection, read) timeouts.
137
+ """
138
+ method = method.upper()
139
+ assert method in [
140
+ 'GET',
141
+ 'HEAD',
142
+ 'DELETE',
143
+ 'POST',
144
+ 'PUT',
145
+ 'PATCH',
146
+ 'OPTIONS'
147
+ ]
148
+
149
+ if post_params and body:
150
+ raise ApiValueError(
151
+ "body parameter cannot be used with post_params parameter."
152
+ )
153
+
154
+ post_params = post_params or {}
155
+ headers = headers or {}
156
+
157
+ timeout = None
158
+ if _request_timeout:
159
+ if isinstance(_request_timeout, (int, float)):
160
+ timeout = urllib3.Timeout(total=_request_timeout)
161
+ elif (
162
+ isinstance(_request_timeout, tuple)
163
+ and len(_request_timeout) == 2
164
+ ):
165
+ timeout = urllib3.Timeout(
166
+ connect=_request_timeout[0],
167
+ read=_request_timeout[1]
168
+ )
169
+
170
+ try:
171
+ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
172
+ if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
173
+
174
+ # no content type provided or payload is json
175
+ content_type = headers.get('Content-Type')
176
+ if (
177
+ not content_type
178
+ or re.search('json', content_type, re.IGNORECASE)
179
+ ):
180
+ request_body = None
181
+ if body is not None:
182
+ request_body = json.dumps(body)
183
+ r = self.pool_manager.request(
184
+ method,
185
+ url,
186
+ body=request_body,
187
+ timeout=timeout,
188
+ headers=headers,
189
+ preload_content=False
190
+ )
191
+ elif content_type == 'application/x-www-form-urlencoded':
192
+ r = self.pool_manager.request(
193
+ method,
194
+ url,
195
+ fields=post_params,
196
+ encode_multipart=False,
197
+ timeout=timeout,
198
+ headers=headers,
199
+ preload_content=False
200
+ )
201
+ elif content_type == 'multipart/form-data':
202
+ # must del headers['Content-Type'], or the correct
203
+ # Content-Type which generated by urllib3 will be
204
+ # overwritten.
205
+ del headers['Content-Type']
206
+ # Ensures that dict objects are serialized
207
+ post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
208
+ r = self.pool_manager.request(
209
+ method,
210
+ url,
211
+ fields=post_params,
212
+ encode_multipart=True,
213
+ timeout=timeout,
214
+ headers=headers,
215
+ preload_content=False
216
+ )
217
+ # Pass a `string` parameter directly in the body to support
218
+ # other content types than JSON when `body` argument is
219
+ # provided in serialized form.
220
+ elif isinstance(body, str) or isinstance(body, bytes):
221
+ r = self.pool_manager.request(
222
+ method,
223
+ url,
224
+ body=body,
225
+ timeout=timeout,
226
+ headers=headers,
227
+ preload_content=False
228
+ )
229
+ elif headers['Content-Type'] == 'text/plain' and isinstance(body, bool):
230
+ request_body = "true" if body else "false"
231
+ r = self.pool_manager.request(
232
+ method,
233
+ url,
234
+ body=request_body,
235
+ preload_content=False,
236
+ timeout=timeout,
237
+ headers=headers)
238
+ else:
239
+ # Cannot generate the request from given parameters
240
+ msg = """Cannot prepare a request message for provided
241
+ arguments. Please check that your arguments match
242
+ declared content type."""
243
+ raise ApiException(status=0, reason=msg)
244
+ # For `GET`, `HEAD`
245
+ else:
246
+ r = self.pool_manager.request(
247
+ method,
248
+ url,
249
+ fields={},
250
+ timeout=timeout,
251
+ headers=headers,
252
+ preload_content=False
253
+ )
254
+ except urllib3.exceptions.SSLError as e:
255
+ msg = "\n".join([type(e).__name__, str(e)])
256
+ raise ApiException(status=0, reason=msg)
257
+
258
+ return RESTResponse(r)
@@ -0,0 +1,336 @@
1
+ Metadata-Version: 2.1
2
+ Name: pluggy-sdk
3
+ Version: 1.0.0.post2
4
+ Summary: Pluggy API
5
+ Home-page: https://github.com/diraol/pluggy-python
6
+ Author: Pluggy
7
+ Author-email: hello@pluggy.ai
8
+ License: MIT
9
+ Keywords: OpenAPI,OpenAPI-Generator,Pluggy API
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: urllib3 <2.1.0,>=1.25.3
12
+ Requires-Dist: python-dateutil
13
+ Requires-Dist: pydantic >=2
14
+ Requires-Dist: typing-extensions >=4.7.1
15
+
16
+ # pluggy-sdk
17
+ Pluggy's main API to review data and execute connectors
18
+
19
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
20
+
21
+ - API version: 1.0.0
22
+ - Package version: 1.0.0.post2
23
+ - Generator version: 7.5.0-SNAPSHOT
24
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
25
+ For more information, please visit [https://pluggy.ai](https://pluggy.ai)
26
+
27
+ ## Requirements.
28
+
29
+ Python 3.7+
30
+
31
+ ## Installation & Usage
32
+ ### pip install
33
+
34
+ If the python package is hosted on a repository, you can install directly using:
35
+
36
+ ```sh
37
+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
38
+ ```
39
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
40
+
41
+ Then import the package:
42
+ ```python
43
+ import pluggy_sdk
44
+ ```
45
+
46
+ ### Setuptools
47
+
48
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
49
+
50
+ ```sh
51
+ python setup.py install --user
52
+ ```
53
+ (or `sudo python setup.py install` to install the package for all users)
54
+
55
+ Then import the package:
56
+ ```python
57
+ import pluggy_sdk
58
+ ```
59
+
60
+ ### Tests
61
+
62
+ Execute `pytest` to run the tests.
63
+
64
+ ## Getting Started
65
+
66
+ Please follow the [installation procedure](#installation--usage) and then run the following:
67
+
68
+ ```python
69
+
70
+ import pluggy_sdk
71
+ from pluggy_sdk.rest import ApiException
72
+ from pprint import pprint
73
+
74
+ # Defining the host is optional and defaults to https://api.pluggy.ai
75
+ # See configuration.py for a list of all supported configuration parameters.
76
+ configuration = pluggy_sdk.Configuration(
77
+ host = "https://api.pluggy.ai"
78
+ )
79
+
80
+ # The client must configure the authentication and authorization parameters
81
+ # in accordance with the API server security policy.
82
+ # Examples for each auth method are provided below, use the example that
83
+ # satisfies your auth use case.
84
+
85
+ # Configure API key authorization: default
86
+ configuration.api_key['default'] = os.environ["API_KEY"]
87
+
88
+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
89
+ # configuration.api_key_prefix['default'] = 'Bearer'
90
+
91
+
92
+ # Enter a context with an instance of the API client
93
+ with pluggy_sdk.ApiClient(configuration) as api_client:
94
+ # Create an instance of the API class
95
+ api_instance = pluggy_sdk.AccountApi(api_client)
96
+ item_id = 'd0f8a8c0-e8e3-11e9-b210-d663bd873d93' # str | Item primary identifier
97
+ type = 'BANK' # str | Parameter to filter between bank accounts and credit accounts (optional)
98
+
99
+ try:
100
+ # List
101
+ api_response = api_instance.accounts_list(item_id, type=type)
102
+ print("The response of AccountApi->accounts_list:\n")
103
+ pprint(api_response)
104
+ except ApiException as e:
105
+ print("Exception when calling AccountApi->accounts_list: %s\n" % e)
106
+
107
+ ```
108
+
109
+ ## Documentation for API Endpoints
110
+
111
+ All URIs are relative to *https://api.pluggy.ai*
112
+
113
+ Class | Method | HTTP request | Description
114
+ ------------ | ------------- | ------------- | -------------
115
+ *AccountApi* | [**accounts_list**](docs/AccountApi.md#accounts_list) | **GET** /accounts | List
116
+ *AccountApi* | [**accounts_retrieve**](docs/AccountApi.md#accounts_retrieve) | **GET** /accounts/{id} | Retrieve
117
+ *AcquirerAnticipationApi* | [**acquirer_anticipation_retrieve**](docs/AcquirerAnticipationApi.md#acquirer_anticipation_retrieve) | **GET** /acquirer-anticipations/{id} | Retrieve
118
+ *AcquirerAnticipationApi* | [**acquirer_anticipations_list**](docs/AcquirerAnticipationApi.md#acquirer_anticipations_list) | **GET** /acquirer-anticipations | List
119
+ *AcquirerReceivableApi* | [**acquirer_receivable_retrieve**](docs/AcquirerReceivableApi.md#acquirer_receivable_retrieve) | **GET** /acquirer-receivables/{id} | Retrieve
120
+ *AcquirerReceivableApi* | [**acquirer_receivables_list**](docs/AcquirerReceivableApi.md#acquirer_receivables_list) | **GET** /acquirer-receivables | List
121
+ *AcquirerSaleApi* | [**acquirer_sales_list**](docs/AcquirerSaleApi.md#acquirer_sales_list) | **GET** /acquirer-sales | List
122
+ *AcquirerSaleApi* | [**acquirer_sales_retrieve**](docs/AcquirerSaleApi.md#acquirer_sales_retrieve) | **GET** /acquirer-sales/{id} | Retrieve
123
+ *AuthApi* | [**auth_create**](docs/AuthApi.md#auth_create) | **POST** /auth | Create API Key
124
+ *AuthApi* | [**connect_token_create**](docs/AuthApi.md#connect_token_create) | **POST** /connect_token | Create Connect Token
125
+ *BillApi* | [**bills_list**](docs/BillApi.md#bills_list) | **GET** /bills | List
126
+ *BillApi* | [**bills_retrieve**](docs/BillApi.md#bills_retrieve) | **GET** /bills/{id} | Retrieve
127
+ *BulkPaymentApi* | [**bulk_payment_create**](docs/BulkPaymentApi.md#bulk_payment_create) | **POST** /payments/bulk | Create
128
+ *BulkPaymentApi* | [**bulk_payment_retrieve**](docs/BulkPaymentApi.md#bulk_payment_retrieve) | **GET** /payments/bulk/{id} | Retrieve
129
+ *BulkPaymentApi* | [**bulk_payments_list**](docs/BulkPaymentApi.md#bulk_payments_list) | **GET** /payments/bulk | List
130
+ *CategoryApi* | [**categories_list**](docs/CategoryApi.md#categories_list) | **GET** /categories | List
131
+ *CategoryApi* | [**categories_retrieve**](docs/CategoryApi.md#categories_retrieve) | **GET** /categories/{id} | Retrieve
132
+ *CategoryApi* | [**client_category_rules_create**](docs/CategoryApi.md#client_category_rules_create) | **POST** /categories/rules | Create Category Rule
133
+ *CategoryApi* | [**client_category_rules_list**](docs/CategoryApi.md#client_category_rules_list) | **GET** /categories/rules | List Category Rules
134
+ *ConnectorApi* | [**connector_retrieve**](docs/ConnectorApi.md#connector_retrieve) | **GET** /connectors/{id} | Retrieve
135
+ *ConnectorApi* | [**connectors_list**](docs/ConnectorApi.md#connectors_list) | **GET** /connectors | List
136
+ *ConnectorApi* | [**connectors_validate**](docs/ConnectorApi.md#connectors_validate) | **POST** /connectors/{id}/validate | Validate
137
+ *IdentityApi* | [**identity_find_by_item**](docs/IdentityApi.md#identity_find_by_item) | **GET** /identity | Find by item
138
+ *IdentityApi* | [**identity_retrieve**](docs/IdentityApi.md#identity_retrieve) | **GET** /identity/{id} | Retrieve
139
+ *IncomeReportApi* | [**income_reports_find_by_item**](docs/IncomeReportApi.md#income_reports_find_by_item) | **GET** /income-reports | Find income reports by item
140
+ *InvestmentApi* | [**investment_transactions_list**](docs/InvestmentApi.md#investment_transactions_list) | **GET** /investments/{id}/transactions | List investment transactions
141
+ *InvestmentApi* | [**investments_list**](docs/InvestmentApi.md#investments_list) | **GET** /investments | List
142
+ *InvestmentApi* | [**investments_retrieve**](docs/InvestmentApi.md#investments_retrieve) | **GET** /investments/{id} | Retrieve
143
+ *ItemsApi* | [**items_create**](docs/ItemsApi.md#items_create) | **POST** /items | Create
144
+ *ItemsApi* | [**items_delete**](docs/ItemsApi.md#items_delete) | **DELETE** /items/{id} | Delete
145
+ *ItemsApi* | [**items_retrieve**](docs/ItemsApi.md#items_retrieve) | **GET** /items/{id} | Retrieve
146
+ *ItemsApi* | [**items_send_mfa**](docs/ItemsApi.md#items_send_mfa) | **POST** /items/{id}/mfa | Send MFA
147
+ *ItemsApi* | [**items_update**](docs/ItemsApi.md#items_update) | **PATCH** /items/{id} | Update
148
+ *LoanApi* | [**loans_list**](docs/LoanApi.md#loans_list) | **GET** /loans | List
149
+ *LoanApi* | [**loans_retrieve**](docs/LoanApi.md#loans_retrieve) | **GET** /loans/{id} | Retrieve
150
+ *PaymentCustomerApi* | [**payment_customer_create**](docs/PaymentCustomerApi.md#payment_customer_create) | **POST** /payments/customers | Create
151
+ *PaymentCustomerApi* | [**payment_customer_delete**](docs/PaymentCustomerApi.md#payment_customer_delete) | **DELETE** /payments/customers/{id} | Delete
152
+ *PaymentCustomerApi* | [**payment_customer_retrieve**](docs/PaymentCustomerApi.md#payment_customer_retrieve) | **GET** /payments/customers/{id} | Retrieve
153
+ *PaymentCustomerApi* | [**payment_customer_update**](docs/PaymentCustomerApi.md#payment_customer_update) | **PATCH** /payments/customers/{id} | Update
154
+ *PaymentCustomerApi* | [**payment_customers_list**](docs/PaymentCustomerApi.md#payment_customers_list) | **GET** /payments/customers | List
155
+ *PaymentIntentApi* | [**payment_intent_create**](docs/PaymentIntentApi.md#payment_intent_create) | **POST** /payments/intents | Create
156
+ *PaymentIntentApi* | [**payment_intent_retrieve**](docs/PaymentIntentApi.md#payment_intent_retrieve) | **GET** /payments/intents/{id} | Retrieve
157
+ *PaymentIntentApi* | [**payment_intents_list**](docs/PaymentIntentApi.md#payment_intents_list) | **GET** /payments/intents | List
158
+ *PaymentRecipientApi* | [**payment_recipient_create**](docs/PaymentRecipientApi.md#payment_recipient_create) | **POST** /payments/recipients | Create
159
+ *PaymentRecipientApi* | [**payment_recipient_delete**](docs/PaymentRecipientApi.md#payment_recipient_delete) | **DELETE** /payments/recipients/{id} | Delete
160
+ *PaymentRecipientApi* | [**payment_recipient_institutions_retrieve**](docs/PaymentRecipientApi.md#payment_recipient_institutions_retrieve) | **GET** /payments/recipients/institutions/{id} | Retrieve Institution
161
+ *PaymentRecipientApi* | [**payment_recipient_retrieve**](docs/PaymentRecipientApi.md#payment_recipient_retrieve) | **GET** /payments/recipients/{id} | Retrieve
162
+ *PaymentRecipientApi* | [**payment_recipient_update**](docs/PaymentRecipientApi.md#payment_recipient_update) | **PATCH** /payments/recipients/{id} | Update
163
+ *PaymentRecipientApi* | [**payment_recipients_institution_list**](docs/PaymentRecipientApi.md#payment_recipients_institution_list) | **GET** /payments/recipients/institutions | List Institutions
164
+ *PaymentRecipientApi* | [**payment_recipients_list**](docs/PaymentRecipientApi.md#payment_recipients_list) | **GET** /payments/recipients | List
165
+ *PaymentRequestApi* | [**payment_request_create**](docs/PaymentRequestApi.md#payment_request_create) | **POST** /payments/requests | Create
166
+ *PaymentRequestApi* | [**payment_request_create_pix_qr**](docs/PaymentRequestApi.md#payment_request_create_pix_qr) | **POST** /payments/requests/pix-qr | Create PIX QR payment request
167
+ *PaymentRequestApi* | [**payment_request_delete**](docs/PaymentRequestApi.md#payment_request_delete) | **DELETE** /payments/requests/{id} | Delete
168
+ *PaymentRequestApi* | [**payment_request_retrieve**](docs/PaymentRequestApi.md#payment_request_retrieve) | **GET** /payments/requests/{id} | Retrieve
169
+ *PaymentRequestApi* | [**payment_request_update**](docs/PaymentRequestApi.md#payment_request_update) | **PATCH** /payments/requests/{id} | Update
170
+ *PaymentRequestApi* | [**payment_requests_list**](docs/PaymentRequestApi.md#payment_requests_list) | **GET** /payments/requests | List
171
+ *PortfolioYieldApi* | [**aggregated_portfolio_find_by_item**](docs/PortfolioYieldApi.md#aggregated_portfolio_find_by_item) | **GET** /portfolio/{itemId} | Find aggregated portfolio yield by item
172
+ *PortfolioYieldApi* | [**monthly_portfolio_find_by_item**](docs/PortfolioYieldApi.md#monthly_portfolio_find_by_item) | **GET** /portfolio/{itemId}/monthly | Find monthly portfolio yield by item
173
+ *SmartAccountApi* | [**smart_account_balance_retrieve**](docs/SmartAccountApi.md#smart_account_balance_retrieve) | **GET** /payments/smart-accounts/{id}/balance | Retrieve Balance
174
+ *SmartAccountApi* | [**smart_account_create**](docs/SmartAccountApi.md#smart_account_create) | **POST** /payments/smart-accounts | Create
175
+ *SmartAccountApi* | [**smart_account_retrieve**](docs/SmartAccountApi.md#smart_account_retrieve) | **GET** /payments/smart-accounts/{id} | Retrieve
176
+ *SmartAccountApi* | [**smart_accounts_list**](docs/SmartAccountApi.md#smart_accounts_list) | **GET** /payments/smart-accounts | List
177
+ *TransactionApi* | [**transactions_list**](docs/TransactionApi.md#transactions_list) | **GET** /transactions | List
178
+ *TransactionApi* | [**transactions_retrieve**](docs/TransactionApi.md#transactions_retrieve) | **GET** /transactions/{id} | Retrieve
179
+ *TransactionApi* | [**transactions_update**](docs/TransactionApi.md#transactions_update) | **PATCH** /transactions/{id} | Update
180
+ *WebhookApi* | [**webhooks_create**](docs/WebhookApi.md#webhooks_create) | **POST** /webhooks | Create
181
+ *WebhookApi* | [**webhooks_delete**](docs/WebhookApi.md#webhooks_delete) | **DELETE** /webhooks/{id} | Delete
182
+ *WebhookApi* | [**webhooks_list**](docs/WebhookApi.md#webhooks_list) | **GET** /webhooks | List
183
+ *WebhookApi* | [**webhooks_retrieve**](docs/WebhookApi.md#webhooks_retrieve) | **GET** /webhooks/{id} | Retrieve
184
+ *WebhookApi* | [**webhooks_update**](docs/WebhookApi.md#webhooks_update) | **PATCH** /webhooks/{id} | Update
185
+
186
+
187
+ ## Documentation For Models
188
+
189
+ - [Account](docs/Account.md)
190
+ - [AccountsList200Response](docs/AccountsList200Response.md)
191
+ - [AcquirerAnticipation](docs/AcquirerAnticipation.md)
192
+ - [AcquirerAnticipationData](docs/AcquirerAnticipationData.md)
193
+ - [AcquirerData](docs/AcquirerData.md)
194
+ - [AcquirerReceivable](docs/AcquirerReceivable.md)
195
+ - [AcquirerReceivableData](docs/AcquirerReceivableData.md)
196
+ - [AcquirerReceivableDataEstablishment](docs/AcquirerReceivableDataEstablishment.md)
197
+ - [AcquirerReceivableDestinationAccount](docs/AcquirerReceivableDestinationAccount.md)
198
+ - [AcquirerReceivableRelatedSale](docs/AcquirerReceivableRelatedSale.md)
199
+ - [AcquirerSale](docs/AcquirerSale.md)
200
+ - [AcquirerSaleData](docs/AcquirerSaleData.md)
201
+ - [AcquirerSaleInstallment](docs/AcquirerSaleInstallment.md)
202
+ - [AcquirerSaleInstallmentData](docs/AcquirerSaleInstallmentData.md)
203
+ - [Address](docs/Address.md)
204
+ - [AggregatedPortfolio](docs/AggregatedPortfolio.md)
205
+ - [AggregatedPortfolioResponse](docs/AggregatedPortfolioResponse.md)
206
+ - [AssetDistribution](docs/AssetDistribution.md)
207
+ - [AuthRequest](docs/AuthRequest.md)
208
+ - [AuthResponse](docs/AuthResponse.md)
209
+ - [BankData](docs/BankData.md)
210
+ - [Bill](docs/Bill.md)
211
+ - [BillFinanceCharge](docs/BillFinanceCharge.md)
212
+ - [BillsList200Response](docs/BillsList200Response.md)
213
+ - [BulkPayment](docs/BulkPayment.md)
214
+ - [BulkPaymentsList200Response](docs/BulkPaymentsList200Response.md)
215
+ - [Category](docs/Category.md)
216
+ - [ClientCategoryRule](docs/ClientCategoryRule.md)
217
+ - [Company](docs/Company.md)
218
+ - [ConnectTokenRequest](docs/ConnectTokenRequest.md)
219
+ - [ConnectTokenResponse](docs/ConnectTokenResponse.md)
220
+ - [Connector](docs/Connector.md)
221
+ - [ConnectorCredential](docs/ConnectorCredential.md)
222
+ - [ConnectorHealth](docs/ConnectorHealth.md)
223
+ - [ConnectorHealthDetails](docs/ConnectorHealthDetails.md)
224
+ - [ConnectorListResponse](docs/ConnectorListResponse.md)
225
+ - [ConnectorUserAction](docs/ConnectorUserAction.md)
226
+ - [CreateBulkPayment](docs/CreateBulkPayment.md)
227
+ - [CreateClientCategoryRule](docs/CreateClientCategoryRule.md)
228
+ - [CreateItem](docs/CreateItem.md)
229
+ - [CreateItemParameters](docs/CreateItemParameters.md)
230
+ - [CreateOrUpdatePaymentCustomer](docs/CreateOrUpdatePaymentCustomer.md)
231
+ - [CreatePaymentCustomerRequestBody](docs/CreatePaymentCustomerRequestBody.md)
232
+ - [CreatePaymentIntent](docs/CreatePaymentIntent.md)
233
+ - [CreatePaymentRecipient](docs/CreatePaymentRecipient.md)
234
+ - [CreatePaymentRequest](docs/CreatePaymentRequest.md)
235
+ - [CreatePixQrPaymentRequest](docs/CreatePixQrPaymentRequest.md)
236
+ - [CreateSmartAccountRequest](docs/CreateSmartAccountRequest.md)
237
+ - [CreateWebhook](docs/CreateWebhook.md)
238
+ - [CredentialSelectOption](docs/CredentialSelectOption.md)
239
+ - [CreditCardMetadata](docs/CreditCardMetadata.md)
240
+ - [CreditData](docs/CreditData.md)
241
+ - [Document](docs/Document.md)
242
+ - [Email](docs/Email.md)
243
+ - [GlobalErrorResponse](docs/GlobalErrorResponse.md)
244
+ - [ICountResponse](docs/ICountResponse.md)
245
+ - [IdentityRelation](docs/IdentityRelation.md)
246
+ - [IdentityResponse](docs/IdentityResponse.md)
247
+ - [IncomeReport](docs/IncomeReport.md)
248
+ - [IncomeReportsResponse](docs/IncomeReportsResponse.md)
249
+ - [Investment](docs/Investment.md)
250
+ - [InvestmentExpenses](docs/InvestmentExpenses.md)
251
+ - [InvestmentMetadata](docs/InvestmentMetadata.md)
252
+ - [InvestmentTransaction](docs/InvestmentTransaction.md)
253
+ - [InvestmentsList200Response](docs/InvestmentsList200Response.md)
254
+ - [Item](docs/Item.md)
255
+ - [ItemCreationErrorResponse](docs/ItemCreationErrorResponse.md)
256
+ - [ItemError](docs/ItemError.md)
257
+ - [ItemOptions](docs/ItemOptions.md)
258
+ - [Loan](docs/Loan.md)
259
+ - [LoanContractedFee](docs/LoanContractedFee.md)
260
+ - [LoanContractedFinanceCharge](docs/LoanContractedFinanceCharge.md)
261
+ - [LoanInstallmentBalloonPayment](docs/LoanInstallmentBalloonPayment.md)
262
+ - [LoanInstallmentBalloonPaymentAmount](docs/LoanInstallmentBalloonPaymentAmount.md)
263
+ - [LoanInstallments](docs/LoanInstallments.md)
264
+ - [LoanInterestRate](docs/LoanInterestRate.md)
265
+ - [LoanPaymentRelease](docs/LoanPaymentRelease.md)
266
+ - [LoanPaymentReleaseOverParcel](docs/LoanPaymentReleaseOverParcel.md)
267
+ - [LoanPaymentReleaseOverParcelCharge](docs/LoanPaymentReleaseOverParcelCharge.md)
268
+ - [LoanPaymentReleaseOverParcelFee](docs/LoanPaymentReleaseOverParcelFee.md)
269
+ - [LoanPayments](docs/LoanPayments.md)
270
+ - [LoanWarranty](docs/LoanWarranty.md)
271
+ - [LoansList200Response](docs/LoansList200Response.md)
272
+ - [Merchant](docs/Merchant.md)
273
+ - [MonthlyPortfolio](docs/MonthlyPortfolio.md)
274
+ - [MonthlyPortfolioResponse](docs/MonthlyPortfolioResponse.md)
275
+ - [NotAuthenticatedResponse](docs/NotAuthenticatedResponse.md)
276
+ - [PageResponseAcquirerAnticipations](docs/PageResponseAcquirerAnticipations.md)
277
+ - [PageResponseAcquirerReceivables](docs/PageResponseAcquirerReceivables.md)
278
+ - [PageResponseAcquirerSales](docs/PageResponseAcquirerSales.md)
279
+ - [PageResponseCategoryRules](docs/PageResponseCategoryRules.md)
280
+ - [PageResponseInvestmentTransactions](docs/PageResponseInvestmentTransactions.md)
281
+ - [PageResponseTransactions](docs/PageResponseTransactions.md)
282
+ - [ParameterValidationError](docs/ParameterValidationError.md)
283
+ - [ParameterValidationResponse](docs/ParameterValidationResponse.md)
284
+ - [PaymentCustomer](docs/PaymentCustomer.md)
285
+ - [PaymentCustomersList200Response](docs/PaymentCustomersList200Response.md)
286
+ - [PaymentData](docs/PaymentData.md)
287
+ - [PaymentDataParticipant](docs/PaymentDataParticipant.md)
288
+ - [PaymentInstitution](docs/PaymentInstitution.md)
289
+ - [PaymentIntent](docs/PaymentIntent.md)
290
+ - [PaymentIntentsList200Response](docs/PaymentIntentsList200Response.md)
291
+ - [PaymentRecipient](docs/PaymentRecipient.md)
292
+ - [PaymentRecipientAccount](docs/PaymentRecipientAccount.md)
293
+ - [PaymentRecipientsInstitutionList200Response](docs/PaymentRecipientsInstitutionList200Response.md)
294
+ - [PaymentRecipientsList200Response](docs/PaymentRecipientsList200Response.md)
295
+ - [PaymentRequest](docs/PaymentRequest.md)
296
+ - [PaymentRequestCallbackUrls](docs/PaymentRequestCallbackUrls.md)
297
+ - [PaymentRequestsList200Response](docs/PaymentRequestsList200Response.md)
298
+ - [PercentageOverIndex](docs/PercentageOverIndex.md)
299
+ - [PhoneNumber](docs/PhoneNumber.md)
300
+ - [PixData](docs/PixData.md)
301
+ - [SmartAccount](docs/SmartAccount.md)
302
+ - [SmartAccountAddress](docs/SmartAccountAddress.md)
303
+ - [SmartAccountBalance](docs/SmartAccountBalance.md)
304
+ - [SmartAccountsList200Response](docs/SmartAccountsList200Response.md)
305
+ - [StatusDetail](docs/StatusDetail.md)
306
+ - [StatusDetailProduct](docs/StatusDetailProduct.md)
307
+ - [StatusDetailProductWarning](docs/StatusDetailProductWarning.md)
308
+ - [Transaction](docs/Transaction.md)
309
+ - [UpdateItem](docs/UpdateItem.md)
310
+ - [UpdateItemParameters](docs/UpdateItemParameters.md)
311
+ - [UpdatePaymentRecipient](docs/UpdatePaymentRecipient.md)
312
+ - [UpdatePaymentRequest](docs/UpdatePaymentRequest.md)
313
+ - [UpdateTransaction](docs/UpdateTransaction.md)
314
+ - [Webhook](docs/Webhook.md)
315
+ - [WebhookCreationErrorResponse](docs/WebhookCreationErrorResponse.md)
316
+ - [WebhooksList200Response](docs/WebhooksList200Response.md)
317
+
318
+
319
+ <a id="documentation-for-authorization"></a>
320
+ ## Documentation For Authorization
321
+
322
+
323
+ Authentication schemes defined for the API:
324
+ <a id="default"></a>
325
+ ### default
326
+
327
+ - **Type**: API key
328
+ - **API key parameter name**: X-API-KEY
329
+ - **Location**: HTTP header
330
+
331
+
332
+ ## Author
333
+
334
+ hello@pluggy.ai
335
+
336
+