Borrower
Create a BorrowerBeta
POST /api/v1/lending/lenders/{lender_id}/borrowers/create
Create a borrower profile on the specified account and set up a lender-borrower relationship with given lender, using the given borrowing settings.
Lender unique identifier.
Airwallex account unique identifier of the intended borrower.
The type of borrower to set up ("CREDIT").
CREDITA unique request identifier specified by the client. Requests with the same request_id will be treated as duplicate requests.
Request structure specific to creating credit borrowers (required when borrower_type is credit).
Credit settings.
Enable/Disable credit.
ACTIVEINACTIVECredit limits by currency.
Credit limit currency.
Credit limit.
Airwallex account unique identifier of the borrower.
Balances of borrower's account.
Available balance for standard deposit transactions.
Amount of credit still available before limit is exceeded, null for borrowers that are not credit borrowers.
Balance currency.
Amount reserved for use in future transactions.
Amount currently used in credit, null for borrowers that are not credit borrowers.
Borrower type.
CREDITDetail structure specific to credit borrowers (omitted when borrower_type is not credit).
Credit settings for borrower.
Enable/Disable credit.
ACTIVEINACTIVECredit limits by currency.
Credit limit currency.
Credit limit.
Borrower unique identifier.
| Error status | Description |
|---|---|
| 400 | Possible errors: |
| 401 |
|
| 404 |
|
| 500 |
|
$curl --request POST \> --url 'https://api.sandbox.airwallex.com/api/v1/lending/lenders/lender_id/borrowers/create' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "account_id": "acct_a2y0pxz3m4k5hoZldn97hjzp",> "borrower_type": "CREDIT",> "credit": {> "borrower_settings": {> "activation_status": "ACTIVE",> "credit_limits": [> {> "currency": "USD",> "limit": 1000> }> ]> }> },> "request_id": "3daea046-eb32-4891-a485-22eeb4e88319">}'
1{2 "account_id": "acct_a2y0pxz3m4k5hoZldn97hjzp",3 "balances": [4 {5 "available_amount": 0,6 "available_credit": 500,7 "currency": "USD",8 "reserved_amount": 500,9 "utilized_credit": 50010 }11 ],12 "borrower_type": "CREDIT",13 "credit": {14 "borrower_settings": {15 "activation_status": "ACTIVE",16 "credit_limits": [17 {18 "currency": "USD",19 "limit": 100020 }21 ]22 }23 },24 "id": "0389fb3e-b377-4bae-9715-6859961812d4"25}
List all Borrowers for This LenderBeta
GET /api/v1/lending/lenders/{lender_id}/borrowers
Get a list of borrowers that hold a borrower relationship with the specified lender. Balances and settings fields not relevant to a borrower type will be omitted in the response.
Lender unique identifier.
List of Borrower activation statuses to filter by.
List of Borrower Airwallex account unique identifiers to filter by.
Page number, starts from 0.
Number of results per page, default is 100, max is 1000.
A flag which identifies whether there are more results.
List items.
Airwallex account unique identifier of the borrower.
Balances of borrower's account.
Available balance for standard deposit transactions.
Amount of credit still available before limit is exceeded, null for borrowers that are not credit borrowers.
Balance currency.
Amount reserved for use in future transactions.
Amount currently used in credit, null for borrowers that are not credit borrowers.
Borrower type.
CREDITDetail structure specific to credit borrowers (omitted when borrower_type is not credit).
Credit settings for borrower.
Enable/Disable credit.
ACTIVEINACTIVECredit limits by currency.
Credit limit currency.
Credit limit.
Borrower unique identifier.
| Error status | Description |
|---|---|
| 400 |
|
| 401 |
|
| 404 |
|
| 500 |
|
$curl --request GET \> --url 'https://api.sandbox.airwallex.com/api/v1/lending/lenders/lender_id/borrowers' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "hasMore": true,3 "items": [4 {5 "account_id": "acct_a2y0pxz3m4k5hoZldn97hjzp",6 "balances": [7 {8 "available_amount": 0,9 "available_credit": 500,10 "currency": "USD",11 "reserved_amount": 500,12 "utilized_credit": 50013 }14 ],15 "borrower_type": "CREDIT",16 "credit": {17 "borrower_settings": {18 "activation_status": "ACTIVE",19 "credit_limits": [20 {21 "currency": "USD",22 "limit": 100023 }24 ]25 }26 },27 "id": "0389fb3e-b377-4bae-9715-6859961812d4"28 }29 ]30}
List all Borrower DetailsBeta
GET /api/v1/lending/lenders/{lender_id}/borrowers/{borrower_id}
Get details of specified borrower that holds a borrower relationship with the specified lender. Balances and settings fields not relevant to the borrower type will be omitted in the response.
Borrower unique identifier.
Lender unique identifier.
Airwallex account unique identifier of the borrower.
Balances of borrower's account.
Available balance for standard deposit transactions.
Amount of credit still available before limit is exceeded, null for borrowers that are not credit borrowers.
Balance currency.
Amount reserved for use in future transactions.
Amount currently used in credit, null for borrowers that are not credit borrowers.
Borrower type.
CREDITDetail structure specific to credit borrowers (omitted when borrower_type is not credit).
Credit settings for borrower.
Enable/Disable credit.
ACTIVEINACTIVECredit limits by currency.
Credit limit currency.
Credit limit.
Borrower unique identifier.
| Error status | Description |
|---|---|
| 400 |
|
| 401 |
|
| 404 |
|
| 500 |
|
$curl --request GET \> --url 'https://api.sandbox.airwallex.com/api/v1/lending/lenders/lender_id/borrowers/borrower_id' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "account_id": "acct_a2y0pxz3m4k5hoZldn97hjzp",3 "balances": [4 {5 "available_amount": 0,6 "available_credit": 500,7 "currency": "USD",8 "reserved_amount": 500,9 "utilized_credit": 50010 }11 ],12 "borrower_type": "CREDIT",13 "credit": {14 "borrower_settings": {15 "activation_status": "ACTIVE",16 "credit_limits": [17 {18 "currency": "USD",19 "limit": 100020 }21 ]22 }23 },24 "id": "0389fb3e-b377-4bae-9715-6859961812d4"25}
Update Borrower SettingsBeta
POST /api/v1/lending/lenders/{lender_id}/borrowers/{borrower_id}/update
Updated the settings for the specified borrower that is connected to the specified lender by a lender-borrower relationship. Settings that do not need to be updated can be omitted.
Borrower unique identifier.
Lender unique identifier.
A unique request identifier specified by the client. Requests with the: same request_id will be treated as duplicate requests.
Request structure specific to updating credit borrowers (required when updating credit borrower).
Credit settings.
Enable/Disable credit.
ACTIVEINACTIVECredit limits by currency.
Credit limit currency.
Credit limit.
Airwallex account unique identifier of the borrower.
Balances of borrower's account.
Available balance for standard deposit transactions.
Amount of credit still available before limit is exceeded, null for borrowers that are not credit borrowers.
Balance currency.
Amount reserved for use in future transactions.
Amount currently used in credit, null for borrowers that are not credit borrowers.
Borrower type.
CREDITDetail structure specific to credit borrowers (omitted when borrower_type is not credit).
Credit settings for borrower.
Enable/Disable credit.
ACTIVEINACTIVECredit limits by currency.
Credit limit currency.
Credit limit.
Borrower unique identifier.
| Error status | Description |
|---|---|
| 400 |
|
| 401 |
|
| 404 |
|
| 500 |
|
$curl --request POST \> --url 'https://api.sandbox.airwallex.com/api/v1/lending/lenders/lender_id/borrowers/borrower_id/update' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "credit": {> "borrower_settings": {> "activation_status": "ACTIVE",> "credit_limits": [> {> "currency": "USD",> "limit": 1000> }> ]> }> },> "request_id": "ec3b0f7c-5851-45f8-917c-3dde968b1d2e">}'
1{2 "account_id": "acct_a2y0pxz3m4k5hoZldn97hjzp",3 "balances": [4 {5 "available_amount": 0,6 "available_credit": 500,7 "currency": "USD",8 "reserved_amount": 500,9 "utilized_credit": 50010 }11 ],12 "borrower_type": "CREDIT",13 "credit": {14 "borrower_settings": {15 "activation_status": "ACTIVE",16 "credit_limits": [17 {18 "currency": "USD",19 "limit": 100020 }21 ]22 }23 },24 "id": "0389fb3e-b377-4bae-9715-6859961812d4"25}