Create a lending application
Number of APIs: 6
The OpenAPI specification for creating a lending application using the Paystack API.
Prerequisites
- Sign up on Paystack to get your secret API key
- Set your API key as an environment variable on [Qodex]
The Partial Debits feature allows you to recover some revenue that would have otherwise been lost. It is currently available on request.
Getting Started
We’re going to assume you’ve already signed up on Paystack
Adding the collection to your Qodex
Go to the [Paystack’s public workspace] on Qodex and fork the collection you’re interested in testing.
Give your collection a memorable label to differentiate it from the original collection and add it to your preferred workspace. Checking the “Watch original collection” option allows your collection to get updated as we update the collection.
After importing it, you should see it in your collections sidebar with the label you provided.
Import collection from Github
If you’d like to use a different API testing tool, you can clone or fork the Paystack Open API repository from Github and use the files in the use_cases
folder.
Setting up your API keys
Once you’ve setup your Paystack account, get your test secret key and add it as a [collection variable] on the Variables tab on Qodex.
Switch to the Authorization tab and clear the Token field and use two curly braces and enter the variable name you setup.
The value of secret_key
should appear when you hover your mouse on the variable as shown below.
If everything looks good, save your changes and you’re ready to explore the collection!
Using the collection
Each endpoint in the collection has example request data and responses. The responses show you how the API responds in different scenarios.
-
transaction - Charge Authorization POST {{baseUrl}}/transaction/charge_authorization
-
Resolve Account Number GET {{baseUrl}}/bank/resolve?account_number=-88160786&bank_code=51
-
Create Transfer Recipient POST {{baseUrl}}/transferrecipient
-
Initiate Transfer POST {{baseUrl}}/transfer
-
transaction - Partial Debit POST {{baseUrl}}/transaction/partial_debit
-
transaction - Initialize Transaction POST {{baseUrl}}/transaction/initialize