The Loyverse API provides a suite of functions to access and manage the data for businesses using the Loyverse platform, which includes point of sale, inventory management, employee management, and analytics. With Pipedream, you can create automated workflows that trigger on new events from Loyverse, like a new sale, or that perform operations in Loyverse, like creating a new item in your inventory. By connecting Loyverse to other apps via Pipedream, you can sync data across platforms, get real-time notifications, and streamline operations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
loyverse: {
type: "app",
app: "loyverse",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.loyverse.com/v1.0/merchant/`,
headers: {
Authorization: `Bearer ${this.loyverse.$auth.oauth_access_token}`,
},
})
},
})
Automatic Inventory Replenishment: When stock levels for items fall below a certain threshold in Loyverse, use Pipedream to automatically reorder stock from suppliers by sending purchase orders via email or directly to a supplier's order management system.
Sales Data Analysis and Visualization: Send new sale transactions from Loyverse to Google Sheets or a BI tool like Tableau using Pipedream. This allows for advanced analysis of sales data, trends, and can help in creating visual reports for better decision-making.
Real-time Notifications for High-Value Transactions: Set up a Pipedream workflow that captures transactions over a certain amount from Loyverse and sends instant notifications to a Slack channel or via SMS. This can help in quickly recognizing and rewarding high-value sales or identifying potential errors or fraudulent activity.
Creates a new receipt for a specific store. See the documentation
Generates the data for items to use in a receipt. See the documentation
Retrieves details of one or more customers. See the documentation
Batch updates the inventory levels for specific item variants. See the documentation
Loyverse uses OAuth authentication. When you connect your Loyverse account, Pipedream will open a popup window where you can sign into Loyverse and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Loyverse API.
Pipedream requests the following authorization scopes when you connect your account:
CUSTOMERS_READ
CUSTOMERS_WRITE
EMPLOYEES_READ
ITEMS_READ
INVENTORY_WRITE
PAYMENT_TYPES_READ
RECEIPTS_READ
RECEIPTS_WRITE
STORES_READ
MERCHANT_READ
GET
https://api.loyverse.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://api.loyverse.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://api.loyverse.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}