Loan Transactions
The Loan Transaction is a financial transaction associated with the loan.
POST /partner-api/v1/lending/loan_transactions/createGET /partner-api/v1/lending/loan_transactions/{id}GET /partner-api/v1/lending/loan_transactions
Create a Loan Transaction
POST /partner-api/v1/lending/loan_transactions/create
Creates a Loan Transaction.
The unique identifier of the associated loan.
The payment amount to be sent to the beneficiary before fees. The payment currency is the same with loan currency.
A user specified reference that will be displayed to the beneficiary on the payment transaction with their bank.
- 1-140 characters long
- Should not contain emojis
A unique request identifier specified by you for idempotency. Up to 50 characters.
The currency that the payer uses to fund the payment (3-letter ISO-4217 code). In most cases it should be the same with loan currency.
The type of the transaction. Only REPAYMENT is supported at this moment.
REPAYMENTThe date when the transaction is created.
The unique identifier of the loan.
The unique identifier of the associated loan.
Payment amount in payment_currency.
Payment currency, i.e. the currency that the beneficiary receives (3-letter ISO-4217 code).
The date when the transaction is posted.
A user specified reference that will be displayed to the beneficiary on the payment transaction with their bank.
- 1-140 characters long
- Should not contain emojis
A unique request identifier specified by you for idempotency. Up to 50 characters.
Source amount in source_currency.
The currency that the payer uses to fund the payment (3-letter ISO-4217 code). In most cases it should be the same with loan currency.
The status of the transaction.
PENDINGThe transaction is pending to be executed.
COMPLETEDThe transaction is completed successfully.
FAILEDThe transaction failed.
The date when the transaction completed.
The type of the transaction. Only REPAYMENT is supported at this moment.
REPAYMENTThe date when the transaction is updated.
$curl --request POST \> --url 'https://api.sandbox.airwallex.com/partner-api/v1/lending/loan_transactions/create' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json' \> --data '{> "loan_id": "e1f3c6e3-ba66-4400-83ec-e81553647806",> "payment_amount": 1000,> "reference": "repayment-2021-01-01",> "request_id": "ffb277f7-c10d-4e46-ab1e-25acd90a79fc",> "sourceCurrency": "USD",> "type": "REPAYMENT">}'
1{2 "created_at": "<date-time>",3 "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",4 "loan_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",5 "payment_amount": 1000,6 "payment_currency": "USD",7 "posted_date": "<date-time>",8 "reference": "repayment-2021-01-01",9 "request_id": "e26fe780-ac29-4130-b650-edb1cc1bd4a4",10 "source_amount": 1000,11 "source_currency": "USD",12 "status": "COMPLETED",13 "transaction_date": "<date-time>",14 "type": "REPAYMENT",15 "updated_at": "<date-time>"16}
Retrieve a Loan Transaction
GET /partner-api/v1/lending/loan_transactions/{id}
Get the details of a Loan Transaction by unique identifier.
The unique identifier of the loan transaction.
The date when the transaction is created.
The unique identifier of the loan.
The unique identifier of the associated loan.
Payment amount in payment_currency.
Payment currency, i.e. the currency that the beneficiary receives (3-letter ISO-4217 code).
The date when the transaction is posted.
A user specified reference that will be displayed to the beneficiary on the payment transaction with their bank.
- 1-140 characters long
- Should not contain emojis
A unique request identifier specified by you for idempotency. Up to 50 characters.
Source amount in source_currency.
The currency that the payer uses to fund the payment (3-letter ISO-4217 code). In most cases it should be the same with loan currency.
The status of the transaction.
PENDINGThe transaction is pending to be executed.
COMPLETEDThe transaction is completed successfully.
FAILEDThe transaction failed.
The date when the transaction completed.
The type of the transaction. Only REPAYMENT is supported at this moment.
REPAYMENTThe date when the transaction is updated.
$curl --request GET \> --url 'https://api.sandbox.airwallex.com/partner-api/v1/lending/loan_transactions/loan_transaction_id' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "created_at": "<date-time>",3 "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",4 "loan_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",5 "payment_amount": 1000,6 "payment_currency": "USD",7 "posted_date": "<date-time>",8 "reference": "repayment-2021-01-01",9 "request_id": "e26fe780-ac29-4130-b650-edb1cc1bd4a4",10 "source_amount": 1000,11 "source_currency": "USD",12 "status": "COMPLETED",13 "transaction_date": "<date-time>",14 "type": "REPAYMENT",15 "updated_at": "<date-time>"16}
List all Loan Transactions
GET /partner-api/v1/lending/loan_transactions
Get a list of Loans based on the query parameters.
The start time of created_at in ISO8601 format.
The unique identifier of the associated loan.
The number of the page. Starts from 0. Defaults to 0.
The number of items returned per page. Defaults to 20.
The status of the transaction.
PENDINGThe transaction is pending to be executed.
COMPLETEDThe transaction is completed successfully.
FAILEDThe transaction failed.
The end time of created_at in ISO8601 format.
The type of the transaction. Only REPAYMENT is supported at this moment.
REPAYMENTA flag which identifies whether there are more results.
The paginated loan transaction objects.
The date when the transaction is created.
The unique identifier of the loan.
The unique identifier of the associated loan.
Payment amount in payment_currency.
Payment currency, i.e. the currency that the beneficiary receives (3-letter ISO-4217 code).
The date when the transaction is posted.
A user specified reference that will be displayed to the beneficiary on the payment transaction with their bank.
- 1-140 characters long
- Should not contain emojis
A unique request identifier specified by you for idempotency. Up to 50 characters.
The status of the transaction.
PENDINGThe transaction is pending to be executed.
COMPLETEDThe transaction is completed successfully.
FAILEDThe transaction failed.
The type of the transaction. Only REPAYMENT is supported at this moment.
REPAYMENTThe date when the transaction is updated.
Source amount in source_currency.
The currency that the payer uses to fund the payment (3-letter ISO-4217 code). In most cases it should be the same with loan currency.
The date when the transaction completed.
$curl --request GET \> --url 'https://api.sandbox.airwallex.com/partner-api/v1/lending/loan_transactions' \> --header 'Authorization: Bearer {{ACCESS_TOKEN}}' \> --header 'Content-Type: application/json'
1{2 "has_more": false,3 "items": [4 {5 "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",6 "loan_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",7 "payment_amount": 1000,8 "payment_currency": "USD",9 "reference": "repayment-2021-01-01",10 "request_id": "e26fe780-ac29-4130-b650-edb1cc1bd4a4",11 "source_amount": 1000,12 "source_currency": "USD",13 "status": "COMPLETED",14 "type": "REPAYMENT"15 }16 ]17}