Retrieves loan details by external transaction ID
GET/partner/pre-approve/:externalTrxId/loan
Retrieves the state of the transaction identified by externalTrxId and, when a loan was created, its details: amount, interest rate, installments and loan state.
state takes these values:
ACCEPTED: a loan was created for the transaction and it is not canceled.productis returned.PENDING: the customer has not finished the flow yet.REJECTED: the evaluation was rejected or archived, the transaction expired, the loan request was canceled or the loan was canceled. When the loan was canceled,productis returned withstateCANCELED.
Request
Responses
- 200
- 400
- 401
- 403
- 404
Successful response
Bad Request. Possible causes:
- The transaction belongs to another partner.
- The API token is not the current API token of the partner.
Unauthorized - Invalid or missing access token
Forbidden - The partner is not active
Not Found. Possible causes:
- No transaction exists for
externalTrxId(for example, the customer never submitted their idNumber in the widget). - The partner of the API token does not exist.