AI resources

Refund errors

Below you will find all possible errors returned by the refund endpointAPI of the Orders API for QR Code and the recommended actions for each case.

Error codes

HTTPError (error)DescriptionRecommended action
400empty_required_headerThe X-Idempotency-Key header is required and was not sent.Include the header in all refund requests.
400invalid_path_paramThe order_id sent in the path has an invalid format. It must start with the prefix ORD followed by 26 characters.Verify and resend with a valid ID.
400invalid_order_ownerIt is not possible to process a refund for an order that was not created by the requester.Verify that the Access Token belongs to the same user who created the order.
400in_store_payment_refund_orderThe maximum refund period has been exceeded. The limit is 360 days from the payment date.No action possible; the refund period has already expired.
400unsupported_partially_refundsThe order does not support partial refunds.Check if the order is eligible for a partial refund before sending the body with transactions[].
400refund_amount_exceedsThe refund amount exceeds the available balance.Verify that the amount sent is less than or equal to the transaction balance.
401unauthorizedThe Access Token sent is invalid or expired.Verify and resend the request with the correct Access Token.
401user_not_authorizedThe user does not have permission to perform this action.Verify that the Access Token belongs to the same user who created the order.
403partial_refund_forbidden_with_tipsPartial refunds are not allowed on orders with tips.Issue a full refund without sending the transactions[] array.
404order_not_foundOrder not found.Verify that the order_id sent in the path is correct.
404transaction_not_foundTransaction not found in the order.Verify that the transactions[].id sent belongs to the specified order.
409idempotency_key_already_usedThe X-Idempotency-Key sent has already been used with a different body in the last 24 hours.Send a new value for the header.
409order_already_refundedThe order has already been fully refunded.No action needed; the refund has already been completed.
409cannot_refund_orderThe current state of the order does not allow a refund.Verify that the order has status: processed before requesting a refund.
409refund_period_exceededThe maximum refund period has been exceeded.Refunds are accepted up to 360 days from the payment date.
409action_not_allowed_for_current_stateThe action is not allowed by the current payment status.Check the status and status_detail of the order before attempting the refund.
409refund_in_progressA refund is already being processed for this order.Wait a few minutes before trying again.
409movement_operations_pendingThe order has pending financial movements.Wait a few minutes and retry the request.
422payment_not_refundableThe payment cannot be refunded.Check the payment conditions; some payment methods do not support refunds.
422amount_not_refundableThe requested amount cannot be refunded.Try a different amount or check the payment conditions.
422max_refunds_exceededThe maximum number of refunds for this order has been exceeded.No action possible; the refund limit has already been reached.
425order_payment_not_yet_enabled_for_refundThe order is not yet enabled for refund.Wait a moment and retry the request.
428insufficient_money_for_refundInsufficient balance in the account to process the refund.Check the available balance in the Mercado Pago account before trying again.
500idempotency_validation_failedIdempotency validation failed.Retry the request with the same X-Idempotency-Key.
500genericInternal server error.Retry the request. If the problem persists, contact support.