Scan badges
Object
Scan QR/Barcode codes
Scan QR or barcode codes and create connections when they match a person in the system.
Arguments
- input - Badge codes and evaluation data to process
Mutation
mutation scanBadges($input: ScanBadgesInput!) {
scanBadges(input: $input) {
badges {
errorCode
connection {
id
rating
note
target {
__typename
... on PersonInterface {
firstName
lastName
jobTitle
email
organization
address {
city
country
place
street
zipCode
}
}
}
customFields {
__typename
... on NumberField {
id
definition {
id
name
}
number: value
}
... on UrlField {
id
definition {
id
name
}
value
}
... on MediaField {
id
definition {
id
name
}
value
}
... on TextField {
id
definition {
id
name
}
locale
value
}
... on LongTextField {
id
definition {
id
name
}
locale
value
}
... on SelectField {
id
definition {
id
name
}
translations {
value
language
}
value
}
... on MultipleSelectField {
id
definition {
id
name
}
translations {
value
language
}
value
}
... on MultipleTextField {
id
definition {
id
name
}
locale
value
}
... on DateField {
id
definition {
id
name
}
date: value
}
}
connectedAt
}
}
errors {
inputId
message
code
}
}
}
Variables
{
"input": {
"eventId": "RXZlbnRfMjg1NzM=",
"exhibitorId": "RXhoaWJpdG9yXzU5NTIx",
"scanBadges": [
{
"code": "123456789",
"note": "Lead to contact urgently",
"rating": 5
}
]
}
}
Responses
Connection is made
{
"data": {
"scanBadges": {
"badges": [
{
"errorCode": null,
"connection": {
"id": "Q29ubmVjdGlvbl8xMTYzNDE=",
"rating": 5,
"note": "Lead to contact urgently",
"target": {
"__typename": "User",
"firstName": "John",
"lastName": "Doe",
"jobTitle": null,
"email": "test@gmail.com",
"organization": null,
"address": null
},
"customFields": [
{
"__typename": "SelectField",
"id": "RmllbGRWYWx1ZV8zMzg3ODA=",
"definition": {
"id": "RmllbGREZWZpbml0aW9uXzI0NzYyNg==",
"name": "Interested by the Cloud offer ?"
},
"translations": [
{
"value": "Yes",
"language": "en_US"
}
],
"value": "yes"
},
{
"__typename": "MultipleSelectField",
"id": "RmllbGRWYWx1ZV8zMzg3ODI=",
"definition": {
"id": "RmllbGREZWZpbml0aW9uXzI0NzYyNw==",
"name": "Should contacted the week of ?"
},
"translations": [
{
"value": "1st Sept.",
"language": "en_US"
}
],
"value": "1st-sept"
}
],
"connectedAt": "2025-09-03 15:28:33"
}
}
],
"errors": []
}
}
}
CODE_NOT_FOUND
{
"data": {
"scanBadges": {
"badges": [
{
"errorCode": "CODE_NOT_FOUND",
"connection": null
}
],
"errors": []
}
}
}