Mercado Pago MCP icon

Mercado Pago MCP

Integração com MCP Server do Mercado Pago

Actions26

Overview

This node integrates with the Mercado Pago MCP Server to manage orders and their transactions. Specifically, the Update Transaction operation under the Order resource allows users to update details of a specific transaction within an existing order. This is useful when you need to modify the amount of a transaction associated with an order, for example, correcting a payment amount or adjusting charges after an initial transaction.

Practical scenarios include:

  • Adjusting the transaction amount due to discounts or refunds.
  • Correcting errors in transaction data without creating a new transaction.
  • Managing complex order payments where multiple transactions are involved.

Properties

Name Meaning
ID do Pedido The unique identifier of the order to which the transaction belongs.
Valor da Transação The updated amount of the transaction in Brazilian Reais (R$).
ID da Transação The unique identifier of the transaction to be updated within the specified order.

Output

The output JSON contains the updated order information reflecting the changes made to the specified transaction. It includes:

  • type: A string indicating the type of response, here "transaction_updated".
  • order: An object representing the full order data after the transaction update.
  • Additional metadata fields such as success (boolean) indicating if the operation was successful, and timestamp showing when the operation occurred.

Example output structure (simplified):

{
  "type": "transaction_updated",
  "order": {
    // Full order details including updated transaction info
  },
  "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 authenticating with the Mercado Pago MCP API.
  • The node makes HTTP requests to the Mercado Pago API endpoints.
  • Proper configuration of the API credentials in n8n is necessary.
  • Network access to the Mercado Pago API endpoint must be available.

Troubleshooting

  • Missing or invalid credentials: The node requires a valid API authentication token. Ensure the credential is correctly configured and has appropriate permissions.
  • Invalid order or transaction IDs: If the provided order ID or transaction ID does not exist or is incorrect, the API will return an error. Verify these IDs before running the node.
  • Incorrect transaction amount: The transaction amount must be a valid number. Non-numeric or negative values may cause errors.
  • API rate limits or connectivity issues: Network problems or hitting API rate limits can cause failures. Check network connectivity and API usage quotas.
  • Error messages from the API: These typically include HTTP status codes and error descriptions. Review the error message for clues and consult Mercado Pago API documentation for resolution steps.

Links and References


This summary focuses exclusively on the Order - Update Transaction operation as requested.

Discussion