Create a loan request
POST/partner/pre-loan-request/loan-request
Creates a new loan request for a pre-approved BNPL transaction, using the installment option selected by the customer.
If the pre-approval already has a loan request that is not expired, that loan request is returned with status 206 instead of creating a new one.
Request
Responses
- 201
- 206
- 400
- 401
- 403
- 404
- 412
- 413
- 422
- 503
Created - Loan request created successfully
Partial Content - The pre-approval already has a loan request that is not expired; that loan request is returned
Bad Request. Possible causes:
- A loan already exists for
externalTrxId. - The pre-approval belongs to another partner.
- The API token is not the current API token of the partner.
Unauthorized - Invalid or missing partner token
Forbidden. Possible causes:
- The partner is not active.
- The merchant of the pre-approval is not active.
Not Found. Possible causes:
- The evaluation of the pre-approval was not found.
- The merchant of the pre-approval was not found.
- The partner of the API token does not exist.
Precondition Failed. Possible causes:
amountis missing or zero.externalTrxIdis missing.installmentOptionis missing or zero.installmentOptionis greater than the maximum number of installments of the pre-approval.- The customer has an active loan that prevents a new one.
Payload Too Large - The pre-approval already has a signed loan request
Unprocessable Entity. The error code is returned in message:
ERR_PREAPPROVE_EXPIRED: the pre-approval is more than 14 days old.ERR_INVALID_STEP: the evaluation is not in a step that allows creating a loan request (for example, it was rejected or archived).
Service Unavailable - The pre-approval could not be retrieved (for example, preApproveId does not exist or is not a valid UUID)