1 operation. Every schema and example on this page is generated from the platform contract.
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.
1 (the default) is the newest 50.
Only the changes to this one thing: a drop, an order, or any other target id.
IANA zone the times are shown in.
Newest first, 50 at most.
source:row id, unique across both audit tables.
When it happened (ISO). Show it in the shop timezone.
A plain title made from the action, e.g. "Drop cancelled".
person: someone signed in. key: an agent key. system: a job, or nobody recorded.
personkeysystemThe person's name (else email), the key's name (else AI), or System.
An AI tool or an agent key made the change.
The thing changed (a drop, an order...), or null for the shop itself.
Only the fields whose value changed.
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"import { createMembberClient } from "@membber/sdk-ts";
const membber = createMembberClient({
getAccessToken: () => process.env.MEMBBER_TOKEN,
});
const { data, error } = await membber.raw.GET("/api/v1/admin-shop-changes/{storeId}", {
params: { path: { storeId: "8fb04ddc-0000-4000-8000-d0c50000008f" } },
});
if (error) {
// Typed error envelope: { error: { code, message, requestId } }
throw new Error(`${error.error.code}: ${error.error.message}`);
}
console.log(data);import MembberSwift
let client = MembberClient(
serverURL: MembberClient.productionServerURL,
tokenProvider: { session.accessToken }
)
let response = try await client.api.adminShopChanges(
path: .init(storeId: "8fb04ddc-0000-4000-8000-d0c50000008f")
).ok.body.json
print(response){
"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
}