Create QR template

Create a QR code template for the authenticated account. Template names must be unique within the store. Enforces the store's review_qr_code plan allocation before saving — a hard-stop / disabled feature raises FeatureLimitException (HTTP 402) via the global handler. The endpoint records on success the usage. Writes a QR_CODE_TEMPLATE_CREATED audit event.

Auth

  • Bearer — account (account) role. store_id validated by an ownership check; the template records the caller's company_id.

Rate limit

  • No rate limit.

Body

FieldTypeRequiredNotes
namestringRequiredMax 255. Unique per store_id (soft-deleted rows excluded).
store_idintegerRequiredMust be an existing location + must belong to the auth company.
template_typestringRequiredstandard, hangtag or custom.
design_htmlstringOptionalFront design markup.
design_settingsobjectOptionalFront design settings (JSON; string is decoded).
design_html_backstringOptionalBack design markup.
design_settings_backobjectOptionalBack design settings (JSON; string is decoded).
qr_code_idintegerOptionalMust be an existing QR code — link the template to an existing QR code.

Behaviour

  • 201 (createdResponse). Body is double-nested: { "data": { "data": {.QrCodeTemplate }, "message": "QR code template created successfully" } }. The model appends unique_code.
  • 402 QR-template feature hard-stop / disabled (FeatureLimitException) · 422 validation.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
integer
string
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json