{"openapi":"3.1.0","info":{"title":"zCheck API","version":"1.0.0","description":"Identity verification for Iranian identity documents (national ID card, birth certificate, passport, driver's license). Create a verification, send the customer to the hosted page (or submit data server to server), receive signed webhooks, read the explainable result. INTERNAL BETA: only test keys (sandbox, simulated results) are accepted until live processing is enabled by zPayLink.","contact":{"name":"zPayLink","url":"https://zpaylink.com"}},"servers":[{"url":"https://check.zpaylink.com","description":"Production (test and live keys select the mode)"}],"security":[{"ApiKey":[]}],"tags":[{"name":"OCR platform","description":"Asynchronous identity-document OCR and document / selfie comparison. FACTS ONLY: extracted values, per-field status (extracted, low_confidence, unreadable, not_detected), confidence 0..1, diagnostics. zCheck makes no KYC decision; your system compares the facts with your customer data and decides. Results arrive by webhook (ocr.processing.completed / failed) or by polling."},{"name":"AI KYC","description":"Persian national ID card OCR, birth date and 18+ check, card / selfie document matching and the combined verification. Results are measurements by AI models validated on synthetic data and a limited number of real cards: OCR-derived data is PRELIMINARY and not an official identity verification (official_verification.status = UNVERIFIED)."},{"name":"Verifications"},{"name":"Server-to-server submission"},{"name":"Events"}],"paths":{"/api/v1/ocr/requests":{"post":{"tags":["OCR platform"],"operationId":"createOcrRequest","summary":"Create an OCR request","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":100},"description":"Per merchant and environment: the same key returns the existing request (header Idempotent-Replayed: true) instead of creating a second one."},{"name":"wait","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":55},"description":"Optional: wait up to N seconds for the result in the same call (200 when finished, else 202)."}],"description":"Scope ocr:write, service ocr. Answers 202 with status created; processing is asynchronous. National IDs are strings (leading zeros kept). Birth dates are Jalali yyyy/mm/dd.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"document_image":{"type":"string","format":"binary","description":"JPEG (including MPO), PNG or WebP, at most 8 MB per image (two images per request at most; larger: 413 file_too_large). The file signature is checked. Encrypted at rest until processed, then deleted."},"second_image":{"type":"string","format":"binary","description":"Optional second photo of the same card (back side or another shot)."},"document_type":{"type":"string","enum":["iran_national_id"],"default":"iran_national_id"},"external_customer_id":{"type":"string","maxLength":100,"description":"Your customer id ([A-Za-z0-9_-:.]); no personal data."},"external_application_id":{"type":"string","maxLength":100,"description":"Your application / KYC case id; returned in every webhook."},"metadata":{"type":"string","description":"JSON object (at most 2 KB), returned unchanged. No personal data."},"params":{"type":"string","description":"Optional JSON object of OCR thresholds (names and ranges: GET /api/ocr/settings in the console). Unknown or out-of-range values: 422."},"simulate":{"type":"string","enum":["success","low_confidence","unreadable","not_detected","processing_failure","service_unavailable"],"description":"SANDBOX ONLY: a labelled fixture with fictional values, no images needed, no OCR runs. Live keys: 422 simulation_not_available."}}}}}},"responses":{"200":{"description":"Finished within ?wait","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcrRequest"},"example":{"request_id":"ocr_5b0c2a9e7d1f4c3b8a6e0d21","object":"ocr.request","kind":"ocr","merchant_id":"mch_0f1e2d3c4b5a6978","environment":"sandbox","source":"api","document_type":"iran_national_id","status":"completed","simulated":false,"external_customer_id":"cust-4811","external_application_id":"kyc-10482","metadata":{},"error":null,"created_at":"2026-11-19T12:00:00.000Z","started_at":"2026-11-19T12:00:00.400Z","completed_at":"2026-11-19T12:00:02.300Z","duration_ms":1900,"model_version":"zcheck-ai/1.x det=ppocrv5m rec=ppocrv5m-arabic …","result_available":true,"identity_data_removed":false,"result":{"document_detected":true,"document_type":"iran_national_id","fields":{"national_id":{"value":"0012345679","status":"extracted","confidence":0.981,"checksum_valid":true,"basis":"confidence","reason":null},"first_name":{"value":"سارا","status":"extracted","confidence":0.95,"reason":null},"last_name":{"value":"نمونه","status":"extracted","confidence":0.94,"reason":null},"full_name":{"value":"سارا نمونه","status":"extracted","confidence":0.94},"birth_date":{"value":"1370/01/01","gregorian":"1991-03-21","calendar":"jalali","status":"extracted","confidence":0.99,"basis":"confidence","reason":null}},"recognized_text":[{"text":"جمهوری اسلامی ایران","score":0.99}],"diagnostics":{"card_detection":"contour","preprocessing":{"image_width":1600,"image_height":1200,"card_detection":"contour","card_width_px":1180},"ai_processing_ms":1720,"params_applied":[],"recognized_lines":14}}}}}},"202":{"description":"Accepted (created / processing)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcrRequest"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"file_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_error, unsupported_document_type, simulation_not_available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["OCR platform"],"operationId":"listOcrRequests","summary":"List OCR and comparison requests (newest first)","description":"Scope ocr:read. No identity values in the list.","parameters":[{"name":"kind","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"external_application_id","in":"query","schema":{"type":"string"}},{"name":"external_customer_id","in":"query","schema":{"type":"string"}},{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"starting_after","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/OcrRequest"}},"has_more":{"type":"boolean"}}}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/ocr/requests/{id}":{"get":{"tags":["OCR platform"],"operationId":"getOcrRequest","summary":"Request status (no identity values)","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^(ocr|cmp)_[0-9a-f]{24}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcrRequest"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/ocr/requests/{id}/result":{"get":{"tags":["OCR platform"],"operationId":"getOcrResult","summary":"Result with extracted values","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^(ocr|cmp)_[0-9a-f]{24}$"}},{"name":"wait","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":55},"description":"Optional: wait up to N seconds for the result in the same call (200 when finished, else 202)."}],"description":"Scope ocr:read. 409 result_not_ready while created / processing. Values are null after the retention period (identity_data_removed: true); statuses and confidences remain.","responses":{"200":{"description":"Completed or failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcrRequest"},"example":{"request_id":"ocr_5b0c2a9e7d1f4c3b8a6e0d21","object":"ocr.request","kind":"ocr","merchant_id":"mch_0f1e2d3c4b5a6978","environment":"sandbox","source":"api","document_type":"iran_national_id","status":"completed","simulated":false,"external_customer_id":"cust-4811","external_application_id":"kyc-10482","metadata":{},"error":null,"created_at":"2026-11-19T12:00:00.000Z","started_at":"2026-11-19T12:00:00.400Z","completed_at":"2026-11-19T12:00:02.300Z","duration_ms":1900,"model_version":"zcheck-ai/1.x det=ppocrv5m rec=ppocrv5m-arabic …","result_available":true,"identity_data_removed":false,"result":{"document_detected":true,"document_type":"iran_national_id","fields":{"national_id":{"value":"0012345679","status":"extracted","confidence":0.981,"checksum_valid":true,"basis":"confidence","reason":null},"first_name":{"value":"سارا","status":"extracted","confidence":0.95,"reason":null},"last_name":{"value":"نمونه","status":"extracted","confidence":0.94,"reason":null},"full_name":{"value":"سارا نمونه","status":"extracted","confidence":0.94},"birth_date":{"value":"1370/01/01","gregorian":"1991-03-21","calendar":"jalali","status":"extracted","confidence":0.99,"basis":"confidence","reason":null}},"recognized_text":[{"text":"جمهوری اسلامی ایران","score":0.99}],"diagnostics":{"card_detection":"contour","preprocessing":{"image_width":1600,"image_height":1200,"card_detection":"contour","card_width_px":1180},"ai_processing_ms":1720,"params_applied":[],"recognized_lines":14}}}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"result_not_ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/compare/requests":{"post":{"tags":["OCR platform"],"operationId":"createCompareRequest","summary":"Compare the card in a selfie with the card photo (optional component)","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":100},"description":"Per merchant and environment: the same key returns the existing request (header Idempotent-Replayed: true) instead of creating a second one."},{"name":"wait","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":55},"description":"Optional: wait up to N seconds for the result in the same call (200 when finished, else 202)."}],"description":"Scope compare:write, service compare. Measurements only: document_comparison (evidence same_document / different_document / inconclusive, score 0..1) and face_comparison (status, similarity). Same lifecycle and webhooks as OCR requests; GET /api/v1/compare/requests/{id} and /result.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"document_image":{"type":"string","format":"binary","description":"JPEG (including MPO), PNG or WebP, at most 8 MB per image (two images per request at most; larger: 413 file_too_large). The file signature is checked. Encrypted at rest until processed, then deleted."},"selfie_image":{"type":"string","format":"binary","description":"JPEG (including MPO), PNG or WebP, at most 8 MB per image (two images per request at most; larger: 413 file_too_large). The file signature is checked. Encrypted at rest until processed, then deleted."},"document_type":{"type":"string","enum":["iran_national_id"],"default":"iran_national_id"},"external_customer_id":{"type":"string","maxLength":100,"description":"Your customer id ([A-Za-z0-9_-:.]); no personal data."},"external_application_id":{"type":"string","maxLength":100,"description":"Your application / KYC case id; returned in every webhook."},"metadata":{"type":"string","description":"JSON object (at most 2 KB), returned unchanged. No personal data."},"params":{"type":"string","description":"Optional JSON object of OCR thresholds (names and ranges: GET /api/ocr/settings in the console). Unknown or out-of-range values: 422."},"simulate":{"type":"string","enum":["success","low_confidence","unreadable","not_detected","processing_failure","service_unavailable"],"description":"SANDBOX ONLY: a labelled fixture with fictional values, no images needed, no OCR runs. Live keys: 422 simulation_not_available."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcrRequest"}}}},"202":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcrRequest"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/usage":{"get":{"tags":["OCR platform"],"operationId":"getUsage","summary":"Usage of this merchant in the key's environment","parameters":[{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":90,"default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/merchant":{"get":{"tags":["OCR platform"],"operationId":"getMerchant","summary":"Merchant, environment, scopes and services of this key (connection test)","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/kyc/ocr":{"post":{"tags":["AI KYC"],"operationId":"kycOcr","summary":"Extract national ID, names and birth date from a national ID card","description":"Scope kyc:ocr, service kyc.ocr. Each field has its own status and confidence; a field that is not read reliably is null (never guessed or corrected). Age is computed by the server from the Jalali birth date (Asia/Tehran date).","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["image"],"properties":{"image":{"type":"string","format":"binary","description":"JPEG, PNG or WebP, at most 8 MB, at least 200x120 px, at most 40 megapixels. Processed in memory and never stored."}}}}}},"responses":{"200":{"description":"Result (status COMPLETED or UNREADABLE)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KycOcr"},"example":{"id":"kyc_5b0c2a9e7d1f4c3b8a6e0d21","object":"kyc.ocr","mode":"test","status":"COMPLETED","card_found":true,"national_id":{"value":"0012345679","status":"SUCCESS","confidence":0.981,"checksum_valid":true,"basis":"confidence"},"first_name":{"value":"سارا","status":"SUCCESS","confidence":0.95},"last_name":{"value":"نمونه","status":"SUCCESS","confidence":0.94},"birth_date":{"jalali":"1370/01/01","gregorian":"1991-03-21","status":"SUCCESS","confidence":0.99},"age":{"value":35,"is_adult":true,"age_ocr_status":"VERIFIED_ADULT","official_age_verification_status":"UNVERIFIED"},"ocr_confidence":0.981,"model_version":"zcheck-ai/1.0.0 det=ppocrv5m rec=ppocrv5m-arabic digits=… yunet=2023mar sface=2021dec","processing_time_ms":820,"created_at":"2026-11-17T12:00:00.000Z","identity_data_removed":false,"official_verification":{"status":"UNVERIFIED","note":"…"}}}}},"401":{"description":"Missing, invalid, revoked or expired API key (key_revoked, key_expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed, live_kyc_disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"file_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type (only JPEG, PNG, WebP; the file signature is checked)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_error, invalid_image, image_too_small, image_too_large (pixel limit)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"ai_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"busy or ai_unavailable: retry after a few seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"ai_timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/kyc/document-match":{"post":{"tags":["AI KYC"],"operationId":"kycDocumentMatch","summary":"Compare the card in a selfie with a separately photographed card","description":"Scope kyc:match, service kyc.document_match. Locates the same card in the selfie and compares document-specific evidence (national ID digits, number region, printed portrait). It does NOT compare the live face with the card portrait (no face verification / liveness).","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["clear_card_image","selfie_with_card_image"],"properties":{"clear_card_image":{"type":"string","format":"binary","description":"JPEG, PNG or WebP, at most 8 MB, at least 200x120 px, at most 40 megapixels. Processed in memory and never stored."},"selfie_with_card_image":{"type":"string","format":"binary","description":"JPEG, PNG or WebP, at most 8 MB, at least 200x120 px, at most 40 megapixels. Processed in memory and never stored."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KycDocumentMatch"}}}},"401":{"description":"Missing, invalid, revoked or expired API key (key_revoked, key_expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed, live_kyc_disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"file_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type (only JPEG, PNG, WebP; the file signature is checked)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_error, invalid_image, image_too_small, image_too_large (pixel limit)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"ai_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"busy or ai_unavailable: retry after a few seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"ai_timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/kyc/verify":{"post":{"tags":["AI KYC"],"operationId":"kycVerify","summary":"Combined verification (OCR + national ID comparison + document match + age)","description":"Scope kyc:verify, service kyc.verify. Every step is returned separately. APPROVED only when every step is positive (national ID read AND equal to expected_national_id, documents match, 18+ by OCR); a valid national ID alone never approves and model uncertainty never rejects (UNREADABLE / MANUAL_REVIEW). Live keys: automated outcomes are returned as `recommendation` with status MANUAL_REVIEW until zCheck enables automated live decisions.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["card_image","selfie_with_card_image"],"properties":{"card_image":{"type":"string","format":"binary","description":"JPEG, PNG or WebP, at most 8 MB, at least 200x120 px, at most 40 megapixels. Processed in memory and never stored."},"selfie_with_card_image":{"type":"string","format":"binary","description":"JPEG, PNG or WebP, at most 8 MB, at least 200x120 px, at most 40 megapixels. Processed in memory and never stored."},"expected_national_id":{"type":"string","description":"The national ID registered for this customer (10 digits, Persian or Latin; check digit validated). Without it the result is at most MANUAL_REVIEW."},"merchant_reference":{"type":"string","maxLength":100,"description":"Your reference ([A-Za-z0-9_-:.]); returned and searchable. No personal data."},"expected_first_name":{"type":"string","maxLength":60,"description":"Optional registered first name (Persian). Compared exactly after normalisation; a difference or an unreadable name means MANUAL_REVIEW, never a rejection."},"expected_last_name":{"type":"string","maxLength":60,"description":"Optional registered last name (Persian), as above."},"mobile_ownership":{"enum":["VERIFIED","MISMATCH","NOT_VERIFIED"],"description":"Optional: YOUR verified mobile-ownership result (e.g. Shahkar). MISMATCH -> REJECTED MOBILE_OWNERSHIP_MISMATCH; NOT_VERIFIED -> MANUAL_REVIEW. Omitted = not part of the decision."},"duplicate_identity":{"enum":["true","false"],"description":"Optional: true when YOUR records show this identity on another account -> REJECTED IDENTITY_DUPLICATE."},"policy":{"type":"string","description":"Optional JSON: your decision settings for THIS request (version, age, face, national_id, document, mobile, duplicate, decision). Validated and bounded (422 when invalid); a disabled check is never passed (no approval); REJECTED is allowed only for definitive findings. Echoed as decision.merchant_policy_version."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KycVerification"}}}},"401":{"description":"Missing, invalid, revoked or expired API key (key_revoked, key_expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed, live_kyc_disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"file_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type (only JPEG, PNG, WebP; the file signature is checked)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_error, invalid_image, image_too_small, image_too_large (pixel limit)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"ai_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"busy or ai_unavailable: retry after a few seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"ai_timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/kyc/verifications/{id}":{"get":{"tags":["AI KYC"],"operationId":"kycGet","summary":"Get a stored AI KYC result","description":"Scope kyc:read. Same mode (test / live) as the key. Identity values become null after the retention period (identity_data_removed: true); statuses stay.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^kyc_[0-9a-f]{24}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/KycOcr"},{"$ref":"#/components/schemas/KycDocumentMatch"},{"$ref":"#/components/schemas/KycVerification"}]}}}},"401":{"description":"Missing, invalid, revoked or expired API key (key_revoked, key_expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed, live_kyc_disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (or another merchant / mode)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"file_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type (only JPEG, PNG, WebP; the file signature is checked)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_error, invalid_image, image_too_small, image_too_large (pixel limit)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"ai_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"busy or ai_unavailable: retry after a few seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"ai_timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/kyc/usage":{"get":{"tags":["AI KYC"],"operationId":"kycUsage","summary":"Usage of this merchant (key mode)","description":"Scope kyc:read.","parameters":[{"name":"days","in":"query","schema":{"type":"integer","minimum":1,"maximum":90,"default":30}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"period_days":{"type":"integer"},"mode":{"type":"string"},"verifications":{"type":"array","items":{"type":"object"}},"daily":{"type":"array","items":{"type":"object"}},"requests":{"type":"array","items":{"type":"object"}},"limits":{"type":"object"}}}}}},"401":{"description":"Missing, invalid, revoked or expired API key (key_revoked, key_expired)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"insufficient_scope, service_not_enabled, merchant_suspended, merchant_disabled, ip_not_allowed, live_kyc_disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"file_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type (only JPEG, PNG, WebP; the file signature is checked)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"validation_error, invalid_image, image_too_small, image_too_large (pixel limit)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited (per key and per merchant, Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"ai_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"busy or ai_unavailable: retry after a few seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"ai_timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/health":{"get":{"tags":["AI KYC"],"operationId":"health","summary":"Service status (no authentication)","security":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["ok","degraded"]},"api":{"type":"string"},"database":{"type":"string"},"ai_kyc":{"enum":["ok","unavailable"]},"time":{"type":"string"}}}}}}}}},"/api/v1/verifications":{"post":{"tags":["Verifications"],"summary":"Create a verification session","operationId":"createVerification","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":100},"description":"Same key + same body returns the stored response (header Idempotent-Replayed: true). Same key + different body: 409 idempotency_conflict. Kept 48 hours."}],"description":"Scope verifications:write. Returns verification_url (hosted page, single use, expires) which you redirect the customer to. The URL is returned only here and from POST /session.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVerification"},"examples":{"minimal":{"value":{"external_customer_id":"VP-2041","redirect_url":"https://propfirm.example/kyc/done"}},"prefilled":{"value":{"external_customer_id":"VP-2041","external_reference":"KYC-10482","document_types":["national_id_card","passport"],"customer":{"first_name":"سارا","last_name":"نمونه","national_id":"0012345679"},"locale":"fa"}},"sandbox":{"value":{"external_customer_id":"TEST-1","sandbox":{"scenario":"face_mismatch"}}}}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationCreated"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Idempotency conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"tags":["Verifications"],"summary":"List verifications","operationId":"listVerifications","description":"Scope verifications:read. Newest first, cursor pagination.","parameters":[{"name":"status","in":"query","schema":{"type":"string"},"description":"Comma separated statuses"},{"name":"external_customer_id","in":"query","schema":{"type":"string"}},{"name":"external_reference","in":"query","schema":{"type":"string"}},{"name":"created_from","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"created_to","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor of the previous page"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Verification"}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}}}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}":{"get":{"tags":["Verifications"],"summary":"Get a verification","operationId":"getVerification","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verification"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/status":{"get":{"tags":["Verifications"],"summary":"Get the status only","operationId":"getVerificationStatus","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"status":{"enum":["CREATED","PENDING_UPLOAD","PENDING_LIVENESS","PROCESSING","MANUAL_REVIEW","APPROVED","REJECTED","EXPIRED","CANCELLED","ERROR"]},"attempt":{"type":"integer"},"updated_at":{"type":"string","format":"date-time"}}}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/result":{"get":{"tags":["Verifications"],"summary":"Get the explainable result","operationId":"getVerificationResult","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Decision, reasons and the separate result of every check. National IDs appear only as their last four digits; images are never returned.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/events":{"get":{"tags":["Verifications"],"summary":"Verification history (timeline)","operationId":"getVerificationHistory","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"at":{"type":"string","format":"date-time"},"actor":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/cancel":{"post":{"tags":["Verifications"],"summary":"Cancel","operationId":"cancelVerification","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":100},"description":"Same key + same body returns the stored response (header Idempotent-Replayed: true). Same key + different body: 409 idempotency_conflict. Kept 48 hours."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":300}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verification"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Already final","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/resubmission":{"post":{"tags":["Verifications"],"summary":"Request resubmission (new attempt, new link)","operationId":"requestResubmission","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":100},"description":"Same key + same body returns the stored response (header Idempotent-Replayed: true). Same key + different body: 409 idempotency_conflict. Kept 48 hours."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","minLength":3,"maxLength":300,"description":"Shown to the customer"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationCreated"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Wrong state or retry limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/session":{"post":{"tags":["Verifications"],"summary":"Issue a new hosted link (the previous link stops working)","operationId":"newSession","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"verification_url":{"type":"string"},"session_expires_at":{"type":"string","format":"date-time"}}}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Not open for the customer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/consent":{"post":{"tags":["Server-to-server submission"],"summary":"Record that you obtained the customer's consent","operationId":"submitConsent","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Scope verifications:submit. Only for integrations that collect data themselves instead of using the hosted page.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["accepted"],"properties":{"accepted":{"const":true},"consent_version":{"type":"integer"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/customer":{"put":{"tags":["Server-to-server submission"],"summary":"Submit identity data and document type","operationId":"submitCustomer","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Validation error (e.g. invalid national ID check digit)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/files/{kind}":{"post":{"tags":["Server-to-server submission"],"summary":"Upload a document image, selfie or live frame","operationId":"uploadFile","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["front","back","selfie","liveness"]}},{"name":"seq","in":"query","schema":{"type":"integer"},"description":"liveness frame index"},{"name":"challenge","in":"query","schema":{"type":"string"},"description":"liveness instruction of this frame (from the verification's challenge list)"}],"requestBody":{"required":true,"content":{"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}},"image/webp":{"schema":{"type":"string","format":"binary"}}}},"description":"Raw image body, at most the policy limit (default 8 MB). The image is decoded, re-encoded without metadata and stored encrypted.","responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"width":{"type":"integer"},"height":{"type":"integer"},"issues":{"type":"array","items":{"type":"string"}}}}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Not an accepted image","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Too small / corrupt / wrong step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/verifications/{id}/submit":{"post":{"tags":["Server-to-server submission"],"summary":"Submit for processing","operationId":"submitVerification","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Uploads incomplete","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/events":{"get":{"tags":["Events"],"summary":"List webhook events (reconciliation)","operationId":"listEvents","parameters":[{"name":"type","in":"query","schema":{"enum":["verification.created","verification.processing","verification.pending_review","verification.approved","verification.rejected","verification.expired","verification.failed","verification.cancelled","verification.resubmission_requested"]}},{"name":"verification_id","in":"query","schema":{"type":"string"}},{"name":"starting_after","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"has_more":{"type":"boolean"}}}}}},"401":{"description":"Missing, invalid, revoked or expired API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing, organization disabled or live processing disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (Retry-After header)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{"verification.created":{"post":{"summary":"verification.created","description":"Signed with ZCheck-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>. Reject timestamps older than 5 minutes and process each ZCheck-Event-Id once. Respond 2xx within 10 s; failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Received"}}}},"verification.processing":{"post":{"summary":"verification.processing","description":"Signed with ZCheck-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>. Reject timestamps older than 5 minutes and process each ZCheck-Event-Id once. Respond 2xx within 10 s; failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Received"}}}},"verification.pending_review":{"post":{"summary":"verification.pending_review","description":"Signed with ZCheck-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>. Reject timestamps older than 5 minutes and process each ZCheck-Event-Id once. Respond 2xx within 10 s; failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Received"}}}},"verification.approved":{"post":{"summary":"verification.approved","description":"Signed with ZCheck-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>. Reject timestamps older than 5 minutes and process each ZCheck-Event-Id once. Respond 2xx within 10 s; failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Received"}}}},"verification.rejected":{"post":{"summary":"verification.rejected","description":"Signed with ZCheck-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>. Reject timestamps older than 5 minutes and process each ZCheck-Event-Id once. Respond 2xx within 10 s; failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Received"}}}},"verification.expired":{"post":{"summary":"verification.expired","description":"Signed with ZCheck-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>. Reject timestamps older than 5 minutes and process each ZCheck-Event-Id once. Respond 2xx within 10 s; failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Received"}}}},"verification.failed":{"post":{"summary":"verification.failed","description":"Signed with ZCheck-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>. Reject timestamps older than 5 minutes and process each ZCheck-Event-Id once. Respond 2xx within 10 s; failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Received"}}}},"verification.cancelled":{"post":{"summary":"verification.cancelled","description":"Signed with ZCheck-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>. Reject timestamps older than 5 minutes and process each ZCheck-Event-Id once. Respond 2xx within 10 s; failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Received"}}}},"verification.resubmission_requested":{"post":{"summary":"verification.resubmission_requested","description":"Signed with ZCheck-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>. Reject timestamps older than 5 minutes and process each ZCheck-Event-Id once. Respond 2xx within 10 s; failures are retried after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h and 24 h.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Received"}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","bearerFormat":"zck_test_<id>_<secret> | zck_live_<id>_<secret>","description":"Organization API key. Test keys = sandbox (simulated results, labeled). Live keys = real processing (disabled during the internal beta)."}},"schemas":{"KycOcr":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"kyc.ocr"},"mode":{"enum":["test","live"]},"status":{"enum":["COMPLETED","UNREADABLE"]},"card_found":{"type":"boolean"},"national_id":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["SUCCESS","UNREADABLE","NO_CARD"]},"confidence":{"type":"number"},"checksum_valid":{"type":"boolean"},"basis":{"enum":["confidence","dual_reader_agreement",null]}}},"first_name":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["SUCCESS","UNREADABLE"]},"confidence":{"type":"number"}}},"last_name":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["SUCCESS","UNREADABLE"]},"confidence":{"type":"number"}}},"birth_date":{"type":"object","properties":{"jalali":{"type":["string","null"],"examples":["1370/01/01"]},"gregorian":{"type":["string","null"],"format":"date"},"status":{"enum":["SUCCESS","UNREADABLE"]},"confidence":{"type":"number"}}},"age":{"type":"object","properties":{"value":{"type":["integer","null"]},"is_adult":{"type":["boolean","null"],"description":"null when the birth date is unreadable or invalid (never treated as under 18)"},"age_ocr_status":{"enum":["VERIFIED_ADULT","VERIFIED_UNDERAGE","UNREADABLE","INVALID_DATE"]},"official_age_verification_status":{"const":"UNVERIFIED"}}},"ocr_confidence":{"type":"number"},"model_version":{"type":"string"},"processing_time_ms":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"identity_data_removed":{"type":"boolean"},"official_verification":{"type":"object","properties":{"status":{"const":"UNVERIFIED"},"note":{"type":"string"}}}}},"KycDocumentMatch":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"kyc.document_match"},"mode":{"enum":["test","live"]},"status":{"enum":["COMPLETED","UNREADABLE"]},"decision":{"enum":["MATCH","MISMATCH","INCONCLUSIVE"]},"similarity_score":{"type":"number","description":"Weighted summary of the document evidence, 0..100; NOT a calibrated probability"},"reason_code":{"type":"string"},"reason":{"type":"string"},"ocr_comparison":{"type":"object","properties":{"clear_card":{"type":"object"},"selfie_card":{"type":"object"},"national_ids_equal":{"type":["boolean","null"]},"confident_positions_agree":{"type":["integer","null"]},"confident_positions_disagree":{"type":["integer","null"]},"verified_against_clear_card":{"type":["boolean","null"]}}},"evidence":{"type":"object","description":"Measurements: alignment inliers, selfie card width / sharpness, header alignment, number-region similarity, printed-portrait similarity"},"model_version":{"type":"string"},"processing_time_ms":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"identity_data_removed":{"type":"boolean"},"official_verification":{"type":"object","properties":{"status":{"const":"UNVERIFIED"},"note":{"type":"string"}}}}},"KycVerification":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"kyc.verification"},"mode":{"enum":["test","live"]},"merchant_reference":{"type":["string","null"]},"status":{"enum":["APPROVED","REJECTED","MANUAL_REVIEW","UNREADABLE"]},"recommendation":{"enum":["APPROVED","REJECTED","MANUAL_REVIEW","UNREADABLE"]},"automated_decision":{"type":"boolean","description":"false = live recommendation-only mode (status is MANUAL_REVIEW, see recommendation)"},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"enum":["card_not_found","national_id_unreadable","national_id_mismatch","document_mismatch","document_match_inconclusive","underage","expected_national_id_not_provided","birth_date_unreadable","birth_date_invalid","automated_decisions_disabled_for_live"]},"message":{"type":"string"}}}},"decision":{"type":"object","description":"Structured decision (rules v2, deterministic, no language model). Apply it automatically only when automated = true; APPROVED / REJECTED are final decisions only when final_decisions_automated = true.","properties":{"decision":{"enum":["APPROVED","REJECTED","RESUBMISSION_REQUIRED","MANUAL_REVIEW"]},"reason_code":{"enum":["ALL_CHECKS_PASSED","DOCUMENT_NOT_DETECTED","DOCUMENT_UNREADABLE","SELFIE_CARD_NOT_DETECTED","FACE_NOT_VISIBLE","IDENTITY_DUPLICATE","UNDERAGE","MOBILE_OWNERSHIP_MISMATCH","NATIONAL_ID_MISMATCH","IDENTITY_DATA_MISMATCH","DOCUMENT_MISMATCH","BIRTH_DATE_UNREADABLE","LOW_CONFIDENCE","FACE_MISMATCH_REVIEW","FACE_MATCH_UNCERTAIN","EXPECTED_ID_MISSING","NAME_MISMATCH","MOBILE_OWNERSHIP_UNVERIFIED"]},"reason_codes":{"type":"array","items":{"type":"string"}},"application_id":{"type":["string","null"],"description":"Your merchant_reference"},"reason_fa":{"type":"string","description":"User-facing Persian text"},"customer_message":{"type":"string","description":"Same as reason_fa"},"next_action_fa":{"type":"string"},"reason_en":{"type":"string"},"resubmission_allowed":{"type":"boolean"},"manual_review_required":{"type":"boolean"},"resubmit_documents":{"type":"array","items":{"enum":["card_image","selfie_with_card_image","identity_data"]}},"age_eligible":{"type":["boolean","null"],"description":"null = birth date unknown (never a rejection)"},"confidence":{"type":"number","description":"Weakest of national ID, birth date and document-match confidence (0..1)"},"checks":{"type":"object","description":"Per check: { result: PASS | FAIL | INCONCLUSIVE | NOT_PERFORMED, source: zcheck | merchant, status }. face_match is never FAIL (a low similarity is only a reason for a human review)."},"automated":{"type":"boolean"},"final_decisions_automated":{"type":"boolean"},"verification_id":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"decided_at":{"type":"string","format":"date-time"},"model_version":{"type":"string"},"rules_version":{"type":"string"},"policy_version":{"type":"string"},"checks_performed":{"type":"array","items":{"type":"string"}},"checks_not_performed":{"type":"array","items":{"type":"string"},"description":"liveness, document authenticity, official registry"},"thresholds":{"type":"object","properties":{"auto_approve_min_confidence":{"type":"number"}}}}},"steps":{"type":"object","properties":{"ocr":{"type":"object","properties":{"card_found":{"type":"boolean"},"national_id":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["SUCCESS","UNREADABLE","NO_CARD"]},"confidence":{"type":"number"},"checksum_valid":{"type":"boolean"},"basis":{"enum":["confidence","dual_reader_agreement",null]}}},"first_name":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["SUCCESS","UNREADABLE"]},"confidence":{"type":"number"}}},"last_name":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["SUCCESS","UNREADABLE"]},"confidence":{"type":"number"}}},"birth_date":{"type":"object","properties":{"jalali":{"type":["string","null"],"examples":["1370/01/01"]},"gregorian":{"type":["string","null"],"format":"date"},"status":{"enum":["SUCCESS","UNREADABLE"]},"confidence":{"type":"number"}}},"age":{"type":"object","properties":{"value":{"type":["integer","null"]},"is_adult":{"type":["boolean","null"],"description":"null when the birth date is unreadable or invalid (never treated as under 18)"},"age_ocr_status":{"enum":["VERIFIED_ADULT","VERIFIED_UNDERAGE","UNREADABLE","INVALID_DATE"]},"official_age_verification_status":{"const":"UNVERIFIED"}}},"ocr_confidence":{"type":"number"}}},"name_match":{"type":"object","properties":{"status":{"enum":["MATCH","MISMATCH","NOT_PROVIDED","UNREADABLE"]}}},"national_id_match":{"type":"object","properties":{"status":{"enum":["MATCH","MISMATCH","NOT_PROVIDED","UNREADABLE"]},"expected_provided":{"type":"boolean"}}},"document_match":{"type":"object","properties":{"decision":{"enum":["MATCH","MISMATCH","INCONCLUSIVE"]},"similarity_score":{"type":"number","description":"Weighted summary of the document evidence, 0..100; NOT a calibrated probability"},"reason_code":{"type":"string"},"reason":{"type":"string"},"ocr_comparison":{"type":"object","properties":{"clear_card":{"type":"object"},"selfie_card":{"type":"object"},"national_ids_equal":{"type":["boolean","null"]},"confident_positions_agree":{"type":["integer","null"]},"confident_positions_disagree":{"type":["integer","null"]},"verified_against_clear_card":{"type":["boolean","null"]}}},"evidence":{"type":"object","description":"Measurements: alignment inliers, selfie card width / sharpness, header alignment, number-region similarity, printed-portrait similarity"}}},"age":{"type":"object","properties":{"value":{"type":["integer","null"]},"is_adult":{"type":["boolean","null"],"description":"null when the birth date is unreadable or invalid (never treated as under 18)"},"age_ocr_status":{"enum":["VERIFIED_ADULT","VERIFIED_UNDERAGE","UNREADABLE","INVALID_DATE"]},"official_age_verification_status":{"const":"UNVERIFIED"}}}}},"model_version":{"type":"string"},"processing_time_ms":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"identity_data_removed":{"type":"boolean"},"official_verification":{"type":"object","properties":{"status":{"const":"UNVERIFIED"},"note":{"type":"string"}}}}},"OcrRequest":{"type":"object","properties":{"request_id":{"type":"string"},"object":{"enum":["ocr.request","compare.request"]},"kind":{"enum":["ocr","compare"]},"merchant_id":{"type":"string"},"environment":{"enum":["sandbox","live"]},"status":{"enum":["created","processing","completed","failed"]},"simulated":{"oneOf":[{"const":false},{"type":"object","properties":{"fixture":{"type":"string"}}}]},"external_customer_id":{"type":["string","null"]},"external_application_id":{"type":["string","null"]},"metadata":{"type":"object"},"error":{"type":["object","null"],"properties":{"code":{"enum":["service_unavailable","processing_timeout","processing_error","invalid_image","image_too_large","image_too_small","unsupported_media_type","invalid_params"]},"message":{"type":"string"}}},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":["string","null"]},"completed_at":{"type":["string","null"]},"duration_ms":{"type":["integer","null"]},"model_version":{"type":["string","null"]},"result_available":{"type":"boolean"},"identity_data_removed":{"type":"boolean"},"result":{"type":["object","null"],"properties":{"document_detected":{"type":"boolean"},"document_type":{"type":["string","null"]},"fields":{"type":"object","properties":{"national_id":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["extracted","low_confidence","unreadable","not_detected"]},"confidence":{"type":["number","null"],"minimum":0,"maximum":1},"reason":{"type":["string","null"]}}},"first_name":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["extracted","low_confidence","unreadable","not_detected"]},"confidence":{"type":["number","null"],"minimum":0,"maximum":1},"reason":{"type":["string","null"]}}},"last_name":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["extracted","low_confidence","unreadable","not_detected"]},"confidence":{"type":["number","null"],"minimum":0,"maximum":1},"reason":{"type":["string","null"]}}},"full_name":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["extracted","low_confidence","unreadable","not_detected"]},"confidence":{"type":["number","null"],"minimum":0,"maximum":1},"reason":{"type":["string","null"]}}},"birth_date":{"type":"object","properties":{"value":{"type":["string","null"]},"status":{"enum":["extracted","low_confidence","unreadable","not_detected"]},"confidence":{"type":["number","null"],"minimum":0,"maximum":1},"reason":{"type":["string","null"]}}}}},"recognized_text":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"score":{"type":"number"}}}},"diagnostics":{"type":"object"},"document_comparison":{"type":"object"},"face_comparison":{"type":"object"}}}}},"Error":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","examples":["unauthorized","validation_error","not_found","invalid_state","idempotency_conflict","rate_limited","live_processing_disabled","retry_limit","uploads_incomplete","insufficient_scope"]},"message":{"type":"string"},"details":{}}}}},"Customer":{"type":"object","required":["first_name","last_name","national_id"],"properties":{"first_name":{"type":"string","maxLength":60},"last_name":{"type":"string","maxLength":60},"national_id":{"type":"string","description":"10 digits incl. leading zeros, Persian or Latin digits; the check digit is validated"},"document_type":{"enum":["national_id_card","birth_certificate","passport","driving_license"]}}},"CreateVerification":{"type":"object","additionalProperties":false,"properties":{"external_customer_id":{"type":"string","maxLength":64,"description":"Your customer ID ([A-Za-z0-9._:@-])"},"external_reference":{"type":"string","maxLength":100},"document_types":{"type":"array","items":{"enum":["national_id_card","birth_certificate","passport","driving_license"]},"description":"Subset of the documents accepted by your policy"},"document_type":{"enum":["national_id_card","birth_certificate","passport","driving_license"],"description":"Fix the document type (the customer cannot choose)"},"redirect_url":{"type":"string","format":"uri","description":"https URL the customer returns to after submitting"},"locale":{"enum":["fa","en"],"default":"fa"},"expires_in_minutes":{"type":"integer","minimum":10,"maximum":10080,"description":"Capped by the policy session expiry"},"customer":{"type":"object","description":"Pre-filled identity data (the customer cannot change it)","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"national_id":{"type":"string"}}},"metadata":{"type":"object","additionalProperties":{"type":["string","number","boolean"]},"description":"Up to 4 KB, returned as-is; do not put personal data here"},"sandbox":{"type":"object","description":"Test keys only","properties":{"scenario":{"enum":["approve","name_mismatch","nid_mismatch","fuzzy_name","ocr_unreadable","face_mismatch","face_borderline","liveness_spoof","document_expired","suspicious_document","provider_error","provider_timeout"]}}}}},"Verification":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"reference":{"type":"string","examples":["ZC-7K2M9QXA"]},"external_customer_id":{"type":["string","null"]},"external_reference":{"type":["string","null"]},"mode":{"enum":["test","live"]},"status":{"enum":["CREATED","PENDING_UPLOAD","PENDING_LIVENESS","PROCESSING","MANUAL_REVIEW","APPROVED","REJECTED","EXPIRED","CANCELLED","ERROR"]},"attempt":{"type":"integer"},"max_attempts":{"type":"integer"},"document_type":{"enum":["national_id_card","birth_certificate","passport","driving_license",null]},"allowed_document_types":{"type":"array","items":{"enum":["national_id_card","birth_certificate","passport","driving_license"]}},"liveness_mode":{"enum":["selfie","active"],"description":"selfie = Mode A (document + selfie, no liveness claim); active = Mode B (live capture + liveness provider)"},"simulated":{"type":"boolean","description":"true when sandbox (simulated) providers produced the results"},"decision":{"type":["object","null"],"properties":{"outcome":{"enum":["APPROVED","REJECTED","MANUAL_REVIEW"]},"automatic":{"type":"boolean"},"reason_codes":{"type":"array","items":{"type":"string"}}}},"customer":{"type":["object","null"],"properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"national_id_masked":{"type":"string","examples":["******5679"]}}},"metadata":{"type":"object"},"policy_version":{"type":"integer"},"session_expires_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"submitted_at":{"type":["string","null"]},"decided_at":{"type":["string","null"]},"completed_at":{"type":["string","null"]}}},"VerificationCreated":{"allOf":[{"$ref":"#/components/schemas/Verification"},{"type":"object","properties":{"verification_url":{"type":["string","null"],"description":"Hosted page link (null on an idempotent replay: use POST /session for a new link)"}}}]},"Check":{"type":"object","properties":{"status":{"enum":["pass","fail","suspicious","inconclusive","unavailable","not_required","error"]},"score":{"type":["number","null"],"description":"Similarity 0..100 (names) or the score compared with the threshold (face: calibrated if a calibration is configured, otherwise the raw vendor score)"},"threshold":{"type":["number","null"]},"raw_score":{"type":["number","null"],"description":"Provider score on the provider's own scale"},"calibrated":{"type":["boolean","null"]},"provider":{"type":["string","null"]},"simulated":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}},"entered":{"type":"string"},"extracted":{"type":["string","null"]},"match_type":{"type":"string"},"entered_last4":{"type":"string"},"extracted_last4":{"type":["string","null"]}}},"Result":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"status":{"enum":["CREATED","PENDING_UPLOAD","PENDING_LIVENESS","PROCESSING","MANUAL_REVIEW","APPROVED","REJECTED","EXPIRED","CANCELLED","ERROR"]},"final":{"type":"boolean"},"simulated":{"type":"boolean"},"attempt":{"type":"integer"},"policy_version":{"type":"integer"},"decision":{"type":["object","null"],"properties":{"outcome":{"type":"string"},"automatic":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}},"manual_reason":{"type":["string","null"]},"engine_version":{"type":"string"},"decided_at":{"type":["string","null"]}}},"checks":{"type":"object","properties":{"document_quality":{"$ref":"#/components/schemas/Check"},"ocr_extraction":{"$ref":"#/components/schemas/Check"},"first_name_match":{"$ref":"#/components/schemas/Check"},"last_name_match":{"$ref":"#/components/schemas/Check"},"national_id_match":{"$ref":"#/components/schemas/Check"},"face_match":{"$ref":"#/components/schemas/Check"},"liveness":{"$ref":"#/components/schemas/Check"},"presentation_attack":{"$ref":"#/components/schemas/Check"},"document_authenticity":{"$ref":"#/components/schemas/Check"}}},"providers":{"type":"array","items":{"type":"string"}}}},"Event":{"type":"object","properties":{"id":{"type":"string","examples":["evt_4f1c0a9b2d3e4f5a6b7c8d9e"]},"type":{"enum":["verification.created","verification.processing","verification.pending_review","verification.approved","verification.rejected","verification.expired","verification.failed","verification.cancelled","verification.resubmission_requested","test.ping"]},"created_at":{"type":"string","format":"date-time"},"mode":{"enum":["test","live"]},"api_version":{"type":"string"},"data":{"type":"object","properties":{"verification":{"type":"object","description":"id, reference, external_customer_id, external_reference, mode, status, attempt, document_type, simulated, decision {outcome, automatic, reason_codes}, timestamps. Never names, national IDs or images."}}}}}}},"x-rate-limits":"Per merchant (all keys together) and optionally per key, set by zCheck (default 60 requests per minute for new merchants; 429 + Retry-After). Hosted page: 120 requests per minute per session."}