Loyverse

App · 20 actions

Sync POS receipts, customers, products, and inventory.

Actions

ActionWhat it does
Create customerAdd a customer with a name and optional contact details.
Delete customerDelete a Loyverse customer by ID.
Get categoryGet category.
Get customerGet customer.
Get employeeGet employee.
Get itemGet item.
Get merchantGet merchant.
Get receiptGet receipt.
Get storeGet store.
Get variantGet variant.
List categoriesList categories.
List customersList customers.
List employeesList employees.
List inventoryList inventory.
List itemsList items.
List payment typesList payment types.
List receiptsList receipts.
List storesList stores.
List taxesList taxes.
List variantsList variants.

Create customer

Add a customer with a name and optional contact details.

Inputs

NamenametextRequired
Name.
Emailemailtext
Email.
Phone numberphone_numbertext
Phone number.
Notenotetext
Note.

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "address": "example",
    "city": "example",
    "country_code": "example",
    "created_at": "example",
    "customer_code": "example",
    "deleted_at": "example",
    "email": "example",
    "first_visit": "example",
    "id": "example",
    "last_visit": "example",
    "name": "example",
    "note": "example",
    "permanent_deletion_at": "example",
    "phone_number": "example",
    "postal_code": "example",
    "region": "example",
    "total_points": 1,
    "total_spent": 1,
    "total_visits": 1,
    "updated_at": "example"
  }
}

Delete customer

Delete a Loyverse customer by ID.

Inputs

Customer idcustomer_idtextRequired
Customer id.

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "success": true
  }
}

Get category

Get category.

Inputs

Categorycategory_idtextRequired
Category ID.

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "color": "GREY",
    "created_at": "example",
    "deleted_at": "example",
    "id": "example",
    "name": "example"
  }
}

Get customer

Get customer.

Inputs

Customer IDcustomer_idtextRequired
Customer ID.

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "address": "example",
    "city": "example",
    "country_code": "example",
    "created_at": "example",
    "customer_code": "example",
    "deleted_at": "example",
    "email": "example",
    "first_visit": "example",
    "id": "example",
    "last_visit": "example",
    "name": "example",
    "note": "example",
    "permanent_deletion_at": "example",
    "phone_number": "example",
    "postal_code": "example",
    "region": "example",
    "total_points": 1,
    "total_spent": 1,
    "total_visits": 1,
    "updated_at": "example"
  }
}

Get employee

Get employee.

Inputs

Employeeemployee_idtextRequired
Employee ID.

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "created_at": "example",
    "deleted_at": "example",
    "email": "example",
    "id": "example",
    "is_owner": true,
    "name": "example",
    "phone_number": "example",
    "stores": [
      "example"
    ],
    "updated_at": "example"
  }
}

Get item

Get item.

Inputs

Item IDitem_idtextRequired
Item ID.

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "category_id": "example",
    "color": "GREY",
    "components": [
      {
        "quantity": 1,
        "variant_id": "example"
      }
    ],
    "created_at": "example",
    "deleted_at": "example",
    "description": "example",
    "form": "SQUARE",
    "handle": "example",
    "id": "example",
    "image_url": "example",
    "is_composite": true,
    "item_name": "example",
    "modifiers_ids": [
      "example"
    ],
    "option1_name": "example",
    "option2_name": "example",
    "option3_name": "example",
    "primary_supplier_id": "example",
    "reference_id": "example",
    "sold_by_weight": true,
    "tax_ids": [
      "example"
    ],
    "track_stock": true,
    "updated_at": "example",
    "use_production": true,
    "variants": [
      {
        "barcode": "example",
        "cost": 1,
        "created_at": "example",
        "default_price": 1,
        "default_pricing_type": "FIXED",
        "deleted_at": "example",
        "item_id": "example",
        "option1_value": "example",
        "option2_value": "example",
        "option3_value": "example",
        "purchase_cost": 1,
        "reference_variant_id": "example",
        "sku": "example",
        "stores": [
          {}
        ],
        "updated_at": "example",
        "variant_id": "example"
      }
    ]
  }
}

