Home
Documentation
Resources
Partners
Community

Resources

Check for updates on our solutions and system performance, or request technical support.

Partners

Discover our program for agencies or developers that offer integration services and sellers who want to hire them.

Community

Get the latest news, ask others for help and share your knowledge.

Delete a transaction from the order - Online payments - Mercado Pago Developers

Intelligent search powered by OpenAI 

Delete a transaction from the order

DELETE

https://api.mercadopago.com/v1/orders/{order_id}/transactions/{transaction_id}
This endpoint allows you to delete a payment transaction from the order. In case of success, the request will return a response with status 204.
Request's parameters
PATH
order_id
string

REQUIRED

Order ID, returned in the response to the request made for its creation.
transaction_id
string

REQUIRED

Identifier of the payment transaction that will be deleted from the order. This ID is automatically generated by Mercado Pago when the request is created or when the transaction is added later to the order.
Response parameters
Esta solicitação não tem resposta
Errors

400Error. Invalid ID supplied

invalid_path_param

The order_id provided in the request path is not correct. Please confirm it and provide a valid ID to try again.

401Error. Access Token not authorized.

401

The value sent as Access Token is incorrect. Please check and try again with the correct value.

404Error. Order not found.

order_not_found

Order not found. Please check if you provided the correct order ID.

409Some specific system rule does not allow the action to be performed due to defined restrictions.

idempotency_key_already_used

The value sent as the idempotency header has already been used. Please try the request again sending a new value.

500Generic error .

500

Generic error. Please try submitting the request again.

Request
curl -X DELETE \
    'https://api.mercadopago.com/v1/orders/{order_id}/transactions/{transaction_id}'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer TEST-7434*********159-03141*********cee51edf8*********f94f589-1*********' \
    
Sample answer
// This request has not been responded to.