Actions26
Overview
The "Process Order" operation in the Mercado Pago MCP node allows users to process a payment for an existing order by its ID. This operation triggers the payment processing workflow on Mercado Pago's platform for the specified order.
This node is beneficial in scenarios where you have created an order and want to initiate or finalize its payment processing programmatically within an n8n workflow. For example, after creating an order in your e-commerce system, you can use this node to process the payment automatically without manual intervention.
Practical example:
- After receiving an order from a customer, you create the order in Mercado Pago.
- Then, you use the "Process Order" operation to trigger payment processing.
- You can then handle the response to update your system with the payment status or notify the customer.
Properties
| Name | Meaning |
|---|---|
| ID do Pedido | The unique identifier of the order to be processed. This is required to specify which order's payment should be processed. |
Output
The output JSON contains the following structure:
type: A string indicating the type of response, here it will be"order_processed".order: An object containing detailed information about the processed order as returned by Mercado Pago's API.success: A boolean indicating if the operation was successful (true).timestamp: ISO 8601 timestamp string of when the operation was executed.
Example output snippet:
{
"type": "order_processed",
"order": {
// Detailed order data from Mercado Pago API
},
"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 API with appropriate permissions.
- The node makes HTTP POST requests to Mercado Pago's API endpoint to process the order.
- Proper configuration of the credential with access token and endpoint URL is necessary.
Troubleshooting
Common issues:
- Invalid or missing order ID: Ensure the "ID do Pedido" property is correctly set and corresponds to an existing order.
- Authentication errors: Verify that the API key credential is valid and has not expired.
- Network or connectivity problems: Check internet connection and Mercado Pago service availability.
Common error messages:
"Card token is required for card payments"(not applicable here but seen in other operations): Means a required token for card payments is missing.- HTTP 401 Unauthorized: Indicates invalid or missing API credentials.
- HTTP 404 Not Found: The specified order ID does not exist.
How to resolve:
- Double-check input parameters.
- Re-authenticate or update API credentials.
- Confirm the order exists in Mercado Pago before processing.