Get merchant

Get merchant.

Inputs

None.

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "business_name": "example",
    "country": "example",
    "created_at": "example",
    "currency": {
      "code": "example",
      "decimal_places": 1
    },
    "email": "example",
    "id": "example"
  }
}

Get receipt

Get receipt.

Inputs

Receipt numberreceipt_numbertextRequired
The unique number of the receipt

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "cancelled_at": "example",
    "created_at": "example",
    "customer_id": "example",
    "dining_option": "example",
    "employee_id": "example",
    "line_items": [
      {
        "cost": 1,
        "cost_total": 1,
        "gross_total_money": 1,
        "id": "example",
        "item_id": "example",
        "item_name": "example",
        "line_discounts": [
          {}
        ],
        "line_modifiers": [
          {}
        ],
        "line_note": "example",
        "line_taxes": [
          {}
        ],
        "price": 1,
        "quantity": 1,
        "sku": "example",
        "total_discount": 1,
        "total_money": 1,
        "variant_id": "example",
        "variant_name": "example"
      }
    ],
    "note": "example",
    "order": "example",
    "payments": [
      {
        "money_amount": 1,
        "name": "example",
        "paid_at": "example",
        "payment_details": {
          "authorization_code": "example",
          "card_company": "example",
          "card_number": "example",
          "entry_method": "example",
          "reference_id": "example"
        },
        "payment_type_id": "example",
        "type": "example"
      }
    ],
    "points_balance": 1,
    "points_deducted": 1,
    "points_earned": 1,
    "pos_device_id": "example",
    "receipt_date": "example",
    "receipt_number": "example",
    "receipt_type": "SALE",
    "refund_for": "example",
    "source": "example",
    "store_id": "example",
    "surcharge": 1,
    "tip": 1,
    "total_discount": 1,
    "total_discounts": [
      {
        "id": "example",
        "money_amount": 1,
        "name": "example",
        "percentage": 1,
        "type": "FIXED_PERCENT"
      }
    ],
    "total_money": 1,
    "total_tax": 1,
    "total_taxes": [
      {
        "id": "example",
        "money_amount": 1,
        "name": "example",
        "rate": 1,
        "type": "INCLUDED"
      }
    ],
    "updated_at": "example"
  }
}

Get store

Get store.

Inputs

Storestore_idtextRequired
Store ID.

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "address": "example",
    "city": "example",
    "country": "example",
    "created_at": "example",
    "deleted_at": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "phone_number": "example",
    "postal_code": "example",
    "state": "example",
    "updated_at": "example"
  }
}

Get variant

Get variant.

Inputs

Variant IDvariant_idtextRequired
Variant ID.

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "barcode": "example",
    "cost": 1,
    "created_at": "example",
    "default_price": 1,
    "default_pricing_type": "FIXED",
    "deleted_at": "example",
    "item_id": "example",
    "option1_value": "example",
    "option2_value": "example",
    "option3_value": "example",
    "purchase_cost": 1,
    "reference_variant_id": "example",
    "sku": "example",
    "stores": [
      {
        "available_for_sale": true,
        "low_stock": 1,
        "optimal_stock": 1,
        "price": 1,
        "pricing_type": "FIXED",
        "store_id": "example"
      }
    ],
    "updated_at": "example",
    "variant_id": "example"
  }
}

List categories

List categories.

Inputs

Limitlimitnumber
Used for paginationFrom 1 to 250.
Cursorcursortext
Used for pagination
Show deletedshow_deletedtrue/false
Show deleted modifiers and modifier options

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "categories": [
      {
        "color": "GREY",
        "created_at": "example",
        "deleted_at": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "cursor": "example"
  }
}

List customers

List customers.

Inputs

