from PPPForgivenessSDK.client import Client # to run file 'create_forgiveness_request.py', make sure python path includes path to sba_ppp_forgiveness-sdk # , use a valid token and insure loan information matches a valid loan without a previous forgiveness request client = Client( access_token='{{YOUR_TOKEN_HERE}}', vendor_key='{{YOUR_VENDOR_KEY}}', environment='sandbox', ) forgiveness_api = client.forgiveness_requests # create a new forgiveness request # etran_loan must pass validation against SBA records based on amounts, full disbursement, ein match, sba number match and amount match result = forgiveness_api.create( bank_notional_amount='12345.67', sba_number=int('12311'), loan_number=int('12311'), entity_name='Test Entity', ein='111223456', funding_date="2020-07-06", forgive_eidl_amount=100.00, forgive_eidl_application_number=123456789, forgive_payroll=1000.00, forgive_rent=1000.00, forgive_utilities=1000.00, forgive_mortgage=1000.00, address1="5050 Ritter Road – Suite B", address2="Mechanicsburg, PA", dba_name="Abc Inc", phone_number="6102342123",
from PPPForgivenessSDK.client import Client # to run file 'list_dcument_types.py', use valid token (page parameter can be changed ) client = Client(access_token='c1fad04273b482eba7c8e14c4db57479defbbfc7', vendor_key='2139dbe1-3fca-4729-9d29-724cd3d63672', environment='sandbox') document_type_api = client.document_types # read first page of document types result = document_type_api.list(page=1) if result['status'] == 200: print(result['data']) else: print("An error occurred." + str(result['status'])) print(result['data'])