March 5, 2019 - Return Payment Device ID, Item Creation Date, and Item Sent Date on Receipts

Michael CareyMichael Carey Posts: 65Administrator, Lightspeed Staff moderator
edited March 9 in Changelog

Payment Device ID Included on Receipt Response

The payment object returned on the /financial/receipt response now includes the device id. This references the unique device that the payment was accepted on.

Item Creation Date Included on Receipt Response

The item object returned on the /financial/receipt response now includes the field creationDate. This value matches the creation date that is displayed on the receipt in the backoffice and represents the time that the item was added to the order.

Item Sent Date Included on Receipt Response

The item object returned on the /financial/receipt response now includes the field sentDate. This value matches the modified date that is displayed on the receipt in the backoffice and represents the time that the item was sent to the kitchen.

{
    "id": 112379242,
    "sequentialId": 0,
    "sequenceNumber": 0,
    "uuid": "c77986bc30cd11e9b26f00e02f1e8758",
    "parentId": 0,
    "floorId": 432343,
    "tableId": 206170,
    "customerId": 5323,
    "userId": 2356,
    "status": "PAID",
    "type": "restaurant",
    "creationDate": "2019-02-15T02:59:58.457Z",
    "modificationDate": "2019-02-15T03:00:08.904Z",
    "closingDate": "1970-01-01T00:00:00.000Z",
    "printDate": "1970-01-01T00:00:00.000Z",
    "total": 2.42,
    "items": [
      {
          "productId": "A1",
          "productPLU": "A1",
          "prodId": "237161",
          "productName": "Aperitif maison",
          "info": "",
          "amount": 1,
          "unitPrice": 2.42,
          "unitPriceWithoutVat": 2,
          "totalPrice": 2.42,
          "totalPriceWithoutVat": 2,
          "vatPercentage": 21,
          "deliveryVatPercentage": 0,
          "takeawayVatPercentage": 0,
          "priceTypeId": 0,
          "modifierValues": [],
          "id": "1",
          "parentId": "0",
          "seat": 0,
          "course": 1,
          "creationDate": "2019-02-15T03:00:05.009Z",
          "sentDate": "2019-02-15T03:00:05.008Z"
      }
    ],
    "actionItems": [],
    "payments": [
        {
            "id": 928462820,
            "type": "Cash",
            "paymentTypeId": 13811,
            "paymentTypeCategoryId": 1,
            "amount": 2.42,
            "tips": 0,
            "restitution": 0,
            "statusId": 0,
            "deviceId": "292530C5-A5D0-4281-AF6A-D4462D570487"
        }
    ],
    "numberOfCustomers": 1,
    "currentCourse": 0
}
Post edited by Michael Carey on
Michael Carey

Product Manager
Lightspeed HQ

1 comment

  • nayan7030nayan7030 Posts: 5Member

    Hello Support Team,

    We would need some help with our Restaurant POS system (account details are below).

    We want to pass the custom field "Tip, Discount" through the API and display it in the bill that is generated through the POS.

    Currently, when we are integrating the "Tip" field through the API we get the below error.

    Could not read documents Unrecognized field "tip" (4 known properties: "amount", "id", "", ""])

    Account Details: We have a partner account registered with the email address: [email protected]

    Please find below an example of what fields need to be displayed on the bill when going through the POS system. 

    Can you please assist with this at the earliest?

    Example:

    # Item  Price

    1 Drink  20$

    2 Burger 15$

    -------------------------------------------

    Subtotal: 35$

    Tip:        5$

    Discount: 10$

    TOTAL:  30$

Sign In or Register to comment.