Emailemailtext
Filter customers by email
Created at mincreated_at_mindate and time
Show resources created after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Created at maxcreated_at_maxdate and time
Show resources created before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at minupdated_at_mindate and time
Show resources updated after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at maxupdated_at_maxdate and time
Show resources updated before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Limitlimitnumber
Used for paginationFrom 1 to 250.
Cursorcursortext
Used for pagination

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "cursor": "example",
    "customers": [
      {
        "address": "example",
        "city": "example",
        "country_code": "example",
        "created_at": "example",
        "customer_code": "example",
        "deleted_at": "example",
        "email": "example",
        "first_visit": "example",
        "id": "example",
        "last_visit": "example",
        "name": "example",
        "note": "example",
        "permanent_deletion_at": "example",
        "phone_number": "example",
        "postal_code": "example",
        "region": "example",
        "total_points": 1,
        "total_spent": 1,
        "total_visits": 1,
        "updated_at": "example"
      }
    ]
  }
}

List employees

List employees.

Inputs

Created at mincreated_at_mindate and time
Show resources created after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Created at maxcreated_at_maxdate and time
Show resources created before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at minupdated_at_mindate and time
Show resources updated after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at maxupdated_at_maxdate and time
Show resources updated before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Show deletedshow_deletedtrue/false
Show deleted modifiers and modifier options
Limitlimitnumber
Used for paginationFrom 1 to 250.
Cursorcursortext
Used for pagination

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "cursor": "example",
    "employees": [
      {
        "created_at": "example",
        "deleted_at": "example",
        "email": "example",
        "id": "example",
        "is_owner": true,
        "name": "example",
        "phone_number": "example",
        "stores": [
          "example"
        ],
        "updated_at": "example"
      }
    ]
  }
}

List inventory

List inventory.

Inputs

Store IDsstore_idslist
Store ids.
Variant IDsvariant_idslist
Variant ids.
Updated at minupdated_at_mindate and time
Show inventory levels updated at or after specified date
Updated at maxupdated_at_maxdate and time
Show inventory levels updated at or before specified date
Limitlimitnumber
Used for paginationFrom 1 to 250.
Cursorcursortext
Used for pagination

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "cursor": "example",
    "inventory_levels": [
      {
        "in_stock": 1,
        "store_id": "example",
        "updated_at": "example",
        "variant_id": "example"
      }
    ]
  }
}

List items

List items.

Inputs

Created at mincreated_at_mindate and time
Show resources created after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Created at maxcreated_at_maxdate and time
Show resources created before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at minupdated_at_mindate and time
Show resources updated after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at maxupdated_at_maxdate and time
Show resources updated before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Limitlimitnumber
Used for paginationFrom 1 to 250.
Cursorcursortext
Used for pagination
Show deletedshow_deletedtrue/false
Show deleted modifiers and modifier options

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "cursor": "example",
    "items": [
      {
        "category_id": "example",
        "color": "GREY",
        "components": [
          {}
        ],
        "created_at": "example",
        "deleted_at": "example",
        "description": "example",
        "form": "SQUARE",
        "handle": "example",
        "id": "example",
        "image_url": "example",
        "is_composite": true,
        "item_name": "example",
        "modifiers_ids": [
          {}
        ],
        "option1_name": "example",
        "option2_name": "example",
        "option3_name": "example",
        "primary_supplier_id": "example",
        "reference_id": "example",
        "sold_by_weight": true,
        "tax_ids": [
          {}
        ],
        "track_stock": true,
        "updated_at": "example",
        "use_production": true,
        "variants": [
          {}
        ]
      }
    ]
  }
}

List payment types

List payment types.

Inputs

Created at mincreated_at_mindate and time
Show resources created after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Created at maxcreated_at_maxdate and time
Show resources created before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at minupdated_at_mindate and time
Show resources updated after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at maxupdated_at_maxdate and time
Show resources updated before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Show deletedshow_deletedtrue/false
Show deleted modifiers and modifier options

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "payment_types": [
      {
        "created_at": "example",
        "deleted_at": "example",
        "id": "example",
        "name": "example",
        "stores": [
          "example"
        ],
        "type": "CASH",
        "updated_at": "example"
      }
    ]
  }
}

