Errors
General errors
| Http status code | Message | Description |
|---|---|---|
| 400 | Bad Request | Indicates that the request could not be completed or contains some incorrect/invalid information. Check the error detail in the return |
| 401 | Token is invalid | Access token used is invalid or expired |
| 401 |
| You have to send the Authorization header |
| 403 | Forbidden lead | You aren't the owner of the lead |
| 500 | Internal Server Error | An internal error occurred in the application |
Create lead errors
Endpoint information, click here.
| Http status code | Message | Specific code | Description |
|---|---|---|---|
| 404 | Company doesn't exists | 4046 | This means that your credentials are not well configured, please write to your Creditas partner |
Save personal information errors
Endpoint information, click here.
| Http status code | Message | Specific code | Description |
|---|---|---|---|
| 400 | This request can only be issued once | 40015 | You just call this endpoint one time by lead |
| 409 | Existent lead | 4092 | A lead with the same RFC only could request a credit in a period of 30 days, in the "additionalData" field you could find the leadId of the las request, and you could check the status with the lead detail endpoint |
| 412 | The RFC is not valid | 41219603 | The rfc sent is not valid |
| 412 | Rejected lead | 41217 | We can't give a credit to this person, the reasons are specified in the "additionalData" field with the field "valid" as false |
Financial information errors
Endpoint information, click here.
| Http status code | Message | Specific code | Description |
|---|---|---|---|
| 412 | Rejected lead | 41217 | We can't give a credit to this person, the reasons are specified in the "additionalData" field with the field "valid" as false |
| 412 | Lead without personId | 4124 | We do not have the personal information of this lead. You need to run the Save personal information endpoint. |
Address errors
Endpoint information, click here.
| Http status code | Message | Specific code | Description |
|---|---|---|---|
| 400 | The entered neighborhood does not belong in that zipCode location | 40016 | This means that the the neighborhood sent is not in the zip code neighborhoods. Check zip code service endpoint has not been called. |
| 412 | Lead without personId | 4124 | This means that the the save personal info endpoint has not been called. |
| 412 | Rejected lead | 41217 | We can't give a credit to this person, the reasons are specified in the "additionalData" field with the field "valid" as false |
Auto information errors
Endpoint information, click here.
| Http status code | Message | Specific code | Description |
|---|---|---|---|
| 404 | Auto with id {{id}} not found | 4050 | You send an incorrect auto version id, please check auto catalog endpoints |
| 412 | Rejected lead | 41217 | We can't give a credit to this person, the reasons are specified in the "additionalData" field with the field "valid" as false |
Request nip errors
Endpoint information, click here.
| Http status code | Message | Specific code | Description |
|---|---|---|---|
| 400 | Channel is missing or incorrect | 400 | The values for channel are SMS, EMAIL |
| 412 | Integration error | 400601 | The external services for send pin are not available |
| 412 | Lead without personId | 4124 | We do not have the personal information. You need to run the Save personal information endpoint |
Consult lead information errors
Endpoint information, click here.
| Http status code | Message | Specific code |
|---|---|---|
| 404 | Lead not found | 4040 |
Request nip errors
Endpoint information, click here.
| Http status code | Message | Specific code | Description |
|---|---|---|---|
| 400 | The PINs are different | 400 | PIN and confirmation are different |
| 400 | Missing necessary lead information | 40001 | A list is returned indicating the missing information: Personal, Professional, or Address. You need to run the corresponding endpoint to send the missing information |
| 403 | The PIN doesn't match | 40301601 | The PIN is different from the one that was sent to the client |
| 404 | Lead not found | 4040 | The lead id that was entered does not exist |
| 404 | The user hasn't requested a PIN | 404601 | The PIN has not been requested yet. You need to run Send PIN endpoint first |
| 412 | Lead without personId | 4124 | We do not have the personal information. You need to run the Save personal information endpoint |
| 412 | The interestRate values are not configured correctly | 41218 | Contact to Creditas developers to add the missing configuration |
Update contact errors
Endpoint information, click here.
| Http status code | Message | Specific code | Description |
|---|---|---|---|
| 404 | Lead not found | ||
| 400 | Bad request | The format or content cloud be wrong. Consult the additionalInfo section in response content. |
Zipcode errors
Endpoint information, click here.
| Http status code | Message | Specific code | Description |
|---|---|---|---|
| 404 | ZipCode not found | 4048 | This means that you sent an no existent code for COPOMEX |