Skip to main content

Errors

Introduction

Card Not Present Verification uses conventional HTTP response codes to indicate the success or failure of an API request.

As a general rule:

  • Codes in the 2xx range indicate success with the request.
  • Codes in the 4xx range indicate incorrect or incomplete parameters (for example, a mandatory parameter was omitted, or an operation failed with third parties, etc.).
  • Codes in the 5xx range indicate an error on the Card Not Present Verification product servers.

Card Not Present Verification also generates an error message and an error code formatted in JSON:

{
"error": {
"code": "40004",
"description": "transaction id is invalid"
}
}

Possible Errors

In this topic, you will find the possible errors for the endpoints, separated by their HTTP response.

Transaction Creation

HTTP CodeCodeDescriptionReason
40040001error decoding jsonThe data sent does not match the service contract.
40040002error validating jsonSome information is poorly formatted or missing.
40040021invalid phoneThe provided phone number is invalid, it must follow the format: 55 DDD NUMBER. For example: 5543999999999.
40040022invalid emailThe provided email is invalid.
40040027replicated transactionThe transaction sent already exists and cannot be created again.
40040045max value reachedWhen the transaction reaches a value higher than the allowed limit.
40340301not allowedThe user does not have permission to perform this action.
40440404company not foundThe provided company does not exist.
42940001too many requestsRate limit reached.
50050001internal errorInternal service failure.

Get transaction status

HTTP CodeCodeDescriptionReason
40040001error decoding jsonThe data sent does not match the service contract.
40040002error validating jsonSome information is poorly formatted or missing.
40040004transaction id is invalidThe transaction ID is invalid (format).
40040301not allowedThe user does not have permission to perform this action.
42940401transaction not foundThe transaction was not found.
50050001internal errorInternal service failure.

Recovery of the evidentiary set of the transaction

HTTP CodeCodeDescriptionReason
40040004transaction id is invalidThe transaction ID is invalid (format).
40040009transaction status is invalidThe transaction status is invalid (not allowed for generating the proof set).
40340301not allowedThe user does not have permission to perform this action.
40440401transaction not foundThe transaction was not found.
50050001internal errorInternal service failure.

Resending the transaction notification

HTTP CodeCodeDescriptionReason
40040001error decoding jsonThe data sent does not match the service contract.
40040002error validating jsonSome information is incorrectly formatted or has not been filled out.
40040004transaction id is invalidThe transaction ID is invalid (format).
40040009transaction status is invalidThe transaction status does not allow notification resend (it is already completed).
40040021invalid phoneThe phone number provided is invalid, it must follow the format: 55 DDD NUMBER. For example: 5543999999999.
40040022invalid emailThe provided email is invalid.
40340301not allowedThe user does not have permission to perform this action.
40440401transaction not foundThe transaction was not found.
42940001too many requestsRate limit reached.
50050001internal errorRate limit reached.

Credit card onboarding

HTTP CodeCodeDescriptionReason
40040001error decoding jsonThe data sent does not match the service contract.
40040002error validating jsonSome information is either incorrectly formatted or missing.
40040027replicated transactionThe submitted transaction already exists and cannot be created again.
40040030invalid identityThe CPF provided in the request differs from the CPF associated with the specified processID.
40040045max value reachedWhen the transaction exceeds the permitted amount.
40040054processID is invalidWhen the processID provided in the request is invalid (or does not exist).
40040055processID is expiredWhen the processID being used is too old.
40340301not allowedThe user does not have permission to perform this action.
40440404company not foundThe specified company does not exist.
40440410processID not foundWhen the specified process does not exist.
40440412image not foundWhen the process specified by the user does not have an image.
42940001too many requestsRate limit reached.
42942901too many requestsWhen the client is sending too many requests, exceeding the predefined limit.
50050001internal errorInternal service failure.