Package: cashfree-lrs-client
cashfree-lrs-clientCashFree LRS APIs (v2)This Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.0.17Package version: 1.0.17Build package: org.openapitools.codegen.languages.PythonNextgenClientCodegen
For more information, please visithttps://docs.cashfree.comRequirements.Python 3.7+Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importcashfree_lrs_clientSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importcashfree_lrs_clientTestsExecutepytestto run the tests.Getting StartedPlease follow theinstallation procedureand then run the following:importtimeimportcashfree_lrs_clientfromcashfree_lrs_client.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to https://sandbox.cashfree.com/pg/lrs# See configuration.py for a list of all supported configuration parameters.configuration=cashfree_lrs_client.Configuration(host="https://sandbox.cashfree.com/pg/lrs")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: X-Client-IDconfiguration.api_key['X-Client-ID']=os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['X-Client-ID'] = 'Bearer'# Configure API key authorization: X-Client-Secretconfiguration.api_key['X-Client-Secret']=os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['X-Client-Secret'] = 'Bearer'# Configure API key authorization: X-API-Versionconfiguration.api_key['X-API-Version']=os.environ["API_KEY"]# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['X-API-Version'] = 'Bearer'# Enter a context with an instance of the API clientwithcashfree_lrs_client.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=cashfree_lrs_client.LrsApi(api_client)files=None# List[bytearray] | Upload multiple document at a time. Accepted file type - .pdf. Maximum file size - 20 MBtry:# Upload Documents in Bulkapi_response=api_instance.bulk_documents_upload(files)print("The response of LrsApi->bulk_documents_upload:\n")pprint(api_response)exceptApiExceptionase:print("Exception when calling LrsApi->bulk_documents_upload:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://sandbox.cashfree.com/pg/lrsClassMethodHTTP requestDescriptionLrsApibulk_documents_uploadPOST/orders/documents/uploadUpload Documents in BulkLrsApicreate_beneficiaryPOST/beneficiariesCreate BeneficiaryLrsApicreate_orderPOST/ordersCreate LRS OrderLrsApicreate_remitterPOST/remittersCreate RemitterLrsApifetch_forex_ratePOST/fx-rate/detailsFetch FX RateLrsApiprocess_orderPOST/orders/{order_id}/processProcess OrderLrsApisetup_webhooksPOST/webhooksSetup WebhooksLrsApiupload_documentsPOST/orders/{order_id}/documents/uploadUpload DocumentsDocumentation For ModelsBulkDocumentsUploadResponseCountryCreateBeneficiaryRequestCreateOrderRequestCreateOrderResponseCreateRemitterRequestCurrencyDocumentErrorFetchForexRateRequestFetchForexRateResponseFetchForexRateResponseTcsPurposeSetupWebhooksRequestSuccessMessageDocumentation For AuthorizationAuthentication schemes defined for the API:X-API-VersionType: API keyAPI key parameter name: X-API-VersionLocation: HTTP headerX-Client-IDType: API keyAPI key parameter name: X-Client-IDLocation: HTTP headerX-Client-SecretType: API keyAPI key parameter name: X-Client-SecretLocation: HTTP headerAuthornextgenapi@cashfree.com