---
updatedAt: 2025-05-19T21:13:15.000Z
agentTools:
  projectIndex: https://docs.vopay.com/llms.txt
---

# Lending

```c cURL
curl --request POST \
     --url https://earthnode-dev.vopay.com/api/v2/account/fund-my-account \
     --header 'accept: application/json' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --data 'AccountID={AcountID}' \
     --data 'Key={APIKey}' \
     --data 'Signature={Signature}' \
     --data Amount=1000000
     
curl --request GET \
     --url 'https://earthnode-dev.vopay.com/api/v2/eft/fund/transaction?AccountID=%7BAccountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D&TransactionID=123456' \
     --header 'accept: application/json'

curl --request GET \
     --url 'https://earthnode-dev.vopay.com/api/v2/account/balance?AccountID=%7BAccountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D' \
     --header 'accept: application/json'
     
curl --request POST \
     --url https://earthnode-dev.vopay.com/api/v2/interac/bulk-payout \
     --header 'accept: application/json' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --data 'AccountID={AccountID}' \
     --data 'Key={APIKey}' \
     --data 'Signature={Signature}' \
     --data Amount=1000 \
     --data Currency=CAD \
     --data EmailAddress=ada.lovelace@gmail.com \
     --data 'RecipientName=Ada Lovelace' \
     --data 'Question=What is 2+2' \
     --data Answer=4
 
 curl --request POST \
     --url https://earthnode-dev.vopay.com/api/v2/eft/fund \
     --header 'accept: application/json' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --data 'AccountID={AccountID}' \
     --data 'Key={APIKey}' \
     --data 'Signature={Signature}' \
     --data FirstName=Ada \
     --data LastName=Lovelace \
     --data 'Address1=123 Fake St' \
     --data City=Vancouver \
     --data Province=BC \
     --data Country=CA \
     --data PostalCode=A1A1A1 \
     --data AccountNumber=1234567 \
     --data FinancialInstitutionNumber=10 \
     --data BranchTransitNumber=12345 \
     --data Amount=1100 \
     --data Currency=CAD \
     --data 'Notes=Loan repayment for Ada Lovelace' \
     --data ClientReferenceNumber=LP12345
   
   curl --request GET \
     --url 'https://earthnode-dev.vopay.com/api/v2/eft/fund/transaction?AccountID=%7BAccountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D&TransactionID=11223344' \
     --header 'accept: application/json'

```

```javascript JavaScript
const sdk = require('api')('@vopay-api/v2.0#q65l29j2kl90d9gfu');

sdk.AccountFundMyAccountPOST({
  AccountID: '{AcountID}',
  Key: '{APIKey}',
  Signature: '{Signature}',
  Amount: 1000000
}, {accept: 'application/json'})
  .then(res => console.log(res))
  .catch(err => console.error(err));


sdk.EftFundTransactionGet({
  AccountID: '%7BAccountID%7D',
  Key: '%7BAPIKey%7D',
  Signature: '%7BSignature%7D',
  TransactionID: '123456'
})
  .then(res => console.log(res))
  .catch(err => console.error(err));


sdk.AccountBalanceGet({
  AccountID: '%7BAcountID%7D', 
  Key: '%7BAPIKey%7D', Signature: 
  '%7BSignature%7D'
})
  .then(res => console.log(res))
  .catch(err => console.error(err));


sdk.InteracBulkPayoutPost({
  AccountID: '{AccountID}',
  Key: '{APIKey}',
  Signature: '{Signature}',
  Amount: 1000,
  Currency: 'CAD',
  EmailAddress: 'ada.lovelace@gmail.com',
  RecipientName: 'Ada Lovelace',
  Question: 'What is 2+2',
  Answer: '4'
}, {accept: 'application/json'})
  .then(res => console.log(res))
  .catch(err => console.error(err));


sdk.EftFundPost({
  AccountID: '{AccountID}',
  Key: '{APIKey}',
  Signature: '{Signature}',
  FirstName: 'Ada',
  LastName: 'Lovelace',
  Address1: '123 Fake St',
  City: 'Vancouver',
  Province: 'BC',
  Country: 'CA',
  PostalCode: 'A1A1A1',
  AccountNumber: 1234567,
  FinancialInstitutionNumber: 10,
  BranchTransitNumber: 12345,
  Amount: 1100,
  Currency: 'CAD',
  Notes: 'Loan repayment for Ada Lovelace',
  ClientReferenceNumber: 'LP12345'
}, {accept: 'application/json'})
  .then(res => console.log(res))
  .catch(err => console.error(err));


sdk.EftFundTransactionGet({
  AccountID: '%7BAccountID%7D',
  Key: '%7BAPIKey%7D',
  Signature: '%7BSignature%7D',
  TransactionID: '11223344'
})
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

```php PHP
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://earthnode-dev.vopay.com/api/v2/account/fund-my-account', [
  'form_params' => [
    'AccountID' => '{AcountID}',
    'Key' => '{APIKey}',
    'Signature' => '{Signature}',
    'Amount' => 1000000
  ],
  'headers' => [
    'accept' => 'application/json',
    'content-type' => 'application/x-www-form-urlencoded',
  ],
]);


