5 operations. Every schema and example on this page is generated from the platform contract.
Dark behind SHOP_SIGN_IN and SHOP_CORNER (off: 404). Signed in at this shop only (this shop’s own cookie); every order read by this shop and her proved email. Never cached.
Her shop: its handle (flourandbloom).
Her corner is open on an item or drop page, not her shop page: each Buy again keeps only what her shop page’s basket would take now.
1Her first order here, or when she joined its list.
Her stamps here now. Null: the shop runs no loyalty, or none to say.
Her shop’s clock (IANA, e.g. Europe/London): every day and time in her corner is said on it.
A posted parcel on its way, or something to collect: the dot on her initial.
Its order number.
What she ordered, in a few words.
How far it has come: Paid · Packed · Posted · Arrives.
paidpackedpostedarrivedto_postlatepostedarrivednot_arrivedcame_backAn ISO time.
A tracking number was saved.
An ISO time.
tracked_48tracked_24letterboxsmall_parcelmedium_parcelThe day it usually arrives by.
"14 Mill Lane, RH1 4AB": her street and postcode.
How many things.
collectedarrivedWhat Buy again puts back into her basket, only what can be ordered now.
Her shop’s menu item.
Its size or colour row, when it has one.
She is on this shop’s list now.
Her name and mobile as she gave THIS shop herself (its copy, only when saved by her here or from her own sign-up in its app), and her proved email. Never the shop’s own correction, never a name or mobile typed on an order, never what another shop holds. Null: left out.
Her proved address. Never changed here.
She can change her name and mobile here: exactly one record with her proved address is linked to this shop, and that link names no other email.
Your data at <shop>. Null while SHOP_DATA_REQUESTS is off.
A request can be sent now.
copydeleteAn ISO time.
The shop answers by this day: one month, as the law says.
curl -G "https://www.membber.com/api/v1/shop-corner" \
--data-urlencode "shop=flourandbloom"import { createMembberClient } from "@membber/sdk-ts";
const membber = createMembberClient();
const { data, error } = await membber.raw.GET("/api/v1/shop-corner", {
params: { query: { shop: "flourandbloom" } },
});
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: { nil }
)
let response = try await client.api.getShopCorner(
query: .init(shop: "flourandbloom")
).ok.body.json
print(response){
"first_name": "Alex",
"since": "<since>",
"stamps": -9007199254740991,
"time_zone": "<time_zone>",
"news": true,
"coming": [
{
"order": "<order>",
"title": "Morning class",
"photo": "<photo>",
"step": "paid",
"status": "to_post",
"paid_at": "<paid_at>",
"packed_at": "<packed_at>",
"posted_at": "<posted_at>",
"service": "tracked_48",
"parcel_kind": "letterbox",
"arrives_on": "<arrives_on>",
"tracking": {
"number": "<number>",
"track_url": "https://example.com/image.jpg"
},
"going_to": "<going_to>",
"total_pence": 1500
}
],
"collect": [
{
"order": "<order>",
"count": 1,
"photo": "<photo>",
"day": "<day>",
"from": "<from>",
"to": "<to>",
"place": "<place>"
}
],
"earlier": [
{
"order": "<order>",
"title": "Morning class",
"photo": "<photo>",
"how": "collected",
"on": "<on>",
"total_pence": 1500,
"lines": [
{
"item_id": "7e22b9c7-0000-4000-8000-d0c50000007e",
"option_id": "6dff1925-0000-4000-8000-d0c50000006d",
"quantity": 1
}
]
}
],
"hear": {
"on": true
},
"details": {
"name": "Example name",
"email": "alex@example.com",
"mobile": "<mobile>",
"can_change": true
},
"data": {
"email_masked": "alex@example.com",
"can_send": true,
"open": [
{
"kind": "copy",
"sent_at": "<sent_at>",
"reply_by": "<reply_by>"
}
]
}
}Dark behind SHOP_SIGN_IN, SHOP_CORNER and SHOP_DATA_REQUESTS (off: 404). Same origin only. One open request per shop, person and kind; the shop replies within one month. She is emailed at her proved address that it was sent.
Her shop: its handle (flourandbloom).
copydeletecurl -X POST "https://www.membber.com/api/v1/shop-corner/data-request" \
-H "Idempotency-Key: 1f0e2d3c-4b5a-4678-9abc-def012345678" \
-H "Content-Type: application/json" \
-d '{
"shop": "<shop>",
"kind": "copy"
}'import { createMembberClient } from "@membber/sdk-ts";
const membber = createMembberClient();
const { data, error } = await membber.raw.POST("/api/v1/shop-corner/data-request", {
body: {
shop: "<shop>",
kind: "copy"
},
headers: { "Idempotency-Key": crypto.randomUUID() },
});
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: { nil }
)
let response = try await client.api.sendShopDataRequest(
body: .json(.init(
shop: "<shop>",
kind: .copy
))
).ok.body.json
print(response)"<value>"Dark behind SHOP_SIGN_IN and SHOP_CORNER (off: 404). Same origin only. Writes only her link to this shop (customer_store_memberships given_name / given_phone, marked as saved by her), never the shop’s own correction, never customers.*. Only the fields she changed are sent. A mobile is kept in E.164. Audited by field name, never a value. Never cached.
Her shop: its handle (flourandbloom).
Her name as this shop should hold it, sent only when she changed it. Blank: take it out.
Her mobile as she types it (07700 900123, or with its country), sent only when she changed it. Blank: take it out.
curl -X POST "https://www.membber.com/api/v1/shop-corner/details" \
-H "Idempotency-Key: 1f0e2d3c-4b5a-4678-9abc-def012345678" \
-H "Content-Type: application/json" \
-d '{
"shop": "<shop>"
}'import { createMembberClient } from "@membber/sdk-ts";
const membber = createMembberClient();
const { data, error } = await membber.raw.POST("/api/v1/shop-corner/details", {
body: {
shop: "<shop>"
},
headers: { "Idempotency-Key": crypto.randomUUID() },
});
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: { nil }
)
let response = try await client.api.changeShopCornerDetails(
body: .json(.init(
shop: "<shop>"
))
).ok.body.json
print(response)"<value>"Dark behind SHOP_SIGN_IN and SHOP_CORNER (off: 404). Same origin only. On: the list’s own joining path with the list’s own words. Off: her rows here stop, each stop recorded as hers (drop_alert_changes, via shop_page).
Her shop: its handle (flourandbloom).
She is on this shop’s list now.
curl -X POST "https://www.membber.com/api/v1/shop-corner/hear" \
-H "Idempotency-Key: 1f0e2d3c-4b5a-4678-9abc-def012345678" \
-H "Content-Type: application/json" \
-d '{
"shop": "<shop>",
"on": true
}'import { createMembberClient } from "@membber/sdk-ts";
const membber = createMembberClient();
const { data, error } = await membber.raw.POST("/api/v1/shop-corner/hear", {
body: {
shop: "<shop>",
on: true
},
headers: { "Idempotency-Key": crypto.randomUUID() },
});
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: { nil }
)
let response = try await client.api.setShopCornerHear(
body: .json(.init(
shop: "<shop>",
on: true
))
).ok.body.json
print(response){
"on": true
}Dark behind SHOP_SIGN_IN and SHOP_CORNER (off: 404). Signed in at this shop only. Never cached.
Her shop: its handle (flourandbloom).
curl -G "https://www.membber.com/api/v1/shop-corner/news" \
--data-urlencode "shop=flourandbloom"import { createMembberClient } from "@membber/sdk-ts";
const membber = createMembberClient();
const { data, error } = await membber.raw.GET("/api/v1/shop-corner/news", {
params: { query: { shop: "flourandbloom" } },
});
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: { nil }
)
let response = try await client.api.getShopCornerNews(
query: .init(shop: "flourandbloom")
).ok.body.json
print(response){
"news": true
}