Logo PopinaPopina API

Get OrderTasks list

Retrieve a list of order tasks sorted in ascending order by their creation date, with the option to filter by status.

GET/v1/order-tasks/
authorization<token>

To get an API key, please contact us. We'll be happy to help you.

In: header

Query Parameters

status?string

Optional filter to retrieve order tasks by their current status. Only tasks matching the specified status will be returned

Value in"SCHEDULED" | "PENDING" | "ACCEPTED" | "DECLINED" | "ERROR" | "ARCHIVED"
lastTaskTimestamp?string

Optional timestamp to skip order tasks returned in previous polling; should match the createdAt field of the last returned task from previous polling.

Formatdate-time

Response Body

application/json

curl -X GET "http://localhost:4003/v1/order-tasks/"
[
  {
    "id": "c0c7822d-da18-423c-b67d-1c05a84e11b5",
    "createdAt": "2024-10-11T09:23:42.440Z",
    "type": "NEW_ORDER",
    "status": "PENDING",
    "data": {
      "channel": "UBER_EATS",
      "source": "UBER_EATS",
      "displayedSource": "Uber Eats",
      "displayedChannel": "Uber Eats",
      "serviceType": "delivery",
      "entryPoint": "WEB",
      "guestsCount": null,
      "comment": null,
      "customerEmail": "Jane.Doe14@yahoo.com",
      "customerFirstName": "Jane",
      "customerLastName": "Doe",
      "customerPhone": "477.244.0374 x8455",
      "customerId": null,
      "deliveryAddress1": "1767 E 2nd Street",
      "deliveryAddress2": "Suite 157",
      "deliveryCity": "Paris",
      "deliveryComment": null,
      "deliveryCountry": "France",
      "deliveryEmail": null,
      "deliveryFirstName": null,
      "deliveryLastName": null,
      "deliveryPhone": null,
      "deliveryZipCode": "78989",
      "displayedId": "c0c7822d",
      "tableName": "123456",
      "beeperNumber": null,
      "tableTent": null,
      "externalId": "10104129-e3a6-4ef9-ad53-de7e36e35f8d",
      "items": [
        {
          "comment": "No cheese on top.",
          "discounts": [],
          "externalId": null,
          "externalSku": null,
          "internalId": null,
          "internalSku": null,
          "isCanceled": false,
          "items": [
            {
              "comment": null,
              "discounts": [],
              "externalId": null,
              "externalSku": null,
              "internalId": null,
              "internalSku": null,
              "isCanceled": false,
              "items": [],
              "name": "pesto",
              "quantity": 1,
              "taxRate": 0,
              "type": "modifier",
              "unitPrice": 0,
              "weight": null
            }
          ],
          "name": "Pasta",
          "quantity": 1,
          "taxRate": 1000,
          "type": "product",
          "unitPrice": 1014,
          "weight": null
        },
        {
          "comment": null,
          "discounts": [],
          "externalId": null,
          "externalSku": null,
          "internalId": null,
          "internalSku": null,
          "isCanceled": false,
          "items": [],
          "name": "Sparkling water",
          "quantity": 1,
          "taxRate": 550,
          "type": "product",
          "unitPrice": 363,
          "weight": null
        },
        {
          "comment": null,
          "discounts": [],
          "externalId": null,
          "externalSku": null,
          "internalId": null,
          "internalSku": null,
          "isCanceled": false,
          "items": [],
          "name": "Tiramisu",
          "quantity": 1,
          "taxRate": 2000,
          "type": "product",
          "unitPrice": 588,
          "weight": null
        }
      ],
      "payments": [
        {
          "amount": 1965,
          "externalServiceId": "d8ed2f8c-8df8-4057-8649-638e3573f1b4",
          "name": "Credit card",
          "paymentMode": "card",
          "tipAmount": 0,
          "operator": null,
          "paidAt": "2023-10-11T15:24:49.000Z"
        }
      ],
      "pickupHour": "Fri Oct 11 2024 15:24:49 GMT+0100 (GMT+01:00)",
      "externalTotal": 1965,
      "externalTotalDiscount": 0,
      "externalTotalTax": 239,
      "discounts": [],
      "charges": []
    },
    "serverCustomData": null,
    "providerCustomData": null,
    "orderIdRef": "9b175ca7-dbe9-417c-8d03-6f1d47d4ea0e",
    "providerId": "03aeedfb-c2c7-47d3-8f7e-d58f4560dd6d",
    "providerConfigSnapshot": {
      "actionList": [
        "READY",
        "FINISH",
        "DELAY"
      ],
      "settings": {
        "allowDecline": true,
        "autoAccept": false,
        "autoSendToPreparation": true,
        "printDeliveryOnPreparation": true,
        "printDeliveryOnReceipt": true
      }
    }
  }
]