Search in documentation
ctrl+4K
Modules
Authentication
Merchant
Catalog
Order
Events
Logistics
Shipping
Review
Financial
Solutions

Order structure

Use GET logistics/orders/{id} to get complete order details.An order contains:
  • General information: ID, type, creation date
  • Merchant: Store data
  • Customer: Customer data
  • Items: Product quantity and weight
  • Payments: Payment methods and amounts
  • Delivery: Delivery address and method
  • Schedule: Scheduled time (when applicable)

Field reference

FieldTypeDescription
iduuidUnique order identifier
displayIdstringFriendly ID to display in the store interface
orderTypeenumOrder type: DELIVERY or TAKEOUT
orderTimingenumDelivery timing: IMMEDIATE or SCHEDULED
createdAtdateOrder creation date and time
isTestbooleanIndicates if it's a test order
Example:
{
  "id": "32c15e00-9861-4548-b5f0-15580defc999",
  "displayId": "fc999",
  "orderType": "DELIVERY",
  "orderTiming": "IMMEDIATE",
  "createdAt": "2020-01-01T00:00:00.000Z",
  "isTest": false
}
FieldTypeDescription
iduuidUnique store identifier
namestringStore name
Example:
{
  "merchant": {
    "id": "50647eee-5eb6-41a2-b2d8-999998ed677f",
    "name": "Store Name"
  }
}
FieldTypeDescription
countrystringCountry code
statestringState
citystringCity
districtstringDistrict
streetstringStreet
numberstringNumber
postalCodestringPostal code
latitudenumberLatitude coordinate
longitudenumberLongitude coordinate
Example:
{
  "merchantAddress": {
    "country": "BR",
    "state": "AC",
    "city": "Bujari",
    "district": "Bujari",
    "street": "Ramal Bujari",
    "number": "122",
    "postalCode": "12345678",
    "latitude": -9.822384,
    "longitude": -67.948589
  }
}
FieldTypeDescription
iduuidUnique customer identifier
namestringCustomer name
phone.numberstringCustomer phone or iFood's 0800 number
phone.localizerstringLocator code to use when calling the 0800 number
phone.localizerExpirationdateLocator expiration date
Phone field is optionalThe phone field expires 3 hours after the order delivery date.
Example:
{
  "customer": {
    "name": "Murilo Gontijo",
    "phone": {
      "number": "0800 705 3040",
      "localizer": "75159000",
      "localizerExpiration": "2024-01-09T00:44:42.547Z"
    }
  }
}
FieldTypeDescription
indexintegerItem position in the list
quantityintegerQuantity
weight.unitstringUnit: GRAMS or LITERS
weight.valuenumberWeight value
Example:
"items": [
  {
    "index": 1,
    "quantity": 1,
    "weight": {
      "unit": "GRAMS",
      "value": 750
    }
  },
  {
    "index": 2,
    "quantity": 1,
    "weight": {
      "unit": "LITERS",
      "value": 2
    }
  }
]
FieldTypeDescription
prepaiddoubleAmount already paid (online)
pendingdoubleAmount to collect on delivery
methods.valuedoublePayment amount
methods.currencystringCurrency (e.g., BRL)
methods.methodenumMethod: CASH, CREDIT, DEBIT, MEAL_VOUCHER, FOOD_VOUCHER, GIFT_CARD, DIGITAL_WALLET, PIX, OTHER
methods.typestringType: ONLINE or OFFLINE
methods.prepaidbooleanIndicates if already paid
methods.cash.changeFordoubleChange amount (for cash payment)
Example:
"payments": {
  "prepaid": 0,
  "pending": 103.99,
  "methods": [
    {
      "value": 103.99,
      "currency": "BRL",
      "method": "CASH",
      "prepaid": false,
      "type": "OFFLINE",
      "cash": {
        "changeFor": 150
      }
    }
  ]
}
FieldTypeDescription
modeenumDelivery mode: DEFAULT (standard) or EXPRESS
deliveredByenumResponsible: MERCHANT (own delivery)
deliveryDateTimedateEstimated delivery date and time
observationsstringCustomer observations about the delivery
deliveryAddressobjectDelivery address
Example:
"delivery": {
  "mode": "DEFAULT",
  "deliveredBy": "MERCHANT",
  "deliveryDateTime": "2020-01-01T00:00:00.000Z",
  "observations": "Leave at reception",
  "deliveryAddress": {...}
}
FieldTypeDescription
streetNamestringStreet name
streetNumberstringNumber (may contain letters)
formattedAddressstringComplete formatted address
neighborhoodstringNeighborhood
complementstringComplement (apartment, block, etc)
referencestringReference point
postalCodestringPostal code (optional, may come as zero)
citystringCity
statestringState
countrystringCountry
coordinates.latitudedoubleLatitude coordinate
coordinates.longitudedoubleLongitude coordinate
Example:
"deliveryAddress": {
  "streetName": "STREET X",
  "streetNumber": "20A",
  "formattedAddress": "STREET X, 20A",
  "neighborhood": "Neighborhood",
  "complement": "Apt 101",
  "reference": "Near the square",
  "postalCode": "99999999",
  "city": "SAO PAULO",
  "state": "SP",
  "country": "BR",
  "coordinates": {
    "latitude": -26.999999,
    "longitude": -48.999999
  }
}
Present only in scheduled orders (orderTiming: SCHEDULED).
FieldTypeDescription
deliveryDateTimeStartdateDelivery window start
deliveryDateTimeEnddateDelivery window end
Example:
"schedule": {
  "deliveryDateTimeStart": "2020-01-01T00:20:00.000Z",
  "deliveryDateTimeEnd": "2020-01-01T01:20:00.000Z"
}