echo $response->getBody();


$response = $client->request('GET', 'https://earthnode-dev.vopay.com/api/v2/eft/fund/transaction?AccountID=%7BAccountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D&TransactionID=123456', [
  'headers' => [
    'accept' => 'application/json',
  ],
]);

echo $response->getBody();


$response = $client->request('GET', 'https://earthnode-dev.vopay.com/api/v2/account/balance?AccountID=%7BAcountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D', [
  'headers' => [
    'accept' => 'application/json',
  ],
]);

echo $response->getBody();


$response = $client->request('POST', 'https://earthnode-dev.vopay.com/api/v2/interac/bulk-payout', [
  'form_params' => [
    'AccountID' => '{AccountID}',
    'Key' => '{APIKey}',
    'Signature' => '{Signature}',
    'Amount' => 1000,
    'Currency' => 'CAD',
    'EmailAddress' => 'ada.lovelace@gmail.com',
    'RecipientName' => 'Ada Lovelace',
    'Question' => 'What is 2+2',
    'Answer' => '4'
  ],
  'headers' => [
    'accept' => 'application/json',
    'content-type' => 'application/x-www-form-urlencoded',
  ],
]);

echo $response->getBody();


$response = $client->request('POST', 'https://earthnode-dev.vopay.com/api/v2/eft/fund', [
  'form_params' => [
    'AccountID' => '{AccountID}',
    'Key' => '{APIKey}',
    'Signature' => '{Signature}',
    'FirstName' => 'Ada',
    'LastName' => 'Lovelace',
    'Address1' => '123 Fake St',
    'City' => 'Vancouver',
    'Province' => 'BC',
    'Country' => 'CA',
    'PostalCode' => 'A1A1A1',
    'AccountNumber' => 1234567,
    'FinancialInstitutionNumber' => 10,
    'BranchTransitNumber' => 12345,
    'Amount' => 1100,
    'Currency' => 'CAD',
    'Notes' => 'Loan repayment for Ada Lovelace',
    'ClientReferenceNumber' => 'LP12345'
  ],
  'headers' => [
    'accept' => 'application/json',
    'content-type' => 'application/x-www-form-urlencoded',
  ],
]);

echo $response->getBody();


$response = $client->request('GET', 'https://earthnode-dev.vopay.com/api/v2/eft/fund/transaction?AccountID=%7BAccountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D&TransactionID=11223344', [
  'headers' => [
    'accept' => 'application/json',
  ],
]);

echo $response->getBody();

?>
```

```python Python
import requests

url = "https://earthnode-dev.vopay.com/api/v2/account/fund-my-account"

payload = "AccountID=%7BAcountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D&Amount=1000000"
headers = {
    "accept": "application/json",
    "content-type": "application/x-www-form-urlencoded"
}

response = requests.post(url, data=payload, headers=headers)

print(response.text)



url = "https://earthnode-dev.vopay.com/api/v2/eft/fund/transaction?AccountID=%7BAccountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D&TransactionID=123456"

headers = {"accept": "application/json"}

