API technical errors (Code and Message)

Code and Message errors are returned when an HTTP 400 error occurs.

Errors returned in Code and Message

The Code and Message parameters appear in the response body when an HTTP error occurs, usually a 4xx. They detail the cause of the failure in the request or processing, allowing you to quickly identify the problem.

  • Code: numeric code that identifies the error type;
  • Message: text message describing the error.

Example

See below an example of a response body for a VerifyCard request when there's an error in MerchantId

[
  {
    "Code": 114,
    "Message": "The provided MerchantId is not in correct format"
  }
]
⚠️

Important: Code and Message follow the same values as ProviderReturnCode and ProviderReturnMessage, but are returned in different situations. ProviderReturnCode and ProviderReturnMessage indicate the business result (with the provider/acquirer) in HTTP 2xx responses.

The specific codes and messages apply to the Cielo acquirer; for other acquirers, check the corresponding documentation.


How to handle Code and Message errors?

  • Fix the submitted data: check required fields, formats, and sizes;
  • Check credentials: MerchantId and MerchantKey;
  • Confirm the enabled services on the Cielo website, under the E-commerce tab;
  • Confirm authorized IPs on the Cielo website;
  • Check API Status for persistent 5xx errors.


Code and Message table

Code and Message show the same values as ProviderReturnCode and ProviderReturnMessage, but are returned in different situations:

  • The ProviderReturnCode and ProviderReturnMessage values are returned in successful HTTP operations (200 or 201);
  • The Code and Message values are returned in HTTP error operations (e.g., 400).
⚠️

The table below lists the codes and messages specific to the Cielo acquirer. If the merchant uses another acquirer integrated with the Gateway, check that acquirer's documentation for the equivalent codes and messages.

See the full table:

Reason CodeReason Message
00Successful
01AffiliationNotFound
02IssuficientFunds
03CouldNotGetCreditCard
04ConnectionWithAcquirerFailed
05InvalidTransactionType
06InvalidPaymentPlan
07Denied
08Scheduled
09Waiting
10Authenticated
11NotAuthenticated
12ProblemsWithCreditCard
13CardCanceled
14BlockedCreditCard
15CardExpired
16AbortedByFraud
17CouldNotAntifraud
18TryAgain
19InvalidAmount
20ProblemsWithIssuer
21InvalidCardNumber
22TimeOut
23CartaoProtegidoIsNotEnabled
24PaymentMethodIsNotEnabled
25CouldNotFindPaymentToken
26MerchantIdJustClickNotFound
27BrandNotSupported
28CardOptionsNotSupported
29WalletKeyIsInvalid
30MerchantWalletConfigurationNotFound
31BoletoRequiredDataNotSupported
32ConnectionWithAntifraudFailed
33AbortedByCardVerification
34ProblemsWithAcquirer
35ValidationError
36AcquirerTransactionNotFound
37SplitTransactionalError
38MerchantSplitConfigurationNotFound
39SplitSoftDescriptorIsRequired
40SplitFraudAnalysisIsRequired
41SplitAntifraudMerchantConfigurationNotFound
42ProviderNotFound
43PaymentSettingsNotFound
44SubAcquirerMerchantConfigurationNotFound
45AbortedBySubAcquirer
98InvalidRequest
99InternalError
100CieloPayCardHolderIsNotActive
101CieloPayStrongValidationIsInvalid
102CieloPayExpireDateDoesNotMatch
103CieloPayCardHolderApiError
104SplitPaymentFacilitatorDataNotFound