Scenario examples

{
  "id": "4934a1e8-2071-4ac7-9ff6-6e634bb6008d",
  "orderType": "DELIVERY",
  "orderTiming": "IMMEDIATE",
  "displayId": "9843",
  "createdAt": "2024-03-20T14:33:08.052Z",
  "isTest": true,
  "merchant": {
    "id": "b0954b6b-f99c-44b6-ba1e-987f32b2b22a",
    "name": "Teste - murilogontijo",
    "merchantAddress": {
      "country": "BR",
      "state": "AC",
      "city": "Bujari",
      "district": "Bujari",
      "street": "Ramal Bujari",
      "number": "122",
      "postalCode": "12345678",
      "latitude": -9.822384,
      "longitude": -67.948589
    }
  },
  "customer": {
    "name": "PEDIDO DE TESTE - Murilo Gontijo",
    "phone": {
      "number": "0800 705 4050",
      "localizer": "89121704",
      "localizerExpiration": "2024-03-20T18:33:08.052Z"
    }
  },
  "items": [
    {
      "index": 1,
      "quantity": 3,
      "weight": {
        "unit": "GRAMS",
        "value": 2250
      }
    },
    {
      "index": 2,
      "quantity": 1,
      "weight": {
        "unit": "GRAMS",
        "value": 200
      }
    }
  ],
  "payments": {
    "prepaid": 0,
    "pending": 323.99,
    "methods": [
      {
        "value": 323.99,
        "currency": "BRL",
        "method": "CREDIT",
        "prepaid": false,
        "type": "OFFLINE"
      }
    ]
  },
  "delivery": {
    "mode": "DEFAULT",
    "deliveredBy": "MERCHANT",
    "deliveryDateTime": "2024-04-01T15:18:04.801Z",
    "observations": "PEDIDO DE TESTE! NÃO ENTREGAR",
    "deliveryAddress": {
      "streetName": "Rua TESTE",
      "streetNumber": "999999",
      "formattedAddress": "Rua TESTE, 999999",
      "neighborhood": "Bairro TESTE",
      "complement": "Complemento TESTE",
      "postalCode": "99999999",
      "city": "TESTE",
      "state": "XX",
      "country": "XX",
      "reference": "TESTE",
      "coordinates": {
        "latitude": 0,
        "longitude": 0
      }
    }
  }
}
{
  "id": "63ec432e-4f0d-4097-b4fe-11bc2dac14af",
  "orderType": "DELIVERY",
  "orderTiming": "IMMEDIATE",
  "displayId": "1728",
  "createdAt": "2024-04-01T15:18:04.801Z",
  "isTest": true,
  "merchant": {
    "id": "b0954b6b-f99c-44b6-ba1e-987f32b2b22a",
    "name": "Teste - murilogontijo",
    "merchantAddress": {
      "country": "BR",
      "state": "AC",
      "city": "Bujari",
      "district": "Bujari",
      "street": "Ramal Bujari",
      "number": "0",
      "postalCode": "12345678",
      "latitude": -9.822384,
      "longitude": -67.948589
    }
  },
  "customer": {
    "name": "PEDIDO DE TESTE - Murilo Gontijo",
    "phone": {
      "number": "0800 705 4050",
      "localizer": "83984177",
      "localizerExpiration": "2024-04-01T19:18:04.801Z"
    }
  },
  "items": [
    {
      "index": 1,
      "quantity": 1
    },
    {
      "index": 2,
      "quantity": 1
    }
  ],
  "delivery": {
    "mode": "DEFAULT",
    "deliveredBy": "MERCHANT",
    "deliveryDateTime": "2024-04-01T15:18:04.801Z",
    "observations": "PEDIDO DE TESTE! NÃO ENTREGAR",
    "deliveryAddress": {
      "streetName": "Rua TESTE",
      "streetNumber": "999999",
      "formattedAddress": "Rua TESTE, 999999",
      "neighborhood": "Bairro TESTE",
      "complement": "Complemento TESTE",
      "postalCode": "99999999",
      "city": "TESTE",
      "state": "XX",
      "country": "XX",
      "reference": "TESTE",
      "coordinates": {
        "latitude": 0,
        "longitude": 0
      }
    }
  }
}
{
  "id": "5076514a-2ad1-49fe-b38c-e849b4cbeaab",
  "orderType": "DELIVERY",
  "orderTiming": "SCHEDULED",
  "displayId": "9305",
  "createdAt": "2024-01-08T20:44:42.547Z",
  "isTest": false,
  "schedule": {
    "deliveryDateTimeStart": "2024-01-16T18:00:00.000Z",
    "deliveryDateTimeEnd": "2024-01-16T18:30:00.000Z"
  },
  "merchant": {
    "id": "b0954b6b-f99c-44b6-ba1e-987f32b2b22a",
    "name": "Teste - murilogontijo",
    "merchantAddress": {
      "country": "BR",
      "state": "AC",
      "city": "Bujari",
      "district": "Bujari",
      "street": "Ramal Bujari",
      "number": "122",
      "postalCode": "12345678",
      "latitude": -9.822384,
      "longitude": -67.948589
    }
  },
  "customer": {
    "name": "PEDIDO DE TESTE - Murilo Gontijo",
    "phone": {
      "number": "0800 705 3040",
      "localizer": "75159000",
      "localizerExpiration": "2024-01-09T00:44:42.547Z"
    }
  },
  "items": [
    {
      "index": 1,
      "quantity": 1,
      "weight": {
        "unit": "GRAMS",
        "value": 750
      }
    },
    {
      "index": 2,
      "quantity": 1,
      "weight": {
        "unit": "LITERS",
        "value": 2
      }
    }
  ],
  "payments": {
    "prepaid": 0,
    "pending": 103.99,
    "methods": [
      {
        "value": 103.99,
        "currency": "BRL",
        "method": "CASH",
        "prepaid": false,
        "type": "OFFLINE",
        "cash": {
          "changeFor": 150
        }
      }
    ]
  },
  "delivery": {
    "mode": "DEFAULT",
    "deliveredBy": "MERCHANT",
    "deliveryDateTime": "2024-01-08T22:14:42.547Z",
    "observations": "PEDIDO DE TESTE! NÃO ENTREGAR",
    "deliveryAddress": {
      "streetName": "Rua TESTE",
      "streetNumber": "999999",
      "formattedAddress": "Rua TESTE, 999999",
      "neighborhood": "Bairro TESTE",
      "complement": "Complemento TESTE",
      "postalCode": "99999999",
      "city": "TESTE",
      "state": "XX",
      "country": "XX",
      "reference": "TESTE",
      "coordinates": {
        "latitude": 0,
        "longitude": 0
      }
    }
  }
}
Was this page helpful?
Rate your experience in the new Developer portal: