Verify a payslip barcode payload
const url = 'https://verify.verifiabl.io/v1/verifications/payload';const options = { method: 'POST', headers: { 'Idempotency-Key': '5f0c2a7e-8d4b-4c19-9e3a-7b6d1f2c4e80', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"barcode":"https://v.verifiabl.io/v/n5waC35dPCoRtMXW5_gJqw#2.JVSWY3DPO5XXE3DE"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://verify.verifiabl.io/v1/verifications/payload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: 5f0c2a7e-8d4b-4c19-9e3a-7b6d1f2c4e80' \ --data '{ "barcode": "https://v.verifiabl.io/v/n5waC35dPCoRtMXW5_gJqw#2.JVSWY3DPO5XXE3DE" }'Verifies the payload from a payslip QR code or PDF metadata.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Optional. A new UUID for each verification, reused on every retry of it. A retry within 1 hour of the key’s first use with the same payslip returns the result again without a second charge. Store the key with your decision: it is your reference for the verification in disputes and billing. Without it, each request is a separate verification, charged if it succeeds.
Example
5f0c2a7e-8d4b-4c19-9e3a-7b6d1f2c4e80Request Bodyrequired
Section titled “Request Bodyrequired”object
Examples
QR code scan URL
{ "barcode": "https://v.verifiabl.io/v/n5waC35dPCoRtMXW5_gJqw#2.JVSWY3DPO5XXE3DE"}PDF metadata payload
{ "barcode": "2|n5waC35dPCoRtMXW5_gJqw|JVSWY3DPO5XXE3DE"}Responses
Section titled “Responses”The payload matches the record its issuer registered, and the response returns that registered data. Only the payload is checked, not the rest of the document. A verification does not show that the issuer’s data is correct or current, or that the applicant is the person named.
object
object
object
Examples
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"}Headers
Section titled “Headers”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-5d2c8e1f7a40The request is malformed: an unknown key, a missing or non-string barcode, or an Idempotency-Key that is not a UUID. This is an integration fault, not a result about the payslip.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
The barcode is missing
{ "error": "Validation failed", "code": "VALIDATION_FAILED", "field_errors": [ { "path": "barcode", "message": "Invalid input: expected string, received undefined" } ]}Headers
Section titled “Headers”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-5d2c8e1f7a40The bearer token is missing or invalid.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
The bearer token is missing or invalid.
{ "error": "Unauthorized", "code": "UNAUTHORIZED"}Headers
Section titled “Headers”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-5d2c8e1f7a40The authenticated principal cannot use this operation.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
The authenticated principal cannot use this operation.
{ "error": "Forbidden", "code": "FORBIDDEN"}Headers
Section titled “Headers”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-5d2c8e1f7a40The Idempotency-Key was already used with a different payslip, or first used more than 1 hour ago. The response carries no result and nothing is charged. This is an integration fault: send a new key for each verification.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
The Idempotency-Key was already used
{ "error": "The Idempotency-Key was already used for another verification", "code": "IDEMPOTENCY_KEY_REUSED", "detail": "Send a new Idempotency-Key for each verification."}Headers
Section titled “Headers”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-5d2c8e1f7a40The JSON request body exceeds the route limit.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
The JSON request body exceeds the route limit.
{ "error": "Request body too large", "code": "PAYLOAD_TOO_LARGE"}Headers
Section titled “Headers”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-5d2c8e1f7a40The request Content-Type is not supported.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
The request Content-Type is not supported.
{ "error": "Unsupported media type", "code": "UNSUPPORTED_MEDIA_TYPE"}Headers
Section titled “Headers”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-5d2c8e1f7a40The 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 has no reason.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
The barcode could not be verified
{ "error": "The barcode could not be verified", "code": "NOT_VERIFIED"}Headers
Section titled “Headers”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-5d2c8e1f7a40The request exceeded an IP or client rate limit.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
The request exceeded an IP or client rate limit.
{ "error": "Too many requests", "code": "RATE_LIMITED", "detail": "Retry after the rate limit resets."}Headers
Section titled “Headers”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-5d2c8e1f7a40Seconds to wait before retrying.
Example
60An unexpected internal error occurred. The payslip was not verified. Send the request again later.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
An internal error occurred
{ "error": "Internal server error", "code": "INTERNAL_ERROR"}Headers
Section titled “Headers”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-5d2c8e1f7a40A required service dependency or configuration is unavailable. Send the request again later.
object
Human-readable summary. It may change; do not branch on it.
Stable error code. Branch on this value.
Stable subtype of code, set where one code covers causes a client handles differently. Where an operation documents reasons, a missing reason is meaningful.
Human-readable detail. It may change; do not branch on it.
Per-field validation issues.
object
Dot-delimited path of the field, such as encryption_metadata.iv, or “” when the issue is not field-specific.
Human-readable message. It may change; do not branch on it.
Examples
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."}Headers
Section titled “Headers”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-5d2c8e1f7a40Seconds to wait before retrying.
Example
5