Skip to content

QR codes

The company’s dynamic QR codes (name, destination, short_url, status, fallback_url, valid_from, valid_until, scans_total). The short address stays the same while the destination can change any time. POST creates the code in Rivil QR; PATCH changes name, destination, fallback address and validity; DELETE removes the code (a printed one then leads nowhere). Actions: pause, resume, set_style. Scans and blocks come from Rivil QR (qr.scan, qr.blocked).

Module: QR codes (qr).

  • GET /api/v1/qr_links - List with filters, sorting and pagination (scope qr:read)
  • GET /api/v1/qr_links/{id} - A record by id (scope qr:read)
  • POST /api/v1/qr_links - Create a record (scope qr:write)
  • PATCH /api/v1/qr_links/{id} - Modify the submitted fields (scope qr:write)
  • DELETE /api/v1/qr_links/{id} - Delete or deactivate (scope qr:write)
  • POST /api/v1/qr_links/{id}/pause - Stops the code (stopped state) without changing the short address. Whoever scans it sees a page saying the link is not active. (scope qr:write)
  • POST /api/v1/qr_links/{id}/resume - Reactivates a stopped code. (scope qr:write)
  • POST /api/v1/qr_links/{id}/set_style - Changes the image look: code color, background color and error correction level. (scope qr:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • entity_type (string; read)
  • entity_id (string, uuid; read)
  • code_id (string, uuid; read)
  • short_code (string; read)
  • short_url (string; read)
  • destination (string; write, required)
  • status (string; read)
  • name (string; write, required)
  • scans_total (integer; read)
  • last_scan_at (string, date-time; read)
  • last_synced_at (string, date-time; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • fallback_url (string; write)
  • valid_from (string; write)
  • valid_until (string; write)
  • style (object; read)
  • qr_links.created
  • qr_links.updated
  • qr_links.deleted