BETA - Get Aborted Orders Beta

GET /f/v2/beta/business-location/{businessLocationId}/aborted-orders

Retrieves a list of aborted orders for a specified business day.

An aborted order is defined as an instance where items were added to an order, but all items were subsequently removed without being committed.

Path parameters

Query parameters

  • date string(date) Required

    The business date of the aborted orders.

Responses

  • 200 application/json

    Aborted orders returned successfully.

    Hide response attributes Show response attributes object
    • The name of the staff member who aborted the order.

    • timeOfAbortedOrder string(date-time)

      The timestamp when the order was aborted and all line items fully cleared.

    • The total value of the aborted order.

    • abortedLineItems array[object]

      A list of all line items that were removed from the aborted order.

      Hide abortedLineItems attributes Show abortedLineItems attributes object
      • itemName string

        The name of the item that was removed from the order.

      • itemSku string

        The SKU of the item that was removed from the order.

      • The quantity of the item removed from the order.

      • The total price for this item (itemPrice * itemQuantity).

      • The unit price of the item removed from the order.

  • 400 application/json

    Bad Request - Invalid request parameters or format.

    Hide response attribute Show response attribute object
  • 500 application/json

    Internal Server Error - An error occurred on the server.

    Hide response attributes Show response attributes object
GET /f/v2/beta/business-location/{businessLocationId}/aborted-orders
curl \
 -X GET https://api.lsk.lightspeed.app/f/v2/beta/business-location/{businessLocationId}/aborted-orders?date=2023-01-01 \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "staffName": "Employee 1",
    "timeOfAbortedOrder": "2023-03-14T19:58:48.224Z",
    "totalAmountAborted": "33.32",
    "abortedLineItems": [
      {
        "itemName": "Soda",
        "itemSku": "9",
        "itemQuantity": "4.000",
        "itemAmount": "33.32",
        "itemPrice": "8.33"
      }
    ]
  }
]
Response examples (400)
{
  "error": "string"
}
Response examples (500)
{
  "timestamp": "2024-05-04T09:42:00+00:00",
  "path": "string",
  "status": 42,
  "error": "string",
  "requestId": "string"
}