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.

Create Receipt on POS (to auto print)

Featured Replies

I'm trying to create a POST request that generates a receipt as if it was created on the POS.

I'm sending the "pos_device_id" in body along with "source": "point of sale".

But this doesn't work properly and the receipt has a prefix of 0 instead of 1 (which is shown when creating sale from POS).

How can we execute this? We have a different platform for menu, where orders are generated. We would like to send this to POS, and also print it out in our POS printer. Please advice.

Thanks

Hello @KPTAC

This Body template might help you to generate receipt.

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

{

    "store_id": "<string>",

    "employee_id": "<string>",

    "order": "<string>",

    "customer_id": "<string>",

    "source": "<string>",

    "receipt_date": "<dateTime>",

    "total_discounts": [

        {

            "id": "<string>",

            "scope": "<string>",

            "percentage": "<number>",

            "money_amount": "<number>"

        },

        {

            "id": "<string>",

            "scope": "<string>",

            "percentage": "<number>",

            "money_amount": "<number>"

        }

    ],

    "note": "<string>",

    "line_items": [

        {

            "quantity": "<number>",

            "variant_id": "<string>",

            "price": "<number>",

            "cost": "<number>",

            "line_note": "<string>",

            "line_taxes": [

                {

                    "id": "<string>"

                },

                {

                    "id": "<string>"

                }

            ],

            "line_discounts": [

                {

                    "id": "<string>"

                },

                {

                    "id": "<string>"

                }

            ],

            "line_modifiers": [

                {

                    "modifier_option_id": "<string>"

                },

                {

                    "modifier_option_id": "<string>"

                }

            ]

        },

        {

            "quantity": "<number>",

            "variant_id": "<string>",

            "price": "<number>",

            "cost": "<number>",

            "line_note": "<string>",

            "line_taxes": [

                {

                    "id": "<string>"

                },

                {

                    "id": "<string>"

                }

            ],

            "line_discounts": [

                {

                    "id": "<string>"

                },

                {

                    "id": "<string>"

                }

            ],

            "line_modifiers": [

                {

                    "modifier_option_id": "<string>"

                },

                {

                    "modifier_option_id": "<string>"

                }

            ]

        }

    ],

    "payments": [

        {

            "payment_type_id": "<string>",

            "money_amount": "<number>",

            "name": "<string>",

            "type": "<string>",

            "paid_at": "<dateTime>",

            "payment_details": {

                "authorization_code": "<string>",

                "reference_id": "<string>",

                "entry_method": "<string>",

                "card_company": "<string>",

                "card_number": "<string>"

            }

        },

        {

            "payment_type_id": "<string>",

            "money_amount": "<number>",

            "name": "<string>",

            "type": "<string>",

            "paid_at": "<dateTime>",

            "payment_details": {

                "authorization_code": "<string>",

                "reference_id": "<string>",

                "entry_method": "<string>",

                "card_company": "<string>",

                "card_number": "<string>"

            }

        }

    ]

}

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.