For the complete documentation index, see llms.txt. This page is also available as Markdown.

Customer Registration & Schema

This document covers all services related to the customer schema — retrieving it, and updating it to support staff/store information captured during in-store customer registration.

Overview

When a customer is registered by an in-store user, store and staff information (id, email) is sent in the payload by default. These fields should appear under Omnitron → Sales Channels → Users → User Features, in the collapse section.

If these fields are not visible, the schema currently in use must be updated with the PUT request described below.

GET Customer Schema

Returns a detailed view of the current customer schema.

Path: /{{omnitron_url}}/api/v1/remote/<channel_id>/schema_types/user/

Query Parameters

This service does not require any query parameters. The request returns the full schema structure for the customer model.

Example Request

To get the current customer schema, send a GET request to the /{{omnitron_url}}/api/v1/remote/<channel_id>/schema_types/user/ endpoint.

Headers:

Authorization: Token <key>

Body Parameters: None Request Body: None

Example Response (200 OK)

In a successful response with status code 200 OK, the API returns the complete customer schema as a JSON object.

PUT Customer Schema Update

Adds the staff/store registration fields to the schema and returns the updated user schema.

Path: /{{omnitron_url}}/api/v1/remote/<channel_id>/schema_types/user/

Request Body

The following fields are required to capture store and staff information during customer creation.

Parameter
Data Type
Required
Description

instore_store_registered_by__key

string

true

Unique identifier of the field

instore_store_registered_by__label

string

true

Display name of the field; indicates the store where the staff performed the customer registration

instore_store_registered_by__data_type

string

true

Field data type

instore_store_registered_by__ui_visibility

array

true

UI section visibility (e.g., ["instore"])

instore_staff_registered_by__key

string

true

Unique identifier of the field

instore_staff_registered_by__label

string

true

Display name of the field; staff identifier that created the customer

instore_staff_registered_by__data_type

string

true

Field data type

instore_staff_registered_by__ui_visibility

array

true

UI section visibility (e.g., ["instore"])

instore_staff_registered_email__key

string

true

Unique identifier of the field

instore_staff_registered_email__label

string

true

Display name of the field; staff e-mail that created the customer

instore_staff_registered_email__data_type

string

true

Field data type

instore_staff_registered_email__ui_visibility

array

true

UI section visibility (e.g., ["instore"])

Example Request

To update the schema and include staff registration information, send a PUT request to the /{{omnitron_url}}/api/v1/remote/<channel_id>/schema_types/user/ endpoint.

Headers:

Request Body:

Example Response (200 OK)

A successful response returns the schema with the added staff/store registration fields visible under Omnitron → Sales Channels → Users → User Features → Collapse.

Last updated

Was this helpful?