Duplicate QR template

Duplicate an existing QR code template (by path ID) into a new row under the same store, auto-generating a unique "Copy of …" name. The duplicate counts as a fresh create and is metered against the store's review_qr_code plan allocation.

Auth: Account — authentication; The endpoint loads the original (own company only, 404 otherwise). Before creating the copy, enforceQrCodeTemplateLimit checks the store's review_qr_code allocation — a disabled feature or exhausted hard-stop cap throws FeatureLimitException (HTTP 402). The {id} route segment is digit-constrained and supplied to the request validation via validationData.

Rate limit: No rate limit.

Request

Response{ data. } envelope (HTTP 201) wrapping the controller array:

  • status (string) — "success".
  • data (object) — the new QrCodeTemplate copy, carrying name (Copy of <original>, de-duplicated with (n) suffix), store_id, company_id, template_type, design_html, design_settings, design_html_back, design_settings_back, qr_code_id, plus id/created_at/updated_at.
  • message (string) — "QR code template duplicated successfully".

Path params

ParameterTypeRequiredNotes
templateIdintegerRequiredDigits only.

Errors: 422 on validation failure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Response

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