Airwallex logo

Borrower

Copy for LLMView as Markdown
POST /api/v1/lending/lenders/{lender_id}/borrowers/createCreate a Borrower
GET /api/v1/lending/lenders/{lender_id}/borrowersList all Borrowers for This Lender
GET /api/v1/lending/lenders/{lender_id}/borrowers/{borrower_id}List all Borrower Details
POST /api/v1/lending/lenders/{lender_id}/borrowers/{borrower_id}/updateUpdate Borrower Settings

Create a BorrowerBeta

POST /api/v1/lending/lenders/{lender_id}/borrowers/create

Create a Borrower is in beta
We may include major new functionality or changes before general release. Learn more about beta.Docs

Create a borrower profile on the specified account and set up a lender-borrower relationship with given lender, using the given borrowing settings.

Path parameters
lender_idrequiredstring

Lender unique identifier.

Request body
account_idrequiredstring

Airwallex account unique identifier of the intended borrower.

borrower_typerequiredstring

The type of borrower to set up ("CREDIT").

CREDIT
request_idrequiredstring

A unique request identifier specified by the client. Requests with the same request_id will be treated as duplicate requests.

creditobject

Request structure specific to creating credit borrowers (required when borrower_type is credit).

credit.borrower_settingsrequiredobject

Credit settings.

credit.borrower_settings.activation_statusstring

Enable/Disable credit.

ACTIVE
INACTIVE
credit.borrower_settings.credit_limitsarray

Credit limits by currency.

credit.borrower_settings.credit_limits.currencystring

Credit limit currency.

credit.borrower_settings.credit_limits.limitnumber

Credit limit.

Response body - 200 OK
account_idstring

Airwallex account unique identifier of the borrower.

balancesarray

Balances of borrower's account.

balances.available_amountnumber

Available balance for standard deposit transactions.

balances.available_creditnumber

Amount of credit still available before limit is exceeded, null for borrowers that are not credit borrowers.

balances.currencystring

Balance currency.

balances.reserved_amountnumber

Amount reserved for use in future transactions.

balances.utilized_creditnumber

Amount currently used in credit, null for borrowers that are not credit borrowers.

borrower_typestring

Borrower type.

CREDIT
creditobject

Detail structure specific to credit borrowers (omitted when borrower_type is not credit).

credit.borrower_settingsobject

Credit settings for borrower.

credit.borrower_settings.activation_statusstring

Enable/Disable credit.

ACTIVE
INACTIVE
credit.borrower_settings.credit_limitsarray

Credit limits by currency.

credit.borrower_settings.credit_limits.currencystring

Credit limit currency.

credit.borrower_settings.credit_limits.limitnumber

Credit limit.

idstring

Borrower unique identifier.

Errors
Error statusDescription
400

Possible errors: invalid_argument, already_exists

401

credentials_invalid

404

not_found

500

service_unavailable

POST /api/v1/lending/lenders/{lender_id}/borrowers/create
$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"
>}'
Response (200 OK)
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": 500
10 }
11 ],
12 "borrower_type": "CREDIT",
13 "credit": {
14 "borrower_settings": {
15 "activation_status": "ACTIVE",
16 "credit_limits": [
17 {
18 "currency": "USD",
19 "limit": 1000
20 }
21 ]
22 }
23 },
24 "id": "0389fb3e-b377-4bae-9715-6859961812d4"
25}
Was this section helpful?

List all Borrowers for This LenderBeta

GET /api/v1/lending/lenders/{lender_id}/borrowers

List all Borrowers for This Lender is in beta
We may include major new functionality or changes before general release. Learn more about beta.Docs

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.

Path parameters
lender_idrequiredstring

Lender unique identifier.

Query parameters
activation_statusesarray

List of Borrower activation statuses to filter by.

borrower_account_idsarray

List of Borrower Airwallex account unique identifiers to filter by.

page_numinteger

Page number, starts from 0.

page_sizeinteger

Number of results per page, default is 100, max is 1000.

Response body - 200 OK
hasMoreboolean

A flag which identifies whether there are more results.

itemsarray

List items.

items.account_idstring

Airwallex account unique identifier of the borrower.

items.balancesarray

Balances of borrower's account.

items.balances.available_amountnumber

Available balance for standard deposit transactions.

items.balances.available_creditnumber

Amount of credit still available before limit is exceeded, null for borrowers that are not credit borrowers.

items.balances.currencystring

Balance currency.

items.balances.reserved_amountnumber

Amount reserved for use in future transactions.

items.balances.utilized_creditnumber

Amount currently used in credit, null for borrowers that are not credit borrowers.

items.borrower_typestring

Borrower type.

CREDIT
items.creditobject

Detail structure specific to credit borrowers (omitted when borrower_type is not credit).

items.credit.borrower_settingsobject

Credit settings for borrower.

items.credit.borrower_settings.activation_statusstring

Enable/Disable credit.

ACTIVE
INACTIVE
items.credit.borrower_settings.credit_limitsarray

Credit limits by currency.

items.credit.borrower_settings.credit_limits.currencystring

Credit limit currency.

items.credit.borrower_settings.credit_limits.limitnumber

Credit limit.

items.idstring

Borrower unique identifier.

Errors
Error statusDescription
400

invalid_argument

401

credentials_invalid

404

not_found

500

service_unavailable

