API referenceAdmin shop changes

Admin shop changes

1 operation. Every schema and example on this page is generated from the platform contract.

Who changed what in one shop.

Internal-admin. Every recorded change to one shop, newest first, 50 a page: when, who (a person, an agent key or the system), a plain title, whether an AI did it, the thing changed, and before and after for the fields that changed. Optionally only the changes to one drop or order. Read-only.

Parameters

storeIdstringpathrequired
pageintegerqueryoptional

1 (the default) is the newest 50.

targetstringqueryoptional

Only the changes to this one thing: a drop, an order, or any other target id.

Response, 200

storeobjectrequired
4 child fields
idstringrequired
namestring, nullablerequired
handlestring, nullablerequired
timezonestringrequired

IANA zone the times are shown in.

changesarray of objectrequired

Newest first, 50 at most.

8 child fields
idstringrequired

source:row id, unique across both audit tables.

atstringrequired

When it happened (ISO). Show it in the shop timezone.

titlestringrequired

A plain title made from the action, e.g. "Drop cancelled".

whoobjectrequired
3 child fields
kindenumrequired

person: someone signed in. key: an agent key. system: a job, or nobody recorded.

personkeysystem
labelstringrequired

The person's name (else email), the key's name (else AI), or System.

emailstring, nullablerequired
via_aibooleanrequired

An AI tool or an agent key made the change.

targetobjectrequired

The thing changed (a drop, an order...), or null for the shop itself.

3 child fields
typestringrequired
labelstringrequired
idstringrequired
reasonstring, nullablerequired
changesarray of objectrequired

Only the fields whose value changed.

3 child fields
fieldstringrequired
beforestring, nullablerequired
afterstring, nullablerequired
pageintegerrequired
has_olderbooleanrequired

There is another page of older changes.

curl -G "https://www.membber.com/api/v1/admin-shop-changes/8fb04ddc-0000-4000-8000-d0c50000008f" \
  -H "Authorization: Bearer $MEMBBER_TOKEN"
Response, 200
{
  "store": {
    "id": "00000d1b-0000-4000-8000-d0c500000000",
    "name": "Example name",
    "handle": "<handle>",
    "timezone": "Europe/London"
  },
  "changes": [
    {
      "id": "00000d1b-0000-4000-8000-d0c500000000",
      "at": "<at>",
      "title": "Morning class",
      "who": {
        "kind": "person",
        "label": "<label>",
        "email": "alex@example.com"
      },
      "via_ai": true,
      "target": {
        "type": "<type>",
        "label": "<label>",
        "id": "00000d1b-0000-4000-8000-d0c500000000"
      },
      "reason": "Added at the front desk",
      "changes": [
        {
          "field": "<field>",
          "before": "<before>",
          "after": "<after>"
        }
      ]
    }
  ],
  "page": 0,
  "has_older": true
}
WhatsApp
Book a Call
Get Started
Admin shop changes API | Membber Developers