curl --request POST \
--url https://spark.test.woodcore.co/api/v2/loans/{loanId}/recoverypayment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"comment": "Recovery payment for written off loan",
"transactionAmount": "50000",
"transactionDate": "8 May 2023"
}'
{}
curl --request POST \
--url https://spark.test.woodcore.co/api/v2/loans/{loanId}/recoverypayment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"comment": "Recovery payment for written off loan",
"transactionAmount": "50000",
"transactionDate": "8 May 2023"
}'
{}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
"10"
ddddd
The response is of type object
.