You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't make a subscription report, because only orders (either card or APM) can be parsed in __send_reconciliation_request
from datetime import datetime
from solidgate import ApiClient
client = ApiClient("merchant_id", "merchant_private_key")
client.RECONCILIATION_CHARGEBACKS_PATH = 'api/v1/subscriptions'
orders = client.chargeback_reconciliation(datetime.strptime("2025-01-01", "%Y-%m-%d"),
datetime.strptime("2025-01-02", "%Y-%m-%d"))
for order in orders:
print(order)
Traceback (most recent call last):
File "/user/test/test.py", line 10, in <module>
for order in orders:
File "/user/test/.venv/lib/python3.9/site-packages/solidgate/api_client.py", line 101, in __send_reconciliation_request
for order in response_content['orders']:
KeyError: 'orders'
This code fails, because in __send_reconciliation_request only key orders is parsed
if 200 <= response.status_code < 300:
response_content = json.loads(response.content)
for order in response_content['orders']:
yield order
The text was updated successfully, but these errors were encountered:
Can't make a subscription report, because only orders (either card or APM) can be parsed in
__send_reconciliation_request
This code fails, because in
__send_reconciliation_request
only keyorders
is parsedThe text was updated successfully, but these errors were encountered: