Skip to content
Verifiabl
Download OpenAPI JSON

Test a payslip that you registered (sandbox)

POST
/v1/issuer-test/verifications/payload
curl --request POST \
--url https://verify.sandbox.verifiabl.io/v1/issuer-test/verifications/payload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "barcode": "https://v.verifiabl.io/v/n5waC35dPCoRtMXW5_gJqw#2.JVSWY3DPO5XXE3DE" }'

Use this operation in sandbox to test the payslips that your organisation registered. Get a Verifier API token with your Issuer API client ID and client secret. Set scope to verifiabl:issuer-test. Verifiabl does not charge for this operation. This operation is not available in production.

Media typeapplication/json
Scanned barcode
object
barcode
required
string
>= 1 characters <= 13000 characters

Examples

QR code scan URL

{
"barcode": "https://v.verifiabl.io/v/n5waC35dPCoRtMXW5_gJqw#2.JVSWY3DPO5XXE3DE"
}

The payload matches the record that your organisation registered, and the response returns that registered data.

Media typeapplication/json
object
verified
required
boolean
verifiabl_reference
required
string
>= 22 characters <= 22 characters /^[A-Za-z0-9_-]+$/
payslip
required
object
key
additional properties
employee
required
object
key
additional properties
decrypted_at
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/

Examples

ExampleVerified

Verified payload from an Australian payslip

