iFood icon

iFood

Integração com as APIs do iFood

Overview

This node integrates with the iFood API to manage merchant-related operations, specifically including the creation of interruptions for merchants. It is useful for scenarios where a merchant needs to temporarily pause or interrupt their service availability, such as for maintenance or unexpected closures. For example, a restaurant owner can create an interruption to notify customers that the restaurant is temporarily closed.

Use Case Examples

  1. Creating an interruption for a merchant to indicate a temporary closure or pause in service.
  2. Listing all interruptions for a merchant to review past or current service pauses.

Properties

Name Meaning
Merchant ID The unique identifier of the merchant for whom the interruption is being created. This is required to specify which merchant the operation applies to.

Output

JSON

  • json - The JSON response from the iFood API containing details about the created interruption or other merchant-related data returned by the API.

Dependencies

  • Requires an API key credential for iFood API authentication to make authorized requests.

Troubleshooting

  • Common issues include providing an invalid or missing Merchant ID, which will cause the API request to fail.
  • Errors may occur if the interruption data (openingHoursJson) is malformed or incomplete, resulting in API validation errors.
  • Network or authentication errors can occur if the API key credential is invalid or expired.

Links

Discussion