AI resources

Possible errors

Check this list with all the possible errors that the API can return, and how to manage them.

Error TypeStatusCodeDescription and possible solutions
Request Error400json_syntax_errorEnsure that the request has a valid JSON structure, with appropriate keys and values.
Request Error400required_propertiesSome mandatory properties are missing. Check the request and ensure all required properties are included according to the API documentation.
Request Error400unsupported_propertiesSome provided properties are not supported by the API. Review the request and remove or correct unsupported properties.
Request Error400minimum_propertiesThe minimum number of required properties has not been met. Add the necessary properties to complete the request.
Request Error400property_typeThe type of the provided property is invalid. Ensure that the value sent in the request matches the expected type.
Request Error400property_valueThe value of the provided property is invalid. Check the sent value and make adjustments to match the allowed values.
Request Error400maximum_itemsThe maximum number of allowed items has been exceeded. Reduce the number of items sent so that it does not exceed the permitted maximum.
Request Error400minimum_itemsThe minimum number of required items has not been met. Add more items to the request to meet the API requirements.
Request Error400invalid_path_paramCheck if the ID provided as a parameter is valid.
Request Error400invalid_propertiesSome provided properties are invalid or malformed. Review the submitted properties and verify if they comply with the API specifications.
Request Error400empty_required_headerOne or more mandatory headers are empty. Check the request and ensure that all required headers are present and properly filled out.
Request Error400invalid_idempotency_key_lengthThe value sent in the X-Idempotency-Key header exceeded the allowed size. The header accepts values between 1 and 64 characters.
Request Error400order_builder_without_transactionsThere is no transaction associated with the order. Ensure to include at least one transaction for the creation of the order.
Request Error400invalid_order_mode_for_operationThe reported mode is not valid for this operation. Verify if you are using the correct mode according to the desired operation.
Request Error400invalid_order_typeThe type of the order is invalid. Check if the type used is valid for the operation.
Request Error400invalid_transaction_idThe transaction ID is invalid. Ensure that the ID is correct.
Request Error400exceeded_number_of_transactionsAn error occurred in the request. The Order accepts a maximum of one transaction. Remove the excess transactions.
Request Error400invalid_email_for_sandboxEmail format is invalid for sandbox environment, must contains "@testuser.com".
Request Error400order_invalid_sponsor_idThe order sponsor ID is invalid. Make sure the ID is correct.
Request Error400invalid_header_valueCaller ID (caller_id) not found. Make sure the ID is correct.
Request Error400invalid_total_amountThe value provided in total_amount does not match the sum of the values in transactions.payments.amount for all transactions. Check that the values are correct and that the sum of the transaction values matches the provided total_amount.
Request Error400refund_amount_exceedsThe refund amount requested is greater than the amount available for refund on the order. Check the amount available for refund and adjust the field so it does not exceed this limit.
Request Error401401The value sent as Access Token is incorrect. Please check and try again with the correct value.
Request Error401invalid_credentialsThere is no support for test credentialsUnique access keys that we use to identify an integration in your account, linked to your application. For more information, see the link below.Credentials. Use test users with production credentials for the sandbox environment and your production credentials for the production environment.
Processing error402failedThere was an error processing one of the transactions. Check the returned message for more information.
Request Error404order_not_foundThe order was not found. Check if the provided ID is correct.
Request Error404transaction_not_foundThe transaction was not found. Check if the provided ID is correct.
Request Error409cannot_refund_orderEnsure that the order is in a status that allows for a refund to be made.
Request Error409cannot_capture_orderCheck if the order's status allows capturing and whether it was created with the processing_mode field set to automatic.
Request Error409cannot_cancel_orderEnsure that the order is in a status that allows cancellation.
Idempotency Error409idempotency_key_already_usedThe provided X-Idempotency-Key has already been used. Each idempotency key must be unique to ensure that the operation is performed only once. Use a new key for the next request.
Request Error409operation_not_supportedThe requested operation is not supported. Check if the operation you are trying to perform is valid for the current context.
Request Error409order_already_refundedThe reported order has already been refunded. It is not possible to process a refund on an order that already has this status.
Request Error409order_already_canceledThe reported order has already been canceled. It is not possible to perform operations on an order that is already canceled.
Error de solicitud409order_refund_already_in_processThere is already a full refund request in process for the order in question.
Idempotency Error423resource_lockedThe idempotency key is temporarily locked. Wait a moment and try to execute the request again.
Idempotency Error500idempotency_validation_failedAn internal server error occurred. Try resending the request with a new and unique idempotency key to avoid conflicts. If the problem persists, contact Support and provide the x-request-id along with more details about the operation performed.
API Error500internal_errorAn internal server error occurred. Please try again later. If the problem persists, contact Support and provide the x-request-id along with more details about the operation performed.

For more information on how to submit the necessary requests, requirements and validations, see our API ReferenceAPI.