curl --request POST \
--url https://spark.test.woodcore.co/api/v2/loans/{loanId}/repayment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"comment": "loan repayment",
"paymentTypeId": "1",
"transactionAmount": "50000",
"transactionDate": "15 Mar 2022"
}'
{}
curl --request POST \
--url https://spark.test.woodcore.co/api/v2/loans/{loanId}/repayment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"comment": "loan repayment",
"paymentTypeId": "1",
"transactionAmount": "50000",
"transactionDate": "15 Mar 2022"
}'
{}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
"10"
ddddd
The response is of type object
.