List receipts

List receipts.

Inputs

Storestore_idtext
Show receipts only for specified store
Updated at minupdated_at_mindate and time
Show receipts updated after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at maxupdated_at_maxdate and time
Show receipts updated after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Created at mincreated_at_mindate and time
Show resources created after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Created at maxcreated_at_maxdate and time
Show resources created before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Limitlimitnumber
Used for paginationFrom 1 to 250.
Cursorcursortext
Used for pagination

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "cursor": "example",
    "receipts": [
      {
        "cancelled_at": "example",
        "created_at": "example",
        "customer_id": "example",
        "dining_option": "example",
        "employee_id": "example",
        "line_items": [
          {}
        ],
        "note": "example",
        "order": "example",
        "payments": [
          {}
        ],
        "points_balance": 1,
        "points_deducted": 1,
        "points_earned": 1,
        "pos_device_id": "example",
        "receipt_date": "example",
        "receipt_number": "example",
        "receipt_type": "SALE",
        "refund_for": "example",
        "source": "example",
        "store_id": "example",
        "surcharge": 1,
        "tip": 1,
        "total_discount": 1,
        "total_discounts": [
          {}
        ],
        "total_money": 1,
        "total_tax": 1,
        "total_taxes": [
          {}
        ],
        "updated_at": "example"
      }
    ]
  }
}

List stores

List stores.

Inputs

Created at mincreated_at_mindate and time
Show resources created after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Created at maxcreated_at_maxdate and time
Show resources created before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at minupdated_at_mindate and time
Show resources updated after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at maxupdated_at_maxdate and time
Show resources updated before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Show deletedshow_deletedtrue/false
Show deleted modifiers and modifier options

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "stores": [
      {
        "address": "example",
        "city": "example",
        "country": "example",
        "created_at": "example",
        "deleted_at": "example",
        "description": "example",
        "id": "example",
        "name": "example",
        "phone_number": "example",
        "postal_code": "example",
        "state": "example",
        "updated_at": "example"
      }
    ]
  }
}

List taxes

List taxes.

Inputs

Created at mincreated_at_mindate and time
Show resources created after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Created at maxcreated_at_maxdate and time
Show resources created before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at minupdated_at_mindate and time
Show resources updated after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at maxupdated_at_maxdate and time
Show resources updated before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Show deletedshow_deletedtrue/false
Show deleted modifiers and modifier options

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "taxes": [
      {
        "created_at": "example",
        "deleted_at": "example",
        "id": "example",
        "name": "example",
        "rate": 1,
        "stores": [
          "example"
        ],
        "type": "INCLUDED",
        "updated_at": "example"
      }
    ]
  }
}

List variants

List variants.

Inputs

Skuskutext
Filter variants by sku
Created at mincreated_at_mindate and time
Show resources created after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Created at maxcreated_at_maxdate and time
Show resources created before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at minupdated_at_mindate and time
Show resources updated after date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Updated at maxupdated_at_maxdate and time
Show resources updated before date (ISO 8601 format, e.g: 2020-03-30T18:30:00.000Z)
Limitlimitnumber
Used for paginationFrom 1 to 250.
Cursorcursortext
Used for pagination
Show deletedshow_deletedtrue/false
Show deleted modifiers and modifier options

Outputs

dataobject
The response from Loyverse.
Example output
{
  "data": {
    "cursor": "example",
    "variants": [
      {
        "barcode": "example",
        "cost": 1,
        "created_at": "example",
        "default_price": 1,
        "default_pricing_type": "FIXED",
        "deleted_at": "example",
        "item_id": "example",
        "option1_value": "example",
        "option2_value": "example",
        "option3_value": "example",
        "purchase_cost": 1,
        "reference_variant_id": "example",
        "sku": "example",
        "stores": [
          {}
        ],
        "updated_at": "example",
        "variant_id": "example"
      }
    ]
  }
}

On this page