GET /api/v1/lending/lenders/{lender_id}/borrowers
$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'
Response (200 OK)
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": 500
13 }
14 ],
15 "borrower_type": "CREDIT",
16 "credit": {
17 "borrower_settings": {
18 "activation_status": "ACTIVE",
19 "credit_limits": [
20 {
21 "currency": "USD",
22 "limit": 1000
23 }
24 ]
25 }
26 },
27 "id": "0389fb3e-b377-4bae-9715-6859961812d4"
28 }
29 ]
30}
Was this section helpful?

List all Borrower DetailsBeta

GET /api/v1/lending/lenders/{lender_id}/borrowers/{borrower_id}

List all Borrower Details is in beta
We may include major new functionality or changes before general release. Learn more about beta.Docs

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.

Path parameters
borrower_idrequiredstring

Borrower unique identifier.

lender_idrequiredstring

Lender unique identifier.

Response body - 200 OK
account_idstring

Airwallex account unique identifier of the borrower.

balancesarray

Balances of borrower's account.

balances.available_amountnumber

Available balance for standard deposit transactions.

balances.available_creditnumber

Amount of credit still available before limit is exceeded, null for borrowers that are not credit borrowers.

balances.currencystring

Balance currency.

balances.reserved_amountnumber

Amount reserved for use in future transactions.

balances.utilized_creditnumber

Amount currently used in credit, null for borrowers that are not credit borrowers.

borrower_typestring

Borrower type.

CREDIT
creditobject

Detail structure specific to credit borrowers (omitted when borrower_type is not credit).

credit.borrower_settingsobject

Credit settings for borrower.

credit.borrower_settings.activation_statusstring

Enable/Disable credit.

ACTIVE
INACTIVE
credit.borrower_settings.credit_limitsarray

Credit limits by currency.

credit.borrower_settings.credit_limits.currencystring

Credit limit currency.

credit.borrower_settings.credit_limits.limitnumber

Credit limit.

idstring

Borrower unique identifier.

Errors
Error statusDescription
400

invalid_argument

401

credentials_invalid

404

not_found

500

service_unavailable

GET /api/v1/lending/lenders/{lender_id}/borrowers/{borrower_id}
$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'
Response (200 OK)
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": 500
10 }
11 ],
12 "borrower_type": "CREDIT",
13 "credit": {
14 "borrower_settings": {
15 "activation_status": "ACTIVE",
16 "credit_limits": [
17 {
18 "currency": "USD",
19 "limit": 1000
20 }
21 ]
22 }
23 },
24 "id": "0389fb3e-b377-4bae-9715-6859961812d4"
25}
Was this section helpful?

Update Borrower SettingsBeta

POST /api/v1/lending/lenders/{lender_id}/borrowers/{borrower_id}/update

Update Borrower Settings is in beta
We may include major new functionality or changes before general release. Learn more about beta.Docs

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.

Path parameters
borrower_idrequiredstring

Borrower unique identifier.

lender_idrequiredstring

Lender unique identifier.

Request body
request_idrequiredstring

A unique request identifier specified by the client. Requests with the: same request_id will be treated as duplicate requests.

creditobject

Request structure specific to updating credit borrowers (required when updating credit borrower).

credit.borrower_settingsrequiredobject

Credit settings.

credit.borrower_settings.activation_statusstring

Enable/Disable credit.

ACTIVE
INACTIVE
credit.borrower_settings.credit_limitsarray

Credit limits by currency.

credit.borrower_settings.credit_limits.currencystring

Credit limit currency.

credit.borrower_settings.credit_limits.limitnumber

Credit limit.

Response body - 200 OK
account_idstring

Airwallex account unique identifier of the borrower.

balancesarray

Balances of borrower's account.

balances.available_amountnumber

Available balance for standard deposit transactions.

balances.available_creditnumber

Amount of credit still available before limit is exceeded, null for borrowers that are not credit borrowers.

balances.currencystring

Balance currency.

balances.reserved_amountnumber

Amount reserved for use in future transactions.

balances.utilized_creditnumber

Amount currently used in credit, null for borrowers that are not credit borrowers.

borrower_typestring

Borrower type.

CREDIT
creditobject

Detail structure specific to credit borrowers (omitted when borrower_type is not credit).

credit.borrower_settingsobject

Credit settings for borrower.

credit.borrower_settings.activation_statusstring

Enable/Disable credit.

ACTIVE
INACTIVE
credit.borrower_settings.credit_limitsarray

Credit limits by currency.

credit.borrower_settings.credit_limits.currencystring

Credit limit currency.

credit.borrower_settings.credit_limits.limitnumber

Credit limit.

idstring

Borrower unique identifier.

Errors
Error statusDescription
400

invalid_argument

401

credentials_invalid

404

not_found

500

service_unavailable

POST /api/v1/lending/lenders/{lender_id}/borrowers/{borrower_id}/update
$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"
>}'
Response (200 OK)
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": 500
10 }
11 ],
12 "borrower_type": "CREDIT",
13 "credit": {
14 "borrower_settings": {
15 "activation_status": "ACTIVE",
16 "credit_limits": [
17 {
18 "currency": "USD",
19 "limit": 1000
20 }
21 ]
22 }
23 },
24 "id": "0389fb3e-b377-4bae-9715-6859961812d4"
25}
Was this section helpful?