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).
Endpoints
Section titled “Endpoints”GET /api/v1/qr_links- List with filters, sorting and pagination (scopeqr:read)GET /api/v1/qr_links/{id}- A record by id (scopeqr:read)POST /api/v1/qr_links- Create a record (scopeqr:write)PATCH /api/v1/qr_links/{id}- Modify the submitted fields (scopeqr:write)DELETE /api/v1/qr_links/{id}- Delete or deactivate (scopeqr: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. (scopeqr:write)POST /api/v1/qr_links/{id}/resume- Reactivates a stopped code. (scopeqr:write)POST /api/v1/qr_links/{id}/set_style- Changes the image look: code color, background color and error correction level. (scopeqr:write)
Fields
Section titled “Fields”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)
Events
Section titled “Events”qr_links.createdqr_links.updatedqr_links.deleted