Actions26
Overview
The "Update Transaction" operation of the "Order" resource in this node allows users to update the amount of a specific transaction within an existing order on Mercado Pago's platform. This is useful when you need to adjust the value of a payment transaction associated with an order, for example, correcting a previously entered amount or reflecting a partial refund or additional charge.
Practical scenarios include:
- Adjusting transaction amounts after customer requests or billing corrections.
- Synchronizing updated payment information from external systems.
- Managing complex order payment flows where transactions may change over time.
Properties
| Name | Meaning |
|---|---|
| ID do Pedido | The unique identifier of the order containing the transaction to update. |
| ID da Transação | The unique identifier of the transaction within the order that needs to be updated. |
| Valor da Transação | The new amount (in Brazilian Reais) to set for the specified transaction. |
Output
The output JSON contains the updated order data returned by Mercado Pago after successfully updating the transaction. It includes details about the order and its transactions reflecting the new transaction amount.
Example structure snippet (simplified):
{
"type": "transaction_updated",
"order": {
"id": "12345678",
"transactions": [
{
"id": "87654321",
"transaction_amount": 100.50,
...
}
],
...
},
"success": true,
"timestamp": "2024-06-01T12:00:00.000Z"
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for Mercado Pago MCP Server with appropriate permissions.
- The node makes HTTP requests to Mercado Pago's REST API endpoints.
- Proper configuration of the credential with access token and endpoint URL is necessary.
Troubleshooting
- Missing or invalid credentials: Ensure the API key credential is correctly configured and has valid access tokens.
- Invalid order or transaction IDs: Verify that the provided order ID and transaction ID exist and belong together.
- Incorrect transaction amount: The amount must be a positive number; negative or zero values may cause errors.
- API rate limits or network issues: Temporary failures might occur due to connectivity or rate limiting; retry or check network status.
- Error messages from Mercado Pago API: These will be surfaced as node errors; review the error message for details such as permission denied, not found, or validation errors.
To resolve errors, confirm all input parameters are correct, credentials are valid, and the Mercado Pago service is reachable.