Webhooks

Get an HTTPS request in your own backend the moment something happens in your shop.

Updated November 15, 2026

Webhooks let your own systems react the moment something happens in your shop. When a repair changes status, a sale is rung up, the register is closed, a customer is added or stock changes, SpotsPOS sends an HTTPS POST with the details to a URL you choose. Your systems don't need to poll.

Webhooks work alongside the Open API. Webhooks tell you that something changed, and the Open API lets you read more or make changes back.

1. Getting started

  1. Build an endpoint that accepts POST requests with a JSON body over HTTPS and answers 200 (section 3). To try things out first, a request-inspection service such as webhook.site works.
  2. Turn on a group. In SpotsPOS, go to Settings → Webhooks and pick an event group (Repairs, Sales, End of day, Customers or Inventory). Switch it on and enter your endpoint URL.
  3. Set a signing secret. Enter a long random value (for example openssl rand -hex 32) and store the same value in your system. SpotsPOS uses it to sign every request so you can confirm it came from SpotsPOS (section 5). The secret is stored encrypted and is never shown again.
  4. Save. SpotsPOS checks the URL when you save (section 3) and shows an error if it can't be used.
  5. Do something in the shop: create a repair, ring up a sale, add a customer. The event arrives at your endpoint within seconds.

Each group has its own switch, URL and secret. You can send every group to the same URL or each to a different one.

2. Event groups and plans

Group Events
Repairs repair.created, repair.status_updated, repair.parts_updated, repair.diagnostic_added, repair.note_added, repair.transferred, repair.deleted
Sales sale.created, sale.voided
End of day eod.submitted
Customers customer.created
Inventory inventory.item_created, inventory.item_updated, inventory.bulk_updated

Turning on a group sends all of its events. You can't pick single events within a group; ignore the ones you don't need (answer 200 and do nothing).

Locations. Settings belong to one shop location. Multi-location businesses set up webhooks on each location they want events from. Each event comes from the location where it happened.

Plans. Webhooks are included on plans that include Webhooks on the pricing page.

  • Without it, the settings can be viewed but not saved.
  • After a downgrade, events stop being sent, and any retries still waiting are cancelled. Your settings are kept, and events start again after an upgrade. Events from the time in between aren't sent later.

3. Endpoint requirements

Your endpoint URL must:

Rule Error shown when saving
Be a valid URL Invalid URL format
Use https:// (plain http:// isn't allowed, even for testing) Webhook URL must use HTTPS
Not contain a username or password (https://user:pass@…) Webhook URL cannot include a username or password
Point at a public internet address: not localhost, a private network (10.x, 172.16–31.x, 192.168.x), loopback (127.x, ::1), link-local (169.254.x, fe80::), a single-word host name, or a .local / .internal name Webhook URL cannot target internal addresses
Have a host name that exists in public DNS Webhook URL host could not be found

Checked again on every delivery. If your host name later resolves to an internal address, that delivery is refused rather than sent (section 13).

Redirects aren't followed. A 301/302 counts as a failed delivery. Point the setting at the final URL.

Testing on your own computer. Your machine isn't reachable from the internet, so use a tunnel that gives you a public HTTPS URL (for example ngrok or Cloudflare Tunnel) and enter that URL.

4. How deliveries work

4.1 The request

Every event is a POST to your URL:

Method POST
Body JSON, UTF-8
Timeout 10 seconds. If your endpoint hasn't answered by then, the attempt counts as failed.

Headers:

Header Value
Content-Type application/json
X-Webhook-Id The event id (same as event_id in the body). The same on every retry of an event.
X-Webhook-Timestamp When this attempt was sent, in Unix seconds (same as timestamp in the body).
X-Webhook-Signature Hex HMAC-SHA256 of the raw body, keyed with your signing secret. Only sent when the group has a secret.

4.2 The body

Every event body starts with the same four fields, followed by the event's own fields:

{
  "event_id": "evt_3f9c2a7b1d4e4c0f9a8b6e2d1c0b9a87",
  "event_type": "repair.status_updated",
  "created_at": "2026-11-10T16:04:09.512Z",
  "timestamp": 1762790650,
  "status": "Repaired",
  "repairID": "1042"
}
Field Type
event_id string Unique id of the event: evt_ followed by 32 hex characters. The same on every retry. Use it to skip events you've already handled.
event_type string Which event this is (section 6).
created_at string (ISO 8601, UTC) When the event happened. Doesn't change between retries.
timestamp integer When this attempt was sent, in Unix seconds. Changes on each retry.

All four are inside the signed body, so they can't be altered without breaking the signature.

Missing values. A field with no value is usually left out of the body rather than sent as null (customer and inventory events send null). Treat a missing field the same as an empty one.

4.3 Answering

  • Answer with any 2xx status to confirm you received the event. The response body is ignored.
  • Answer quickly. Save the event and do slow work (calling other services, sending email) afterwards, to stay well inside the 10-second timeout.
  • Anything else is a failure and is retried: a 3xx, 4xx or 5xx status, a timeout, a connection or TLS error.
  • An event you've already handled (same event_id) should still get 200, so SpotsPOS stops retrying it.

4.4 Retries

A failed event is tried up to 4 times in total:

Attempt When
1 Right after the event happens
2 About 5 minutes after attempt 1 fails
3 About 15 minutes after attempt 2 fails
4 About 45 minutes after attempt 3 fails

After the fourth failed attempt the event isn't sent again. If your endpoint was down for longer, use the Open API (changed_since) to catch up on repairs, customers and inventory.

Retries use the current settings. If you change the URL or secret while an event is waiting to be retried, the retry goes to the new URL and is signed with the new secret. If you switch the group off, waiting retries are cancelled.

4.5 Ordering and duplicates

  • Order isn't guaranteed. Events are usually delivered in the order they happened, but a retried event can arrive after newer ones, and several events can be in flight at once. Use created_at to order them, and don't let an older event overwrite newer data.
  • Delivered at least once. Each event is sent by exactly one SpotsPOS server, but if your endpoint processed it and then answered too slowly (or the connection dropped), SpotsPOS can't tell it succeeded and sends it again. Use event_id to skip duplicates.
  • Imports are queued. Customers added by an import arrive within about a minute rather than instantly.

4.6 Delivery history

SpotsPOS keeps a history of every delivery attempt for 30 days, shown in Settings → Webhooks. Each row shows the event id and type, the attempt number, the result, your endpoint's response code, how long it took and the host it was sent to.

Result Meaning
success Your endpoint answered 2xx.
failed A timeout, connection error or non-2xx answer. Retried until the 4 attempts run out.
refused The URL isn't allowed, or its host now resolves to an internal address. Not retried: change the URL.

The history never stores the event body, your secret or the URL's path.

5. Verifying webhooks

Anyone who learns your URL could post to it. Verify every request before acting on it.

5.1 Check the signature

When the group has a signing secret, X-Webhook-Signature is the hex-encoded HMAC-SHA256 of the raw request body, keyed with your secret:

X-Webhook-Signature = hex( HMAC_SHA256( key = secret, message = raw body bytes ) )
  • Compute it over the raw bytes you received, before parsing the JSON. Parsing and re-serializing can change spacing or key order and break the match.
  • Compare in constant time (crypto.timingSafeEqual, hmac.compare_digest), not with ==.
  • No signature header means the group has no secret set. Set one: without it you can't tell real events from forged ones.

5.2 Reject replays

A valid request captured by someone else could be sent to you again later. Protect against it:

  1. Check the timestamp. Reject the request if timestamp is more than 5 minutes from your server's current time. (Keep your server clock synced with NTP.)
  2. Check the event id. Keep the event_ids you've handled for at least a day, and skip any you've already seen. Answer 200, so a real retry stops.

Use the timestamp and event_id from the body: they're covered by the signature. The X-Webhook-Timestamp and X-Webhook-Id headers repeat them for convenience (logging, routing), but headers aren't signed.

5.3 Example: Node.js (Express)

import crypto from "crypto";
import express from "express";

const app = express();
const SECRET = process.env.SPOTSPOS_WEBHOOK_SECRET;
const TOLERANCE_SECONDS = 5 * 60;

// Use express.raw, not express.json: the signature is over the raw body.
app.post("/webhooks/spotspos", express.raw({ type: "application/json" }), async (req, res) => {
  const received = req.get("X-Webhook-Signature") || "";
  const expected = crypto.createHmac("sha256", SECRET).update(req.body).digest("hex");
  const valid =
    received.length === expected.length &&
    crypto.timingSafeEqual(Buffer.from(received), Buffer.from(expected));
  if (!valid) return res.status(401).send("bad signature");

  const event = JSON.parse(req.body.toString("utf8"));

  if (Math.abs(Date.now() / 1000 - event.timestamp) > TOLERANCE_SECONDS) {
    return res.status(400).send("stale timestamp");
  }

  // alreadyHandled / markHandled: your database or cache, keyed by event_id.
  if (await alreadyHandled(event.event_id)) return res.sendStatus(200);
  await markHandled(event.event_id);

  res.sendStatus(200);          // answer first...
  handleEvent(event).catch(console.error); // ...then do the work
});

5.4 Example: Python (Flask)

import hashlib
import hmac
import json
import os
import time

from flask import Flask, abort, request

app = Flask(__name__)
SECRET = os.environ["SPOTSPOS_WEBHOOK_SECRET"].encode()
TOLERANCE_SECONDS = 5 * 60


@app.post("/webhooks/spotspos")
def spotspos_webhook():
    body = request.get_data()  # raw bytes, before any JSON parsing
    expected = hmac.new(SECRET, body, hashlib.sha256).hexdigest()
    if not hmac.compare_digest(expected, request.headers.get("X-Webhook-Signature", "")):
        abort(401)

    event = json.loads(body)
    if abs(time.time() - event["timestamp"]) > TOLERANCE_SECONDS:
        abort(400)

    if already_handled(event["event_id"]):  # your database or cache
        return "", 200
    mark_handled(event["event_id"])

    queue_for_processing(event)  # do slow work outside the request
    return "", 200

5.5 Changing your secret

There's one secret per group, and a new one applies from the next delivery, including retries. To change it without rejecting events:

  1. Make your endpoint accept a signature made with either the old or the new secret.
  2. Save the new secret in SpotsPOS.
  3. Once events signed with the new secret are arriving, remove the old one from your endpoint.

6. Event reference

Event Group Sent when
repair.created Repairs A repair is created (app, web portal or Open API)
repair.status_updated Repairs A repair's status changes
repair.parts_updated Repairs A repair's parts and price lines are saved
repair.diagnostic_added Repairs A diagnostic check is added to a repair
repair.note_added Repairs A note is added to a repair
repair.transferred Repairs A repair is moved to another location
repair.deleted Repairs A repair is deleted (archived)
sale.created Sales A sale is completed
sale.voided Sales A sale is voided or refunded, in full or in part
eod.submitted End of day The register is closed for the day
customer.created Customers A customer is added, one event per customer
inventory.item_created Inventory One item is added
inventory.item_updated Inventory One item changes (details, stock, archived)
inventory.bulk_updated Inventory One action changes two or more items

New event types and new fields may be added over time. Ignore event types and fields you don't recognize rather than rejecting the request.

7. Repair events

Every repair event sends the whole repair object (section 7.2) as it is after the change. The event type tells you what happened.

7.1 When each event is sent

repair.created

A new repair ticket is created, whether in the app, the web portal or through the Open API (POST /repairs). status is the repair's first status (usually Pending).

repair.status_updated

A repair's status is changed in the app, the web portal or through the Open API (PATCH /repairs/{id}/status). status is the new status and date_status_update is when it changed. The previous status isn't included; keep the last one you saw if you need it.

repair.parts_updated

The repair's parts and price lines are saved. repairParts lists the lines as they are now (not only the changed ones), and RepairCost is the repair's new total.

repair.diagnostic_added

A diagnostic check (which parts of the device work) is recorded on the repair. diagnostics lists every check on the repair, oldest first. The newest is the last one.

repair.note_added

A note is added to the repair. The body is the repair; the note's text isn't included.

repair.transferred

The repair is moved to another location of the same business. The event is sent to the location the repair left, and it shows the repair as it is in its new location:

  • status is Transferred.
  • repairID is the repair's new number at the new location.
  • originalRSID is its number at the location where it was first created, and originRepairshop is that location's id.

If the new location has repair webhooks on, it doesn't get a repair.created for the transfer.

repair.deleted

The repair is deleted in the app. Deleted repairs are archived rather than erased, so this event carries the repair as it was. No event is sent when a repair is restored.

7.2 The repair object

Field Type
repairID string The repair number shown in SpotsPOS (shown as RS1042 for "1042"). Unique within a location. It changes if the repair is transferred.
status string The repair's status (section 7.3).
date_status_update string (ISO 8601) When the status last changed.
date_submitted string (ISO 8601) When the repair was created.
datesubmitted string The creation date as shown in the app, MM/DD/YYYY, in the shop's time zone.
device string The device being repaired, for example "iPhone 15 Pro".
type string The device type.
imei string The device's IMEI or serial number.
defectivepart string The problem being repaired, for example "Screen".
RepairCost string The repair's total price, as a decimal string, for example "189.99".
labor string Labor amount, as a decimal string.
laborTaxable string "true" when labor is taxed.
payed string "true" when the repair has been paid.
closed boolean true once the repair is closed.
highPriority boolean true when flagged high priority.
warranty string The warranty given on the repair.
tech string The assigned technician's name.
submittedby string Name of the employee who created the repair.
nontestable string Set when the device couldn't be tested on intake.
cname string Customer's name.
cphone string Customer's phone number.
cemail string Customer's email. Customers without an email may have a placeholder ending in @rsemail.com; ignore those.
terms string The terms the customer agreed to.
signature string The customer's signature image, when captured.
rated boolean true once the customer has rated the repair.
rating string The customer's rating, when given.
repairParts array The repair's parts and price lines (below).
diagnostics array Diagnostic checks (below).
originRepairshop string Only on transferred repairs: id of the location where the repair was created.
originalRSID string Only on transferred repairs: the repair's number at that location.

The device passcode and unlock pattern are never sent.

Each repairParts line:

Field Type
product string The line's name, for example "Screen replacement".
type string The kind of line, for example "part" or "labor".
qty number Quantity.
price number Unit price charged.
cost number Unit cost to the shop.
taxable boolean true when taxed.
tax number Tax on the line.

Each diagnostics entry:

Field Type
date string (ISO 8601) When the check was recorded.
device string The device checked.
nontestable boolean true when the device couldn't be tested.
parts array One { "name": string, "working": boolean } per component checked, for example { "name": "Front camera", "working": false }.

7.3 Repair statuses

The statuses set in SpotsPOS today:

Pending, In Progress, Awaiting Parts, Waiting on customer, Repaired, Shipped, Delivered, Picked up, Tech Damage, Paid, Canceled, Non Repairable

Compare them exactly as written; the capitalization is uneven (Waiting on customer but Awaiting Parts). You may also see:

  • Transferred on repair.transferred.
  • Closed Repair when a repair is closed from the app.
  • Older values on older repairs: Submitted (now Pending), Payment Made (now Paid), AwaitingParts, WaitingOnCustomer, NonRepairable, PickedUp.

The Open API's GET /reference lists the statuses with what each means.

7.4 Example: repair.status_updated

{
  "event_id": "evt_9b2f0c6e8a1d4f3b8c7e5a2d0f1b3c4e",
  "event_type": "repair.status_updated",
  "created_at": "2026-11-10T18:22:41.006Z",
  "timestamp": 1762798961,
  "repairParts": [
    { "cost": 42.5, "price": 129.99, "product": "Screen replacement", "qty": 1, "tax": 10.4, "taxable": true, "type": "part" },
    { "cost": 0, "price": 40, "product": "Labor", "qty": 1, "tax": 0, "taxable": false, "type": "labor" }
  ],
  "diagnostics": [
    {
      "parts": [
        { "name": "Front camera", "working": true },
        { "name": "Touch screen", "working": false }
      ],
      "device": "iPhone 15 Pro",
      "nontestable": false,
      "date": "2026-11-10T15:02:10.000Z"
    }
  ],
  "rated": false,
  "closed": false,
  "highPriority": false,
  "defectivepart": "Screen",
  "device": "iPhone 15 Pro",
  "RepairCost": "169.99",
  "date_submitted": "2026-11-10T14:55:03.120Z",
  "datesubmitted": "11/10/2026",
  "date_status_update": "2026-11-10T18:22:40.981Z",
  "imei": "356789104512345",
  "warranty": "90 days",
  "status": "Repaired",
  "tech": "Jordan Lee",
  "submittedby": "Sam Rivera",
  "terms": "Repairs are covered for 90 days…",
  "payed": "false",
  "repairID": "1042",
  "type": "Phone",
  "labor": "40",
  "laborTaxable": "false",
  "cname": "Alex Morgan",
  "cemail": "[email protected]",
  "cphone": "5551234567"
}

8. Sale events

Both sale events send a sale object (section 8.2).

8.1 When each event is sent

sale.created

A sale is completed at the register, in the app or in the web portal, including sales that pay for a repair. The event is sent once the payment is recorded.

sale.voided

A sale is voided or refunded. SpotsPOS records a void as a new transaction with negative amounts, and this event carries that new transaction:

  • voided is "true".
  • price, tax, the payment amounts and each line's qty, price, cost and tax are negative.
  • A partial refund voids only part of the sale: price is minus the refunded amount, not the full sale.
  • It has its own trasnsactionid, different from the original sale's.

No separate sale.created is sent for the void transaction.

8.2 The sale object

Field Type
trasnsactionid string The transaction id shown on the receipt. (The field name is spelled this way.)
date string Sale date, MM/DD/YYYY, in the shop's time zone. Use created_at for an exact time.
time string Sale time as shown on the receipt, for example "3:04 PM".
price string Total charged, as a decimal string.
tax string Total tax, as a decimal string.
tip number Tip amount.
discountAmount number Discount given.
paymenttype string How it was paid, for example "Cash", "Credit Card", "Cash & Credit Card" or "Invoice". Compare without regard to case: older sales may be lowercase.
cash, credit, debit, other string Amount paid by each method, as decimal strings. A split payment fills more than one.
storeCreditAmount number Amount paid with store credit.
customerChange number Change given to the customer.
paymentFrom string Where the payment was processed: "Regular" (recorded in SpotsPOS) or the payment processor.
type string The sale's category, "Regular" unless the shop chose another.
employee string Name of the employee who made the sale.
customer string Customer's name.
customerEmail string Customer's email.
customerPhone string Customer's phone number.
notes string Notes on the sale.
name string The sale's label, when one was given.
terms string Terms printed on the receipt.
signatureUrl string Link to the customer's signature, when captured.
voided string "true" on the transaction sent by sale.voided.
gstSale boolean true when the sale was taxed as a GST sale.
salesProducts array The lines sold (below).
appliedTaxes array Each tax applied (below).
surcharge array Surcharges added, for example a card fee (below).

Each salesProducts line: product (string, name), type (string), qty (number), price (number, unit price), cost (number, unit cost), taxable (boolean), tax (number).

Each appliedTaxes entry: title (string), taxType (string), ecoZone (string), rate (number, percent), taxableAmount (number), taxAmount (number).

Each surcharge entry: title (string), method (string, the payment method it applies to), rate (number), amount (number), surchargeable (number, the amount it was calculated on), tax (number).

8.3 Example: sale.created

{
  "event_id": "evt_0d4c1e7f2a3b4c5d8e9f0a1b2c3d4e5f",
  "event_type": "sale.created",
  "created_at": "2026-11-10T20:04:12.334Z",
  "timestamp": 1762805052,
  "type": "Regular",
  "paymentFrom": "Regular",
  "storeCreditAmount": 0,
  "cash": "0",
  "credit": "54.10",
  "debit": "0",
  "other": "0",
  "salesProducts": [
    { "taxable": true, "price": 24.99, "cost": 8, "qty": 2, "type": "part", "tax": 4.12, "product": "USB-C cable 2m" }
  ],
  "customerChange": 0,
  "discountAmount": 0,
  "gstSale": false,
  "surcharge": [],
  "appliedTaxes": [
    { "title": "Sales tax", "rate": 8.25, "taxableAmount": 49.98, "taxAmount": 4.12 }
  ],
  "date": "11/10/2026",
  "paymenttype": "Credit Card",
  "price": "54.10",
  "trasnsactionid": "K7Q2M9XA",
  "tip": 0,
  "employee": "Sam Rivera",
  "time": "3:04 PM",
  "tax": "4.12",
  "customer": "Alex Morgan",
  "customerEmail": "[email protected]",
  "customerPhone": "5551234567"
}

9. End of day event

eod.submitted

Sent when the register is closed for the day (the end-of-day count is submitted). It carries the day's summary, the cash drawer count and every transaction in the register session.

If a register session is closed again (for example a forced re-close), the event is sent again with the same end_of_day.id. Use that id to replace the earlier report rather than add a second one.

Field Type
store.name string Location name.
store.store_code string The location's store code.
store.timezone string The location's time zone, for example "America/Chicago".
store.currency string Currency symbol, for example "$".
end_of_day.id string Id of this register session.
end_of_day.business_date string The business date closed, MM/DD/YYYY.
end_of_day.opened_at string (ISO 8601) or null When the register was opened.
end_of_day.closed_at string (ISO 8601) or null When it was closed.
end_of_day.opened_by string Employee who opened the register.
end_of_day.closed_by string Employee who closed it.
end_of_day.notes string Closing notes.
end_of_day.cash_drawer object opening_amount, money_in_out_net (cash added minus removed during the day), expected_amount (opening + cash sales + money in/out), counted_amount, variance (counted minus expected). All numbers.
end_of_day.totals object total_sales, cash, credit, debit, other, invoice; tips (total, cash, credit, debit, other, invoice); transaction_count; voided_count. All numbers.
end_of_day.money_in_out array Cash added to or removed from the drawer: type ("in" or "out"), amount (number, always positive), note, employee, date (ISO 8601).
end_of_day.sales_by_employee array { "employee": string, "total": number, "count": number } per employee.
end_of_day.sales_by_category array { "category": string, "total": number, "count": number } per sale category.
sales array Every transaction in the session, each a sale object (section 8.2). Voids appear as their negative transactions.

All amounts are rounded to 2 decimal places.

Example:

{
  "event_id": "evt_5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d",
  "event_type": "eod.submitted",
  "created_at": "2026-11-11T02:01:44.870Z",
  "timestamp": 1762826504,
  "store": { "name": "Downtown", "store_code": "1234", "timezone": "America/Chicago", "currency": "$" },
  "end_of_day": {
    "id": "6731a9f2c4e1b20012ab34cd",
    "business_date": "11/10/2026",
    "opened_at": "2026-11-10T14:00:12.000Z",
    "closed_at": "2026-11-11T02:01:40.000Z",
    "opened_by": "Sam Rivera",
    "closed_by": "Jordan Lee",
    "notes": "",
    "cash_drawer": {
      "opening_amount": 200,
      "money_in_out_net": -20,
      "expected_amount": 412.5,
      "counted_amount": 410,
      "variance": -2.5
    },
    "totals": {
      "total_sales": 1284.73,
      "cash": 232.5,
      "credit": 902.23,
      "debit": 150,
      "other": 0,
      "invoice": 0,
      "tips": { "total": 15, "cash": 5, "credit": 10, "debit": 0, "other": 0, "invoice": 0 },
      "transaction_count": 18,
      "voided_count": 1
    },
    "money_in_out": [
      { "type": "out", "amount": 20, "note": "Supplies", "employee": "Sam Rivera", "date": "2026-11-10T19:12:00.000Z" }
    ],
    "sales_by_employee": [
      { "employee": "Sam Rivera", "total": 702.4, "count": 11 },
      { "employee": "Jordan Lee", "total": 582.33, "count": 7 }
    ],
    "sales_by_category": [
      { "category": "Regular", "total": 412.1, "count": 9 },
      { "category": "Accessories", "total": 872.63, "count": 9 }
    ]
  },
  "sales": [ "…one sale object per transaction…" ]
}

10. Customer event

customer.created

Sent once for every new customer, however they were added:

source Added by
app Someone in the shop, in the app or web portal
api The Open API (POST /customers) or another integration
import A customer import
repair_import A repair import that created the repair's customer

Imports send one event per customer, queued, so they arrive within about a minute. A 500-customer import sends 500 events.

Field Type
source string Where the customer came from (above).
customer.id string The customer's permanent id. The same as id in the Open API's GET /customers/{id}.
customer.firstName string or null
customer.lastName string or null
customer.phone string or null
customer.email string or null null when the customer has no email.
customer.city string or null
customer.b2b boolean true for a business customer.
customer.discount number or null The customer's standing discount, in percent.
customer.credit number or null Store credit balance.
customer.points number or null Loyalty points.
customer.notes string or null Notes on the customer.
customer.createdAt string (ISO 8601) When the customer was added.
customer.updatedAt string (ISO 8601) or null When the customer was last changed.

These are the same fields the Open API returns for a customer.

{
  "event_id": "evt_c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6",
  "event_type": "customer.created",
  "created_at": "2026-11-10T16:04:09.512Z",
  "timestamp": 1762790649,
  "source": "app",
  "customer": {
    "id": "6730f1a2b3c4d5e6f7a8b9c0",
    "firstName": "Alex",
    "lastName": "Morgan",
    "phone": "5551234567",
    "email": "[email protected]",
    "city": "Austin",
    "b2b": false,
    "discount": null,
    "credit": 0,
    "points": 0,
    "notes": null,
    "createdAt": "2026-11-10T16:04:09.401Z",
    "updatedAt": "2026-11-10T16:04:09.401Z"
  }
}

Only new customers are sent; edits to existing customers aren't.

11. Inventory events

Inventory events are sent once per action, after it has finished, and show the items as they are after the change:

Items changed by the action Event
One item, newly added inventory.item_created
One item, changed inventory.item_updated
Two or more items inventory.bulk_updated: one event listing them all

So a 300-row CSV import is one inventory.bulk_updated, not 300 events. A sale of three different products is one inventory.bulk_updated, and a sale of one product is one inventory.item_updated.

11.1 Bodies

inventory.item_created and inventory.item_updated:

Field Type
operation string What happened (section 11.2).
source string Where it happened (section 11.3).
item object The item (section 11.4).

inventory.bulk_updated:

Field Type
operation string What happened (section 11.2).
source string Where it happened (section 11.3).
item_count number How many items the action changed.
truncated boolean true when more than 500 items changed. items then lists the first 500.
items array The items (section 11.4), at most 500.

When truncated is true, fetch the rest with the Open API: GET /inventory/items?changed_since=<created_at>.

11.2 operation values

operation What happened
Adding and editing
create An item was added in the app, including devices and buyback devices.
edit An item's details changed: name, price, description, device details, warranty, cost, or it was hidden.
stock_adjustment One item's stock was set or adjusted (app or Open API).
sold A device or item was marked sold.
archive Archived (deleted) items. Archived items stay in the payload with archived: true.
unarchive An archived item was restored.
serialized_unit A serial-numbered unit was added, edited, sold or removed, changing its product's stock. The event shows the product.
Bulk actions
bulk_edit Several items edited at once, for example a bulk description change.
bulk_stock_adjustment Stock set or adjusted for several items at once (app or Open API POST /inventory/items/bulk).
bulk_archive Several items archived at once.
Imports
csv_import An inventory CSV import.
multi_shop_import An import into several locations. Each location gets its own event with its own items.
serialized_product_import A serialized product import.
serialized_device_import A serialized device import.
Selling and repairing
sale A sale took items out of stock.
sale_void A voided sale put items back in stock.
repair_parts Parts used on a repair were taken out of stock, or returned when removed from it.
layaway A layaway reserved or released stock.
Moving and counting stock
transfer_out Stock left this location in a transfer.
transfer_in Stock arrived at this location from a transfer.
inventory_count An inventory count was applied.
inventory_count_void An applied count was voided.
purchase_order_received A purchase order was received into stock.
purchase_order_dispatched Stock was sent out to fill another location's purchase order.
purchase_order_returned Stock came back from a returned purchase order.
buyback A device bought from a customer was added to stock.
buyback_refurb Parts were used or removed while refurbishing a bought-back device.

New operation values may be added. Treat an unknown one as a general update.

11.3 source values

source
manual Someone in the shop, in the app or web portal
api The Open API or another integration
import An import
sale A sale or void
repair A repair
layaway A layaway
transfer A transfer between locations
count An inventory count
purchase_order A purchase order
buyback A buyback

11.4 The item object

Field Type
id string The item's permanent id. The same as id in the Open API's GET /inventory/items.
name string or null
description string or null
sku string or null
barcode string or null
type string or null The item type, for example a part, accessory or device.
price number or null Selling price.
stock number or null Quantity in stock after the change.
lowStockThreshold number or null Stock level at which the shop is warned.
taxable boolean
serialized boolean true when the item is tracked by serial number.
archived boolean true when the item is archived (deleted).
createdAt string (ISO 8601)
updatedAt string (ISO 8601) or null

These are the same fields the Open API returns. The item's cost isn't sent.

11.5 Examples

One item's stock adjusted:

{
  "event_id": "evt_7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
  "event_type": "inventory.item_updated",
  "created_at": "2026-11-10T17:45:02.118Z",
  "timestamp": 1762796702,
  "operation": "stock_adjustment",
  "source": "manual",
  "item": {
    "id": "6731b2c3d4e5f6a7b8c9d0e1",
    "name": "iPhone 15 screen (OEM)",
    "description": null,
    "sku": "SCR-IP15-OEM",
    "barcode": "0840244701234",
    "type": "Part",
    "price": 129.99,
    "stock": 7,
    "lowStockThreshold": 3,
    "taxable": true,
    "serialized": false,
    "archived": false,
    "createdAt": "2026-09-02T13:10:44.000Z",
    "updatedAt": "2026-11-10T17:45:02.090Z"
  }
}

A CSV import:

{
  "event_id": "evt_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
  "event_type": "inventory.bulk_updated",
  "created_at": "2026-11-10T18:01:30.552Z",
  "timestamp": 1762797690,
  "operation": "csv_import",
  "source": "import",
  "item_count": 300,
  "truncated": false,
  "items": [
    { "id": "6731c0…", "name": "USB-C cable 2m", "sku": "CBL-USBC-2M", "stock": 40, "…": "…" },
    "…299 more…"
  ]
}

11.6 What isn't sent

  • Deletes: archiving is the delete; it arrives as archive/bulk_archive with archived: true. Items permanently removed by SpotsPOS support don't send an event.
  • Serial-numbered units: individual units aren't sent; the event shows the product whose stock changed.
  • Cost changes: a cost-only change sends edit, but the payload doesn't include cost.

12. Best practices

  • Verify every request (section 5) and reject anything that fails.
  • Answer 200 fast, then process. Put the event on a queue or in a table and handle it in the background.
  • Skip duplicates by event_id and keep the ids for at least a day.
  • Don't rely on order. Compare created_at (or the record's own updatedAt) before overwriting newer data with an older event.
  • Accept unknown events and fields. New ones may be added without notice; ignoring them keeps your integration working.
  • Re-read when you need the full picture. Webhooks carry what changed; the Open API gives the current record (GET /repairs/{id}, GET /customers/{id}, GET /inventory/items).
  • Catch up after downtime with the Open API's changed_since, since events are only retried for about an hour.
  • Keep secrets out of code. Store the signing secret in an environment variable or secrets manager.