{
"verified": true,
"verifiabl_reference": "n5waC35dPCoRtMXW5_gJqw",
"employee": {
"employee_name": "Ana Leota",
"position": "Senior Developer",
"department": "Engineering",
"employer_identity": "12 345 678 901",
"bsb": "062-000",
"account_number": "12345678",
"account_name": "A Leota",
"address": "12 Example St, Sydney NSW 2000"
},
"payslip": {
"schema": "au.payslip.v2",
"issued_at": "2026-04-04T00:00:00.000Z",
"payslip_non_pii": {
"period_start": "2026-03-21",
"period_end": "2026-04-03",
"payment_date": "2026-04-04",
"currency": "AUD",
"pay_frequency": "fortnightly",
"gross": "4153.85",
"taxable_gross": "3953.85",
"paygw": "911.00",
"net": "3077.35",
"ytd_gross": "83077.00",
"ytd_paygw": "18220.00",
"earnings": [
{
"type": "ordinary",
"amount": "3738.43",
"ytd_amount": "82661.58"
},
{
"type": "paid_leave",
"leave_type": "other_paid_leave",
"units": "7.6",
"rate": "54.66",
"amount": "415.42"
}
],
"salary_sacrifice": [
{
"type": "super",
"amount": "200.00"
}
],
"deductions": [
{
"type": "other_post_tax",
"amount": "45.50"
}
],
"superannuation": [
{
"contribution_type": "superannuation_guarantee",
"amount": "498.46",
"rate": "12",
"usi": "STA0100AU"
},
{
"contribution_type": "salary_sacrifice",
"amount": "200.00"
}
],
"reimbursements": "80.00",
"employment_basis": "full_time",
"engagement_type": "permanent",
"award": "Professional Employees Award 2020 Level 3",
"base_rate": {
"amount": "108000.00",
"per": "year"
},
"ytd": {
"taxable": "79077.00",
"super": "9969.20",
"non_taxable": "1600.00",
"post_tax_deductions": "910.00",
"reimbursements": "1600.00"
}
}
},
"decrypted_at": "2026-06-09T09:10:11.123Z"
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40

The request is malformed: an unknown key, or a missing or non-string barcode. This is an integration fault, not a result about the payslip.

Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: VALIDATION_FAILED
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExampleValidation Failed

The barcode is missing

{
"error": "Validation failed",
"code": "VALIDATION_FAILED",
"field_errors": [
{
"path": "barcode",
"message": "Invalid input: expected string, received undefined"
}
]
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40

The bearer token is missing or invalid.

Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: UNAUTHORIZED
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExampleUnauthorized

The bearer token is missing or invalid.

{
"error": "Unauthorized",
"code": "UNAUTHORIZED"
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40

The token does not have the verifiabl:issuer-test scope, or another organisation registered the payslip. For another organisation’s payslip, the response contains reason: issuer_mismatch.

Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: FORBIDDEN
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExampleForbidden

Another organisation registered the payslip

{
"error": "This record was not registered by your organisation",
"code": "FORBIDDEN",
"reason": "issuer_mismatch"
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40

The operation is not available in this environment.

Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: NOT_FOUND
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExampleNot Found

The operation is not available in this environment.

{
"error": "Not found",
"code": "NOT_FOUND"
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40

The JSON request body exceeds the route limit.

Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: PAYLOAD_TOO_LARGE
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExamplePayload Too Large

The JSON request body exceeds the route limit.

{
"error": "Request body too large",
"code": "PAYLOAD_TOO_LARGE"
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40

The request Content-Type is not supported.

Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: UNSUPPORTED_MEDIA_TYPE
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExampleUnsupported Media Type

The request Content-Type is not supported.

{
"error": "Unsupported media type",
"code": "UNSUPPORTED_MEDIA_TYPE"
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40

The request is well-formed, but the barcode could not be verified. The barcode text cannot be read, Verifiabl has no record of it, its issuer has no active key, or its payload does not decrypt to a valid payslip payload. A damaged scan or a barcode from another product or environment gives the same result.

The response contains a reason:

  • Barcode text that cannot be read: barcode_length, scan_url_not_allowed, missing_ciphertext_fragment, unsupported_barcode_version, invalid_reference, invalid_ciphertext, unreadable_barcode
  • No registered record: reference_not_found
  • No active key for the issuer: key_unavailable
  • No active key decrypts the payload: no_key_matched
  • The payload decrypts but is not a valid payslip payload: invalid_utf8, p2_invalid_prefix, p2_field_count, p2_control_or_format_character, profile_invalid_prefix, profile_schema_mismatch, profile_field_count, profile_control_or_format_character
Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: NOT_VERIFIED
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExampleNot Verified

Verifiabl has no record of the payslip

{
"error": "The barcode could not be verified",
"code": "NOT_VERIFIED",
"reason": "reference_not_found"
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40

Too many test requests for your organisation.

Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: RATE_LIMITED
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExampleRate Limited

Too many test requests for your organisation.

{
"error": "Too many requests",
"code": "RATE_LIMITED",
"detail": "Retry after the rate limit resets."
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40
Retry-After
required
integer
<= 9007199254740991

Seconds to wait before retrying.

Example
60

An unexpected internal error occurred. The payslip was not verified. Send the request again later.

Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: INTERNAL_ERROR
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExampleInternal Error

An internal error occurred

{
"error": "Internal server error",
"code": "INTERNAL_ERROR"
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40

A required service dependency or configuration is unavailable. Send the request again later.

Media typeapplication/json
object
error
required

Human-readable summary. It may change; do not branch on it.

string
code
required

Stable error code. Branch on this value.

string
Allowed values: SERVICE_UNAVAILABLE
reason

Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.

string
detail

Human-readable detail. It may change; do not branch on it.

string
field_errors

Per-field validation issues.

Array<object>
object
path
required

Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.

string
message
required

Human-readable message. It may change; do not branch on it.

string

Examples

ExampleService Unavailable

A required service dependency or configuration is unavailable. Send the request again later.

{
"error": "Service temporarily unavailable",
"code": "SERVICE_UNAVAILABLE",
"detail": "Please retry with exponential backoff."
}
X-Request-Id
required
string format: uuid

Server-generated ID for this HTTP request. Quote it to Verifiabl support. It identifies one attempt, so a retry gets a new ID.

Example
0b6f8d2e-4c1a-4f7e-9a3b-5d2c8e1f7a40
Retry-After
required
integer
<= 9007199254740991

Seconds to wait before retrying.

Example
5