Home / Help Center / pos-app / Admin / Automatic Jobs, API Keys and Webhooks
⚙️ Settings

Automatic Jobs, API Keys and Webhooks

BazaarPOS does some work by itself. Decide what runs, where it runs and when, and connect your own website or tools with API keys and signed webhook messages.

📍 Menu: Settings → Advanced → Automatic jobs and API & Webhooks
👤 Who can do it: Owner (admin)
📦 Plans: Automatic jobs on every plan; API keys and webhooks in Enterprise

Overview

BazaarPOS does some work by itself: it sends the standing-order deliveries to the kitchen, reminds customers, makes recurring invoices, e-mails scheduled reports, sends messages to delivery apps, refreshes metal rates, and sends webhooks to your own server. The owner decides, for each of these automatic jobs, whether it is on, where it runs, and can run some of them by hand.

This matters when you use the desktop app and the online server together (or several online servers): you choose one place for each job so it is done once, and nothing is sent twice.

Step-by-step guide

1 Open Automatic jobs

Switch Settings to Advanced and open Automatic jobs (owner only). Each job has a switch, a place to run, and what it did the last time.

Settings → Automatic jobs
Settings → Automatic jobs

2 Switch a job on or off

The green switch turns the job on. A job that is off does nothing for your business, on any computer or server.

3 Choose where it runs

The choice is saved with your business, so a desktop app and its online server obey the same choice. With several online servers only one runs a job at a time.

4 Run it now

The standing-order jobs have a Run now button: it does today's work at once and tells you what it did (deliveries made, customers reminded, problems). The other jobs run on their own schedule.

5 See what ran

Run history at the bottom lists every run for your business: when, which job, how many things were done and any problem, newest first.

The jobs

JobWhat it does
Standing orders: send each deliverySends each standing order's delivery to the kitchen and makes the customer's bill (has Run now)
Standing orders: remind the customerMessages the customer the day before a delivery (has Run now)
Recurring invoicesMakes the invoices that are due
Shop remindersVehicle service, eye test, furniture and footwear reminders
Scheduled reportsE-mails the reports you set up on a schedule
Delivery appsSends the accept and ready messages to Zomato and Swiggy that are waiting
WebhooksSends order, coupon and gift card events to your own server
Jewellery metal ratesRefreshes the rates from your rates provider

API keys and webhooks (Enterprise)

With an Enterprise plan, Settings → Advanced → API & Webhooks lets your own website or tools read and manage products, customers, orders, coupons and gift cards, and get a message (a webhook) when something happens. Both are off until you switch them on.

Settings → API & Webhooks
Settings → API & Webhooks

1 Make a key

Type a name (for example Our website), tick Can also change data only if the tool must create orders, and press Make a key. The key is shown once: copy it now. A key can be switched off or deleted at any time.

A new API key, shown once
A new API key, shown once

2 Add a webhook address

Type a name and the address on your server that should receive the messages, choose the events (or all of them) and press Add address. Every message is JSON, signed so you can check it came from BazaarPOS, and is tried again later if your server does not answer. The Delivery log shows each attempt.

3 Choose where webhooks are sent from

In Automatic jobs set Webhooks to Automatic, Desktop app only or Online server only. With Online server only the server also sends the orders, coupons and gift cards that phones and other computers send up by sync, and a bill that is cancelled, returned or paid later arrives as order.updated.

Events you can receive

EventWhen
order.createdAn order (sale) is made, in the app or through the API
order.updatedAn order is cancelled, refunded or its payment changes
coupon.created, coupon.redeemedA coupon is created or used on an order
giftcard.issued, giftcard.redeemed, giftcard.balance_changedA gift card is issued, used, or its balance changes

The full list, the message format, how to check the signature and the API calls are in API and Webhooks.

Common questions

I use the desktop app and the online app. Will a job run twice?

No, if you choose one place for it: set the job to Desktop app only or Online server only. With Automatic, the side that holds the data runs it, and with several servers only one runs it at a time.

The shop computer was off. Is anything lost?

No. Work that was waiting (webhook messages, delivery-app messages) is sent when the computer is back. Standing orders run for the day when the job next runs, or when you press Run now.

Who can change this?

Only the owner (admin). Staff cannot see these settings.

Which plan has the API?

API keys and webhooks are in the Enterprise plan. Automatic jobs are available on every plan; a job only does something if your plan has the feature behind it.