Possible errors - Payment management - Mercado Pago Developers

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 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".
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.
Request Error409already_queued_order_for_deviceThere is already an order waiting for the provided device. It is not possible to create a new order of the type "point" while a previous one is pending processing. Wait for the current order to be processed before trying again.
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_cancelledThe reported order has already been canceled. It is not possible to perform operations on an order that is already canceled.
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.