Skip to content
Proud to collaborate with Microsoft for Startups

ifood.events.consume ​

Poll one batch of iFood order events, confirm still-open orders, persist, then acknowledge

One bounded consume cycle for one connection.

Overview ​

PropertyValue
Workflow typeDag
LibraryApp-ifood
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID
connection_uuiduuidYes—Organization-scoped iFood connection UUID
merchant_refslistNo—Restrict polling to these merchant references
workflow_run_idstringNo—Engine-stamped parent DAG run id

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo——
connection_uuiduuidNo——
merchant_refslistNo——
workflow_run_idstringNo——
poll_eventsjsonNo——
confirm_ordersjsonNo——
persist_eventsjsonNo——
ack_eventsjsonNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_stepjsonNo——
failed_layerintegerNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
provider_request_refstringNo——
retryablebooleanNo——

DAG Layers ​

#LayerStepsCompensation
1pollifood.events.poll—
2confirmifood.order.confirm—
3persistdata.commerce.entity.persist-batch—
4acknowledgeifood.events.acknowledge—

Execution Flow ​

Sub-workflows ​

Sub-workflowStep name
ifood.events.pollpoll_events
ifood.order.confirmconfirm_orders
data.commerce.entity.persist-batchpersist_events
ifood.events.acknowledgeack_events

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "ifood.events.consume",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value"
  }
}