Record a scan
curl --request POST \
--url https://yys-sqr-render-bsbe.onrender.com/api/records/{wm_id}/scan \
--header 'Content-Type: application/json' \
--data '
{
"scanner_address": "<string>"
}
'import requests
url = "https://yys-sqr-render-bsbe.onrender.com/api/records/{wm_id}/scan"
payload = { "scanner_address": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({scanner_address: '<string>'})
};
fetch('https://yys-sqr-render-bsbe.onrender.com/api/records/{wm_id}/scan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"scan_count": 123
}Records
Record a scan
Increment the scan count for a record and log scan history. This endpoint is public — it is called when a product label is scanned.
POST
/
api
/
records
/
{wm_id}
/
scan
Record a scan
curl --request POST \
--url https://yys-sqr-render-bsbe.onrender.com/api/records/{wm_id}/scan \
--header 'Content-Type: application/json' \
--data '
{
"scanner_address": "<string>"
}
'import requests
url = "https://yys-sqr-render-bsbe.onrender.com/api/records/{wm_id}/scan"
payload = { "scanner_address": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({scanner_address: '<string>'})
};
fetch('https://yys-sqr-render-bsbe.onrender.com/api/records/{wm_id}/scan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"scan_count": 123
}
