Skip to main content
GET
Validate reseller barcode

Authorizations

Authorization
string
header
required

Reseller API key, sent raw in the Authorization header: Authorization: rs_live_xxxxxxxxxxxxxxxx. Keys prefixed rs_test_ operate against the test environment. The same key serves v2 and the swap operations, and it only reaches the organizations Fourvenues authorized on it.

Query Parameters

barcode
string
required

The barcode (qrCode) to be validated

Response

Successful validation

id
string
Example:

"abcdefghijk1234567890"

barcode
string
Example:

"ABCD1234"

valid
boolean
Example:

true

swappable
boolean

false when a rule blocks the resale. error then names the rule.

Example:

true

event
object
type
object
error
enum<string>

Only present when swappable is false.

Available options:
RESELL_NOT_ALLOWED,
RESELL_PENDING_NAME_CHANGE,
RESELL_ALREADY_RESOLD,
RESELL_NOT_SWAPPABLE
Example:

"RESELL_ALREADY_RESOLD"