Skip to content
View in the app

A better way to browse. Learn more.

Loyverse Town

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Question about GET /reciepts

Featured Replies

Hi LV, 

I'm having trouble with the GET receipts API, is this the right place to ask? 

My issue is with rounding, it looks like the API results is rounding differently from the POS App. For example, in the API payload there's a line item with total_money $2.32 yet in the Loyverse POS application this receipt line item is $2.33. There's actually total of three line items in that receipt that don't total.. 

e.g. call is "curl --location --request GET 'https://api.loyverse.com/v0.7/receipts/8-10385 "

which returns this: (segment): 

{

            "item_id": "c5390f9f-711e-11ea-8d93-0603130a05b8",

            "variant_id": "b5c41b88-71a9-11ea-8d93-0603130a05b8",

            "item_name": "BLUEBERRIES DARK CHOCOLATE",

            "variant_name": null,

            "sku": "10154",

            "quantity": 0.049,

            "price": 47.50,

            "gross_total_money": 2.32,

            "total_money": 2.32,

            "cost": 20.50,

            "cost_total": 1.00,

            "line_note": null,

            "line_taxes": [

                {

                    "money_amount": 0.21,

                    "id": "74bb6f11-71b4-11ea-8d93-0603130a05b8",

                    "type": "INCLUDED",

                    "name": "GST",

                    "rate": 10.00

                }

            ],

            "total_discount": 0.00,

            "line_discounts": [],

            "line_modifiers": []

        },

image.thumb.png.4904233a6d9a6ea07ee6ec01dec03553.png

As a side note, I'd be keen for someone else to try the following call with their own bearer token and see if the LV security is working. Post back here 😉

curl --location --request GET 'https://api.loyverse.com/v0.7/items/c5390f9f-711e-11ea-8d93-0603130a05b8'

Thanks Loyverse!

Hi, thank you for reporting issue.

We have checked your post and fixed it.
Please check it now.

Thank you!

  • Author

Thanks Isobe_Yasuki, I've re-run the GET above and it seems to be working fine now. I'll try with some others and let you know if there's anything still wrong. 

Great! Thanks!😃

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.