# Authentication Source: https://docs.brand-wallet.com/api/authentication Exchange your API key and API secret for an organization-scoped Bearer token, and keep it fresh with rotating refresh tokens. **BrandWallet API uses a two-credential exchange: your API key (identifies your integration) plus an API secret (identifies the merchant organization) produce a Bearer token scoped to that organization. Every subsequent API call carries this token in the `Authorization` header.** Two auth endpoints cover the whole lifecycle: | Endpoint | Purpose | | - | - | | `POST /auth/token` | Exchange API key + secret for an access token | | `POST /auth/refreshtoken` | Rotate the access token / refresh token pair | ## Credentials | Credential | Purpose | Lifetime | | - | - | - | | **API Key** | Identifies your integration. Issued once and used with every organization you connect. | Permanent (until rotated) | | **API Secret** | Identifies the merchant organization. One secret per organization, collected during onboarding. | Permanent (until rotated) | > **Keep credentials server-side.** Your API key and secrets grant access to organization data. Never embed them in client-side code or expose them in a browser; only transmit them over HTTPS. ## Get a token ```http theme={null} POST $BASE_URL/auth/token ``` Send your credentials as request headers — no request body. The pair is validated together: a valid API key with an API secret that belongs to another integration is rejected. The token is scoped to the secret's organization. | Header | Type | Description | | - | - | - | | `x-api-key` | string | Required. The API key issued to your integration. | | `x-api-secret` | string | Required. The API secret issued for the connected organization. | ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/auth/token" \ --header 'x-api-key: YOUR_API_KEY' \ --header 'x-api-secret: ORGANIZATION_SECRET' ``` ### Response ```json theme={null} { "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6...", "tokenType": "Bearer", "expiresIn": 1754126400000, "refreshToken": "946d2689-c4e4-4ca2-a194-..." } ``` | Field | Type | Description | | - | - | - | | `accessToken` | string | The JWT access token. Pass it as `Authorization: Bearer ` on all API requests. | | `tokenType` | string | Always `Bearer`. | | `expiresIn` | number | Token expiry as a Unix epoch timestamp in **milliseconds**. Compare against the current time to decide when to refresh. | | `refreshToken` | string | Renews the session without re-sending credentials — see below. | ## Call the API Include `Authorization: Bearer ` on every request. BrandWallet validates the token on each call and rejects missing, expired, or malformed tokens. When the token expires, refresh it or request a new one with your credentials. ```bash theme={null} curl "$BASE_URL/v1/customers/find?q=5551234567" \ --header 'Authorization: Bearer ACCESS_TOKEN' ``` ## Refresh a token ```http theme={null} POST $BASE_URL/auth/refreshtoken ``` Instead of re-sending credentials, send the current token pair. BrandWallet returns a new pair and immediately invalidates the old refresh token. > **Refresh tokens are rotated** — each successful call invalidates the token you sent and returns a brand-new pair. Replace both stored tokens immediately after a successful refresh; resending an old refresh token fails with `_invalid_refresh_token`. Payload schema: ```json theme={null} { "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6...", // may be expired — accepted regardless "refreshToken": "946d2689-c4e4-4ca2-a194-..." // must be the latest in the rotation } ``` | Field | Type | Description | | - | - | - | | `accessToken` | string | Required. The access token issued together with the refresh token — accepted even when expired. | | `refreshToken` | string | Required. The refresh token from the same token response. Previously used tokens are invalid. | The response has the same shape as `POST /auth/token`: a new `accessToken`, `tokenType`, `expiresIn`, and `refreshToken`. ## Error codes | Token | Status | Meaning | | - | - | - | | `_invalid_payload` | 400 | The `x-api-key` or `x-api-secret` header is missing from the `/auth/token` request. | | `_invalid_credentials` | 401 | The API key and API secret pair is invalid or does not match a known organization. | | `_invalid_refresh_token` | 400 | The refresh token is unknown, expired, or has already been rotated. | | `_jwt_expired` | 401 | The access token has passed its expiry time. Refresh or re-request a token. | | `_jwt_malformed` | 401 | The access token is not a valid JWT and cannot be parsed. | For the complete list of error codes returned across all endpoints, see the [Error Reference](/api/errors). # Create a category Source: https://docs.brand-wallet.com/api/create-category Add a product category to your BrandWallet menu. Categories power category-filtered campaigns and menu synchronization. ```http theme={null} POST $BASE_URL/v1/categories ``` **Adds a new category to your organization; the record is always created with `status: 1` (published).** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Integrator API users carry the category management permission by default. > Categories are also created automatically when you send `items[].categories` on transactions — see [menu synchronization](/api/process-transaction#menu-synchronization-lazy-sync). Use this endpoint when you want to upload or manage the category tree explicitly. ### Payload schema ```json theme={null} { "name": { "TR": "…", "EN": "…" }, "description": "…", "opaqueId": "…", "parent": "category-uuid", "types": {} } ``` ### Body All fields except `name` are optional. | Field | Type | Description | | - | - | - | | `name` | string \| MLString | Required. A plain string (`"Hot Drinks"`) or a language code → text object (`{ "TR": "…", "EN": "…" }`). MLString language keys: `EN`, `TR`, `AR`, `RU`, `ES`, `IT`, `FR`, `HE`, `DE`, `AZ`. | | `description` | string \| MLString | Description. | | `opaqueId` | string | Your external category id (used for [menu sync](/api/process-transaction#menu-synchronization-lazy-sync) matching). | | `parent` | string | Parent category id — for building a hierarchy. | | `types` | object | Free-form extra data. | > `status` is not accepted in the body — records are always created with `1` (use the [delete endpoint](/api/delete-category) to remove a category). `organization` is derived from your token; you cannot create categories for another organization. Fields outside the schema are silently dropped; type errors return 400 with the individual validation messages joined in `message`. ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/categories" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "name": { "TR": "Espresso Bazlı", "EN": "Espresso Based" }, "opaqueId": "espresso-based", "parent": "1e1cc0fb-55a1-4679-80df-6dccb936273f" }' ``` ### Response Returns **201** with the created category document. ```json theme={null} { "id": "79a83256-2925-44b4-9bdc-a401caccf969", "name": { "TR": "Espresso Bazlı", "EN": "Espresso Based" }, "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "status": 1, "opaqueId": "espresso-based", "parent": "1e1cc0fb-55a1-4679-80df-6dccb936273f", "createdAt": "2026-09-18T09:23:28.303Z", "updatedAt": "2026-09-18T09:23:28.303Z" } ``` Notes: * `organization` is set server-side from your token — trust the values in the response, not what you sent. * `parent` is not validated — sending an unknown id still creates the record; keeping the hierarchy consistent is the caller's responsibility. * Optional fields you did not send are omitted from the response — do not expect `null`. # Create a customer Source: https://docs.brand-wallet.com/api/create-customer Create a bare BrandWallet customer without enrolling them into a campaign. ```http theme={null} POST $BASE_URL/v1/customers ``` **Creates a bare customer — no card, barcode, or loyalty balances are created. To attach the customer to a campaign, use [POST /v1/customers/register](/api/register-customer).** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Missing or invalid token returns **401**; an organization without an active subscription returns `invalid_subscription` (**403**). Payload schema: ```json theme={null} { "data": { // required — free-form customer profile "phone": "+905551234567", "email": "jane@example.com", "fullname": "Jane Doe" }, "metaData": { "source": "pos" }, // optional "consents": { "marketing": true | false }, // optional "opaqueId": "ext-cust-10432" // optional — your own customer id } ``` ### Body | Field | Type | Description | | - | - | - | | `data` | object | Required. Free-form customer profile; stored as-is. `phone` and `email` are validated when present. | | `data.phone` | string | Optional. Normalized to E.164 (`0555 123 45 67` → `+905551234567`); numbers without a country code default to **TR**, so send non-Turkish numbers with a leading `+`. Unparseable numbers return `invalid_phone` (400). Unique within the organization — `existing_customer_with_phone` (400) on conflict. | | `data.email` | string | Optional. Unique within the organization — `existing_customer_with_email` (400) on conflict. | | `metaData` | object | Optional. Free-form metadata; stored as-is. | | `consents` | object | Optional. Consent flags; stored as-is. | | `opaqueId` | string | Optional. Your own system's customer id. Unique within the organization — `opaque_id_already_exists` (400) on conflict. | > Uniqueness checks ignore deleted customers. When `email` or `phone` hits an existing customer, look the customer up with [GET /v1/customers/find](/api/find-customer) and pass their id to [POST /v1/customers/register](/api/register-customer) as the `customer` string. ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/customers" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "data": { "phone": "+905551234567", "fullname": "Jane Doe" }, "opaqueId": "ext-cust-10432" }' ``` ### Response Returns **201** with the bare customer — `cards` is always empty and `collectables` is not present. ```json theme={null} { "id": "9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e", "data": { "phone": "+905551234567", "fullname": "Jane Doe" }, "opaqueId": "ext-cust-10432", "status": 1, "createdAt": "2026-09-29T08:22:52.795Z", "updatedAt": "2026-09-29T08:22:52.795Z", "cards": [] } ``` Notes: * Optional fields that have no value are omitted from the response — you will not receive `null`. Exception: `opaqueId` is `null` when not assigned. * `data.phone` is always returned in its normalized (E.164) form — the raw format you sent is not stored. * A bare customer cannot take part in transactions (they have no card). Register them into a campaign first — the card, barcode, and loyalty balances are created at that step. # Create a product Source: https://docs.brand-wallet.com/api/create-product Add a product to your BrandWallet menu. Products power product-filtered campaigns and menu synchronization. ```http theme={null} POST $BASE_URL/v1/products ``` **Adds a new product to your organization's menu; the record is always created with `status: 1` (published).** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Integrator API users carry the product management permission by default. > Products are also created automatically when you send `items[]` on transactions — see [menu synchronization](/api/process-transaction#menu-synchronization-lazy-sync). Use this endpoint when you want to upload or manage the menu explicitly. ### Payload schema ```json theme={null} { "name": { "TR": "…", "EN": "…" }, "price": 120, "label": { "TR": "…", "EN": "…" }, "description": "…", "details": { "TR": "…", "EN": "…" }, "categories": ["category-uuid"], "tags": ["…"], "barcode": "…", "sku": "…", "opaqueId": "…", "assets": [{}], "defaultasset": {}, "attributes": { "key": "value" } } ``` ### Body All fields except `name` and `price` are optional. | Field | Type | Description | | - | - | - | | `name` | MLString | Required. Language code → text object (`{ "TR": "Latte", "EN": "Latte" }`). Supported language keys: `EN`, `TR`, `AR`, `RU`, `ES`, `IT`, `FR`, `HE`, `DE`, `AZ` — you do not have to send all of them. | | `price` | number | Required. The product's list price. | | `label` | MLString | Short label. | | `description` | string | Free-text description. | | `details` | MLString | Multi-language detail text. | | `categories` | string\[] | Category ids — see [Categories](/api/list-categories). | | `tags` | string\[] | Free-form tags. | | `barcode` | string | Product barcode. | | `sku` | string | Stock keeping unit. | | `opaqueId` | string | Your external product id (used for [menu sync](/api/process-transaction#menu-synchronization-lazy-sync) matching). Unique within the organization — a second create with the same `opaqueId` returns `opaque_id_already_exists` (400). | | `assets` | object\[] | Media list. | | `defaultasset` | object | Default image. | | `attributes` | object | Free key-value data; values may be string, number, or boolean. | > `status` is not accepted in the body — records are always created with `1` (use the [delete endpoint](/api/delete-product) to remove a product). `organization` is derived from your token; you cannot create products for another organization. Fields outside the schema are silently dropped; type errors return 400 with the individual validation messages joined in `message` (e.g. `name must be an object / price must be a number`). ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/products" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "name": { "TR": "Latte", "EN": "Latte" }, "price": 120, "categories": ["9e2b4c1d-7f3a-4e8b-a5d6-2c9f0b1e4a77"], "sku": "LATTE-M", "opaqueId": "pos-item-9001" }' ``` ### Response Returns **201** with the created product document. ```json theme={null} { "id": "1f64ec1b-445e-4762-a8c3-0d1e6d75afe6", "name": { "TR": "Latte", "EN": "Latte" }, "price": 120, "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "categories": ["9e2b4c1d-7f3a-4e8b-a5d6-2c9f0b1e4a77"], "tags": [], "sku": "LATTE-M", "opaqueId": "pos-item-9001", "status": 1, "createdAt": "2026-09-18T08:24:08.415Z", "updatedAt": "2026-09-18T08:24:08.415Z" } ``` Notes: * `organization` is set server-side from your token — trust the values in the response, not what you sent. * Optional fields you did not send are omitted from the response — do not expect `null`. * Errors use the standard [error envelope](/api/errors). # Create a user Source: https://docs.brand-wallet.com/api/create-user Create a branch-level user (cashier or branch manager) in the organization your access token is scoped to. ```http theme={null} POST $BASE_URL/v1/users ``` **Creates a user in your access token's organization. Roles are given as role codes; integrations can assign only the branch-level roles `branch_user` and `branch_manager`.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Payload schema: ```json theme={null} { "fullname": "Jane Cashier", // required "email": "jane@example.com", // required — globally unique "password": "s3cret", // required, min 5 chars "phone": "+905321112233", // optional "status": 1, // optional, defaults to 1 "roles": ["branch_user" | "branch_manager"], // optional — role codes "branch": "377ec3ad-28c8-4008-b3df-005a434dcf8b", // optional — branch id "authBranches": ["377ec3ad-28c8-4008-b3df-005a434dcf8b"], // optional — branch ids "opaqueId": "pos-user-7" // optional — your own user id } ``` ### Body | Field | Type | Description | | - | - | - | | `fullname` | string | Required. | | `email` | string | Required. Globally unique across BrandWallet — `user_already_exists` (400) on conflict. | | `password` | string | Required, minimum 5 characters. Never returned by any endpoint. | | `phone` | string | Optional. Normalized to E.164; an unparseable number is silently dropped (the user is created without a phone). | | `status` | number | Optional, defaults to `1` (active). | | `roles` | string\[] | Optional. Role codes. Assignable codes: `branch_user`, `branch_manager` — any other code returns `role_not_allowed` (400). Omitted = user is created without roles. | | `branch` | string | Optional. The branch the user belongs to. | | `authBranches` | string\[] | Optional. Branches the user is authorized for. | | `opaqueId` | string | Optional. Your own system's user id. | > The user is always created in your token's organization — an organization cannot be passed in the body. `system_admin` and `api_user` roles can never be assigned through the API. ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/users" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "fullname": "Jane Cashier", "email": "jane@example.com", "password": "s3cret", "roles": ["branch_user"], "branch": "377ec3ad-28c8-4008-b3df-005a434dcf8b", "opaqueId": "pos-user-7" }' ``` ### Response Returns **201** with the created user — the same shape as a [List users](/api/list-users) item. ```json theme={null} { "id": "fa000708-10f6-47ea-a35d-d3e1acbd4be5", "fullname": "Jane Cashier", "email": "jane@example.com", "status": 1, "organization": "ca5495d7-36ee-4f6d-8149-0dd082f7c745", "branch": "377ec3ad-28c8-4008-b3df-005a434dcf8b", "authBranches": [], "roles": [ { "id": "e5e94c4a-7ab7-4568-bf5d-4ea61c2300af", "code": "branch_user", "name": "Branch User" } ], "opaqueId": "pos-user-7", "createdAt": "2026-10-08T12:00:00.000Z", "updatedAt": "2026-10-08T12:00:00.000Z" } ``` Notes: * Optional fields that have no value are omitted from the response — you will not receive `null`. * `roles` in the response contains only public-facing roles. * Credentials are never returned. * Use [POST /v1/users/:id](/api/update-user) to change the user later and [DELETE /v1/users/:id](/api/delete-user) to remove them. # The Customer Object Source: https://docs.brand-wallet.com/api/customer-object The shape of a BrandWallet customer record as returned by the customer endpoints. **A customer is an end consumer of a merchant organization — the person who shops at the brand, carries its wallet card (QR code), and collects loyalty rewards. Customers are not the organization's staff: the team members who operate the business (owners, managers, cashiers) are [Users](/api/user-object). All customer endpoints return the same core record; `cards` and `coupons` are attached only where noted.** Object schema: ```json theme={null} { "id": "9c2f1a34-6b8e-4f02-a1d3-5e7c90b4d812", "data": { "fullname": "…", "phone": "…", "email": "…" }, // free-form profile "collectables": { // loyalty balances, keyed by collectable key "point_A1B2C": { "label": "Points", "value": 120, // spendable balance "total": 350, // lifetime collected "tierLevel": 1, // tiered campaigns only "tierStartedAt": "…", // tiered campaigns only "totalAmount": 3200 // tracked counter(s), when present } }, "metaData": { }, // free-form metadata "consents": { "marketing": true | false }, "cards": [ { "id": "…", "barcode": "…", "status": 1 } ], // register/find only "tags": [ { "id": "…", "name": "…", "color": "…" } ], // find only "categories": [ ], // find only "coupons": [ ], // find only "opaqueId": "ext-cust-10432" | null, "isVoided": true | false, // present when the customer was ever voided "status": 1, "createdAt": "2026-08-25T14:03:11.000Z", "updatedAt": "2026-08-27T09:12:40.000Z" } ``` ### Fields | Field | Type | Description | | - | - | - | | `id` | string | Unique customer id. Used on all customer, coupon, and transaction endpoints. | | `data` | object | Free-form profile (`fullname`, `phone`, `email`, ...); keys depend on the organization's customer form. `phone` is always stored in E.164 form. | | `collectables` | object | Loyalty balances keyed by collectable key. Each entry has `value` (spendable) and `total` (lifetime); on [find](/api/find-customer), also a `label`, plus tier state (`tierLevel`, `tierStartedAt`) and tracked counters (e.g. `totalAmount`) when the campaign is tiered. | | `metaData` | object | Free-form metadata; replaced as a whole on [update](/api/update-customer). | | `consents` | object | Consent flags; merged on [update](/api/update-customer). | | `cards` | array | The customer's wallet cards — `{id, barcode, status}` on [register](/api/register-customer), enriched with `name` and `campaigns` (campaign configuration) on [find](/api/find-customer). Not included in [list](/api/list-customers) and update responses. | | `coupons` / `tags` / `categories` | — | Returned by [find](/api/find-customer) only. | | `opaqueId` | string \| null | Your own system's customer id; unique within the organization. `null` when not assigned. | | `isVoided` | boolean | `true` while the customer is blocked from transactions — see [void / activate](/api/void-customer). Omitted when never voided. | | `status` | number | Record status code (`1` = active). | | `createdAt` / `updatedAt` | string | ISO 8601 timestamps. | Notes: * Optional fields that have no value are omitted from responses — you will not receive `null` (the single exception is `opaqueId`). * Dynamic-keyed objects (`data`, `metaData`, `collectables` keys) pass through as-is; do not assume a fixed key set. # Delete a category Source: https://docs.brand-wallet.com/api/delete-category Soft-delete a BrandWallet product category. The record is kept but permanently drops out of list and get results. ```http theme={null} DELETE $BASE_URL/v1/categories/{id} ``` **Soft-deletes the category: the record is not destroyed, its `status` becomes `-99`, and it permanently drops out of list and get results.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Deleting a category that belongs to another organization returns `auth_error` (400). ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | Category id (UUID). | ### Example ```bash theme={null} curl --request DELETE \ --url "$BASE_URL/v1/categories/79a83256-2925-44b4-9bdc-a401caccf969" \ --header 'Authorization: Bearer ' ``` ### Response Returns **200** with the deleted document. ```json theme={null} { "id": "79a83256-2925-44b4-9bdc-a401caccf969", "name": { "TR": "Espresso Bazlı", "EN": "Espresso Based" }, "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "status": -99, "opaqueId": "espresso-based", "parent": "1e1cc0fb-55a1-4679-80df-6dccb936273f", "createdAt": "2026-09-18T09:23:28.303Z", "updatedAt": "2026-09-18T09:24:10.118Z" } ``` Notes: * Child categories are not deleted or moved automatically — deleting a parent does not change the children's `parent` reference; cleaning up the hierarchy is the caller's responsibility. References in products' `categories` lists are also left as they are. * A deleted category returns `entity_not_found` (400) on get and is invisible to every list filter; there is no undelete endpoint. * An unknown id returns `entity_not_found` (400). # Delete a customer Source: https://docs.brand-wallet.com/api/delete-customer Soft-delete a BrandWallet customer and disable their active coupons. ```http theme={null} DELETE $BASE_URL/v1/customers/:id ``` **Soft-deletes the customer: the record is marked as deleted, their active coupons are disabled, and they disappear from list, find, and transaction flows.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Missing or invalid token returns **401**. Deletion works even without an active subscription — data removal is always possible. ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | Customer id. Unknown or out-of-organization ids return `customer_not_found` (400). | ### Example ```bash theme={null} curl --request DELETE \ --url "$BASE_URL/v1/customers/9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e" \ --header 'Authorization: Bearer ' ``` ### Response Returns **200** with the deleted customer record (`status` reflects the deleted state). ```json theme={null} { "id": "9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e", "data": { "phone": "+905551234567", "fullname": "Jane Smith" }, "opaqueId": "ext-cust-10432", "status": -99, "createdAt": "2026-09-29T08:22:52.795Z", "updatedAt": "2026-09-29T11:02:14.320Z" } ``` Notes: * Deletion frees the customer's `email`, `phone`, and `opaqueId` for reuse — uniqueness checks ignore deleted customers. * A deleted customer cannot be updated, registered, or found; recreate them with [Create](/api/create-customer) or [Register](/api/register-customer) if needed. # Delete a product Source: https://docs.brand-wallet.com/api/delete-product Soft-delete a BrandWallet product. The record is kept but permanently drops out of list and get results. ```http theme={null} DELETE $BASE_URL/v1/products/{id} ``` **Soft-deletes the product: the record is not destroyed, its `status` becomes `-99`, and it permanently drops out of list and get results.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Deleting a product that belongs to another organization returns `auth_error` (400). ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | Product id (UUID). | ### Example ```bash theme={null} curl --request DELETE \ --url "$BASE_URL/v1/products/1f64ec1b-445e-4762-a8c3-0d1e6d75afe6" \ --header 'Authorization: Bearer ' ``` ### Response Returns **200** with the deleted document. ```json theme={null} { "id": "1f64ec1b-445e-4762-a8c3-0d1e6d75afe6", "name": { "TR": "Latte", "EN": "Latte" }, "price": 95, "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "status": -99, "createdAt": "2026-09-18T08:24:08.415Z", "updatedAt": "2026-09-18T08:25:01.371Z" } ``` Notes: * There is no undelete endpoint; a deleted product returns `entity_not_found` (400) on get and is invisible to every list filter. * An unknown id returns `entity_not_found` (400). * To temporarily hide a product instead of deleting it, set `status: 0` via the [update endpoint](/api/update-product). # Delete a user Source: https://docs.brand-wallet.com/api/delete-user Soft-delete a branch-level user of the organization your access token is scoped to. ```http theme={null} DELETE $BASE_URL/v1/users/:id ``` **Soft-deletes a user of your access token's organization: the user's `status` is set to `-99` and they stop appearing in [List users](/api/list-users). Integrations can delete only users whose roles are branch-level (`branch_user` / `branch_manager`).** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | **Required.** The user's id (UUID). | ### Example ```bash theme={null} curl --request DELETE \ --url "$BASE_URL/v1/users/fa000708-10f6-47ea-a35d-d3e1acbd4be5" \ --header 'Authorization: Bearer ' ``` ### Response Returns **200** with the deleted user; `status` is `-99`. ```json theme={null} { "id": "fa000708-10f6-47ea-a35d-d3e1acbd4be5", "fullname": "Jane Cashier", "email": "jane@example.com", "status": -99, "organization": "ca5495d7-36ee-4f6d-8149-0dd082f7c745", "branch": "377ec3ad-28c8-4008-b3df-005a434dcf8b", "authBranches": [], "opaqueId": "pos-user-7", "createdAt": "2026-10-08T12:00:00.000Z", "updatedAt": "2026-10-08T13:00:00.000Z" } ``` Notes: * This is a soft delete — the record is kept with `status: -99` and is excluded from lists; the user can no longer sign in or be used. * The delete response does not include `roles`. * Deleting a user that does not exist returns `entity_not_found` (400); a user outside your organization returns `auth_error` (400). * Deleting a user whose roles are not branch-level returns `user_not_deletable` (400); API users return `api_user_not_deletable` (400). * The deleted user's email stays reserved — creating a new user with the same email still returns `user_already_exists` (400). # Errors Source: https://docs.brand-wallet.com/api/errors Every BrandWallet API error returns a JSON envelope with a stable machine-readable token in the message field. Reference all error codes here. **The BrandWallet API uses standard HTTP status codes, and every error response carries the same JSON envelope with a stable, machine-readable token in `message`. Match on the token in your integration code — tokens do not change between API releases.** Error envelope: ```json theme={null} { "statuscode": 400, "errorcode": 400, "message": "invalid_campaign", "description": "", "timestamp": 1754040000000, "path": "/v1/customers/register", "method": "POST" } ``` | Field | Type | Description | | - | - | - | | `statuscode` | number | HTTP status code returned by the API. | | `errorcode` | number | Internal error code; matches `statuscode` in most cases. | | `message` | string | Stable, machine-readable error token. Use this field in your error handling — it does not change between API versions. | | `description` | string | Optional human-readable detail. May be empty. | | `timestamp` | number | Unix epoch timestamp in milliseconds. | | `path` / `method` | string | The request that triggered the error. | > Token naming: auth and infrastructure tokens are underscore-prefixed (`_invalid_credentials`, `_jwt_expired`); domain tokens on the `/v1` endpoints are plain (`customer_not_found`, `invalid_campaign`). Always match the exact string. ### Auth tokens | Token | Status | Meaning | | - | - | - | | `_invalid_payload` | 400 | Missing `x-api-key` or `x-api-secret` header on `/auth/token`. | | `_invalid_credentials` | 401 | The API key / secret pair is not valid. | | `_invalid_refresh_token` | 400 | The refresh token is unknown, expired, or already rotated. | | `_jwt_expired` | 401 | The access token has expired. Refresh or request a new one. | | `_jwt_malformed` | 401 | The access token is not a valid JWT. | ### List / filter tokens | Token | Status | Meaning | | - | - | - | | `invalid_filter_field` | 400 | The `f[...]` field is not filterable on this endpoint. The description lists the allowed fields. | | `invalid_filter_value` | 400 | The filter value is malformed (wrong type, empty, or below the minimum term length). | | `invalid_limit` | 400 | `limit` is not an integer between 1 and 250. | | `invalid_cursor` | 400 | `cursor` is not a cursor returned in `meta`. | | `invalid_filter_op` | 400 | Unknown filter operator name (allowed: `gt`, `gte`, `lt`, `lte`, on endpoints that support operators). | ### Customer tokens | Token | Status | Meaning | | - | - | - | | `customer_not_found` | 400 | No customer matches the given search term or id. | | `existing_customer_with_email` | 400 | Another customer of the organization already has this email. | | `existing_customer_with_phone` | 400 | Another customer of the organization already has this phone number. | | `opaque_id_already_exists` | 400 | Another customer of the organization already has this `opaqueId`. | | `invalid_phone` | 400 | The phone number could not be parsed into E.164 form. | | `invalid_campaign` | 400 | No published campaign matches the given `campaignId`. | | `invalid_customer_payload` | 400 | The `customer` field on register is neither a string (customer id) nor an object (create model). | | `customer_data_required` | 400 | The `customer` object on register is missing a valid `data` object. | | `customer_id_must_be_string` | 400 | The `customer` object on register contains an `id` field — send the existing customer's id as the `customer` string instead. | | `nothing_to_update` | 400 | The update body contains none of the updatable fields. | | `_q_required` | 400 | The `q` query parameter is missing on `/v1/customers/find`. | ### Transaction & coupon tokens | Token | Status | Meaning | | - | - | - | | `invalid_customer` | 400 | The customer is unknown, deleted, or voided — the transaction is rejected. | | `card_not_found` | 400 | The given `card` does not belong to the customer. | | `point_campaign_not_found` | 400 | `redeem.points` was sent but the card's campaign has no point spend (e.g. a stamp card). | | `insufficient_collectable_balance` | 400 | `redeem.points` exceeds the card's current point balance. | | `invalid_coupon` | 400 | The coupon instance does not exist or does not belong to the customer. | | `coupon_is_disabled` | 400 | The coupon has been disabled. | | `coupon_is_not_valid` | 400 | The coupon is not redeemable (expired or already redeemed). | | `invalid_user` / `invalid_branch` | 400 | The `user` / `branch` could not be resolved: unknown opaque id (string form), or an unknown object without a `name` to create it from (lazy sync). | | `invalid_transaction` | 400 | The transaction does nothing: no collection, no coupon redemption, and no point spend. | | `invalid_amount_value` | 400 | The monetary value of `redeem.points` exceeds `amount`. | | `duplicate_transaction` | 400 | A completed transaction with the same `orderId` already exists — no side effects were produced. | | `no_applicable_campaign` | 400 | The selected card has no campaign that can run for this transaction. | ### Rollback tokens | Token | Status | Meaning | | - | - | - | | `transaction_already_rolledback` | 400 | The transaction was already rolled back — treat as "already undone". | | `transaction_is_not_latest` | 400 | Only the most recent non-rolled-back transaction of the customer + campaign can be rolled back; undo newer ones first. | | `reward_coupon_already_used` | 400 | A reward coupon granted by the transaction has already been redeemed — the rollback is blocked and nothing was changed. | | `reward_coupon_not_found` / `redeem_coupon_not_found` | 400 | A coupon referenced by the transaction no longer exists. | | `coupon_is_not_redeemed` | 400 | The coupon of a `redeem-coupon` transaction is no longer in redeemed state. | | `rollback_not_supported_for_external_transaction` | 400 | The transaction came from an external integration and cannot be rolled back here. | | `rollback_not_supported_for_system_transaction` | 400 | The transaction is a system correction and cannot be rolled back. | | `rollback_not_supported_for_legacy_transaction` | 400 | An old record without a pre-transaction snapshot — it cannot be restored safely. | | `rollback_exceeds_current_threshold` | 400 | The campaign's configuration changed and the restored value would exceed the current threshold. | ### Product & category tokens | Token | Status | Meaning | | - | - | - | | `entity_not_found` | 400 | No product/category matches the given id, or the record was deleted. | | `opaque_id_already_exists` | 400 | Another product of the organization already has this `opaqueId`. | | `auth_error` | 400/403 | The token lacks the required permission, or the resource belongs to another organization. | ### Server errors | Token | Status | Meaning | | - | - | - | | `_internal_server_error` | 500 | Unexpected server error — wait briefly and retry. | Validation errors on request bodies return **400** with the individual field messages joined in the `message` field (e.g. `campaignId must be a string / campaignId should not be empty`). `2xx` codes indicate success; `4xx` codes indicate a request error — inspect the `message` token and fix the request before retrying; `5xx` codes indicate a server-side error — retry briefly and contact BrandWallet at [dev@brand-wallet.com](mailto:dev@brand-wallet.com) if the condition persists. # Find a customer Source: https://docs.brand-wallet.com/api/find-customer Resolve a single BrandWallet customer by id, phone, email, or card barcode. Returns loyalty balances, wallet cards with their campaign configuration, and active coupons in one call. ```http theme={null} GET $BASE_URL/v1/customers/find?q= ``` **Resolves a customer of your organization using a single search term. Use it to identify the customer who is checking out, and to load their balances, cards, and coupons before running a transaction.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). The search runs within your token's organization only. ### Query parameters | Parameter | Type | Description | | - | - | - | | `q` | string | Required search term, matched in this order: **customer id** (exact), **opaque id** (exact), **phone** (case-insensitive substring), **email** (exact). When no customer field matches and the term is purely numeric, a card **barcode** (exact) is tried last. | > A missing/empty `q` returns `_q_required` (400). No match returns `customer_not_found` (400) — match the exact string. Use URL encoding (e.g. `URLSearchParams`) so the `+` in phone numbers is not lost. ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/customers/find?q=%2B905551234567" \ --header 'Authorization: Bearer ' ``` ### Response Returns **200** with a single customer object (no envelope). The model has two layers: **the customer's state** (balances, tier level, counters) lives in the top-level `collectables`; **the rules** (earn/spend/tier configuration) live in `cards[].campaigns[].actions[].options`. ```json theme={null} { "id": "9c2f1a34-6b8e-4f02-a1d3-5e7c90b4d812", "data": { "fullname": "Jane Doe", "phone": "+905551234567", "email": "jane@example.com" }, "collectables": { "point_A1B2C": { "label": "Points", "value": 120, "total": 350, "tierLevel": 1, "tierStartedAt": "2026-09-01T09:12:40.000Z", "totalAmount": 3200 }, "stamp_K3M9A": { "label": "Stamps", "value": 4, "total": 12 } }, "metaData": {}, "consents": { "marketing": true }, "tags": [ { "id": "f31c7e2a-6d15-4a02-b7c9-0d84f2ae6b31", "name": "VIP", "color": "#f5a623" } ], "categories": [], "cards": [ { "id": "6f1d2c88-9a41-4b7e-8d02-3c5a71e9f604", "name": "Point Card", "barcode": "483920", "status": 1, "campaigns": [ { "id": "14c5a0ed-537e-400c-8463-e72bf277f600", "name": "Points Campaign", "actions": [ { "name": "collect-tiered-points", "options": { "collectable": "point_A1B2C", "track": "totalAmount", "tiers": [ { "level": 1, "threshold": 0, "name": { "EN": "Bronze", "TR": "Bronz" }, "collect": { "method": "percent", "percent": { "ratio": 5 } }, "spend": { "pointstoconvert": 100, "convertto": 10 } }, { "level": 2, "threshold": 5000, "name": { "EN": "Silver", "TR": "Gümüş" }, "collect": { "method": "percent", "percent": { "ratio": 10 } }, "spend": { "pointstoconvert": 100, "convertto": 10 } } ] } } ] } ] }, { "id": "9c01d7c4-52aa-4f0e-8d40-2c4f27f81f02", "name": "Stamp Card", "barcode": "483925", "status": 1, "campaigns": [ { "id": "8b7d1f22-90ce-4f6d-9f5b-b0a4a2f7d356", "name": "Stamps Campaign", "actions": [ { "name": "collect-stamps", "options": { "collectable": "stamp_K3M9A", "track": "total", "tiers": [ { "level": 1, "collect": { "collect": "stamps", "method": "value", "value": 1 }, "convert": { "threshold": 10, "rewards": [ { "coupon": { "id": "074308ff-44cc-44e3-987c-fd79a9301fb2", "name": "Free Coffee" }, "expirationoptions": { "unit": "days", "value": "90" } } ] } } ] } } ] } ] } ], "opaqueId": null, "status": 1, "createdAt": "2026-08-25T14:03:11.000Z", "updatedAt": "2026-08-27T09:12:40.000Z", "coupons": [ { "id": "2b7e4f19-8c3d-4a56-b012-9e6f83d1c470", "coupon": { "name": "Welcome Coupon" }, "code": "WELCOME10", "type": "discount", "discountAmount": 10, "isPercent": true, "issuedAt": "2026-08-20T10:00:00.000Z", "expiresAt": "2026-09-20T10:00:00.000Z", "status": "active" } ] } ``` Notes: * A barcode search returns only that card; phone/email searches return all of the customer's cards. `collectables` and `coupons` are scoped to the returned card(s). * **`cards[].campaigns[]`** are the campaigns attached to the card: `{id, name?, actions}`. `actions[].options` is the campaign's configuration and passes through **as-is** — its content depends on the action type (`collect-points`, `collect-tiered-points`, `collect-stamps`, `apply-discount`, ...). Two exceptions: `options.collectable` is always the collectable **key** (matching the keys in the top-level `collectables`), and reward coupons are reduced to `{id, name}`. Inactive actions are not listed. On tiered campaigns `tiers[]` contains ALL of the campaign's levels. * **`tiers[].name`** is the tier's display name, returned as a **multi-language object** (`{ "EN": "Bronze", "TR": "Bronz", ... }` — the languages defined by the organization). The field is omitted when the tier has no name defined; **single-level campaigns have no tier names, so `name` is never present there** (like the stamp campaign in the example). * **The customer's state lives in the top-level `collectables`:** `value` is the spendable balance, `total` the lifetime collected amount. On tiered campaigns, `tierLevel` (the customer's current level) and `tierStartedAt` are also present, along with the counters the campaigns track (the key named by `options.track` — e.g. `totalAmount`). These fields are omitted when not applicable. * **Derived values are not returned — compute them from config + state:** * Active tier config: the `tiers[]` entry where `level === collectables[key].tierLevel`; read the display name from that entry's `name`. * Remaining to next tier: `nextTier.threshold - collectables[key][options.track]`. * Money value of one point: active tier's `spend.convertto / spend.pointstoconvert`. * Stamp target: active tier's `convert.threshold` — display progress as `value`/`threshold` (e.g. 4/10). * `collect` configurations are estimates: active promotions can change the final earned amount. * `tags` / `categories` are the labels attached to the customer (`{id, name, color?}`); `color` is omitted when not set, and both are empty arrays when the customer has none. * `coupons` are the customer's redeemable coupons: redeemed coupons are excluded; coupons sent directly to the customer (not tied to a campaign) are always listed. Same item shape as [GET /v1/customers/:id/coupons](/api/list-coupons). * Optional coupon fields (`maxDiscountAmount`, `includesModifiers`, `products`, `issued`, `issuedAt`, `expiresAt`, `redeemed`, `redeemedAt`) are omitted when absent — you will not receive `null`. `type: "product"` (free product) coupons come as `discountAmount: 100, isPercent: true`; the covered products are in `products.productIds` (your external product codes). * `cards[].id` is the `card` parameter of the coupon endpoints and of [POST /v1/transactions/process](/api/process-transaction); `coupons[].id` is the `:couponId` of [redeem](/api/redeem-coupon). # Get a category Source: https://docs.brand-wallet.com/api/get-category Retrieve a single BrandWallet product category by id. ```http theme={null} GET $BASE_URL/v1/categories/{id} ``` **Returns the details of a single category.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Requesting a category that belongs to another organization returns `auth_error` (400). ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | Category id (UUID). | ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/categories/79a83256-2925-44b4-9bdc-a401caccf969" \ --header 'Authorization: Bearer ' ``` ### Response ```json theme={null} { "id": "79a83256-2925-44b4-9bdc-a401caccf969", "name": { "TR": "Espresso Bazlı", "EN": "Espresso Based" }, "description": "Espresso based drinks", "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "status": 1, "opaqueId": "espresso-based", "parent": "1e1cc0fb-55a1-4679-80df-6dccb936273f", "createdAt": "2026-09-18T09:23:28.303Z", "updatedAt": "2026-09-18T09:23:28.303Z" } ``` Notes: * An unknown or deleted (`status: -99`) id returns `entity_not_found` (400) — deleted categories cannot be read. * `name` may be a plain string or a language object; optional fields that have no value (`parent`, `description`, …) are omitted from the response — do not expect `null`. # Get a product Source: https://docs.brand-wallet.com/api/get-product Retrieve a single BrandWallet product by id. ```http theme={null} GET $BASE_URL/v1/products/{id} ``` **Returns the details of a single product.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Requesting a product that belongs to another organization returns `auth_error` (400). ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | Product id (UUID). | ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/products/1f64ec1b-445e-4762-a8c3-0d1e6d75afe6" \ --header 'Authorization: Bearer ' ``` ### Response ```json theme={null} { "id": "1f64ec1b-445e-4762-a8c3-0d1e6d75afe6", "name": { "TR": "Latte", "EN": "Latte" }, "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "categories": [], "tags": [], "price": 120, "status": 1, "sku": "LATTE-M", "opaqueId": "pos-item-9001", "createdAt": "2026-09-18T08:24:08.415Z", "updatedAt": "2026-09-18T08:24:08.415Z" } ``` Notes: * An unknown or deleted (`status: -99`) id returns `entity_not_found` (400) — deleted products cannot be read. * Optional fields that have no value are omitted from the response — do not expect `null`. # Retrieve a transaction Source: https://docs.brand-wallet.com/api/get-transaction Returns a single transaction's summary record — check its rollback state before undoing it. ```http theme={null} GET $BASE_URL/v1/transactions/:transactionId ``` **Returns one transaction's summary record. Single-resource endpoints are not wrapped in the list envelope — the object is returned directly, with the same fields as a [list](/api/list-transactions) item.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). A transaction that does not exist or belongs to another organization returns `403 auth_error`. ### Path parameters | Parameter | Type | Description | | - | - | - | | `transactionId` | string | Required. The transaction id — `transactionId` from the [process](/api/process-transaction) response, or `id` from [list](/api/list-transactions). | ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/transactions/7f1b6c20-8f2e-40d7-966f-29707f1a77b9" \ --header 'Authorization: Bearer ' ``` ### Response ```json theme={null} { "id": "7f1b6c20-8f2e-40d7-966f-29707f1a77b9", "category": "collect-stamps", "customer": "af3e927e-3d9a-4ba5-b9e9-dfb0c5ffecdd", "campaign": "345fa0bc-40a8-49be-ab14-086b483befc8", "orderId": "ORD-2026-000123", "amount": 550, "rolledBack": true, "rolledBackAt": "2026-10-08T10:37:54.745Z", "rollbackReason": "cashier cancellation", "status": 1, "createdAt": "2026-10-08T10:37:22.125Z", "updatedAt": "2026-10-08T10:37:54.745Z" } ``` Notes: * See [List all transactions](/api/list-transactions) for the field table — the shape is identical (`rolledBackAt`/`rollbackReason` appear only on rolled-back transactions). * Campaign execution traces, customer state snapshots, and the submitted payload are not returned. # Get a user Source: https://docs.brand-wallet.com/api/get-user Returns a single user of the organization your access token is scoped to, by id. ```http theme={null} GET $BASE_URL/v1/users/:id ``` **Returns a single user of your access token's organization. The shape is identical to a [List users](/api/list-users) item.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | **Required.** The user's id (UUID). | ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/users/fa000708-10f6-47ea-a35d-d3e1acbd4be5" \ --header 'Authorization: Bearer ' ``` ### Response ```json theme={null} { "id": "fa000708-10f6-47ea-a35d-d3e1acbd4be5", "fullname": "Jane Cashier", "email": "jane@example.com", "phone": "+905321112233", "status": 1, "organization": "ca5495d7-36ee-4f6d-8149-0dd082f7c745", "branch": "377ec3ad-28c8-4008-b3df-005a434dcf8b", "authBranches": ["377ec3ad-28c8-4008-b3df-005a434dcf8b"], "roles": [ { "id": "e5e94c4a-7ab7-4568-bf5d-4ea61c2300af", "code": "branch_user", "name": "Branch User" } ], "opaqueId": "pos-user-7", "createdAt": "2026-10-06T12:31:34.711Z", "updatedAt": "2026-10-06T12:32:10.618Z" } ``` Notes: * Requesting a user that does not exist returns `entity_not_found` (400); a user outside your organization returns `auth_error` (400). * `organization`, `branch` and `authBranches` are plain id strings. * Optional fields that have no value (`phone`, `branch`, `authBranches`, `opaqueId`) are omitted — you will not receive `null`. * `roles` contains only public-facing roles; internal system roles are not listed. * Credentials and internal account settings are never returned. # List all categories Source: https://docs.brand-wallet.com/api/list-categories Returns paginated product categories for the organization your access token is scoped to, with optional filters on status, opaqueId, and parent. ```http theme={null} GET $BASE_URL/v1/categories ``` **Returns the categories of your access token's organization, newest first, in the standard [list envelope](/api/pagination) (`data` + `meta`). Deleted categories are excluded.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Results are always scoped to the token's organization; you cannot see another organization's categories. ### Query parameters `limit` (default `50`, max `250`) and `cursor` follow the shared pagination contract — see [Pagination & filtering](/api/pagination). ### Filterable fields Filters combine with each other (and with the organization scope) using AND. | Field | Type | Match | Description | | - | - | - | - | | `f[status]` | number | exact / IN | Status code. Comma = IN (`f[status]=1,0`). Deleted records (`-99`) are never returned, regardless of the filter. | | `f[opaqueId]` | string | exact / IN | Your external category id (see [menu sync](/api/process-transaction#menu-synchronization-lazy-sync)). | | `f[parent]` | string | exact / IN | Parent category id — lists the direct children of a category. | > Filtering on any other field returns `invalid_filter_field` (400). A non-numeric value on a numeric field returns `invalid_filter_value` (400), and operator syntax (`f[status][gte]=1`) also returns `invalid_filter_value` — category filters do not support operators. ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/categories?f%5Bparent%5D=1e1cc0fb-55a1-4679-80df-6dccb936273f&f%5Bstatus%5D=1&limit=50" \ --header 'Authorization: Bearer ' ``` ### Response ```json theme={null} { "data": [ { "id": "79a83256-2925-44b4-9bdc-a401caccf969", "name": { "TR": "Espresso Bazlı", "EN": "Espresso Based" }, "description": "Espresso based drinks", "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "status": 1, "opaqueId": "espresso-based", "parent": "1e1cc0fb-55a1-4679-80df-6dccb936273f", "createdAt": "2026-09-18T09:23:28.303Z", "updatedAt": "2026-09-18T09:23:28.303Z" } ], "meta": { "total": 1, "limit": 50 } } ``` Notes: * `name` may be a plain string or a language object (`"STARTERS"` or `{ "TR": "…" }`) — records created through menu sync usually carry a plain string; be ready for both. * The sort order is fixed: `createdAt` descending. Pass `cursor` back exactly as received; a malformed cursor returns `invalid_cursor` (400), a `limit` outside 1–250 returns `invalid_limit` (400). * Root categories have no `parent` field at all — do not expect `null`; the same applies to other optional fields. # List coupons Source: https://docs.brand-wallet.com/api/list-coupons Return the coupons belonging to a BrandWallet customer, optionally filtered to a single wallet card. ```http theme={null} GET $BASE_URL/v1/customers/:id/coupons ``` **Returns the coupons belonging to the given customer, as a JSON array. When `card` is provided, only the coupons defined on that card are returned; otherwise all of the customer's coupons are returned.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | Customer id. | ### Query parameters | Parameter | Type | Description | | - | - | - | | `card` | string | Optional. A card id from [GET /v1/customers/find](/api/find-customer) (`cards[].id`). Filters coupons to those defined on that card; an unknown card returns `_card_not_found` (400). | ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/customers/3d8ec956-de2a-4d43-9c1e-74475b153362/coupons?card=41dd8263-288e-4b55-bf2e-6a82995a0441" \ --header 'Authorization: Bearer ' ``` ### Response Returns **200** with a JSON array; each element is one coupon instance. ```json theme={null} [ { "id": "906550fd-dcf5-4aed-a80e-03e8939fc2b4", "coupon": { "name": "10% Discount" }, "code": "500265", "type": "discount", "discountAmount": 10, "isPercent": true, "maxDiscountAmount": 25, "issuedAt": "2026-04-21T12:19:19.037Z", "expiresAt": "2026-09-09T12:14:08.511Z", "status": "active" }, { "id": "499e8e25-47e3-409c-90cd-97ee2bffe66e", "coupon": { "name": "Free Coffee Coupon" }, "code": "431825", "type": "product", "discountAmount": 100, "isPercent": true, "products": { "quantity": 1, "productIds": ["4221450", "4221453", "4221456"] }, "issuedAt": "2026-04-21T12:19:19.037Z", "status": "active" } ] ``` | Field | Type | Description | | - | - | - | | `id` | string | Coupon instance id. Use it as `:couponId` on [redeem](/api/redeem-coupon), or as `reward` on [transactions](/api/process-transaction). | | `coupon` | object | Coupon summary: `name`. | | `code` | string | Coupon code, when one is assigned. Optional. | | `type` | string | Coupon type, e.g. `discount` or `product`. Optional. | | `discountAmount` | number | Discount value; a percentage when `isPercent` is true. `product` (free product) coupons come as `100` with `isPercent: true`. Optional. | | `isPercent` | boolean | Whether `discountAmount` is a percentage. Optional. | | `maxDiscountAmount` | number | Cap for percentage discounts. Optional. | | `includesModifiers` | boolean | Whether product modifiers are included in the discount. Optional. | | `products` | object | Which products the coupon applies to: `quantity` and `productIds` (your external product codes). Present on product-scoped coupons. | | `issued` / `issuedAt` | object / string | Where (`branch`, `user`) and when (ISO 8601) the coupon was issued. Optional. | | `redeemed` / `redeemedAt` | object / string | Where and when the coupon was redeemed. Present on redeemed coupons. | | `expiresAt` | string | Expiry time (ISO 8601). Optional. | | `status` | string | One of `active`, `redeemed`, `disabled`. | Notes: * Optional fields that have no value are omitted — you will not receive `null`. # List all customers Source: https://docs.brand-wallet.com/api/list-customers Returns paginated customers for the organization your access token is scoped to, with optional filters on email, phone, status, and opaqueId. ```http theme={null} GET $BASE_URL/v1/customers ``` **Returns the customers associated with your access token's organization, newest first, in the standard [list envelope](/api/pagination) (`data` + `meta`). Deleted customers are excluded.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). ### Query parameters `limit` (default `50`, max `250`) and `cursor` follow the shared pagination contract — see [Pagination & filtering](/api/pagination). ### Filterable fields Filters combine with each other (and with the organization scope) using AND. | Field | Type | Match | Description | | - | - | - | - | | `f[data.email]` | string | contains (min 5) | Case-insensitive substring match on the customer's email. | | `f[data.phone]` | string | contains (min 5) | Case-insensitive substring match on the customer's phone. | | `f[status]` | number | exact / IN | Status code. Comma = IN (`f[status]=1,2`). | | `f[opaqueId]` | string | exact / IN | External identifier assigned to the customer. Comma = IN. | > In `contains` filters the comma is searched literally, and values below the minimum length return `invalid_filter_value` (400). Filtering on any other field returns `invalid_filter_field` (400). ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/customers?f%5Bdata.phone%5D=531951&limit=2" \ --header 'Authorization: Bearer ' ``` ### Response ```json theme={null} { "data": [ { "id": "af3e927e-3d9a-4ba5-b9e9-dfb0c5ffecdd", "data": { "fullname": "Jane Doe", "phone": "+905319512211", "email": "jane@example.com" }, "collectables": { "point_MMSR5": { "value": 1000, "total": 2760 } }, "consents": { "privacy_policy": true }, "opaqueId": null, "status": 1, "createdAt": "2026-07-24T12:56:03.702Z", "updatedAt": "2026-07-30T15:13:29.054Z" } ], "meta": { "total": 1, "limit": 2 } } ``` Notes: * `meta.total` is the total record count for the current filter, independent of paging position; `meta.cursor` is the paging token for the next page and is omitted on the last page. * List items do not include the customer's `cards` and `coupons`. Use [GET /v1/customers/find](/api/find-customer) to load a single customer with cards and active coupons. * Optional fields that have no value are omitted — you will not receive `null`. Exception: `opaqueId` is `null` when not assigned. * Use `collectables` to display loyalty balances (points, stamps) on your screen; avoid storing this data locally — BrandWallet is the single source of truth for loyalty data. # List all products Source: https://docs.brand-wallet.com/api/list-products Returns paginated products for the organization your access token is scoped to, with optional filters on status, sku, barcode, opaqueId, categories, and price. ```http theme={null} GET $BASE_URL/v1/products ``` **Returns the products of your access token's organization, newest first, in the standard [list envelope](/api/pagination) (`data` + `meta`). Deleted products are excluded.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Results are always scoped to the token's organization; you cannot see another organization's products. ### Query parameters `limit` (default `50`, max `250`) and `cursor` follow the shared pagination contract — see [Pagination & filtering](/api/pagination). ### Filterable fields Filters combine with each other (and with the organization scope) using AND. | Field | Type | Match | Description | | - | - | - | - | | `f[status]` | number | exact / IN | Status code. Comma = IN (`f[status]=1,0`). Deleted records (`-99`) are never returned, regardless of the filter. | | `f[sku]` | string | exact / IN | Stock keeping unit. | | `f[barcode]` | string | exact / IN | Product barcode. | | `f[opaqueId]` | string | exact / IN | Your external product id (see [menu sync](/api/process-transaction#menu-synchronization-lazy-sync)). | | `f[categories]` | string | exact / IN | Category id — matches when the id is present in the product's category list. | | `f[price]` | number | exact / IN + operators | Price. Operator syntax is supported: `f[price][gte]=100` (allowed operators: `gt`, `gte`, `lt`, `lte`). | > Filtering on any other field returns `invalid_filter_field` (400). A non-numeric value on a numeric field returns `invalid_filter_value` (400); operator syntax on fields other than `price` returns `invalid_filter_value`, and an unknown operator name returns `invalid_filter_op` (400). ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/products?f%5Bstatus%5D=1&f%5Bprice%5D%5Bgte%5D=100&limit=50" \ --header 'Authorization: Bearer ' ``` ### Response ```json theme={null} { "data": [ { "id": "1f64ec1b-445e-4762-a8c3-0d1e6d75afe6", "name": { "TR": "Latte", "EN": "Latte" }, "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "categories": [], "tags": [], "price": 120, "status": 1, "sku": "LATTE-M", "opaqueId": "pos-item-9001", "createdAt": "2026-09-18T08:24:08.415Z", "updatedAt": "2026-09-18T08:24:08.415Z" } ], "meta": { "total": 1, "limit": 50, "cursor": "eyJ0IjoiMjAyNi0wOS0uLi4" } } ``` Notes: * The sort order is fixed: `createdAt` descending (newest first). Pass `cursor` back exactly as received — do not parse it; a malformed cursor returns `invalid_cursor` (400), a `limit` outside 1–250 returns `invalid_limit` (400). * `meta.total` counts the whole filtered set, independent of paging position; `meta.cursor` is only present when there is a next page. * Optional fields that have no value (`barcode`, `description`, …) are omitted from the response — you will not receive `null`. # List all transactions Source: https://docs.brand-wallet.com/api/list-transactions Returns paginated transactions for the organization your access token is scoped to, with optional filters on customer, campaign, category, orderId, and rollback state. ```http theme={null} GET $BASE_URL/v1/transactions ``` **Returns the transactions of your access token's organization, newest first, in the standard [list envelope](/api/pagination) (`data` + `meta`). Use it to look up a transaction to [roll back](/api/rollback-transaction) or to reconcile your order history. Deleted transactions are excluded.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). ### Query parameters `limit` (default `50`, max `250`) and `cursor` follow the shared pagination contract — see [Pagination & filtering](/api/pagination). ### Filterable fields Filters combine with each other (and with the organization scope) using AND. | Field | Type | Match | Description | | - | - | - | - | | `f[customer]` | string | exact / IN | Customer id. Comma = IN. | | `f[campaign]` | string | exact / IN | Campaign id. | | `f[category]` | string | exact / IN | Transaction category: `collect-stamps`, `collect-points`, `redeem-coupon`, `apply-discount`, `membership-action`, … | | `f[orderId]` | string | exact / IN | The idempotency key you sent on [process](/api/process-transaction). | | `f[rolledBack]` | boolean | exact | `true` / `false` — rolled-back transactions. | | `f[status]` | number | exact / IN | Status code. | > Filtering on any other field returns `invalid_filter_field` (400) with the allowed list in the description. ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/transactions?f%5Bcustomer%5D=af3e927e-3d9a-4ba5-b9e9-dfb0c5ffecdd&f%5BrolledBack%5D=false&limit=2" \ --header 'Authorization: Bearer ' ``` ### Response ```json theme={null} { "data": [ { "id": "7f1b6c20-8f2e-40d7-966f-29707f1a77b9", "category": "collect-stamps", "customer": "af3e927e-3d9a-4ba5-b9e9-dfb0c5ffecdd", "campaign": "345fa0bc-40a8-49be-ab14-086b483befc8", "orderId": "ORD-2026-000123", "amount": 550, "rolledBack": false, "status": 1, "createdAt": "2026-10-08T10:37:22.125Z", "updatedAt": "2026-10-08T10:37:22.125Z" } ], "meta": { "total": 13, "limit": 2, "cursor": "eyJ0IjoiMjAyNi0xMC0wOFQwOToyMDowMi43MDVaIiwi…" } } ``` List item fields: | Field | Type | Description | | - | - | - | | `id` | string | Transaction id — pass it to [get](/api/get-transaction) and [rollback](/api/rollback-transaction). | | `category` | string | Transaction category (`collect-stamps`, `redeem-coupon`, …). | | `customer` | string | Customer id. | | `campaign` | string | Campaign id. Omitted on `redeem-coupon` transactions (they are not tied to a campaign). | | `orderId` | string | The idempotency key sent on process; omitted when none was sent. | | `amount` | number | The register total submitted with the transaction; omitted when none applies. | | `rolledBack` | boolean | Whether the transaction has been rolled back. | | `rolledBackAt` | string | When it was rolled back (only on rolled-back transactions). | | `rollbackReason` | string | The `reason` sent with the rollback, when one was given. | | `status` | number | Record status. | | `createdAt` / `updatedAt` | string | Timestamps. | Notes: * List items are a **summary shape**: campaign execution traces, customer state snapshots, and the submitted payload are not returned. * Optional fields that have no value are omitted — you will not receive `null`. * `meta.total` is the total record count for the current filter; `meta.cursor` is the paging token for the next page and is omitted on the last page. # List all users Source: https://docs.brand-wallet.com/api/list-users Returns paginated users for the organization your access token is scoped to, with optional filters on email, phone, status, role, and branch. ```http theme={null} GET $BASE_URL/v1/users ``` **Returns the users (team members and API users) of your access token's organization, newest first, in the standard [list envelope](/api/pagination) (`data` + `meta`). Deleted users are excluded.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). ### Query parameters `limit` (default `50`, max `250`) and `cursor` follow the shared pagination contract — see [Pagination & filtering](/api/pagination). ### Filterable fields Filters combine with each other (and with the organization scope) using AND. | Field | Type | Match | Description | | - | - | - | - | | `f[status]` | number | exact / IN | Status code (`1` = active). Comma = IN (`f[status]=1,-1`). | | `f[email]` | string | contains (min 3) | Case-insensitive substring match on the user's email. | | `f[phone]` | string | contains (min 3) | Case-insensitive substring match on the user's phone. | | `f[roles]` | string | exact / IN | Role id — users holding that role. | | `f[branch]` | string | exact / IN | Branch id — users assigned to that branch. | | `f[opaqueId]` | string | exact / IN | External identifier assigned to the user. Comma = IN. | > In `contains` filters the comma is searched literally, and values below the minimum length return `invalid_filter_value` (400). Filtering on any other field returns `invalid_filter_field` (400). ### Example ```bash theme={null} curl --request GET \ --url "$BASE_URL/v1/users?f%5Bstatus%5D=1&limit=50" \ --header 'Authorization: Bearer ' ``` ### Response ```json theme={null} { "data": [ { "id": "fa000708-10f6-47ea-a35d-d3e1acbd4be5", "fullname": "Jane Cashier", "email": "jane@example.com", "phone": "+905321112233", "status": 1, "organization": "ca5495d7-36ee-4f6d-8149-0dd082f7c745", "branch": "377ec3ad-28c8-4008-b3df-005a434dcf8b", "authBranches": ["377ec3ad-28c8-4008-b3df-005a434dcf8b"], "roles": [ { "id": "e5e94c4a-7ab7-4568-bf5d-4ea61c2300af", "code": "branch_user", "name": "Branch User" } ], "opaqueId": "pos-user-7", "createdAt": "2026-10-06T12:31:34.711Z", "updatedAt": "2026-10-06T12:32:10.618Z" } ], "meta": { "total": 4, "limit": 50 } } ``` Notes: * `meta.total` is the total record count for the current filter, independent of paging position; `meta.cursor` is the paging token for the next page and is omitted on the last page. * `organization`, `branch` and `authBranches` are plain id strings. * Optional fields that have no value (`phone`, `branch`, `authBranches`, `opaqueId`) are omitted — you will not receive `null`. * `roles` contains only public-facing roles; internal system roles are not listed, so an empty `roles` array does not mean the user has no role. * Credentials and internal account settings are never returned. * Use [GET /v1/users/:id](/api/get-user) to load a single user. # How to use BrandWallet API Source: https://docs.brand-wallet.com/api/overview BrandWallet's REST API lets your system look up customers, list and redeem coupons, and process transactions with loyalty campaigns and rewards. BrandWallet provides a REST API for any organization that wants to integrate with its loyalty platform — POS systems, e-commerce platforms, mobile apps, and other partners. The API lets you look up customers, apply loyalty rewards, redeem coupons, and process basket transactions — giving your system a direct connection to BrandWallet's loyalty engine in real time. ## Core resources The API works with three main resources. In particular, **customers and users are separate entities** — don't mix them up: | Resource | Who / what it is | | - | - | | [Customer](/api/customer-object) | The merchant's **end consumer** — the person who shops at the brand, carries its wallet card (QR code), and collects loyalty rewards. | | [User](/api/user-object) | A member of the merchant organization's **team** — owner, brand manager, branch manager, cashier — or an API account acting on its behalf. | | [Transaction](/api/transaction-object) | A processed basket: the purchase you submit and the loyalty actions (rewards, discounts, redemptions) executed on it. | ## API basics | Property | Value | | - | - | | Base URL — production | `https://apigw.brand-wallet.com` | | Base URL — sandbox | `https://dev-apigw.brand-wallet.com` | | Content-Type | `application/json` | | Authorization | `Authorization: Bearer ` | | Field naming | camelCase | > Access tokens are scoped to a single organization — all API calls made with a given token operate on that organization's data only. > Code examples across this documentation use `$BASE_URL` as a placeholder — replace it with the base URL of the environment you are targeting (production or sandbox, listed above). Use the **sandbox** environment to build and test your integration; sandbox credentials and data are separate from production. Switching to production only requires changing the base URL and the credentials. ## Credentials You need two credentials to authenticate API requests: * **API key** — Identifies your integration. Issued once and shared across all merchants you connect. * **API secret** — Identifies the merchant organization. You receive one per merchant during their onboarding. See [Authentication](/api/authentication) for how to exchange them for an access token. ## Multi-tenant architecture BrandWallet is a multi-tenant system. Your API key remains the same across all merchants you connect; each merchant has its own API secret. Because each access token is scoped to a single organization, your integration must request and store a separate access token for every merchant organization it connects to. Treat each organization's token independently — do not share tokens across merchants. # Pagination & Filtering Source: https://docs.brand-wallet.com/api/pagination Learn how BrandWallet list endpoints return paged results and how to filter the results with a filter query. **All top-level API resources support bulk fetches through list endpoints. Lists return a common envelope — records in `data`, paging information in `meta`. Single-resource and action endpoints return the object directly, without an envelope.** ```json theme={null} { "data": [ { "…": "…" } ], "meta": { "total": 1240, "limit": 50, "cursor": "eyJ0IjoiMjAyNi0wNy0yNFQxMjo1NjowMy43MDJaIi..." } } ``` ### Pagination parameters | Parameter | Type | Description | | - | - | - | | `limit` | number | Page size. Defaults to `50`, maximum `250`. | | `cursor` | string | Opaque paging token. When a response includes `meta.cursor`, pass it back as `?cursor=` to fetch the next page. When `meta.cursor` is absent, you are on the last page. | `meta.total` is the total record count for the current filter, independent of paging position. ### Filtering Filters use the `f[field]=value` query syntax. Each list endpoint documents its own **filterable fields**; an unknown field is rejected with `invalid_filter_field` (the error's description lists the allowed fields). * **Exact match:** `f[status]=1`. Comma means IN: `f[status]=1,2`. * **Contains match:** text fields like `f[data.phone]=531951` match case-insensitively anywhere in the value, with a minimum term length per field. The comma is searched literally in contains fields. * **Combining:** multiple `f[...]` params are **AND**ed together, and can be mixed with `limit` / `cursor`. ### Example ```bash theme={null} curl "$BASE_URL/v1/customers?f%5Bstatus%5D=1&f%5Bdata.phone%5D=531951&limit=50" \ --header 'Authorization: Bearer ACCESS_TOKEN' ``` ```bash theme={null} # Next page curl "$BASE_URL/v1/customers?f%5Bstatus%5D=1&cursor=eyJ0IjoiMjAyNi0wNy0yNFQx..." \ --header 'Authorization: Bearer ACCESS_TOKEN' ``` ### Filter errors | Token | Status | Meaning | | - | - | - | | `invalid_filter_field` | 400 | The `f[...]` field is not filterable on this endpoint. The description lists the allowed fields. | | `invalid_filter_value` | 400 | The filter value is malformed (wrong type, empty, or below the minimum term length). | | `invalid_limit` | 400 | `limit` is not an integer between 1 and 250. | | `invalid_cursor` | 400 | `cursor` is not a cursor returned in `meta`. | See the complete [Error Reference](/api/errors). # Process a transaction Source: https://docs.brand-wallet.com/api/process-transaction Commit a basket transaction for a BrandWallet customer's card: run campaigns, redeem coupons, and deduct spent points in a single call. ```http theme={null} POST $BASE_URL/v1/transactions/process ``` **Commits a transaction for the selected `card`. Three things can happen, individually or together: applicable campaigns run (balances update, reward coupons are granted at thresholds), `redeem.coupons` are redeemed, and `redeem.points` are deducted from the card's point balance.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). A transaction must do at least one thing (collection, coupon redemption, or point spend); otherwise it fails with `400 invalid_transaction`. All validations (coupon validity, point balance) run **before** any side effect — a request that returns an error changes no balances and redeems no coupons. ### Payload schema ```json theme={null} { "customer": "3d8ec956-de2a-4d43-9c1e-74475b153362", "card": "41dd8263-288e-4b55-bf2e-6a82995a0441", "user": "usr-ext-1042", "branch": "brn-ext-07", "items": [ { "id": "4221450", "name": "Americano", "quantity": 4, "amount": 140, "productPrice": 150, "categories": [ { "id": "cat-31", "name": "Hot Drinks" } ] } ], "amount": 550, "orderId": "ORD-2026-000123", "redeem": { "coupons": [ { "id": "2f19b6ba-e7f8-4dd5-b328-cbfabc08e412", "productOpaqueId": "4221450", "quantity": 1 } ], "points": 120 } } ``` Field reference: [Body](#body). The sections below explain the behaviors behind these fields. ### Idempotency (`orderId`) Send your own order/transaction id in the optional `orderId` field to protect against double submission (POS retries, double clicks, retries after a network timeout). If a completed transaction with the same `orderId` already exists, the request is rejected with `400 duplicate_transaction` **without any side effects** — treat that response as "already processed". * `orderId` is an opaque id you generate; the format is up to you, but it must be unique per transaction. * When sent, it must not be an empty string. * If you do not send it, there is no duplicate protection: after a timeout, verify whether the transaction went through before retrying. ### Order discounts (promotions) The brand can configure promotions that discount the current order (for example "20% off for university students"). When one applies, the discount is computed server-side: it appears in `executedPromotions` (actionType `apply_discount`) with its amount, the total comes back in `discountAmount`, and it is already deducted from `payableAmount`. * Always send the **gross** `amount` — never deduct `discountAmount` yourself, and never send a discounted amount back on process after a validate (that would discount twice; the optional `expectedPayableAmount` check catches this mistake). * On the receipt, model the discount as a loyalty line outside your subtotal (like a loyalty tender) — the same way the spent-points value is handled. ### Menu synchronization (lazy sync) The product and category information you send in `items[]` is automatically synchronized with your BrandWallet catalog — no separate product upload step; your menu stays current as transactions flow: * **If the product does not exist** in BrandWallet (`items[].id` does not match) and `name` is sent, the product is created with `name`/`productPrice`/`categories`; product- and category-filtered campaigns match from the very first transaction. Without `name`, no product is created and the line is processed as-is. * **If the product exists**, it is updated when the `name` or `productPrice` you send differs — your system is the menu's source of truth. If you omit `productPrice`, the product's price is left untouched. * The product price is synced **only from `productPrice`**; the line amount `items[].amount` (which may reflect discounts) is never written onto the product price. * **If `categories` is sent**, the product's category assignment is **replaced** with that list. If you omit the field, the existing assignment is untouched. * **If a category does not exist**, it is created from `categories[].name`; without `name`, no category is created and the product is processed without it. * A sync failure never fails the transaction; the line falls back to legacy behavior (matched by `name`/`id`). > To benefit from lazy sync, send at least `id` + `name` on lines and `id` + `name` on categories; include `productPrice` to keep product prices current. ### Cashier & branch synchronization (lazy sync) `user` and `branch` take two forms: a **string** (the opaque id, resolved against already-synced records) or an **object** that is lazily synchronized the same way as `items[]` — no separate user/branch upload step: ```json theme={null} { "user": { "id": "usr-ext-1042", "name": "Jane Cashier", "email": "jane@example.com", "phone": "+905551234567" }, "branch": { "id": "brn-ext-07", "name": "Downtown Store", "phone": "+902121234567", "address": "12 Main St, Istanbul" } } ``` * **If the record does not exist** and `name` is sent, it is created: the branch with its `name`/`phone`/`address`, the cashier as a branch-level user bound to the resolved branch. Without `name`, nothing is created and the request fails with `invalid_user` / `invalid_branch`. * **If the record exists**, incoming fields that differ are updated (`name`/`phone` on the user; `name`/`phone`/`address` on the branch) — your system is the source of truth. The user's `email` is used **only at creation** and never updated afterwards; when omitted, an address derived from your id is assigned. * String form behavior is unchanged: an unknown opaque id fails with `invalid_user` / `invalid_branch`. * A value that is neither a string nor an object fails with `400 _invalid_user_payload` / `_invalid_branch_payload`. ### Coupon redemption & product link (`redeem.coupons`) Coupons to redeem are sent as objects. For a **product coupon** (e.g. a free-coffee coupon), tell BrandWallet which product it was used for with `productOpaqueId` (+ `quantity`, default 1): ```json theme={null} "redeem": { "coupons": [ { "id": "2f19b6ba-e7f8-4dd5-b328-cbfabc08e412" }, { "id": "906550fd-dcf5-4aed-a80e-03e8939fc2b4", "productOpaqueId": "4221450", "quantity": 1 } ], "points": 120 } ``` * `id` is required; `productOpaqueId`/`quantity` are optional and only meaningful for product coupons — leave them out for coupons that are not tied to a product (e.g. a percentage-discount coupon). * The product link is **recorded**: on the coupon itself, in the transaction, and echoed back in the response's `redeemed.coupons` — so you (and the brand) can see which product each coupon was spent on. * The product **does not have to be in `items[]`** (some POS systems don't send the coupon-covered line at all). When it *is* in `items[]`, the coupon-covered quantity is **excluded from earning**: a free product does not collect stamps or points. * An unknown `productOpaqueId` never blocks the redemption — the link is simply recorded as-is. ### Product-filtered campaigns A campaign action can be configured with a product filter (only certain products or categories earn). In that case the **earning base** is computed from the matching `items[]` lines only: stamps count the matching quantities, and points/discounts are computed from the matching lines' totals (`quantity` × `amount`). Payment math is unaffected — point spend and `payableAmount` are always based on the root `amount`. Send complete `items[]` lines (with `quantity` and the line `amount`) for these campaigns to work correctly. ### Direct collectable write (`collectables`) — escape hatch > **Avoid this unless you have to.** The normal flow is `amount`/`items` based: campaign rules compute what is earned, and statistics and tier counters advance correctly. `collectables` bypasses that computation entirely and adds straight onto the balance — it exists only for cases where skipping the campaign math is intentional, such as migrations or manual corrections. Put a `collectables` object in the payload to add a value directly to one of the card's collectables: ```json theme={null} { "customer": "3d8ec956-de2a-4d43-9c1e-74475b153362", "card": "41dd8263-288e-4b55-bf2e-6a82995a0441", "amount": 0, "orderId": "FIX-2026-0042", "collectables": { "stamp_PESVB": 2 } } ``` * The **key** is the collectable key of the card's campaign (e.g. `stamp_PESVB`, `point_X7K2M`) — visible in the `collectables` object of the [GET /v1/customers/find](/api/find-customer) response. The **value** is a positive number: a stamp count for stamp cards, a point amount for point cards; it is applied **as-is** instead of the campaign calculation and written verbatim into the transaction's incoming data. * The value is a **delta, it does not set the balance**: sending `{"stamp_PESVB": 2}` for a customer who has 5 stamps results in 7 — it adds 2 stamps, it does not set the balance to 2. * Cannot be combined with `items` → `400 _collectables_with_items`; cannot be combined with `redeem` → `400 _collectables_with_redeem`. * `amount` is still required — send `"amount": 0` when you only want to write a collectable. With `amount > 0`, other amount-driven actions (e.g. discounts) still run normally. * Threshold conversion works normally (a reward coupon is granted when the threshold is reached), but tier/statistics counters (`totalAmount`) do **not** advance through this path. * A key that matches no campaign action on the card fails with `400 invalid_transaction`; an invalid value (non-positive or non-numeric) or a reserved key fails with `400 invalid_collectables`. * Preview it the same way with [POST /v1/transactions/validate](/api/validate-transaction). ### Body | Field | Type | Description | | - | - | - | | `customer` | string | Required. Customer id (from [GET /v1/customers/find](/api/find-customer)). | | `card` | string | Required. The selected card's id (`find` → `cards[].id`) — a card id, **not a campaign id**. The campaigns run come from this card; `400 card_not_found` when it does not belong to the customer. | | `amount` | number | Required. The register total: all of **your own** discounts (commercial + coupon) already deducted; BrandWallet-applied deductions (order discounts from promotions, points) **not** deducted — those are applied server-side, and the amount to charge is `payableAmount` in the response. Never send a previous response's discounted amount back as `amount`. | | `orderId` | string | Optional. Opaque idempotency key — your order/transaction id. `400 duplicate_transaction` when a completed transaction with the same `orderId` exists; must not be empty when sent. | | `expectedPayableAmount` | number | Optional safety check. Echo the `payableAmount` you received from [validate](/api/validate-transaction); if the server's own calculation differs (the body changed, or promotion state changed between the two calls), the request fails with `400 payable_amount_mismatch` **without any side effects**. | | `user` / `branch` | string \| object | Optional. Cashier user / branch — as a string, the **opaque id** (your external identifier); as an object (`user: {id, name?, email?, phone?}`, `branch: {id, name?, phone?, address?}`), lazily created/updated like `items[]` (see Cashier & branch synchronization). Default to the authenticated API user and its branch. | | `items` | array | Basket lines (fields below) — used for product-based campaign matching (stamp counting, and the earning base of product-filtered campaigns) and menu sync; line amounts are not validated against `amount`. | | `redeem` | object | Coupons and points to spend on this order (fields below). | | `collectables` | object | **Escape hatch — avoid unless necessary.** `{"": amount}` — bypasses the campaign calculation and **adds** the value onto the balance (a delta, not a set; see Direct collectable write above). Cannot be combined with `items` or `redeem`. | `redeem` fields: | Field | Type | Description | | - | - | - | | `coupons` | array | Coupons to redeem (fields below). | | `points` | number | Points to spend from the card's balance; the monetary value is calculated server-side and reflected in `payableAmount`. | `redeem.coupons[]` fields: | Field | Type | Description | | - | - | - | | `id` | string | Required. Coupon instance id to redeem (`find` → `coupons[].id`). | | `productOpaqueId` | string | Optional. For product coupons: the product the coupon was used for (same id space as `items[].id`; the product does not have to be in `items[]`). Recorded on the coupon and the transaction; when the product is also in `items[]`, the coupon-covered quantity is excluded from earning. | | `quantity` | number | Optional. Quantity covered by the coupon (default 1). | `items[]` fields: | Field | Type | Description | | - | - | - | | `id` | string | Required. Product **opaque id** (your identifier). If unknown to BrandWallet and `name` is sent, the product is created automatically (see Menu synchronization). | | `quantity` | number | Line quantity. | | `amount` | number | Line unit amount (may reflect discounts) — never enters payment math (the money truth is the root `amount`); used as campaign condition input. | | `productPrice` | number | The product's list price — used **only** by menu sync to create/update the product's price; never enters transaction math. | | `name` | string | Product name — synced onto the product; required for the product to be auto-created. | | `categories` | array | The product's categories (fields below) — when sent, the product's category assignment is replaced with this list. | `items[].categories[]` fields: | Field | Type | Description | | - | - | - | | `id` | string | Required. Category **opaque id** (your identifier); auto-created with `name` when unknown. | | `name` | string | Category name — synced onto the category; required for the category to be auto-created. | ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/transactions/process" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "customer": "3d8ec956-de2a-4d43-9c1e-74475b153362", "card": "41dd8263-288e-4b55-bf2e-6a82995a0441", "items": [ { "id": "4221450", "name": "Americano", "quantity": 4, "amount": 140, "productPrice": 150 } ], "amount": 550, "orderId": "ORD-2026-000123", "redeem": { "points": 120 } }' ``` ### Response Returns **200** with a summary of what the transaction did. `message` is a human-readable summary and always ends with the amount to charge (`Amount to pay: X`); read the amount structurally from `payableAmount`, do not parse the message. ```json theme={null} { "transactionId": "7f1b6c20-8f2e-40d7-966f-29707f1a77b9", "message": "You collected 4 stamps, earned a Free Coffee coupon. Amount to pay: 538", "executedActions": [ { "actionName": "collect-stamps", "transactionCategory": "collect-stamps", "netCollected": 4, "previousCollectableValue": 3, "result": { "value": 2, "total": 12 }, "rewards": ["2f19b6ba-e7f8-4dd5-b328-cbfabc08e412"], "milestones": [ { "label": "10th purchase gift", "threshold": 10, "track": "total", "type": "issue-coupon", "triggerCount": 1, "result": [{ "_id": "7c2f4e1a-93bd-4f0e-8a34-5b7f2d9c6e10" }] } ] } ], "executedPromotions": [ { "promotion": "b34466d6-4e79-4523-aaf4-beaa672b3b8c", "name": "Weekend double coupon", "actionType": "issue_coupon", "coupons": [ { "_id": "5d8a1c2e-40f7-4b6a-9e21-3c9b8f7a6d54", "coupon": "9a417359-a02c-4a4a-8f4a-c31a24f0b0c5", "code": "WKND-4821" } ] } ], "amount": 550, "discountAmount": 0, "payableAmount": 538, "redeemed": { "couponIds": ["2f19b6ba-e7f8-4dd5-b328-cbfabc08e412"], "coupons": [ { "id": "2f19b6ba-e7f8-4dd5-b328-cbfabc08e412", "product": { "opaqueId": "4221450", "name": "Americano", "quantity": 1 } } ], "autoAppliedCouponIds": [], "points": 120, "pointsValue": 12 } } ``` | Field | Type | Description | | - | - | - | | `transactionId` | string | Id of the committed transaction — pass it to [POST /v1/transactions/:transactionId/rollback](/api/rollback-transaction) to undo the transaction. Not returned by `validate` (a dry-run writes no transaction). | | `transactionIds` | string\[] | Returned only when the card ran more than one campaign: all transaction ids written, in run order (`transactionId` is the first). Roll them back in **reverse** order. | | `message` | string | Transaction summary; always ends with `Amount to pay: X`. | | `executedActions` | array | Campaign actions executed in this transaction. | | `executedActions[].actionName` | string | Name of the campaign action, e.g. `collect-stamps`. | | `executedActions[].transactionCategory` | string | Transaction category the action belongs to. | | `executedActions[].netCollected` | number | Amount collected by this action in the current transaction. | | `executedActions[].previousCollectableValue` | number | Collectable value before the action ran. | | `executedActions[].result` | object | Updated state: `value` (current balance — reset on threshold conversion) and `total` (lifetime total). | | `executedActions[].rewards` | string\[] | Coupon instance ids granted when a threshold was reached. | | `executedActions[].milestones` | array | Milestone crossings triggered in this transaction: `{label, threshold, track, type, triggerCount, result}`. Empty when the campaign defines no milestones. | | `executedPromotions` | array | Promotions applied in this transaction (omitted when none): `{promotion, name, actionType, ...}` — e.g. an `issue_coupon` promotion lists the granted coupons, a `modify_calculator` promotion lists the applied modifiers, and an `apply_discount` promotion carries the order discount it applied (`discount` config + `amount`). | | `amount` | number | The register total from the request. | | `discountAmount` | number | Total discount BrandWallet applied to this order (discount campaign actions + `apply_discount` promotions); `0` when none. | | `payableAmount` | number | **The amount to charge**: `amount` − `discountAmount` − the monetary value of spent points. | | `redeemed` | object | `couponIds` (redeemed coupons, including auto-applied ones), `coupons` (echo of the requested coupons with their resolved `product` link, when one was sent), `autoAppliedCouponIds` (the subset redeemed automatically as auto-apply coupons), `points` (points spent), `pointsValue` (their monetary value). | Notes: * Optional response fields are omitted when they have no value (field absence instead of `null`). * Coupon ids returned in `rewards` are added to the customer's coupon list and can be redeemed via `redeem.coupons` in later transactions. * Possible **400** errors: `invalid_customer`, `invalid_user`, `invalid_branch`, `card_not_found`, `no_applicable_campaign`, `invalid_transaction`, `point_campaign_not_found` (`redeem.points` sent but the card's campaign has no point spend), `insufficient_collectable_balance`, `invalid_points_to_spend`, `invalid_amount_value` (point value exceeds `amount`), `invalid_coupon`, `coupon_is_not_valid`, `duplicate_transaction`, `payable_amount_mismatch` (only when `expectedPayableAmount` is sent and differs from the server's calculation — nothing is committed), `_collectables_with_items` / `_collectables_with_redeem` (`collectables` combined with `items`/`redeem`), `invalid_collectables` (invalid `collectables` key or value), `_invalid_user_payload` / `_invalid_branch_payload` (`user`/`branch` is neither a string nor an object). * Upstream failures can return **502** (`_core_api_internal_error` / `_core_api_timeout`). If you send `orderId`, retrying with the same `orderId` is safe: you get `400 duplicate_transaction` when the transaction already went through. * Preview the whole transaction before committing with [POST /v1/transactions/validate](/api/validate-transaction): the same body and the same response shape, computed as a dry-run with nothing committed. * To undo a committed transaction (cancelled order, cashier mistake), call [POST /v1/transactions/:transactionId/rollback](/api/rollback-transaction) with the returned `transactionId`. # Redeem a coupon Source: https://docs.brand-wallet.com/api/redeem-coupon Mark a BrandWallet coupon as redeemed and return the updated coupon. ```http theme={null} POST $BASE_URL/v1/customers/:id/coupons/:couponId/redeem ``` **Marks the given coupon as redeemed and returns the updated coupon. All body fields are optional and carry opaque ids (your external system identifiers), resolved to internal references on our side.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Payload schema: ```json theme={null} { "user": "usr-ext-1042", // optional — cashier user opaque id "branch": "9bb88786-6df3-4d16-b4dd-e89b43e8b2b5", // optional — branch opaque id "products": ["4221450", "4221453"] // optional — product opaque ids in the redemption } ``` ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | Customer id. | | `couponId` | string | Coupon instance id (from [GET /v1/customers/:id/coupons](/api/list-coupons)). | ### Body | Field | Type | Description | | - | - | - | | `user` | string | Optional. Cashier user opaque id. When omitted, the authenticated API user is recorded as the redeeming user. | | `branch` | string | Optional. Branch opaque id. When omitted, the authenticated user's branch is used. | | `products` | string\[] | Optional. Product opaque ids included in the redemption. | ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/customers/3d8ec956-de2a-4d43-9c1e-74475b153362/coupons/906550fd-dcf5-4aed-a80e-03e8939fc2b4/redeem" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "branch": "9bb88786-6df3-4d16-b4dd-e89b43e8b2b5" }' ``` ### Response Returns **200** with the updated coupon; `status` is now `redeemed`. ```json theme={null} { "id": "906550fd-dcf5-4aed-a80e-03e8939fc2b4", "coupon": { "name": "Free Coffee Coupon" }, "code": "500265", "issuedAt": "2026-04-21T12:19:19.037Z", "expiresAt": "2026-09-09T12:14:08.511Z", "redeemed": { "branch": "9bb88786-6df3-4d16-b4dd-e89b43e8b2b5", "user": "4eeb2186-7ca7-4a45-81e1-1616480975d6" }, "redeemedAt": "2026-08-04T10:00:00.000Z", "status": "redeemed" } ``` Notes: * Redeeming an already redeemed, expired, or disabled coupon returns `_coupon_is_not_valid` (400). * A coupon can also be redeemed as part of a basket by passing its id in `reward` on [POST /v1/transactions/process](/api/process-transaction). # Register a customer Source: https://docs.brand-wallet.com/api/register-customer Register a new or existing BrandWallet customer into a campaign, creating their wallet card and loyalty balances. ```http theme={null} POST $BASE_URL/v1/customers/register ``` **Registers a customer into a campaign: opens a wallet card (with barcode) and initializes the campaign's loyalty balances. `customer` takes two forms: pass a customer id as a string to register an existing customer, or pass an object to create the customer and register them in one step. The returned `cards[].id` is used directly as `card` on [POST /v1/transactions/process](/api/process-transaction).** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Missing or invalid token returns **401**; an organization without an active subscription returns `invalid_subscription` (**403**). Payload schema — existing-customer mode (`customer` is the customer's id): ```json theme={null} { "campaignId": "14c5a0ed-537e-400c-8463-e72bf277f600", // required — the campaign to register into "customer": "9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e" // the existing customer's id } ``` New-customer mode (`customer` is a create model): ```json theme={null} { "campaignId": "14c5a0ed-537e-400c-8463-e72bf277f600", "customer": { "data": { // required — same model as Create "phone": "+905551234567", "email": "jane@example.com", "fullname": "Jane Doe" }, "metaData": { "source": "pos" }, // optional "consents": { "marketing": true | false }, // optional "opaqueId": "ext-cust-10432" // optional } } ``` ### Body | Field | Type | Description | | - | - | - | | `campaignId` | string | Required. The campaign to register the customer into (provided during onboarding, or from your campaign setup). Returns `invalid_campaign` (400) when no published campaign matches. | | `customer` | string \| object | Required. **String:** the id of an existing customer — the customer is registered into the campaign and their profile is not modified; returns `customer_not_found` (400) when the id does not match a customer of your organization. **Object:** a create model — a new customer is created and registered. Any other value returns `invalid_customer_payload` (400). | | `customer.data` | object | Required in object mode (otherwise `customer_data_required`, 400). Same model and validations as [Create](/api/create-customer) — `invalid_phone`, `existing_customer_with_email`, `existing_customer_with_phone`, `opaque_id_already_exists` (all 400). | | `customer.metaData` / `customer.consents` / `customer.opaqueId` | — | Optional in object mode, same as Create. | > An `id` field inside the `customer` object is NOT accepted — it returns `customer_id_must_be_string` (400). To register an existing customer, send `customer` as a string. > Registering the same customer into the same campaign twice is **idempotent**: no error is returned, the customer's existing card comes back, and nothing changes. Registration never resets existing loyalty balances — only missing balances are initialized at 0. ### Example ```bash theme={null} # Register an existing customer — customer is an id (string) curl --request POST \ --url "$BASE_URL/v1/customers/register" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "campaignId": "14c5a0ed-537e-400c-8463-e72bf277f600", "customer": "9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e" }' ``` ```bash theme={null} # Create + register in one step — customer is an object curl --request POST \ --url "$BASE_URL/v1/customers/register" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "campaignId": "14c5a0ed-537e-400c-8463-e72bf277f600", "customer": { "data": { "phone": "+905551234567", "fullname": "Jane Doe" }, "opaqueId": "ext-cust-10432" } }' ``` ### Response Returns **201** with the registered customer. `collectables` comes initialized with the campaign's loyalty balances; `cards` contains only the card of this registration (use [GET /v1/customers/find](/api/find-customer) for all of the customer's cards). ```json theme={null} { "id": "9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e", "data": { "phone": "+905551234567", "fullname": "Jane Doe" }, "collectables": { "stamp_K3M9A": { "value": 0, "total": 0 } }, "opaqueId": "ext-cust-10432", "status": 1, "createdAt": "2026-09-29T08:22:52.795Z", "updatedAt": "2026-09-29T08:23:05.079Z", "cards": [ { "id": "6f1d2c88-9a41-4b7e-8d02-3c5a71e9f604", "barcode": "681738", "status": 1 } ] } ``` Notes: * Optional fields that have no value are omitted from the response — you will not receive `null`. Exception: `opaqueId` is `null` when not assigned. * In new-customer mode, `data.phone` is returned in its normalized (E.164) form. * Every new card gets its own barcode — a customer's cards from different campaigns have different barcodes. `cards[].barcode` (a string) can be used to look the customer up at checkout via [GET /v1/customers/find](/api/find-customer). * In new-customer mode, if a validation error occurs before the card is opened, the customer is not created either — no partial records are left behind. # Roll back a transaction Source: https://docs.brand-wallet.com/api/rollback-transaction Undo a committed transaction: collected stamps/points are restored, granted reward coupons are cancelled, and a redeemed coupon becomes active again. ```http theme={null} POST $BASE_URL/v1/transactions/:transactionId/rollback ``` **Undoes a committed transaction — use it for cancelled orders and cashier mistakes. Collected stamps/points are restored to their pre-transaction values, reward coupons granted by the transaction are cancelled, a coupon redeemed by the transaction becomes active again, and promotion usages are reverted. The transaction id is the `transactionId` returned by [process](/api/process-transaction).** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). A transaction that does not exist or belongs to another organization returns `403 auth_error`. What is undone depends on what the transaction did: * **Stamp / point collection** — the card's balances return to their pre-transaction values; reward coupons granted by the transaction are cancelled. * **Discount / membership** — the usage counters are reverted. The monetary refund itself happens on your side (the discount was applied at your register). * **Coupon redemption** (`redeem-coupon` transactions) — the redeemed coupon becomes active again and can be redeemed later. ### Rules * **Latest-transaction rule:** for collection transactions (stamps, points, discounts, membership), only the **most recent** non-rolled-back transaction of that customer + campaign can be rolled back; an older one fails with `400 transaction_is_not_latest`. To undo several, roll them back in **reverse order** (newest first). `redeem-coupon` transactions are exempt from this rule. * **Used-reward guard:** if a reward coupon granted by the transaction has already been redeemed by the customer, the rollback fails with `400 reward_coupon_already_used` and **nothing is changed** (there is no partial rollback). * **No repeat:** a rolled-back transaction cannot be rolled back again — `400 transaction_already_rolledback`. Treat that response as "already undone". ### Body | Field | Type | Description | | - | - | - | | `reason` | string | Optional cancellation reason — stored on the transaction as `rollbackReason` and visible in [list](/api/list-transactions)/[get](/api/get-transaction). | ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/transactions/7f1b6c20-8f2e-40d7-966f-29707f1a77b9/rollback" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "reason": "cashier cancellation" }' ``` ### Response ```json theme={null} { "transactionId": "7f1b6c20-8f2e-40d7-966f-29707f1a77b9", "rolledBack": true } ``` Error example: ```json theme={null} { "statuscode": 400, "errorcode": 400, "message": "transaction_already_rolledback", "description": "upstream status 400", "timestamp": 1791455874000, "path": "/v1/transactions/7f1b6c20-8f2e-40d7-966f-29707f1a77b9/rollback", "method": "POST" } ``` Notes: * Possible **400** errors: `transaction_already_rolledback`, `transaction_is_not_latest`, `reward_coupon_already_used`, `reward_coupon_not_found`, `redeem_coupon_not_found`, `coupon_is_not_redeemed` (the coupon of a `redeem-coupon` transaction is no longer in redeemed state), `rollback_not_supported_for_external_transaction` (the transaction came from an external integration), `rollback_not_supported_for_system_transaction` (a system correction transaction), `rollback_not_supported_for_legacy_transaction` (an old record without a pre-transaction snapshot), `rollback_exceeds_current_threshold` (the campaign's threshold changed and the restored value would exceed it). * A reward coupon granted at a threshold crossing is cancelled by the rollback, and the balance returns to its pre-threshold value — the customer can earn the same reward again. * When a single process call ran more than one campaign, it returns `transactionIds` — roll them back in **reverse** order. # Transaction Payload Source: https://docs.brand-wallet.com/api/standard-payload Construct a single JSON payload for BrandWallet transactions: campaigns, coupon redemptions, and point spend in one call. **The BrandWallet API uses a single standard payload structure for all transactions. Whether a customer has a stamp card, a point card, or a multi-tier program, the same body shape on [POST /v1/transactions/process](/api/process-transaction) handles them all.** A single payload can do any combination of the following in one call: * **Campaign collection** — applicable campaigns on the selected `card` run; balances update and reward coupons are granted when thresholds are reached. * **Coupon redemption** — coupons passed in `redeem.coupons` are redeemed; a product coupon can carry the product it was used for (`productOpaqueId`), which is recorded and excluded from earning. * **Point spend** — `redeem.points` is deducted from the card's point balance; the monetary value is calculated server-side and reflected in the response's `payableAmount`. * **Order discounts** — `apply_discount` promotions configured by the brand (for example a student discount) reduce the amount to charge; the total comes back in `discountAmount` and is already deducted from `payableAmount`. Example payload: ```json theme={null} { "customer": "3d8ec956-de2a-4d43-9c1e-74475b153362", "card": "41dd8263-288e-4b55-bf2e-6a82995a0441", "items": [ { "id": "4221450", "name": "Americano", "quantity": 4, "amount": 140, "productPrice": 150 } ], "amount": 550, "orderId": "ORD-2026-000123", "redeem": { "coupons": [ { "id": "906550fd-dcf5-4aed-a80e-03e8939fc2b4", "productOpaqueId": "4221450" } ], "points": 120 } } ``` ### Key concepts * A transaction payload represents a single basket — construct and submit one payload per customer interaction. * Product, category, user, and branch ids are **opaque ids**, your external system identifiers; BrandWallet resolves them internally. `user` and `branch` default to the authenticated API user and its branch when omitted. * **`amount` is the single money truth**: the register total with all of your own discounts (commercial + coupon) already deducted; BrandWallet-applied deductions (promotion discounts, points) not deducted — they come back in the response (`discountAmount`, `redeemed.pointsValue`) and are already reflected in `payableAmount`. Never send a discounted amount from a previous response back as `amount`. * `items[].amount` is the line unit amount and `items[].productPrice` is the product's list price — the latter is used only by [menu sync](/api/process-transaction#menu-synchronization-lazy-sync) to keep your catalog current; neither enters payment math. * `orderId` is your idempotency key: a completed transaction with the same `orderId` is rejected with `duplicate_transaction`, making retries safe. * Required fields: `customer` (from [GET /v1/customers/find](/api/find-customer)), `card` (card id from `find` → `cards[].id`, not a campaign id — the campaigns run come from this card), and `amount`. Full field reference: [POST /v1/transactions/process](/api/process-transaction). ### Payload flow 1. **Identify the customer** — call [GET /v1/customers/find](/api/find-customer) with the customer's phone, email, or card barcode. Save the returned `id` (customer id) and `cards[].id` (customerpass id). 2. **Preview the discount (optional)** — call [POST /v1/transactions/validate](/api/validate-transaction) with the basket and `redeem.points` before committing. 3. **Commit the basket** — call [POST /v1/transactions/process](/api/process-transaction) with the same body, optionally echoing the previewed `payableAmount` as `expectedPayableAmount` for a server-side consistency check. BrandWallet returns the updated loyalty state in `executedActions`, the amount to charge in `payableAmount`, and what was redeemed in `redeemed`. > Use BrandWallet as the single source of truth for all loyalty data. Do not cache points, stamps, or coupon balances locally — fetch fresh state before each transaction. # The Transaction Object Source: https://docs.brand-wallet.com/api/transaction-object The shape of a BrandWallet transaction: the basket you submit and the executed loyalty actions you get back. **A transaction represents a single basket for one customer card. You submit it to [POST /v1/transactions/process](/api/process-transaction) (or preview it with [validate](/api/validate-transaction)); BrandWallet responds with the loyalty actions it executed and the amount to charge.** Request object: ```json theme={null} { "customer": "3d8ec956-de2a-4d43-9c1e-74475b153362", // required — customer id "card": "41dd8263-288e-4b55-bf2e-6a82995a0441", // required — card id (not a campaign id) "user": "usr-ext-1042", // opaque id — defaults to the API user "branch": "brn-ext-07", // opaque id — defaults to the API user's branch "items": [ { "id": "4221450", // product opaque id "name": "Americano", "quantity": 4, "amount": 140, // line unit amount — not payment math "productPrice": 150, // list price — menu sync only "categories": [ { "id": "cat-31", "name": "Hot Drinks" } // category opaque id ] } ], "amount": 550, // register total: discounts deducted, points not "orderId": "ORD-2026-000123", // idempotency key "redeem": { "coupons": [ { "id": "906550fd-…", "productOpaqueId": "4221450" } // coupon to redeem (+ the product it was used for) ], "points": 120 // points to spend } } ``` Response object: ```json theme={null} { "transactionId": "7f1b6c20-…", // use it to roll the transaction back "message": "You collected 4 stamps, earned a Free Coffee coupon. Amount to pay: 538", "executedActions": [ { "actionName": "collect-stamps", "transactionCategory": "collect-stamps", "netCollected": 4, "previousCollectableValue": 3, "result": { "value": 2, "total": 12 }, "rewards": ["2f19b6ba-…"], "milestones": [] } ], "executedPromotions": [ { "promotion": "b34466d6-…", "name": "Weekend double coupon", "actionType": "issue_coupon", "coupons": [{ "_id": "5d8a1c2e-…", "coupon": "9a417359-…", "code": "WKND-4821" }] } ], "amount": 550, "discountAmount": 0, "payableAmount": 538, "redeemed": { "couponIds": ["906550fd-…"], "autoAppliedCouponIds": [], "points": 120, "pointsValue": 12 } } ``` ### Semantics | Concept | Meaning | | - | - | | One payload = one basket | Construct and submit one transaction per customer interaction. | | `card` drives the campaigns | The campaigns that run are the ones attached to the selected card (see [find](/api/find-customer) → `cards[].campaigns`). | | Opaque ids | `items[].id`, `items[].categories[].id`, `user`, `branch`, and `orderId` are your external identifiers; BrandWallet resolves them internally. | | `amount` is the money truth | The register total with your own discounts already deducted; BrandWallet-applied deductions (promotion discounts, points) not deducted. Those are applied server-side (`discountAmount`, `redeemed.pointsValue`); charge `payableAmount`. | | `items[].amount` vs `productPrice` | `amount` is the line unit amount (campaign condition input); `productPrice` is the product's list price, used only by [menu sync](/api/process-transaction#menu-synchronization-lazy-sync). Neither enters payment math. | | `redeem` spends | `redeem.coupons` are redeemed (a product coupon can carry `productOpaqueId` — recorded, and its quantity is excluded from earning when the line is in `items[]`) and `redeem.points` are deducted from the card's balance; fails with `insufficient_collectable_balance` when points exceed the balance. | | `orderId` deduplicates | A completed transaction with the same `orderId` is rejected with `duplicate_transaction` and no side effects. | | `executedActions` is the outcome | One entry per campaign action that ran: what was collected (`netCollected`), the balance before (`previousCollectableValue`) and after (`result`), any granted coupon ids (`rewards`), and triggered `milestones`. | | `executedPromotions` lists applied promotions | One entry per promotion applied on top of the campaign (omitted when none), e.g. an `issue_coupon` promotion with the coupons it granted, or an `apply_discount` promotion with the order discount it applied (deducted from `payableAmount`, totaled in `discountAmount`). | | `transactionId` identifies the transaction | Returned by `process` (not by `validate`), used to [look it up](/api/get-transaction), [list](/api/list-transactions) it, and [roll it back](/api/rollback-transaction). | Full field tables: [Process a transaction](/api/process-transaction). Flow guide: [Transaction Payload](/api/standard-payload). # Update a category Source: https://docs.brand-wallet.com/api/update-category Update the fields of an existing BrandWallet product category. Only the fields you send are changed. ```http theme={null} POST $BASE_URL/v1/categories/{id} ``` **Updates an existing category; only the fields you send are changed (partial update).** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Updating a category that belongs to another organization returns `auth_error` (400). ### Payload schema All fields are optional. ```json theme={null} { "name": { "TR": "…", "EN": "…" }, "description": "…", "opaqueId": "…", "parent": "category-uuid", "types": {}, "status": 1 } ``` ### Body Field types and meanings match the [create endpoint](/api/create-category); the differences: | Field | Type | Description | | - | - | - | | `status` | number | Unlike create, updatable: `1` published, `0` unpublished, `-1` archived. To delete a category use the [delete endpoint](/api/delete-category), not this field. | | `organization` | string | Ignored when sent — a category cannot be moved to another organization. | ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/categories/79a83256-2925-44b4-9bdc-a401caccf969" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "description": "updated", "status": 0 }' ``` ### Response Returns the full updated document. ```json theme={null} { "id": "79a83256-2925-44b4-9bdc-a401caccf969", "name": { "TR": "Espresso Bazlı", "EN": "Espresso Based" }, "description": "updated", "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "status": 0, "opaqueId": "espresso-based", "parent": "1e1cc0fb-55a1-4679-80df-6dccb936273f", "createdAt": "2026-09-18T09:23:28.303Z", "updatedAt": "2026-09-18T09:23:55.412Z" } ``` Notes: * A successful update returns **HTTP 201** (not 200) — branch on the body, not the status code. * An unknown id returns `entity_not_found` (400). * Do not send `null` to clear a field; removing a field is not supported — only new values can be written. # Update a customer Source: https://docs.brand-wallet.com/api/update-customer Update a BrandWallet customer's profile, metadata, consents, or external id. ```http theme={null} POST $BASE_URL/v1/customers/:id ``` **Updates a customer's `data` (merge), `metaData` (replace), `consents` (merge), and `opaqueId`. Loyalty balances (`collectables`) can never be changed through this endpoint.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Missing or invalid token returns **401**; an organization without an active subscription returns `invalid_subscription` (**403**). Payload schema: ```json theme={null} { "data": { "fullname": "Jane Smith", "phone": "+905551234567" }, // optional — shallow-merged "metaData": { "source": "pos" }, // optional — replaced as a whole "consents": { "marketing": true | false }, // optional — shallow-merged "opaqueId": "ext-cust-10432" // optional } ``` ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | Customer id. Unknown, deleted, or out-of-organization ids return `customer_not_found` (400). | ### Body All fields are optional, but at least one must be present — an empty body returns `nothing_to_update` (400). | Field | Type | Description | | - | - | - | | `data` | object | **Shallow-merged** into the existing profile: keys you send are overwritten, keys you omit are kept. `phone` is normalized to E.164 (TR default) — `invalid_phone` (400) when unparseable. `email`/`phone` stay unique within the organization (the customer itself excluded): `existing_customer_with_email` / `existing_customer_with_phone` (400). | | `metaData` | object | **Replaced as a whole** when sent — sending `{}` deliberately clears it. | | `consents` | object | **Shallow-merged** — consent flags you omit are kept, so an existing consent record cannot be wiped by accident. Sending `{}` is a no-op. | | `opaqueId` | string | Your own system's customer id. Unique within the organization — `opaque_id_already_exists` (400) on conflict. | ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/customers/9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "data": { "fullname": "Jane Smith" }, "consents": { "marketing": true } }' ``` ### Response Returns **200** with the updated customer record. ```json theme={null} { "id": "9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e", "data": { "phone": "+905551234567", "fullname": "Jane Smith" }, "collectables": { "stamp_K3M9A": { "value": 4, "total": 12 } }, "consents": { "marketing": true }, "opaqueId": "ext-cust-10432", "status": 1, "createdAt": "2026-09-29T08:22:52.795Z", "updatedAt": "2026-09-29T10:41:03.917Z" } ``` Notes: * The response does not include `cards` — cards are returned by [Register](/api/register-customer) and [Find](/api/find-customer). * Optional fields that have no value are omitted from the response — you will not receive `null`. Exception: `opaqueId` is `null` when not assigned. # Update a product Source: https://docs.brand-wallet.com/api/update-product Update the fields of an existing BrandWallet product. Only the fields you send are changed. ```http theme={null} POST $BASE_URL/v1/products/{id} ``` **Updates an existing product; only the fields you send are changed (partial update).** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Updating a product that belongs to another organization returns `auth_error` (400). ### Payload schema All fields are optional. ```json theme={null} { "name": { "TR": "…", "EN": "…" }, "label": { "TR": "…", "EN": "…" }, "description": "…", "details": { "TR": "…", "EN": "…" }, "price": 120, "categories": ["category-uuid"], "tags": ["…"], "barcode": "…", "sku": "…", "opaqueId": "…", "assets": [{}], "defaultasset": {}, "attributes": { "key": "value" }, "status": 1 } ``` ### Body Field types and meanings match the [create endpoint](/api/create-product); the differences: | Field | Type | Description | | - | - | - | | `status` | number | Unlike create, updatable: `1` published, `0` unpublished, `-1` archived. To delete a product use the [delete endpoint](/api/delete-product), not this field. | | `organization` | string | Ignored when sent — a product cannot be moved to another organization. | | `opaqueId` | string | Unique within the organization: changing it to another product's `opaqueId` returns `opaque_id_already_exists` (400); re-sending the product's own current value is fine. | ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/products/1f64ec1b-445e-4762-a8c3-0d1e6d75afe6" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "price": 95, "barcode": "8690000009002" }' ``` ### Response Returns the full updated document. ```json theme={null} { "id": "1f64ec1b-445e-4762-a8c3-0d1e6d75afe6", "name": { "TR": "Latte", "EN": "Latte" }, "price": 95, "barcode": "8690000009002", "organization": "07f84834-1184-4eb6-82f5-7eda13231fc3", "status": 1, "createdAt": "2026-09-18T08:24:08.415Z", "updatedAt": "2026-09-18T08:25:01.072Z" } ``` Notes: * A successful update returns **HTTP 201** (not 200) — branch on the body, not the status code. * An unknown id returns `entity_not_found` (400). * Do not send `null` to clear a field; it fails type validation. Removing a field is not supported — only new values can be written. # Update a user Source: https://docs.brand-wallet.com/api/update-user Update a branch-level user's profile, status, branches, or roles. ```http theme={null} POST $BASE_URL/v1/users/:id ``` **Updates a user of your access token's organization. All fields are optional; only the fields you send change. Integrations can update only users whose roles are branch-level (`branch_user` / `branch_manager`).** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Payload schema: ```json theme={null} { "fullname": "Jane C.", "phone": "+905321112233", "status": 1 | 0 | -1, // -1 archives the user "rolesToAdd": ["branch_manager"], // role codes to add "rolesToRemove": ["branch_user"], // role codes to remove "branch": "377ec3ad-28c8-4008-b3df-005a434dcf8b", "authBranches": ["377ec3ad-28c8-4008-b3df-005a434dcf8b"], "opaqueId": "pos-user-7" } ``` ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | **Required.** The user's id (UUID). | ### Body | Field | Type | Description | | - | - | - | | `fullname` | string | Optional. | | `phone` | string | Optional. | | `status` | number | Optional. `1` = active. | | `rolesToAdd` | string\[] | Optional. Role codes to add. Assignable codes: `branch_user`, `branch_manager` — any other code returns `role_not_allowed` (400). | | `rolesToRemove` | string\[] | Optional. Role codes to remove. Same code restriction. | | `branch` | string | Optional. Branch id. | | `authBranches` | string\[] | Optional. Branch ids — the full array replaces the existing one. | | `opaqueId` | string | Optional. Your own system's user id. | > The user's `email` cannot be changed through this endpoint, and the user cannot be moved to another organization. ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/users/fa000708-10f6-47ea-a35d-d3e1acbd4be5" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "fullname": "Jane C.", "rolesToAdd": ["branch_manager"], "rolesToRemove": ["branch_user"] }' ``` ### Response Returns **201** with the updated user — the same shape as a [List users](/api/list-users) item. ```json theme={null} { "id": "fa000708-10f6-47ea-a35d-d3e1acbd4be5", "fullname": "Jane C.", "email": "jane@example.com", "status": 1, "organization": "ca5495d7-36ee-4f6d-8149-0dd082f7c745", "branch": "377ec3ad-28c8-4008-b3df-005a434dcf8b", "authBranches": [], "roles": [ { "id": "8f2f6c1e-0000-4f8b-9c0d-7e5a1b2c3d4e", "code": "branch_manager", "name": "Branch Manager" } ], "opaqueId": "pos-user-7", "createdAt": "2026-10-08T12:00:00.000Z", "updatedAt": "2026-10-08T12:30:00.000Z" } ``` Notes: * Updating a user that does not exist returns `entity_not_found` (400); a user outside your organization returns `auth_error` (400). * Updating a user whose roles are not branch-level returns `user_not_updatable` (400); API users return `api_user_not_updatable` (400). * `system_admin` and `api_user` roles can never be assigned through the API (`role_not_allowed`, 400). * Optional fields that have no value are omitted from the response — you will not receive `null`. # The User Object Source: https://docs.brand-wallet.com/api/user-object The shape of a BrandWallet user record as returned by the user endpoints. **A user is a member of the merchant organization's team — an account owner, brand manager, branch manager, or cashier — or an API account acting on the organization's behalf. Users operate the business; they are not the shoppers. The end consumer who collects loyalty rewards is a [Customer](/api/customer-object). All user endpoints return this same record.** Object schema: ```json theme={null} { "id": "fa000708-10f6-47ea-a35d-d3e1acbd4be5", "fullname": "Jane Cashier", "email": "jane@example.com", "phone": "+905321112233", // optional "status": 1, "organization": "ca5495d7-36ee-4f6d-8149-0dd082f7c745", "branch": "377ec3ad-28c8-4008-b3df-005a434dcf8b", // optional "authBranches": ["377ec3ad-28c8-4008-b3df-005a434dcf8b"], // optional "roles": [ { "id": "e5e94c4a-7ab7-4568-bf5d-4ea61c2300af", "code": "branch_user", "name": "Branch User" } ], "opaqueId": "pos-user-7", // optional — your own user id "createdAt": "2026-10-06T12:31:34.711Z", "updatedAt": "2026-10-06T12:32:10.618Z" } ``` ### Fields | Field | Type | Description | | - | - | - | | `id` | string | Unique user id (UUID). Used on all user endpoints. | | `fullname` | string | The user's display name. | | `email` | string | Sign-in identifier; globally unique across BrandWallet. | | `phone` | string | E.164 phone number. | | `status` | number | Record status code (`1` = active, `-99` = deleted — see [delete](/api/delete-user)). | | `organization` | string | Id of the organization the user belongs to — always your access token's organization. | | `branch` | string | Id of the branch the user is assigned to. | | `authBranches` | string\[] | Ids of the branches the user is authorized to operate in. | | `roles` | array | The user's public-facing roles as `{id, code, name}`. Integrations can assign only the branch-level codes `branch_user` and `branch_manager` — see [create](/api/create-user). Not included in the [delete](/api/delete-user) response. | | `opaqueId` | string | Your own system's user id. | | `createdAt` / `updatedAt` | string | ISO 8601 timestamps. | Notes: * Optional fields that have no value (`phone`, `branch`, `authBranches`, `opaqueId`) are omitted from responses — you will not receive `null`. * `organization`, `branch` and `authBranches` are plain id strings. * `roles` contains only public-facing roles; internal system roles are not listed, so an empty `roles` array does not mean the user has no role. * Credentials (`password`) and internal account settings are never returned by any endpoint. # Validate a transaction Source: https://docs.brand-wallet.com/api/validate-transaction Dry-run a BrandWallet transaction: preview exactly what process would do — campaign results, rewards, promotions, milestones, and the amount to charge — without committing anything. ```http theme={null} POST $BASE_URL/v1/transactions/validate ``` **Runs the full [process](/api/process-transaction) pipeline as a dry-run: the same body, the same validations, the same campaign / promotion / milestone math — and the same response shape. Nothing is committed: no balances change, no coupons are created or redeemed, no transaction is written.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Use it to show the customer what a checkout **would** produce before confirming it: stamps or points they would collect, coupons they would earn, order discounts (`discountAmount`) and point spend applied, and the final `payableAmount`. Once confirmed, send the **same body** to [POST /v1/transactions/process](/api/process-transaction) to commit it — optionally echoing the previewed `payableAmount` as `expectedPayableAmount` so process fails safely (`payable_amount_mismatch`, no side effects) if anything changed in between. ### Body Identical to [process](/api/process-transaction#body) — every field, including `items`, `redeem` (`coupons` + `points`), `orderId`, and `collectables` (escape hatch — avoid unless necessary; rules on the [process page](/api/process-transaction)), is accepted and evaluated the same way. See the process page for the field reference. The only exception is `expectedPayableAmount`: it belongs to process (validate is where you obtain the value) and is ignored here. ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/transactions/validate" \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "customer": "3d8ec956-de2a-4d43-9c1e-74475b153362", "card": "41dd8263-288e-4b55-bf2e-6a82995a0441", "items": [ { "id": "4221450", "name": "Americano", "quantity": 3, "amount": 50 } ], "amount": 150, "redeem": { "points": 120 } }' ``` ### Response Returns **200** with the same structure as [process](/api/process-transaction#response): ```json theme={null} { "message": "You collected 3 stamps, earned a Free Coffee coupon. Amount to pay: 138", "executedActions": [ { "actionName": "collect-stamps", "transactionCategory": "collect-stamps", "netCollected": 3, "previousCollectableValue": 2, "result": { "value": 0, "total": 15 }, "rewards": ["9a417359-a02c-4a4a-8f4a-c31a24f0b0c5"], "milestones": [ { "label": "15th purchase gift", "threshold": 15, "track": "total", "type": "issue-coupon", "triggerCount": 1, "result": null } ] } ], "executedPromotions": [ { "promotion": "b34466d6-4e79-4523-aaf4-beaa672b3b8c", "name": "Weekend double coupon", "actionType": "issue_coupon", "coupons": [{ "coupon": "9a417359-a02c-4a4a-8f4a-c31a24f0b0c5" }] } ], "amount": 150, "discountAmount": 0, "payableAmount": 138, "redeemed": { "couponIds": ["2f19b6ba-e7f8-4dd5-b328-cbfabc08e412"], "autoAppliedCouponIds": [], "points": 120, "pointsValue": 12 } } ``` The field reference is the same as [process](/api/process-transaction#response). What differs is only what a dry-run *cannot* produce: | Difference | In process | In validate | | - | - | - | | Reward coupon ids (`executedActions[].rewards`, `executedPromotions[].coupons[]`) | Coupon **instance** ids, created for the customer and usable in `redeem.coupons` later | Coupon **template** ids — they show *which* coupon would be earned, but no instance exists yet; do not pass them to `redeem.coupons` | | `executedActions[].milestones[].result` | The executed effect's result | Always `null` — the crossing (`threshold`, `triggerCount`) is computed, the effect does not run | | `redeemed.couponIds` | Coupons actually redeemed | Coupons that passed validation and **would** be redeemed | | `redeemed.autoAppliedCouponIds` | Auto-apply coupons that were successfully redeemed | The customer's active auto-apply coupons, all assumed to succeed | | Menu sync ([lazy sync](/api/process-transaction#menu-synchronization-lazy-sync)) | Unknown products/categories are created | Read-only: a product not yet known to BrandWallet is not created, so product-filtered campaigns may not match until the first committed transaction | | User & branch sync ([lazy sync](/api/process-transaction#cashier-%26-branch-synchronization-lazy-sync)) | An unknown `user`/`branch` **object** with a `name` is created | Read-only: nothing is created, and this is **not** an error — the preview runs with the authenticated user (and branchless when the token has no branch), matching what process computes for the newly created records. A nameless unknown object still fails (`invalid_user` / `invalid_branch`), as it would on process | Notes: * Safe to repeat: sending the same body any number of times changes nothing. * All process validations run **identically**, so validate surfaces the same **400** errors before you commit: `invalid_customer`, `invalid_user`, `invalid_branch`, `card_not_found`, `no_applicable_campaign`, `invalid_transaction`, `point_campaign_not_found`, `insufficient_collectable_balance`, `invalid_points_to_spend`, `invalid_amount_value`, `invalid_coupon`, `coupon_is_not_valid`, `_collectables_with_items` / `_collectables_with_redeem` / `invalid_collectables`, and — when `orderId` is sent and already used — `duplicate_transaction` (useful to detect "already processed" before retrying). * `payableAmount` = `amount` − `discountAmount` − the monetary value of `redeem.points`; the previewed numbers match what process commits for the same body and state. * `executedPromotions` is omitted when no promotion applies; promotion condition, limit, and cap checks are evaluated for real, but no usage is consumed by a validate call. Order-discount promotions (`apply_discount`) are previewed exactly like process, including their effect on `discountAmount` and `payableAmount`. # Void & activate a customer Source: https://docs.brand-wallet.com/api/void-customer Block a BrandWallet customer from transactions, or lift the block. ```http theme={null} POST $BASE_URL/v1/customers/:id/void POST $BASE_URL/v1/customers/:id/activate ``` **`void` blocks the customer: the transaction engine rejects them with `invalid_customer` until the block is lifted. `activate` lifts the block. Both are idempotent — calling them on a customer already in the target state changes nothing and returns the current record.** > **Auth:** `Authorization: Bearer ` — an organization-scoped token from [Authentication](/api/authentication). Missing or invalid token returns **401**; an organization without an active subscription returns `invalid_subscription` (**403**). ### Path parameters | Parameter | Type | Description | | - | - | - | | `id` | string | Customer id. Unknown, deleted, or out-of-organization ids return `customer_not_found` (400). | No request body. ### Example ```bash theme={null} curl --request POST \ --url "$BASE_URL/v1/customers/9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e/void" \ --header 'Authorization: Bearer ' ``` ### Response Returns **200** with the customer record; `isVoided` reflects the new state. ```json theme={null} { "id": "9b2f6c1e-3d4a-4f8b-9c0d-7e5a1b2c3d4e", "data": { "phone": "+905551234567", "fullname": "Jane Smith" }, "opaqueId": "ext-cust-10432", "isVoided": true, "status": 1, "createdAt": "2026-09-29T08:22:52.795Z", "updatedAt": "2026-09-29T11:10:41.204Z" } ``` Notes: * Voiding does not delete anything: the customer stays visible in list and find, keeps their cards and balances, and can be activated again at any time. * A voided customer is rejected on [POST /v1/transactions/process](/api/process-transaction) and [validate](/api/validate-transaction) with `invalid_customer` (400). * After `activate`, `isVoided` is `false` in the response. # BrandWallet Campaign Designer: Cards, Design & Rewards FAQ Source: https://docs.brand-wallet.com/faq/campaign-designer BrandWallet Campaign Designer FAQ — card types, design customization, multilingual support, personalized offers, and tiered rewards explained. BrandWallet's Campaign & Pass Designer gives you full creative and strategic control over your loyalty program. From choosing the right card type to personalizing offers for specific customer segments, the designer is built to grow with your business. The questions below cover everything you need to know about creating, editing, and optimizing your campaigns. ## Campaign Types You can create a wide variety of loyalty campaigns to suit different business models and customer engagement strategies: | Campaign Type | Description | | - | - | | **Stamp Card** | Traditional punch-card system — customers earn a stamp for each visit or purchase | | **Point-Based Card** | Customers accumulate points that can be redeemed for rewards | | **Discount Card** | Offer percentage-based or fixed-amount discounts | | **Event Card** | Special promotions tied to specific events or occasions | | **Staff Card** | Employee-specific programs and perks | | **Tiered Card** | Progressive reward systems with multiple levels | | **Membership Card** | Exclusive benefits for members of your program | The card types available to you depend on your subscription plan. The Growth Plan unlocks all card types, including Event Cards and multi-stamp variants. **Yes** — you can update your digital card designs at any time through the BrandWallet dashboard. You have full control over: * Layout and design elements * Colors and branding * Text and messaging * Images and logos Any design changes you make are applied instantly, so your customers always see the latest version of your card. **Yes** — you can adjust your campaign type after creation, giving you the flexibility to adapt your strategy as your business needs evolve. Changing your campaign type may affect existing customer data associated with the card. Review any impact before switching to make sure your customers' earned points or stamps are handled appropriately. ## Card Limits and Features Yes — the number of digital cards you can create depends on your subscription plan: | Plan | Monthly Price | Card Limit | Available Card Types | | - | - | - | - | | **Basic** | \$50/mo | 1 card | Stamp Card, Point Card | | **Standard** | \$65/mo | 2 cards | Stamp Card, Point Card, Double Stamp Card, Membership Card, Discount Card | | **Growth** | \$80/mo | 5 cards | All card types, including Event Card, Triple Stamp Card, and Quadruple Card | Upgrading your plan immediately unlocks additional card slots and card types. **Partially.** Customers can display their loyalty cards without an internet connection, but completing transactions requires connectivity. * ✅ **Offline — Supported:** Showing the card at point of sale * ❌ **Online required:** Redeeming points, earning stamps, and upgrading rewards Make sure your point-of-sale environment has a stable internet connection to process loyalty card transactions smoothly. ## Multilingual Support **Yes** — BrandWallet supports 8+ languages, so you can serve a diverse customer base without any extra configuration. **Supported languages include:** * English * Arabic * German * French * Russian * Turkish * Spanish * Hebrew * Azeri Digital cards are automatically downloaded in the language set on the customer's phone, so each customer sees the card in their preferred language without any manual work on your end. ## Customization and Branding **Yes** — full brand customization is available. You can apply your brand's colors, upload your logo, and incorporate other visual elements to ensure every card feels like a natural extension of your brand identity. **Yes** — BrandWallet provides a variety of pre-designed templates to give you a head start. You can use a template as-is or customize it to match your brand's style. Starting from a template is the fastest way to get a polished card design live — you can always refine it later from the dashboard. ## Advanced Features **Yes** — you can tailor offers to specific segments of your customer base. Personalization criteria include: * **Customer behavior** — shopping patterns and engagement habits * **Purchase history** — what customers have bought and how often * **Loyalty level** — where customers sit within your program tiers * **Demographics** — age, location, and other profile data Targeted offers drive higher engagement than blanket promotions, so segmentation is one of the most powerful tools in the designer. There are several effective ways to keep customers engaged and coming back: * **Limited-time promotions** — create urgency with offers that expire soon * **Bonus points for frequent visits** — reward customers who return regularly * **Exclusive rewards** — offer benefits only available to card holders * **Add-On Promotions** — run double- or triple-points events during specific times or occasions Combining these tactics — especially time-limited add-ons — consistently increases visit frequency and program participation. **Yes** — BrandWallet supports tiered loyalty programs where rewards become more valuable as customers hit milestones. You can define tiers based on: * **Spending thresholds** — reaching a cumulative spend amount * **Visit frequency** — hitting a certain number of visits * **Specific actions** — completing defined behaviors like referrals or profile completion Tiered programs are one of the most effective ways to encourage long-term loyalty and increase customer lifetime value. **Yes** — you can create a referral program that rewards existing customers for introducing friends or family to your business. Referral programs turn your existing loyal customers into brand advocates, generating new customers at a fraction of the cost of traditional advertising. ## Add-On Promotions Add-on promotions are supplementary offers you attach to your existing campaigns to provide an extra boost. Examples include: * **Extra loyalty points** — award bonus points for a specific period * **Exclusive discounts** — offer a one-time or limited discount to card holders * **Special bonuses** — reward customers who take a specific action * **Time-limited rewards** — create urgency with offers that expire after a set window Add-ons are layered on top of your regular campaign, so customers enjoy the standard benefits plus the extra promotion simultaneously. Add-on promotions help you drive short-term spikes in engagement without rebuilding your entire campaign. They work by: * **Offering extra incentives** that motivate action from less-active customers * **Encouraging more frequent engagement** through bonus rewards for increased visits * **Creating urgency** with time-limited offers that prompt customers to act now * **Rewarding loyalty** by giving your best customers exclusive benefits they can't get elsewhere Schedule add-on promotions around seasonal events, holidays, or slower business periods to maximize their impact. # Push Notifications and Communication FAQ — BrandWallet Source: https://docs.brand-wallet.com/faq/communication BrandWallet push notifications FAQ — birthday messages, geo-targeting, notification customization, and personalized customer engagement campaigns. Staying connected with your customers at the right moment is one of the most powerful ways to drive repeat visits and deepen loyalty. BrandWallet's communication tools let you send targeted, personalized push notifications based on customer behavior, location, special dates, and transaction activity — all managed directly from your dashboard. The questions below cover the most common scenarios for setting up and customizing your customer communications. ## Push Notification Features The Birthday Celebration message is a **personalized push notification** that BrandWallet automatically sends to a customer on their birthday. You configure the message and any associated reward once, and the system handles delivery for every customer whose birthday matches. **Key features:** * Automatic birthday detection — no manual scheduling required * Fully customizable message content and tone * Attach special offers, bonus points, or exclusive discounts to celebrate the customer * Timing can be configured to send on the day or in advance Birthday messages have some of the highest open and redemption rates of any notification type. Include a meaningful reward to make the moment feel genuinely personal. ## Location-Based Marketing **Yes** — BrandWallet supports geo-targeting, allowing you to send location-based rewards or offers to customers when they are near your store or within a defined geographic area. **Geo-targeting capabilities include:** * Location-based push notifications triggered by proximity * Proximity radius configuration (set how close a customer needs to be) * Store-specific promotions for businesses with multiple locations * Geographic campaign management from a single dashboard Customers must have location services enabled on their device and have consented to location-based notifications for geo-targeting to work. Location-based push notifications are configured entirely through the **BrandWallet Dashboard**. Here's how: 1. Navigate to the **Communications** or **Campaigns** section of your dashboard 2. Create a new push notification and select **Location-Based** as the trigger type 3. **Define the geographic region** — enter an address or drop a pin on the map 4. **Set the notification radius** — choose how close a customer must be to trigger the message 5. **Write your notification content** and attach any offers or rewards 6. Schedule or activate the campaign Test location-based notifications by visiting the defined area with a test device before launching to your full customer base. ## Notification Customization **Yes** — transaction notifications are fully customizable from the dashboard. You can tailor every aspect to match your brand's voice and keep messaging relevant to your promotions. **Customizable elements include:** * Notification text and messaging tone * Brand colors and styling * Timing and send frequency * Call-to-action buttons and linked destinations Changes take effect immediately, so you can update messaging in response to promotions or seasonal events without any delay. **Yes** — BrandWallet allows you to segment your audience and send notifications that are relevant to each customer's individual relationship with your business. **Personalization criteria include:** | Signal | Example use case | | - | - | | **Shopping patterns** | Send a re-engagement offer to customers who haven't visited in 30 days | | **Purchase history** | Recommend a complementary product based on past purchases | | **Engagement level** | Reward highly active customers with an exclusive bonus | | **Demographics** | Target customers in a specific age group or location with a relevant promotion | Personalized notifications consistently outperform generic broadcasts. Even a simple first-name greeting and a behavior-based offer dramatically increases click-through and redemption rates. ## Notification types BrandWallet organizes outgoing communications into three categories. Understanding each type helps you use the right channel for the right moment. Transaction notifications are triggered automatically by customer activity within your loyalty program. They include: * Purchase confirmations * Points earned alerts * Reward redemption confirmations * Payment confirmations These are operational messages customers expect to receive — keep them clear, concise, and on-brand. Marketing notifications are promotional messages you send to drive awareness and action. They include: * Promotional offers and discount announcements * New product or menu launches * Event invitations * Seasonal and holiday campaigns Be mindful of send frequency for marketing notifications. Sending too many promotional messages in a short period can lead to opt-outs. Focus on value and timing. Engagement notifications are designed to strengthen your relationship with existing customers over time. They include: * Birthday celebrations * Loyalty program anniversary reminders * Milestone achievement alerts (e.g., "You've just reached Gold status!") * Re-engagement nudges for lapsed customers These messages tend to feel the most personal and generate strong positive responses when done well. ## Notification best practices Keep these principles in mind as you build your communication strategy: * **Timing** — send notifications when your customers are most likely to act, such as near your store's opening hours or before a typical purchase window. * **Frequency** — avoid notification fatigue. A smaller number of well-timed, relevant messages outperforms a high volume of generic ones. * **Personalization** — use the customer data available to you to make every message feel relevant to the individual receiving it. * **Value** — every notification should give the customer a reason to open it. Offers, rewards, and useful updates all provide clear value. * **Compliance** — always respect customer opt-in preferences, provide a clear way to opt out, and follow local regulations regarding marketing communications. # Getting Started with BrandWallet — Quick Setup FAQ Source: https://docs.brand-wallet.com/faq/getting-started Common questions about setting up BrandWallet for the first time — account creation, setup time, technical requirements, and browser support. Setting up BrandWallet is designed to be as quick and painless as possible. Whether you're a first-time user or returning to finish a setup you started earlier, the platform guides you through every step without requiring any technical background or additional software. The questions below address the most common concerns new users have before and during their first setup session. You can complete the entire setup process in approximately **10 minutes**. The setup is designed to be quick and straightforward, so you can have your loyalty program live and ready for customers in no time. Each step is clearly guided, and there are no complex configurations required to get started. If you have your brand assets (logo, colors) on hand before you begin, you'll move through the design steps even faster. **Yes** — you can return to the setup at any time and pick up exactly where you stopped. Your progress is automatically saved at every step, so you never lose any work if you need to take a break, switch devices, or close your browser unexpectedly. Simply log back in to your BrandWallet account and navigate to the setup wizard — your saved progress will be waiting for you. **No technical knowledge is required.** The setup process is designed to be completed by anyone, regardless of their technical background. BrandWallet is built with business owners and their teams in mind. You won't encounter any code, server configurations, or developer tools — just a clear, step-by-step wizard that walks you through everything from branding to your first campaign. **No downloads or installations are needed.** BrandWallet runs entirely in your web browser. Everything — from setup and campaign design to analytics and customer management — is accessible through any modern web browser on any device. There are no plugins, desktop apps, or system requirements to worry about. For the best experience, use an up-to-date version of Chrome, Firefox, Safari, or Edge. ## Next steps Once you've completed your setup, you're ready to start building your loyalty program. Here are a few good places to go next: * **Quickstart guide** — A walkthrough of your first campaign from start to finish. * **Pricing and plans** — Compare the Basic, Standard, and Growth plans to find the right fit for your business. * **Campaign types** — Learn about Stamp Cards, Point Cards, Membership Cards, and all the other campaign formats available to you. Need help during setup? Visit the [Support](/faq/support) page to reach our team by email, phone, or live chat. # BrandWallet Legal: Privacy, GDPR, CCPA, and PIPEDA FAQ Source: https://docs.brand-wallet.com/faq/legal BrandWallet's compliance with GDPR, CCPA, and PIPEDA — data protection measures, customer data rights, privacy policy, and terms of service summary. BrandWallet is built on a foundation of trust. Operating a loyalty program means handling customer data responsibly, and we take that obligation seriously. This page outlines how BrandWallet protects your customers' data, which privacy regulations we comply with, what data we collect and why, and what your customers are entitled to under applicable law. If you have compliance questions beyond what's covered here, our legal team is available to help. ## Privacy Regulations and Compliance BrandWallet complies with all major international privacy regulations, including: | Regulation | Jurisdiction | What it covers | | - | - | - | | **GDPR** | European Union | General Data Protection Regulation — strict rules on data collection, processing, and individual rights | | **CCPA** | California, USA | California Consumer Privacy Act — rights for California residents over their personal data | | **PIPEDA** | Canada | Personal Information Protection and Electronic Documents Act — rules on private-sector data handling | | **Local regulations** | Other jurisdictions | Compliance with regional privacy and data protection laws where applicable | **How we maintain compliance:** * Data protection by design — privacy is built into the platform from the ground up * Regular privacy impact assessments * Ongoing compliance audits * Transparent data practices and clear user consent management BrandWallet operates globally. If your business operates in a jurisdiction not listed above, contact our support team to discuss your specific compliance requirements. ## Data Protection Measures BrandWallet implements industry-standard security measures across every layer of the platform: * **Encryption** — all data is encrypted in transit (TLS) and at rest, so it's never exposed in readable form * **Access controls** — role-based permissions combined with multi-factor authentication ensure that only authorized users can access sensitive data * **Regular security audits** — the platform undergoes regular security assessments and penetration testing to identify and address vulnerabilities * **Incident response** — a comprehensive breach response procedure is in place to detect, contain, and report any security incidents in accordance with regulatory requirements * **Staff training** — all BrandWallet employees receive regular privacy and security training You are responsible for managing access permissions within your own BrandWallet account. Ensure that you only grant dashboard access to team members who need it, and revoke access promptly when someone leaves your organization. ## Customer Data Rights Under GDPR, CCPA, PIPEDA, and similar regulations, your customers have the following rights regarding their personal data: | Right | What it means | | - | - | | **Access** | Customers can request to see what personal data you hold about them | | **Correction** | Customers can ask you to correct inaccurate or incomplete information | | **Deletion** | Customers can request that their data be deleted (the "right to be forgotten") | | **Portability** | Customers can request their data in a portable, machine-readable format | | **Object to processing** | Customers can object to certain uses of their data | | **Withdraw consent** | Customers can withdraw their consent to data processing at any time | **BrandWallet provides tools to help you:** * Manage and respond to incoming customer data requests * Export individual customer records * Delete customer data upon request * Update privacy preferences and consent settings When a customer exercises one of these rights, you are responsible for responding within the timeframes required by applicable law (e.g., 30 days under GDPR). BrandWallet's tools are designed to help you fulfill these requests efficiently. ## Privacy Policy Summary **Data we collect (only what is necessary):** * Customer information required to operate your loyalty program (e.g., name, email address, phone number) * Transaction data for program management and reporting * Usage analytics to improve platform functionality * Contact information for customer support purposes **Data we do NOT collect:** * Personal information that isn't necessary for the service * Sensitive financial data beyond what's required to process loyalty transactions * Data intended for third-party marketing purposes * Any information collected without explicit customer consent You can review BrandWallet's full Privacy Policy and Data Processing Agreement in your account dashboard under the Legal & Compliance section. **We use your data only to:** * Provide and operate the BrandWallet loyalty platform * Improve platform features and reliability over time * Offer customer support and technical assistance * Comply with our own legal obligations **We do NOT:** * Sell customer data to any third party, ever * Use your data for marketing unrelated to your BrandWallet account * Share your data with other businesses without your explicit consent * Retain data beyond the period necessary for the stated purposes BrandWallet will never contact your customers directly for marketing purposes using data collected through your loyalty program. ## Terms of Service Highlights By using BrandWallet, you agree to the following core terms: **Your responsibilities as a merchant:** * Use the platform in compliance with all applicable laws and regulations * Respect your customers' privacy rights and handle their data appropriately * Maintain accurate account information * Not misuse the platform, its features, or the data accessible through it **Service availability:** * BrandWallet targets **99.9% platform uptime** — your loyalty program should be accessible to customers at virtually all times * Scheduled maintenance is communicated in advance with as much notice as possible * Regular platform updates and security patches are deployed to keep the service secure and current **Support:** * Customer support is available during business hours, with extended support for higher-tier plans * See the [Support page](/faq/support) for full details on response times and contact channels The full Terms of Service, Privacy Policy, Data Processing Agreement, and Cookie Policy are available in your account dashboard. We recommend reviewing these documents when you first set up your account. # BrandWallet Reporting FAQ: Analytics, Exports and Data Source: https://docs.brand-wallet.com/faq/reporting Frequently asked questions about BrandWallet reporting — analytics tools, data export formats, data ownership, privacy, and key performance metrics. Understanding how your loyalty program is performing is just as important as running it. BrandWallet's reporting tools give you real-time visibility into customer behavior, campaign effectiveness, and overall program health — all from a single dashboard. The questions below address data access, export options, and how your information is protected and owned. ## Analytics and Reporting **Yes** — the BrandWallet Dashboard includes a comprehensive suite of analytics and reporting tools that surface actionable insights across every part of your loyalty program. **Key areas covered:** | Area | What you can track | | - | - | | **Customer Behavior** | How customers interact with your cards, visit frequency, and engagement patterns | | **Campaign Performance** | Conversion rates, redemption rates, and the effectiveness of individual promotions | | **Loyalty Metrics** | Points earned vs. redeemed, tier progression, and program adoption rates | | **Business Insights** | Revenue impact, customer lifetime value, and data-driven growth recommendations | **Dashboard features include:** * Real-time data visualization * Customizable reports tailored to your KPIs * Customer segmentation analysis * Performance tracking across all active campaigns * Export capabilities for offline analysis Access your live dashboard at [live.brand-wallet.com](https://live.brand-wallet.com) for up-to-the-minute reporting on all your campaigns. **Yes** — you can export your data at any time in a range of formats to suit your workflow: | Format | Best for | | - | - | | **CSV** | Spreadsheet analysis in Excel, Google Sheets, or similar tools | | **Excel (.xlsx)** | Detailed formatted reporting and pivot tables | | **PDF** | Presentations, printed reports, and stakeholder summaries | | **JSON** | Technical integrations with other systems or BI tools | **Exportable data includes:** * Customer information and contact records * Full transaction history * Campaign performance reports * Analytics summaries * Loyalty program metrics You can export data at any time — there are no restrictions on how often you export or how much data you can pull. ## Data Protection and Privacy BrandWallet applies multiple layers of security to keep your customer data safe: * **Encryption** — all data is encrypted both in transit (over the network) and at rest (in storage) * **Access controls** — role-based permissions ensure only authorized team members can access sensitive data * **Regular backups** — automated backup systems prevent data loss * **Compliance** — the platform adheres to relevant data protection regulations including GDPR For a full breakdown of our security standards, including multi-factor authentication and incident response procedures, see the [Legal & Compliance](/faq/legal) page. **No — your data is never sold, shared, or used for purposes outside of providing you with the BrandWallet service.** Our data policy is straightforward: * Your data is used solely to deliver and improve the loyalty services you've subscribed to * We help you understand and optimize your programs using your own data * We comply with all applicable privacy regulations * Your data is never aggregated into a shared pool or sold to third parties If you ever receive communication claiming to be from BrandWallet and asking you to share customer data with a third party, treat it as suspicious and contact our support team immediately. **You own your data — full stop.** BrandWallet's role is to help you collect, manage, and make sense of your loyalty program data. Ownership of that data remains with you at all times: * You retain full ownership of all customer data generated through your program * BrandWallet uses your data only to help you manage and improve your loyalty campaigns * You can export your complete dataset at any time * You can request deletion of your data at any time It's good practice to schedule regular data exports as a backup, even though BrandWallet maintains its own secure backups on your behalf. ## Key metrics to track Knowing which numbers matter most helps you get the most out of BrandWallet's reporting tools. Here are the key performance indicators to keep an eye on: **Customer engagement** * Active users and monthly engagement rate * Average visit frequency * Points or stamps earned vs. redeemed (redemption rate is a strong indicator of program health) **Campaign performance** * Conversion rate (how many customers take the desired action after receiving an offer) * Customer acquisition through loyalty-driven referrals * Retention rate over time **Business impact** * Revenue growth attributable to loyalty program participation * Customer lifetime value (CLV) by segment * Return on investment (ROI) per campaign **Program health** * Churn rate (customers who've become inactive) * Overall program adoption rate * Customer satisfaction scores tied to loyalty interactions # BrandWallet Support: Help, Training, and Contact Info Source: https://docs.brand-wallet.com/faq/support BrandWallet support options — email, phone, live chat, training sessions, and help desk. Response times vary by subscription plan. BrandWallet's support team is here to make sure you get the most out of the platform — whether you're just getting started, exploring advanced features, or dealing with an unexpected technical issue. You have access to multiple support channels, self-service resources, and structured training sessions. The level of support available to you depends on your subscription plan. The questions below explain your options in detail. **Yes** — BrandWallet provides dedicated customer support through multiple channels so you can always reach help in the way that's most convenient for you. **Available support channels:** | Channel | How to access | | - | - | | **Help Desk** | Submit and track support tickets through your account dashboard | | **Email** | Write to [support@brand-wallet.com](mailto:support@brand-wallet.com) | | **Phone** | Available through your account dashboard | | **Live Chat** | Available on the BrandWallet website | | **Knowledge Base** | Browse guides and documentation from within your dashboard | Response times vary by plan — see the support tier table below for details. **Yes** — BrandWallet offers comprehensive training and onboarding to help you and your team get up to speed quickly and use the platform to its full potential. **What training covers:** * Platform basics and initial setup walkthrough * Using advanced features such as segmentation, add-on promotions, and geo-targeting * Best practices for designing effective loyalty campaigns * Ongoing optimization strategies for long-term program growth **Training formats available:** * **One-on-one onboarding sessions** — personalized walkthroughs with a BrandWallet specialist * **Group training workshops** — ideal for teams onboarding together * **Video tutorials and guides** — self-paced learning available at any time * **Webinar series** — live sessions covering platform updates and strategy topics * **Documentation and written resources** — step-by-step articles for every feature Book your onboarding session as early as possible after signing up — getting personalized guidance from the start will save you significant time as you build your first campaign. If something isn't working as expected, here's the recommended process for getting it resolved quickly: **Before contacting support:** 1. Check this FAQ section for a documented answer 2. Search the Knowledge Base in your account dashboard 3. Review relevant video tutorials 4. Check the BrandWallet status page for any known outages **When you contact support, have ready:** * A clear description of the issue and what you expected to happen * Relevant screenshots or screen recordings * Your account plan type * Your account information (username or account ID) **What happens next:** 1. Submit a support ticket or contact the team directly 2. Our team will assess the issue and prioritize it based on your plan 3. We'll provide a resolution or workaround as quickly as possible 4. We'll follow up to confirm the issue is fully resolved Growth Plan customers receive priority response times and have access to a dedicated account manager for escalations. See the support tier table below for a full breakdown. ## Support tiers by plan Your subscription plan determines your support tier and the response times you can expect. | Feature | Basic | Standard | Growth | | - | - | - | - | | **Email support** | ✅ Standard | ✅ Priority | ✅ Priority | | **Phone support** | ❌ | ✅ | ✅ | | **Live chat** | ❌ | ✅ | ✅ | | **Help desk tickets** | ✅ | ✅ | ✅ | | **Knowledge base access** | ✅ | ✅ | ✅ | | **Dedicated account manager** | ❌ | ❌ | ✅ | | **Custom training sessions** | ❌ | ❌ | ✅ | | **Weekend support** | ❌ | ❌ | ✅ | | **Typical response time** | Within 2 business days | Within 1 business day | Same business day | If your business relies heavily on your loyalty program for daily operations, consider the Growth Plan for same-day response times and a dedicated account manager. ## Contact information Reach the BrandWallet support team through any of the following channels: | Channel | Details | | - | - | | **Email** | [support@brand-wallet.com](mailto:support@brand-wallet.com) | | **Phone** | Available through your account dashboard | | **Live Chat** | Available on the BrandWallet website | | **Help Desk** | Access via your account dashboard | **Business hours:** * **Monday – Friday:** 9:00 AM – 6:00 PM (your local time) * **Weekends:** Support available for Growth Plan (premium) subscribers * **Critical issues:** Emergency support is available outside of business hours for critical platform issues regardless of plan When reaching out by email or help desk ticket, include your account ID and a description of the issue to ensure the fastest possible resolution. # Authentication Source: https://docs.brand-wallet.com/integrations/authentication BrandWallet API uses a two-credential exchange mechanism to produce access tokens. You send your **API key** — which identifies your [Connection Type](/integrations/quickstart) — and an **API secret** — which identifies the organization account in your system — to receive a Bearer token scoped to that organization. Every subsequent API call includes this token in the `Authorization` header. ## Endpoints Two auth endpoints cover the whole lifecycle: | Endpoint | Purpose | | :- | :- | | `POST /auth/token` | Exchange API key + secret for an access token | | `POST /auth/refreshtoken` | Rotate the access token / refresh token pair | ## Credentials | Credential | Purpose | Lifetime | | :- | :- | :- | | **API Key** | Identifies your Connection Type. Issued once and used with every organization you connect. | Permanent (until rotated) | | **API Secret** | Identifies the customer organization. One secret per organization, collected during organization onboarding. | Permanent (until rotated) | Your API key and secrets grant access to organization data. Never embed them in client-side code or expose them in a browser. Only transmit them over HTTPS. ## Get a token Call `POST /auth/token` with your credentials as request headers — no request body is required. Both credentials are validated as a pair: a valid API key with an API secret that belongs to another Connection Type is rejected. The token is issued on behalf of the organization's account and is scoped to that organization. ### Request headers The API key issued to your Connection Type. The API secret issued for the connected organization. ### Response fields The JWT access token. Pass this value as `Bearer` in the `Authorization` header on all API requests. The token type. Always `Bearer`. Token expiry expressed as a Unix epoch timestamp in milliseconds. Compare this value against the current time to determine when to refresh. A token you can use to renew the session without re-sending your credentials. See [Refresh a token](#refresh-a-token) below. ## Call the API Include `Authorization: Bearer ` on every subsequent request. BrandWallet validates this token on each call and rejects requests with missing, expired, or malformed tokens. When your token expires, either refresh it or request a new one with your credentials. ## Refresh a token Instead of re-sending your credentials every time a token expires, call `POST /auth/refreshtoken` with the current `accessToken` and `refreshToken` pair. BrandWallet returns a new token pair and immediately invalidates the old refresh token. Refresh tokens are rotated — each successful call invalidates the token you send and returns a brand-new pair. Always replace both stored tokens immediately after a successful refresh. Resending an old refresh token fails with `_invalid_refresh_token`. ### Body parameters The access token issued together with the refresh token. This may be expired — the refresh endpoint accepts it regardless of expiry status. The refresh token from the same token response. Must be the latest token in the rotation; previously used tokens are invalidated. The response has the same shape as `POST /auth/token`: a new `accessToken`, `tokenType`, `expiresIn`, and `refreshToken`. ## Error codes | Code | HTTP Status | Meaning | | :- | :- | :- | | `_invalid_payload` | 400 | The `x-api-key` or `x-api-secret` header is missing from the `/auth/token` request. | | `_invalid_credentials` | 401 | The API key and API secret pair is invalid or does not match a known organization. | | `_invalid_refresh_token` | 400 | The refresh token is unknown, expired, or has already been rotated. | | `_jwt_expired` | 401 | The access token has passed its expiry time. Refresh or re-request a token. | | `_jwt_malformed` | 401 | The access token is not a valid JWT and cannot be parsed. | For the complete list of error codes returned across all endpoints, see the [Error Reference](/api/errors). ```bash POST /auth/token theme={null} curl --request POST \ --url "$BASE_URL/auth/token" \ --header 'x-api-key: YOUR_API_KEY' \ --header 'x-api-secret: ORGANIZATION_SECRET' ``` ```bash POST /auth/refreshtoken theme={null} curl --request POST \ --url "$BASE_URL/auth/refreshtoken" \ --header 'Content-Type: application/json' \ --data '{ "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6...", "refreshToken": "946d2689-c4e4-4ca2-a194-..." }' ``` ```bash Authenticated request theme={null} curl "$BASE_URL/v1/customers/find?q=5551234567" \ --header 'Authorization: Bearer ACCESS_TOKEN' ``` ```json 200 OK theme={null} { "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6...", "tokenType": "Bearer", "expiresIn": 1754126400000, "refreshToken": "946d2689-c4e4-4ca2-a194-..." } ``` ```json 401 Unauthorized theme={null} { "statuscode": 401, "errorcode": 401, "message": "_invalid_credentials", "description": "", "timestamp": 1754040000000, "path": "/auth/token", "method": "POST" } ``` ```json 400 Bad Request theme={null} { "statuscode": 400, "errorcode": 400, "message": "_invalid_refresh_token", "description": "", "timestamp": 1754040000000, "path": "/auth/refreshtoken", "method": "POST" } ``` # Headless Loyalty System Source: https://docs.brand-wallet.com/integrations/introduction BrandWallet provides complete set of tools for you to integrate loyalty capabilities to your systems or apps. Whether you are a cashier POS systems developer, an e-commerce software provider or you just want to integrate customer loyalty features to your brand's new app, BrandWallet gets you covered. ## Who is BrandWallet Headless Loyalty System for? You can create a frictionless customer experience by integrating your POS system with BrandWallet. You can easily register customers via QR codes and process their digital cards seamlessly from your cashier POS system. You want your e-commerce software to enable your customers to earn and burn points? You want promotion features for your customers? Look no more. BrandWallet provides all the tools you need. BrandWallet provides all tools and APIs for you to develop your own custom customer facing app for your brand. Onboarding flows like sign-up and forgot password, phone and email verification with OTPs, notifications, multiple digital cards, tiers, user preferences and many more features are all handled by BrandWallet. We also develop custom apps according to your requirements. Please get in touch with us, let's talk. [Contact Sales](https://www.brand-wallet.com/contact-enterprise-sales) ## Next steps Get your credentials, create a demo account and start developing. # Start integrating with BrandWallet Source: https://docs.brand-wallet.com/integrations/quickstart You need a developer account to access BrandWallet apps and APIs. Please create an account and start developing. ## Connection Type Integrating with BrandWallet means creating a new **Connection Type**. This connection type then can be added by organizations to their BrandWallet accounts to enable two systems to work together. Every cashier POS system or e-commerce software that integrates with BrandWallet is considered as a **Connection Type** in BrandWallet. Connection Type defines how two systems communicate with each other, which authentication method is used, which data is synchronized between two systems and contains information like a logo and description. ## Multi-tenancy BrandWallet runs on a multi-tenant architecture. The **Connection Type** you are creating must also enable multiple organizations on your system to be able to work with BrandWallet without loosing or exposing any data. To enable this workflow we will give your system an **API key** to access BrandWallet and a unique **API secret** for each of your organizations to access their data. Please feel free to contact [dev@brand-wallet.com](mailto:dev@brand-wallet.com) to learn more about multi-tenancy if necessary. ## Get your credentials Follow the steps below to start developing. Send an email to [dev@brand-wallet.com](mailto:dev@brand-wallet.com) to request your free BrandWallet account. We will create an **API key** for your system. We will also create a new **Connection Type** with the information you provided. Then we will create a **demo customer account**, with several digital cards and subscribers for you to start testing. **Api secret** for the demo customer account, user credentials to login to dashboard for this demo customer account and further instructions will be present in the email we return back to you. Once you have your credentials and you're signed-in at [Dashboard](dev-live.brand-wallet.com), you can play with the settings of your cards and register more subscribers. When you have your credentials and your setup is complete, you can start to use BrandWallet APIs to access your data and send transactions to your subscribers' digital cards. Please see [BrandWallet API](https://docs.brand-wallet.com/api/overview) documentation for data models and endpoints ## Next steps Once you have your credentials and your demo customer account is up and running, explore the rest of the platform to get the most out of BrandWallet: Learn how to secure your API requests Learn best practices for processing your subscribers' digital cards Direct BrandWallet traffic to other systems # Sync Data Source: https://docs.brand-wallet.com/integrations/sync-data Synchronize critical resources to BrandWallet There are some resources which are used in campaign and promotion configurations in BrandWallet — products and categories. In some cases, integrating systems require their own ids of resources to be exchanged over api calls — ids of users, branches, products and categories. It is always a good practice to sync this data periodically from integrating system to BrandWallet. ## Critical Resources | Resource | Description | | - | - | | User | The person who has credentials to access integrating system | | Branch | The shop from which the transactions are coming | | Product | Products and services the organization is providing to customers | | Category | The groups of products organized with a specific logic | ## Letting BrandWallet Access Your Data When a customer adds your [Connection Type](/quickstart) to their BrandWallet account as a new **Connection**, BrandWallet can connect to integrating system and pull critical resources. To enable this, you have to provide a `BaseUrl` and `Authentication` properties in your ConnectionType. BrandWallet requires the following endpoints to be provided by the integrating system in order for the data synchronization can be carried out. ```bash theme={null} GET $BaseUrl/users GET $BaseUrl/branches GET $BaseUrl/products GET $BaseUrl/categories ``` Please check the [API documentation](/api/list-customers) for **data models** for these resources. BrandWallet pulls critical resource data only **once** when a new connection is added by the organization. After initial Connection setup, organization users can goto Settings > Connections and manually sync data. BrandWallet will not sync data if the incoming data models do not match with the ones in the [API documentation](/api/list-customers) ## WebHooks For the critical resources, BrandWallet considers the integrating system as the **single point of truth**. BrandWallet **does not** let organization users to edit these resources from the **Dashboard**. Since these resources may be subject to frequent updates — new products, closing branches, new users onboard — it is the integrating system's responsibility to update these critical resources when necessary. You can use the following WebHooks to push the updates to BrandWallet. BrandWallet **does not** let organization users to edit critical resources from the **Dashboard**. # Digital Loyalty Platform for Modern Businesses Source: https://docs.brand-wallet.com/introduction-2 BrandWallet is a complete digital loyalty solution — build stamp cards, point programs, and tiered rewards without writing a single line of code. BrandWallet is a complete digital loyalty platform designed for businesses of all sizes. It gives you the tools to create, manage, and grow customer loyalty programs — from simple stamp cards to multi-tier point systems — entirely from your web browser. Whether you're an independent café or a regional retail chain, BrandWallet helps you build lasting relationships with your customers without requiring any technical background or developer resources. # Add-On Promotions: Boost Loyalty Campaign Engagement Source: https://docs.brand-wallet.com/loyalty/add-on-promotions Add-on promotions layer extra rewards on your BrandWallet campaigns — double points, time-limited bonuses, referral rewards, and exclusive discounts. Add-on promotions are additional incentives you can layer onto your existing loyalty campaigns to drive higher engagement, reward your best customers, and create moments of excitement that keep people coming back. They work alongside your standard campaign rewards rather than replacing them, giving you a flexible toolkit for shaping customer behavior. ## What are add-on promotions? Add-on promotions are supplementary offers you attach to a campaign to make it more compelling at specific moments. They include: * **Extra loyalty points** — bonus points awarded on top of the standard earn rate * **Exclusive discounts** — special price reductions available only to loyalty card holders * **Special bonuses** — one-off rewards tied to specific actions or milestones * **Time-limited rewards** — offers with a defined start and end date that create a sense of urgency You can include any combination of these in a campaign to match your promotional goals and business calendar. ## Types of add-on promotions Add-on promotions come in a variety of forms so you can tailor them to your campaign objectives: * Double or triple points during specific times or events * Exclusive rewards for frequent visitors * Bonus points for specific actions (such as a first visit, a product review, or a referral) * Time-limited seasonal campaigns tied to holidays or local events * Referral bonuses for customers who bring in new members ## How add-on promotions help Extra incentives give customers a stronger reason to engage with your loyalty program. When there's an added reward on offer, customers who might otherwise skip a visit are more likely to act — driving footfall and transaction volume precisely when you need it. Time-limited offers encourage customers to take immediate action rather than putting off a visit or purchase. A promotion that expires at the end of the week creates a clear deadline that motivates faster decisions and more frequent check-ins. Add-on promotions let you recognize your most loyal customers with benefits that casual visitors don't receive. Exclusive rewards for frequent visitors reinforce the value of loyalty membership and deepen the relationship between your brand and your best customers. Regular promotions give customers an ongoing reason to stay engaged with your program rather than drifting away. By consistently offering something new, you keep your loyalty program top of mind and reduce the likelihood that customers will switch to a competitor. ## Setting up add-on promotions You configure add-on promotions directly from the BrandWallet dashboard when creating a new campaign or editing an existing one. Simply select the promotion type you want to add, define the terms — such as the reward value, qualifying actions, and active date range — and save. Your customers will see the updated offer the next time they open their card. Use add-on promotions during slow periods or seasonal events to re-engage customers who haven't visited in a while. A well-timed double-points weekend or a holiday bonus offer can be exactly the nudge an inactive customer needs to return. # Design and Customize Your Loyalty Cards with BrandWallet Source: https://docs.brand-wallet.com/loyalty/campaign-designer Use BrandWallet's Campaign & Pass Designer to build branded digital loyalty cards — customize colors, logos, layouts, and messages from the dashboard. The Campaign & Pass Designer lets you create fully branded digital loyalty cards directly from the BrandWallet dashboard — no design experience required. You control every visual and messaging detail, so your loyalty card feels like a natural extension of your brand from the moment a customer downloads it. ## Accessing the designer To open the Campaign & Pass Designer, log in to your BrandWallet dashboard and navigate to **Campaigns**. From there, select an existing campaign to edit its card, or create a new campaign to design a card from scratch. All design changes are saved to your campaign instantly and take effect for customers right away — there's no publishing step required. ## What you can customize BrandWallet gives you full control over how your digital card looks and what it communicates. You can update any of the following elements at any time: * **Layout and design elements** — choose how information is arranged on the card face * **Colors and branding** — apply your brand palette to backgrounds, text, and accents * **Text and messaging** — write the labels, descriptions, and calls to action that appear on the card * **Images and logos** — upload your logo and any supporting visuals * **Templates** — start from a pre-designed template and customize it to match your style, or use it as-is for a polished result right away ## Brand customization You can fully customize your digital cards with your brand's colors, logo, and other visual elements so that every card you issue aligns with your brand identity. Apply your exact color palette to backgrounds, text, and accent elements, and upload your logo so it appears prominently on every card. The result is a loyalty card that feels like a natural part of your brand — not a generic template. ## Customer segmentation and personalized offers You can create personalized offers for different segments of your customer base, making your loyalty program more relevant and effective. Segmentation can be based on: * **Customer behavior** — how often they visit or what they tend to purchase * **Purchase history** — which products or services they buy most * **Loyalty level** — where they sit in your rewards structure * **Demographics** — age, location, or other profile attributes Delivering the right offer to the right customer at the right time increases engagement and makes customers feel genuinely valued. ## Tiered rewards You can set up tiered loyalty programs that reward customers more generously as they reach higher milestones. Tiers can be based on total spending, number of visits, or completion of specific actions. As customers climb through the tiers, they unlock progressively better rewards — creating a clear motivation to keep coming back and engage more deeply with your business. ## Referral programs You can set up a referral program that rewards your existing customers for introducing friends or family to your business. Referral rewards are a cost-effective way to acquire new customers while reinforcing the loyalty of the people already in your program. You configure the referral terms, reward values, and messaging all from within the BrandWallet dashboard. Changes to card designs are reflected immediately for all customers — there's no need to reissue cards or ask customers to re-download anything. You can refine your design, update your messaging, or refresh your branding at any time from the dashboard. Campaign types can be adjusted after creation, so you're not locked into your initial choice. If your business needs evolve, you can update the campaign type to better fit your new strategy. # BrandWallet Loyalty Campaign Types and Plan Limits Source: https://docs.brand-wallet.com/loyalty/campaign-types BrandWallet supports seven loyalty campaign types — stamp cards, point cards, discount cards, event cards, staff cards, tiered cards, and membership cards. BrandWallet gives you the flexibility to choose from seven distinct loyalty campaign types, so you can match your program to your business model, your customers' habits, and your goals. Whether you run a café, a retail shop, or a service business, there's a campaign type designed to help you build lasting customer relationships. ## Campaign types A traditional punch card system that rewards customers with a stamp for each visit or purchase. Once they collect enough stamps, they unlock a reward — simple, familiar, and effective. Customers accumulate points with every transaction and redeem them for rewards, discounts, or free items. Point cards are ideal for businesses with varied purchase values. Offer customers percentage-based or fixed-value discounts. Discount cards are a straightforward way to drive repeat purchases and encourage larger basket sizes. Run special promotions tied to events, holidays, or seasonal moments. Event cards let you create time-bound campaigns that generate excitement and urgency. Design employee-specific programs to manage staff perks, internal rewards, or team incentives — separate from your customer-facing campaigns. Reward customers progressively as they reach higher spending or visit milestones. Tiered cards motivate continued engagement by unlocking better benefits at each level. Offer exclusive member benefits to customers who sign up for your program. Membership cards strengthen brand loyalty and give your best customers a sense of belonging. ## Card limits by plan The number of digital cards you can issue and the campaign types available to you depend on your BrandWallet subscription plan. | Plan | Cards Allowed | Available Types | | - | - | - | | **Basic** | 1 card | Stamp Card, Point Card | | **Standard** | 2 cards | Stamp Card, Point Card, Double Stamp Card, Membership Card, Discount Card | | **Growth** | 5 cards | All card types including Event Card, Triple Stamp Card, Quadruple Card | ## Offline use Customers can display their loyalty cards offline, which means they can show the card at your point of sale even without a data connection. However, an internet connection is required for any transactions — including redeeming points, adding stamps, or upgrading rewards. Make sure your staff are aware that offline display is supported, but data updates always need connectivity. ## Multilingual support BrandWallet supports over 8 languages so your loyalty program can reach customers wherever they are and in whatever language they speak. When a customer downloads their digital card, it automatically appears in the language set on their phone. Supported languages include: * English * Arabic * German * French * Russian * Turkish * Spanish * Hebrew * Azeri This means you don't need to create separate campaigns for different language groups — BrandWallet handles the localization for you. ## Updating your campaign You can change your campaign type after creation, giving you the flexibility to adapt your loyalty strategy as your business evolves. Card designs can also be updated at any time from the BrandWallet dashboard, and changes take effect immediately for all customers. # BrandWallet Merchant App: Manage Loyalty On the Go Source: https://docs.brand-wallet.com/merchant-app/overview The BrandWallet Merchant App for iOS and Android lets you manage campaigns, view real-time analytics, send push notifications, and reach customers. The BrandWallet Merchant App puts full control of your loyalty program in your pocket. Whether you're on the shop floor or away from your desk, you can manage campaigns, monitor performance, communicate with customers, and coordinate your team — all from your iOS or Android device. ## Download the app Download the BrandWallet Merchant App from the **App Store** (iOS) or **Google Play Store** (Android). Once installed, log in with your existing BrandWallet credentials to access your account immediately — no separate registration required. ## What you can do View and manage all customer loyalty cards, check balances, and monitor card activity across your program. Access real-time campaign stats to see how your promotions are performing and make timely adjustments. Send targeted alerts and promotional messages directly to your customers' devices from anywhere. Manage staff access and permissions so the right people have the right level of control. ## Real-time data You can view live transaction data, customer engagement metrics, campaign performance stats, and revenue tracking directly within the app. Because data updates in real time, you always have an accurate picture of how your loyalty program is performing — without waiting for end-of-day reports. ## Integrations BrandWallet integrates with your existing business tools so your loyalty data flows seamlessly across your stack. Supported integration categories include POS systems, CRMs, accounting software, and e-commerce platforms, letting you manage loyalty alongside the rest of your operations. ## Tracking redemption Use the app's reporting and analytics tools to track how customers are earning and spending points. You can monitor points earned vs. redeemed, reward redemption rates, customer engagement levels, and campaign effectiveness — giving you the insight you need to optimise your program over time. ## Getting started Finish onboarding your BrandWallet account, including business details and program configuration. Install the BrandWallet Merchant App from the App Store or Google Play Store on your iOS or Android device. Open the app and sign in with your BrandWallet credentials to connect to your account. Create your first loyalty campaign from the app or dashboard to start rewarding your customers. # Send Push Notifications to Customers via BrandWallet Source: https://docs.brand-wallet.com/merchant-app/push-notifications BrandWallet lets you send transactional, marketing, and location-based push notifications — customize content, timing, and targeting from the dashboard. Push notifications keep your customers engaged with timely, relevant messages sent directly to their phones. BrandWallet supports transactional alerts, marketing campaigns, birthday messages, and geo-targeted offers — giving you a flexible toolkit to reach customers at the right moment with the right message. ## Notification types Keep customers informed after every interaction with automated transactional messages: * Purchase confirmations * Points earned notifications * Reward redemption alerts * Payment confirmations Drive sales and awareness with outbound promotional messages: * Promotional offers * New product announcements * Event invitations * Seasonal campaigns Nurture long-term loyalty with messages that recognise and reward your customers: * Birthday celebrations (sent automatically) * Anniversary reminders * Loyalty milestone achievements * Re-engagement campaigns ## Location-based notifications Geo-targeting lets you send location-based rewards and offers when customers are near your store. From the [BrandWallet Dashboard](https://live.brand-wallet.com), you can define geographic regions for targeting, set a notification radius, create location-specific offers, and schedule location-based campaigns — making it easy to drive foot traffic exactly when it matters. ## Birthday notifications BrandWallet automatically detects each customer's birthday and sends a personalised notification on the day. You can fully customise the message content, offers, and rewards included — so the notification feels on-brand and genuinely rewarding for your customers. ## Customising notifications From the BrandWallet Dashboard, you can customise every aspect of your notifications, including: * Notification text and messaging * Brand colours and styling * Timing and frequency * Call-to-action buttons You can also send personalised notifications based on customer behaviour, purchase history, engagement level, and demographics — ensuring every message is relevant to the person receiving it. ## Best practices 1. Send notifications at optimal times for your customer base to maximise open rates. 2. Don't overwhelm customers — respect frequency and give people space between messages. 3. Personalise messages using customer data to make every notification feel relevant. 4. Always provide value in every notification; avoid sending messages without a clear benefit. 5. A/B test different messages and timing to learn what resonates with your audience. Always provide an easy opt-out option in your notifications and ensure your messaging practices comply with local privacy regulations, including GDPR where applicable. # Analytics and Reporting in the BrandWallet Dashboard Source: https://docs.brand-wallet.com/merchant-app/reporting Track campaign performance, customer behavior, and loyalty program health with BrandWallet's real-time dashboard. Export data as CSV, Excel, PDF, or JSON. The BrandWallet Dashboard at [https://live.brand-wallet.com](https://live.brand-wallet.com) provides real-time analytics and reporting tools to help you understand your loyalty program performance. From live transaction monitoring to custom scheduled reports, you have everything you need to make data-driven decisions and grow your program with confidence. ## Key metrics Track active users, visit frequency, and points earned vs. redeemed to understand how customers interact with your program. Monitor conversion rates, customer acquisition, and retention rates to measure the effectiveness of each campaign. Measure revenue growth, customer lifetime value, and return on investment to see the direct impact of your loyalty program. Keep an eye on churn rate, satisfaction scores, and adoption rate to ensure your program remains strong over time. ## Real-time dashboard features The live dashboard gives you an immediate view of what's happening across your loyalty program: * Live transaction monitoring * Instant performance updates * Real-time customer activity * Live campaign metrics ## Custom reports When you need a deeper look at specific areas of your program, the report builder gives you full flexibility. You can create custom reports tailored to your business questions, schedule recurring reports to be delivered automatically, receive automated insights surfaced by BrandWallet, and set performance alerts so you're notified when metrics cross key thresholds. ## Exporting data You can export your data at any time in CSV, Excel, PDF, or JSON format to use in your own tools and workflows. Exportable data includes customer information, transaction history, campaign performance, analytics reports, and loyalty program metrics — giving you complete portability over your business data. You own all data generated by your business. BrandWallet uses your data only to provide services to you — it is never sold or shared with third parties. You can export or delete your data at any time. # Manage Team Access and Roles in BrandWallet Merchant App Source: https://docs.brand-wallet.com/merchant-app/team-management Invite staff to manage your BrandWallet account with role-based access — assign Admin, Manager, Staff, or Viewer roles to control what each user can do. BrandWallet supports multiple simultaneous users with role-based access control. You can invite your entire team and assign each person a role that matches their responsibilities — so everyone has exactly the access they need, and nothing more. ## Available roles | Role | Access level | What they can do | | - | - | - | | **Admin** | Full access | Manage all features, users, billing, and campaigns | | **Manager** | Campaign management | Manage campaigns and view analytics; no billing access | | **Staff** | Basic transactions | Process transactions at the point of sale | | **Viewer** | Read-only | View dashboards and reports only | ## Adding team members Team members are added directly from the BrandWallet dashboard. Once you send an invitation, each member receives their own login credentials to access the account. Multiple users can be active and working in the account simultaneously without conflict, making it easy to coordinate across shifts or locations. Assign the minimum necessary role to each team member to keep your account secure. A staff member who only needs to process transactions doesn't require Manager or Admin access. Role availability may depend on your subscription plan. Check your current plan to confirm which roles are supported. # BrandWallet Pricing Plans — Basic, Standard, and Growth Source: https://docs.brand-wallet.com/pricing Compare BrandWallet's Basic, Standard, and Growth plans. Pricing starts at $50/month, and annual billing saves up to 20% versus monthly rates. BrandWallet offers three subscription plans — Basic, Standard, and Growth — designed to scale with your business. Every plan includes the core platform features you need to run a successful loyalty program, and you can switch between plans at any time. Choose monthly billing for flexibility, or commit to annual billing and save up to 20%. ## Plan comparison | Plan | Monthly | Annual | Loyalty Cards | Support | | - | - | - | - | - | | **Basic** | \$50/mo | \$480/yr | 1 card (Stamp or Point Card) | Email support | | **Standard** | \$65/mo | \$624/yr | 2 cards (Stamp, Point, Double Stamp, Membership, Discount) | Priority support | | **Growth** | \$80/mo | \$768/yr | 5 cards (all types incl. Event, Triple Stamp, Quadruple Stamp) | Premium support | ### Basic — \$50/month The Basic plan gives you everything you need to launch your first digital loyalty program: * **1 loyalty card** — Stamp Card or Point Card * Basic analytics to track card activity and customer visits * Email support from the BrandWallet team ### Standard — \$65/month The Standard plan is ideal for businesses ready to offer more variety and richer insights: * **2 loyalty cards** — choose from Stamp Card, Point Card, Double Stamp Card, Membership Card, and Discount Card * Enhanced analytics with deeper customer behaviour reporting * Priority support with faster response times ### Growth — \$80/month The Growth plan is built for businesses that want the full power of BrandWallet: * **5 loyalty cards** — access all available card types, including Event Card, Triple Stamp Card, and Quadruple Stamp Card, in addition to all Standard card types * Advanced analytics with comprehensive performance dashboards * Premium support with dedicated assistance * Custom integrations to connect BrandWallet with your existing tools and workflows ## What's included in every plan Regardless of the plan you choose, every BrandWallet subscription includes: * **Merchant App** — iOS and Android app for processing loyalty transactions in-store or on the go * **Comprehensive Dashboard** — manage campaigns, view performance, and configure reward rules from one place * **Digital Card Setup Tools** — create and customise your loyalty cards with no design or coding skills needed * **Customer Segmentation** — target specific groups of customers with tailored campaigns and messages * **Analytics & Reporting** — track key metrics across all your active campaigns * **Ongoing Support** — access to the BrandWallet support team throughout your subscription ## Add-ons Some advanced capabilities — such as enhanced analytics packages and custom third-party integrations — may carry additional fees depending on your current plan. If you're on the Basic or Standard plan and need a feature that's part of a higher tier, you can upgrade at any time or ask about standalone add-ons. Contact our sales team at [support@brand-wallet.com](mailto:support@brand-wallet.com) for detailed add-on pricing and personalised recommendations. ## Billing * **Billing cycle** — choose monthly or annual billing at sign-up or when you next renew. * **Annual discount** — save up to 20% compared to monthly billing when you pay annually upfront. * **Payment methods** — credit card and bank transfer are both accepted. * **Cancellation** — you can cancel your subscription at any time with 30 days' notice. There are no long-term contracts. You can upgrade or downgrade your plan at any time from the [BrandWallet dashboard](https://live.brand-wallet.com). Changes take effect at the start of your next billing cycle, and the team will help you transition smoothly so nothing is disrupted for your customers. # Find the Subscriber Source: https://docs.brand-wallet.com/process/find-subscriber When a registered subscriber wants to make a transaction at the cashier, integrating system must first find the customer by calling [find a customer endpoint](/api/find-customer). This endpoint returns a populated [Subscriber](/api/customer-object) object. ## Subscriber Data A Subscriber object is a collection of personal information — which is provided by the registration process, digital cards, usable coupons and a representation of transaction generated values called **Collectables** of that subscriber. ### Data All the subscriber generated data during registration process can be found here. Most probably, subscriber's "fullname" will be here. — There are some organizations who do not require their subscribers to give their full name. Be aware that subscribers can update their information, so storing this data and depending on this for future use may end up in expired data. ### Collectables When a subscriber collects stamps, earn points, buy airtime etc. the collected values are stored in Collectable objects. These objects contain the current `value`, `total` accumulated value and more about the collectable. You can use the `label` attribute, for example. If the organization configured their digital cards to collect stamps and named it "Coffee", you can find the word "Coffee" here. ### Cards You can find subscriber's cards here. Each card has a `name`, `status`, `barcode` and `options`. Barcode is unique organization-wide. Most of the time `barcode` numbers are numerical but some organizations can change this property to alphanumerical. If you find your customer using **barcode**, number exactly one card will return with the Subscriber object. If you search with barcode, you will get **exactly** the one subscriber card that you are looking for, subscriber's other cards will not be in the response. Options of the card gives you information about how this digital card's default campaign settings work. ### Coupons Coupons are the main tool of BrandWallet to reward the subscribers. You can find active — usable, not expired, not redeemed — coupons of the subscriber in `coupons` attribute of Subscriber object. Each coupon has a `name`, `issuedAt` — the issue time —, `type`, `code`and `status` attribute. Coupons can be used for `discount` or for free`product`. This setting can be found in `type` attribute. #### Free Product Coupons If a coupon is for free product, you can find the free product settings in `products` attribute. The products for which the coupon can be used for is listed in the `products.productIds` attribute. The ids found in the list are integrating system's ids. You can freely use these ids to lookup the products from your side. When a subscriber wants to use their coupon for free products, it is the integrating system's responsibility to present the proper means for the cashier — or subscriber in case of a shopping kiosk — to select which products they want to redeem their coupon for. When a subscriber wants to use their coupon for free products, it is the integrating system's responsibility to present the proper means to select which product they want to redeem their coupon for. Some coupons may be redeemed for more than one product. You can find this setting in `products.quantity` attribute. #### Discount Coupons If the coupon is for discount, it will have `discountAmount`, `isPercent` and `maxDiscountAmount` attributes. There are two types of discount coupons. First one is for percent discount. For a percent discount coupon `isPercent` attribute is set to `true` and when this flag is true `discountAmount` attribute holds the percentage of discount this coupon will apply to check total. The second type is for amount discounts. For an amount discount coupon `isPercent` attribute is set to `false` and when this flag is false `discountAmount` attribute holds ney amount of discount this coupon will apply to check total. You should always take `maxDiscountAmount` attribute into consideration while you are applying coupons to your check. If this attribute has a value, the net amount of discount you calculate from the coupon settings should never exceed this value. #### Expiring Coupons Some coupons can have an `expiresAt` property. This expiration date is set while issuing the coupon. You can use this date to warn the subscriber that their coupon will expire soon and they should take action. But be aware that the expiration date of subscriber coupons are subject to change so use this property accordingly. #### Get Subscriber Coupons In some use cases, you may want to fetch a fresh list of coupons a subscriber have without fetching all of the subscriber's data. In this case you can use the [Get subscriber coupons endpoint](/process/get-coupons). ## Subscribers with multiple cards Some organizations may issue more than one digital cards and their customers can subscribe more than once. BrandWallet creates only one subscriber with the same information — uniqueness can be achieved by phone number or email — but each subscriber can have many cards. While finding a customer with email or phone number, be aware that all of their cards will be returned. It is the integrating system's responsibility to present proper means to the subscriber to enable them to select which of their cards they want to use. If you search with barcode, you will get exactly the one subscriber card that you are looking for, subscriber's other cards will not be in the response. While finding a customer with email or phone number, be aware that all of their cards will be returned. It is the **integrating system's responsibility** to present proper means to the subscriber to enable them to select which of their cards they want to use. If you search with barcode, you will get **exactly** the one subscriber card that you are looking for, subscriber's other cards will not be in the response. ```json Subscriber theme={null} { "id": "3d8ec956-de2a-4d43-9c1e-74475b153362", "data": { "fullname": "Jane Doe", "phone": "+905551234567", "email": "jane@example.com" }, "collectables": { "point_MMSR5": { "label": "Points", "value": 1000, "total": 2760 } }, "consents": { "marketing": true }, "cards": [ { "id": "41dd8263-288e-4b55-bf2e-6a82995a0441", "name": "Point Card", "barcode": "803606", "status": 1, "options": { "spend": { "pointstoconvert": 1, "convertto": 1, "collectwhilespending": false, "collectfromdiscountedamount": false, "ratio": 1 } } } ], "opaqueId": null, "status": 1, "createdAt": "2026-04-21T12:19:19.037Z", "coupons": [ { "id": "906550fd-dcf5-4aed-a80e-03e8939fc2b4", "coupon": { "name": "Free Coffee Coupon" }, "code": "431825", "type": "product", "products": { "quantity": 1, "productIds": [ "4221450", "4221453", "4221456" ] }, "issuedAt": "2026-04-21T12:19:19.037Z", "expiresAt": "2026-09-09T12:14:08.511Z", "status": "active" }, { "id": "eb2373b1-8a01-41b7-a8f9-48d462ede4e0", "coupon": { "name": "10% Discount Coupon" }, "code": "667500", "type": "discount", "discountAmount": 10, "isPercent": true, "maxDiscountAmount": 25, "issuedAt": "2026-04-27T12:14:20.513Z", "status": "active" } ] } ``` # Your First Transaction Source: https://docs.brand-wallet.com/process/first-transaction Learn how to find a subscriber, load all of their data and send a transaction to be processes by BrandWallet. Card processing in BrandWallet starts with finding the subscriber. But before; ## Register a Subscriber A subscriber scans a QR Code or taps a link to go to a registration page for a digital card of an organization. When the form is filled and some checks are checked, the subscriber submits the form. Then; Registering a subscriber is different than creating a new record in DB. There may be add-on promotions configured to be triggered with this registration event. Also some WebHooks may be called with the new subscriber's data. After a Subscriber is created, you can now find this customer by searching with their barcode, phone number or email. When you successfully find the subscriber card you want to process, you can create a Transaction and send it to BrandWallet to process. # Get Customer Coupons Source: https://docs.brand-wallet.com/process/get-coupons # Process Transaction Source: https://docs.brand-wallet.com/process/process-transaction BrandWallet works very similarly to a cashier POS system payment or an e-commerce software checkout, when it comes to processing subscribers' digital cards. To process a subscriber's card, integrating system creates a [Transaction](/api/transaction-object) object and sends it to [process transaction endpoint](/api/process-transaction). BrandWallet processes this object according to the default campaign settings of the digital card. Collectable values are re-calculated, if there are coupons in the transaction they are redeemed or new coupons are issued to the subscriber according to the campaign settings. Transaction object is very similar to a POS system's check or shopping cart in an e-commerce software. It contains `customer`, customer's digital `card`, `items` — products — and the total volume — `amount` — of the transaction. Points to spend in earn\&burn campaigns and coupons the subscriber wants to use for this transaction is also included in the Transaction object if necessary. ## Transaction Object Every transaction object must contain subscriber's id in `customer` and subscriber's digital card id in `card` attributes. These two identifies which card is going to be processed. You can find these values in [Subscriber](/api/customer-object) object returned from [find a subscriber endpoint](/api/find-customer). ## Testing The Payload Lorem Ipsum ## Error Codes Lorem Ipsum ```text Transaction theme={null} { "customer": "3d8ec956-de2a-4d43-9c1e-74475b153362", "card": "41dd8263-288e-4b55-bf2e-6a82995a0441", "items": [ { "id": "8f26e6c7-...", "quantity": 4, "amount": 140, "productPrice": 150, "name": "Americano" } ], "amount": 550, "redeem": { "points": 120 } } ``` # Redeem a Coupon Source: https://docs.brand-wallet.com/process/redeem-coupon # BrandWallet Quickstart: Launch Your Loyalty Program Source: https://docs.brand-wallet.com/quickstart Create your BrandWallet account, design your first loyalty campaign, and start rewarding customers — the entire setup takes about 10 minutes. BrandWallet is entirely browser-based, so you don't need to download or install anything to get started. The guided setup process takes approximately 10 minutes from start to finish, and you can begin rewarding your customers the same day. Follow the steps below to go from zero to a live loyalty program. Send an email to [dev@brand-wallet.com](mailto:dev@brand-wallet.com) to request your free BrandWallet account. The team will provision your account and send you login credentials. No technical knowledge is required — if you can use a web browser, you can use BrandWallet. Once you're logged in at [live.brand-wallet.com](https://live.brand-wallet.com), select the subscription plan that fits your business. BrandWallet offers three options: * **Basic** (\$50/mo) — 1 loyalty card, ideal for businesses just getting started * **Standard** (\$65/mo) — 2 loyalty cards, with access to more card types and enhanced analytics * **Growth** (\$80/mo) — 5 loyalty cards, all card types, advanced analytics, and custom integrations You can upgrade or downgrade at any time. See the [Pricing](/pricing) page for a full comparison, including annual billing discounts of up to 20%. Open the **Campaign & Pass Designer** from your dashboard. Choose a campaign type that suits your business: * **Stamp Card** — reward customers after a set number of visits or purchases * **Point Card** — let customers accumulate and redeem points * **Membership Card** — offer exclusive perks to registered members * **Discount Card** — deliver percentage or fixed-value discounts * **Double / Triple / Quadruple Stamp** — run promotional periods with multiplied stamp rewards * **Event Card** — manage event-based loyalty and ticketing Customise the colours, logo, and reward rules to match your brand, then save your design. Your progress is saved automatically at every step. Publish your loyalty card from the dashboard. Share the card link with your customers via your website, social media, email, or in-store QR code. Customers tap the link to add the card to their **Apple Wallet** or **Google Wallet** instantly — no app download required on their end. Your team can start processing stamps, points, and redemptions right away using the BrandWallet Merchant App on iOS or Android. Your setup progress is saved automatically at every step. If you need to pause and come back later, simply log in again and continue from where you left off — nothing will be lost. ## Next steps Once your first campaign is live, explore the rest of the platform to get the most out of BrandWallet: Dive deeper into every loyalty card type and learn how to configure reward rules for each one. Set up the iOS and Android Merchant App so your team can process loyalty transactions on the go. Connect BrandWallet to your point-of-sale system to automate reward processing at checkout. # Standard Payload Source: https://docs.brand-wallet.com/untitled-page-8 # Errors Source: https://docs.brand-wallet.com/untitled-page-9