iFood icon

iFood

Integração com as APIs do iFood

Overview

This node integrates with the iFood API to manage merchant-related data. Specifically, the 'Get Merchant' operation retrieves detailed information about a specific merchant using their Merchant ID. This is useful for scenarios where you need to fetch and display merchant details, verify merchant information, or use merchant data in workflows such as order processing or reporting.

Use Case Examples

  1. Fetch details of a merchant by providing their Merchant ID to display in a dashboard.
  2. Use merchant information to validate orders or customize notifications based on merchant attributes.

Properties

Name Meaning
Merchant ID The unique identifier of the merchant to retrieve information for. This property is optional; if not provided, the operation may not execute correctly.

Output

JSON

  • json - The JSON response containing detailed information about the requested merchant.

Dependencies

  • Requires an API key credential for authenticating requests to the iFood API.

Troubleshooting

  • If the Merchant ID is missing or incorrect, the node may return an error or empty response. Ensure the Merchant ID is valid and correctly formatted.
  • API request failures may occur due to network issues or invalid credentials. Verify the API key credential is correctly configured and has necessary permissions.
  • Errors from the iFood API will be thrown as NodeApiError; check the error message for details and adjust parameters accordingly.

Links

  • iFood API Documentation - Official documentation for the iFood API, useful for understanding available endpoints and data structures.

Discussion