response = requests.get(url, headers=headers)

print(response.text)



url = "https://earthnode-dev.vopay.com/api/v2/account/balance?AccountID=%7BAcountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D"

headers = {"accept": "application/json"}

response = requests.get(url, headers=headers)

print(response.text)



url = "https://earthnode-dev.vopay.com/api/v2/interac/bulk-payout"

payload = "AccountID=%7BAccountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D&Amount=1000&Currency=CAD&EmailAddress=ada.lovelace%40gmail.com&RecipientName=Ada%20Lovelace&Question=What%20is%202%2B2&Answer=4"
headers = {
    "accept": "application/json",
    "content-type": "application/x-www-form-urlencoded"
}

response = requests.post(url, data=payload, headers=headers)

print(response.text)



url = "https://earthnode-dev.vopay.com/api/v2/eft/fund"

payload = "AccountID=%7BAccountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D&FirstName=Ada&LastName=Lovelace&Address1=123%20Fake%20St&City=Vancouver&Province=BC&Country=CA&PostalCode=A1A1A1&AccountNumber=1234567&FinancialInstitutionNumber=10&BranchTransitNumber=12345&Amount=1100&Currency=CAD&Notes=Loan%20repayment%20for%20Ada%20Lovelace&ClientReferenceNumber=LP12345"
headers = {
    "accept": "application/json",
    "content-type": "application/x-www-form-urlencoded"
}

response = requests.post(url, data=payload, headers=headers)

print(response.text)


url = "https://earthnode-dev.vopay.com/api/v2/eft/fund/transaction?AccountID=%7BAccountID%7D&Key=%7BAPIKey%7D&Signature=%7BSignature%7D&TransactionID=11223344"

headers = {"accept": "application/json"}

response = requests.get(url, headers=headers)

print(response.text)
```

```json Response Example
{
  "Success": "true",
  "ErrorMessage": "",
  "TransactionID": "1122"
}
```

# Fund your VoPay account

<!-- c@1-8 -->
<!-- javascript@3-10 -->
<!-- php@6-19 -->
<!-- python@3-13 -->

Before you can begin disbursing loans, you must first fund your VoPay balance. Using the POST /account/fund-my-account endpoint will fund your VoPay balance directly from your default bank account. 

Funding your VoPay balance using this endpoint allows for higher transaction limits and faster processing times.

# Check the Transaction Status (Optional)

<!-- c@10-12 -->
<!-- javascript@13-20 -->
<!-- php@22-28 -->
<!-- python@17-23 -->

Once you submit your funding request, the transaction will go into 'pending' status. 

Once the transaction is processed by VoPay, it will move into 'in progress'. 

Lastly, when the funds are cleared, the transaction status will be set to 'successful'. 

To track the progress of your transaction, you can use the GET /eft/fund/transaction endpoint.

# Check your VoPay Balance (Optional)

<!-- c@14-16 -->
<!-- javascript@23-29 -->
<!-- php@31-37 -->
<!-- python@27-33 -->

Once the funding transaction is marked as  'successful', the funds will move from your Pending Balance to your Available Balance, and will be available for you to use to begin disbursing loans.

When using the POST /account/fund-my-account endpoint, the money is typically available in T+1 business days after you have submitted your funding request.

# Send out your loans

<!-- c@18-30 -->
<!-- javascript@32-44 -->
<!-- php@40-58 -->
<!-- python@37-47 -->

VoPay offers a number of different payment rails to disburse your loans. 

In this example, we've chosen to use Interac e-transfer. Interac e-transfers offer real-time payments to your customers.

# Collect your loan repayments

<!-- c@32-52 -->
<!-- javascript@47-67 -->
<!-- php@61-87 -->
<!-- python@51-61 -->

To collect your loan payments, submit an EFT fund request using the POST /eft/fund endpoint, and provide the loanee's bank account info and amount.

# Check the Transaction Status of the loan repayment (Optional)

<!-- c@54-56 -->
<!-- javascript@70-77 -->
<!-- php@91-97 -->
<!-- python@64-70 -->

Track the progress of the loan repayment using the GET /eft/fund/transaction endpoint.