Skip to main content

Integrity Check

Integrity Checks record individual verification requests where a product code is assessed for authenticity and other fraud conditions. They are typically triggered automatically when a consumer scans a QR code, or manually created by an inspector on a mobile phone with a login in TrackVision. Rules are configurable. We typically look for the following conditions:

  • unrecognized where we don't recognize a serial that has been scanned
  • unactivated where a serial has not been properly activated/commissioned in an authorized factory
  • duplicated where a unique code appeared more than once in physically impossible way
  • diverted where a serial is in a market it shouldn't be in

The integrity_check Object

Field NameTypeDescription
iduuidPrimary key for the integrity check.
user_createdobjectUser who created the record. Read-only.
date_createddatetimeTimestamp in ISO 8601 when the record was created. Read-only.
user_updatedobjectUser who last updated the record. Read-only.
date_updateddatetimeTimestamp in ISO 8601 when the record was last updated. Read-only.
check_modestringHow the code was submitted for checking. One of: scan_code, type_code_manually.
qr_codestringThe QR code or Digital Link value that was subject to the integrity check.
codestringInternal code reference associated with this check.
addressstringAddress or location context at the time of the check.
notesstringFree-text notes or observations recorded against this check.
resultobjectThe Integrity Check Result associated with this check.

Sub-Objects

User Object (user_created, user_updated)

See Users for the full schema.

Integrity Check Result Object (result)

See Integrity Check Result for the full schema.


List Integrity Checks

GET /items/integrity_check

Query Parameters

Supports all global query parameters.

Returns

An array of up to limit integrity check objects. If no items are available, data will be an empty array.


Retrieve an Integrity Check

GET /items/integrity_check/:id

Returns

Returns an integrity check object if a valid primary key was provided.


Create an Integrity Check

POST /items/integrity_check

{
"check_mode": "automatic",
"qr_code": "https://id.gs1.org/01/09521234543217/21/12345678",
"notes": "Flagged for duplicate scan activity"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial integrity check object.

Returns

Returns the integrity check object for the created record.


Update an Integrity Check

PATCH /items/integrity_check/:id

{
"notes": "Reviewed — confirmed suspicious scan pattern"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial integrity check object.

Returns

Returns the integrity check object for the updated record.


Delete an Integrity Check

DELETE /items/integrity_check/:id

Returns

Empty body.