13. Troubleshooting

Symptom Likely cause and fix
Can't save: Webhook URL must use HTTPS Use an https:// URL. For local testing use a tunnel (section 3).
Can't save: Webhook URL cannot target internal addresses The host is private or resolves to a private address. Use a public endpoint.
Can't save: Webhook URL host could not be found The host name doesn't exist in public DNS yet, or has a typo.
Can't save, no message about the URL Your plan doesn't include webhooks (section 2).
Deliveries show refused The URL was saved before these rules applied (for example http://), or its host now resolves to an internal address. Change the URL.
Deliveries show failed with no response code Timeout (over 10 seconds), connection refused, or a TLS certificate problem. Check your endpoint is reachable from the internet and has a valid certificate.
failed with 301/302 Your URL redirects. Save the final URL.
failed with 401/403 Your endpoint or a firewall in front of it rejected the request. If it's your signature check, see the next row.
Signatures never match Compute the HMAC over the raw body, not re-serialized JSON, and check the secret matches the one saved in SpotsPOS (it can't be shown again; save a new one on both sides if unsure).
The same event arrives twice Expected occasionally (section 4.5). Skip it by event_id and answer 200.
No events at all Check the group is switched on, the plan includes webhooks, and you're doing the action at the location the webhook is set up on.
Customer import events arrive late Import events are queued and arrive within about a minute.

14. Changelog

Date Change
2026-11 New events: customer.created, inventory.item_created, inventory.item_updated, inventory.bulk_updated, with new Customers and Inventory groups.
2026-11 Every event now includes event_id, created_at and timestamp in the signed body, and X-Webhook-Id and X-Webhook-Timestamp headers. Existing receivers keep working; add the replay checks in section 5.2.
2026-11 URLs must be HTTPS to a public address; redirects aren't followed. Signing secrets are stored encrypted. Failed events now get all 4 attempts (5, 15 and 45 minutes). The delivery history is kept for 30 days.
Earlier Repair, sale and end-of-day events.