Webhooks

Real-time event notifications for payments, transfers, and GSI mandates


When certain events happen — a payment is received, a transfer completes,
a GSI mandate gets approved — afihan sends a POST request to your
configured webhook URL with the event details.

Verifying a webhook

Every webhook includes a secret header so you can confirm it actually came
from afihan and not an impostor. Set your own webhook secret in your
dashboard settings
— if you haven't set one, a fixed placeholder value
is sent in its place instead of a real secret, so verification won't
actually protect you until you've set your own. The header name differs
depending on which product the event is from:

  • GSI events → header x-secret-key
  • Face Matching events → header X-API-Secret
  • All other events (Direct Debit, Checkout, Reserve Accounts, Transfers) → header X-Lendoverify-Secret

If the header doesn't match your configured secret, discard the request.

Retries

If your endpoint doesn't respond with a successful status, afihan retries
the delivery:

  • GSI events: up to 3 attempts, with increasing delay (30s, 60s, 120s). Your endpoint has up to 30 seconds to respond.
  • All other events: up to 5 attempts, with a 30s delay between each. Your endpoint has up to 5 seconds to respond.

Respond as quickly as possible and do any slow processing
asynchronously, so retries don't pile up — this matters more for
non-GSI events, given the tighter 5-second window.

GSI

Linked accounts (sweep mandates)

Only the primary account's mandate ID can be debited directly. When a
debit is requested and the primary account doesn't have enough funds, the
sweep automatically draws from the other linked accounts under that same
mandate.

Cancelling, pausing, or reinstating the primary account cascades to
every linked account under that mandate — they all move to the same
status together. Individual linked accounts can also be cancelled,
paused, or reinstated on their own, independently of the primary and
the other linked accounts.

A primary-level action always overrides any individual linked account's
state. For example: if you cancel one linked account specifically, then
later pause the primary account, that linked account becomes paused too
— the primary's pause overwrites its individually-cancelled state. If you
then reinstate the primary, every linked account — including the one you
individually cancelled — is reinstated along with it.

Mandate created

Sent when a mandate is initiated and awaiting customer approval.

For a sweep mandate, this event is only sent for the primary linked
account. Any additional linked accounts added to the sweep skip this
event entirely.

{
  "event": "events.mandates.created",
  "event_id": "evt_abc123",
  "timestamp": "2026-01-01T10:41:42.016Z",
  "data": {
    "id": "mmc_664b428e362a3",
    "status": "initiated",
    "mandate_type": "emandate",
    "debit_type": "variable",
    "ready_to_debit": false,
    "nibss_code": "RC/5008/4942090",
    "approved": false,
    "reference": "LNV-7j7RV202223",
    "account_name": "JEREMIAH OYELERE",
    "account_number": "0100013078",
    "bank": "GTBank",
    "customer": "664769512f321a8c",
    "description": "Monthly subscription payment",
    "live_mode": false,
    "message": "The mandate has been successfully initiated and is awaiting customer approval.",
    "start_date": "2026-01-01T00:00:00.000Z",
    "end_date": "2027-01-01T00:00:00.000Z",
    "date": "2026-01-01T10:41:42.016Z",
    "amount": 200020,
    "fee_bearer": "business",
    "app": "662fd4468d1db5",
    "business": "60cc8f95ba1772018c5c6b1d"
  }
}

Mandate approved

Sent when the customer approves the mandate.

{
  "event": "events.mandates.approved",
  "event_id": "evt_abc124",
  "timestamp": "2026-01-01T10:45:00.000Z",
  "data": {
    "id": "mmc_664b428e362a3",
    "status": "approved",
    "mandate_type": "emandate",
    "debit_type": "variable",
    "ready_to_debit": false,
    "nibss_code": "RC/5008/4942090",
    "approved": true,
    "reference": "LNV-7j7RV202223",
    "account_name": "JEREMIAH OYELERE",
    "account_number": "0100013078",
    "bank": "GTBank",
    "customer": "664769512f321a8c",
    "description": "Monthly subscription payment",
    "live_mode": false,
    "message": "Mandate approved",
    "start_date": "2026-01-01T00:00:00.000Z",
    "end_date": "2027-01-01T00:00:00.000Z",
    "date": "2026-01-01T10:45:00.000Z",
    "amount": 200020,
    "fee_bearer": "business",
    "app": "662fd4468d1db5",
    "business": "60cc8f95ba1772018c5c6b1d"
  }
}

Mandate rejected

Sent when the customer or their bank rejects the mandate.

{
  "event": "events.mandates.rejected",
  "event_id": "evt_abc125",
  "timestamp": "2026-01-01T10:45:00.000Z",
  "data": {
    "id": "mmc_664b428e362a3",
    "mandate_type": "emandate",
    "debit_type": "variable",
    "status": "rejected",
    "approved": false,
    "reference": "LNV-7j7RV202223",
    "account_name": "JEREMIAH OYELERE",
    "account_number": "0100013078",
    "bank": "GTBank",
    "customer": "664769512f321a8c",
    "description": "Monthly subscription payment",
    "message": "Mandate was rejected by Bank",
    "start_date": "2026-01-01T00:00:00.000Z",
    "end_date": "2027-01-01T00:00:00.000Z",
    "date": "2026-01-01T10:45:00.000Z",
    "app": "662fd4468d1db5",
    "business": "60cc8f95ba1772018c5c6b1d"
  }
}

Mandate ready to debit

Sent when the mandate is fully set up and ready to be debited.

For a sweep mandate, additional linked accounts (beyond the primary) skip
the
created event and go straight to approved → ready.

{
  "event": "events.mandates.ready",
  "event_id": "evt_abc126",
  "timestamp": "2026-01-01T10:50:00.000Z",
  "data": {
    "id": "mmc_664b428e362a3",
    "status": "approved",
    "mandate_type": "emandate",
    "debit_type": "variable",
    "ready_to_debit": true,
    "nibss_code": "RC/5008/4942090",
    "approved": true,
    "reference": "LNV-7j7RV202223",
    "account_name": "JEREMIAH OYELERE",
    "account_number": "0100013078",
    "bank": "GTBank",
    "description": "Monthly subscription payment",
    "message": "Mandate is now ready for debiting",
    "start_date": "2026-01-01T00:00:00.000Z",
    "end_date": "2027-01-01T00:00:00.000Z",
    "date": "2026-01-01T10:50:00.000Z",
    "amount": 200020,
    "fee_bearer": "business",
    "app": "662fd4468d1db5",
    "business": "60cc8f95ba1772018c5c6b1d"
  }
}

Mandate expired

Sent when a mandate expires before it was approved.

{
  "event": "events.mandates.expired",
  "event_id": "evt_abc127",
  "timestamp": "2027-01-02T10:02:08.305Z",
  "data": {
    "id": "mmc_664b428e362a3",
    "status": "expired",
    "mandate_type": "emandate",
    "debit_type": "fixed",
    "ready_to_debit": false,
    "nibss_code": "RD2040803048",
    "approved": false,
    "reference": "LNV-7j7RV202223",
    "account_name": "JEREMIAH OYELERE",
    "account_number": "0100013078",
    "bank": "GTBank",
    "bank_code": "058",
    "customer": "664769512f321a8c",
    "description": "Monthly subscription payment",
    "live_mode": true,
    "message": "Mandate expired",
    "start_date": "2026-01-01T00:00:00.000Z",
    "end_date": "2027-01-01T00:00:00.000Z",
    "date": "2027-01-02T10:02:08.305Z",
    "amount": 200020,
    "fee_bearer": "business",
    "meta": { "loanId": "LN-00123" },
    "app": "662fd4468d1db5",
    "business": "60cc8f95ba1772018c5c6b1d"
  }
}

Mandate paused

Sent when a mandate is paused and temporarily can't be debited.

{
  "event": "events.mandate.action.pause",
  "event_id": "evt_abc128",
  "timestamp": "2026-01-15T10:40:47.713Z",
  "data": {
    "mandate": "mmc_664b428e362a3",
    "status": "success",
    "response_code": "",
    "message": "This mandate is now paused and can't be used for debit or balance inquiry, but you can reinstate it back.",
    "timestamps": "2026-01-15T10:40:47.713Z",
    "data": null,
    "app": "662fd4468d1db5",
    "business": "60cc8f95ba1772018c5c6b1d"
  }
}

Mandate cancelled

Sent when a mandate is cancelled.

{
  "event": "events.mandate.action.cancel",
  "event_id": "evt_abc129",
  "timestamp": "2026-01-15T10:40:47.713Z",
  "data": {
    "mandate": "mmc_664b428e362a3",
    "status": "success",
    "response_code": "",
    "message": "This mandate is now cancelled and deleted, and can't be used again",
    "timestamps": "2026-01-15T10:34:30.114Z",
    "data": null,
    "app": "662fd4468d1db5",
    "business": "60cc8f95ba1772018c5c6b1d"
  }
}

Mandate reinstated

Sent when a paused or cancelled mandate is reinstated and active again.

{
  "event": "events.mandate.action.reinstate",
  "event_id": "evt_abc130",
  "timestamp": "2026-01-16T10:40:19.322Z",
  "data": {
    "mandate": "mmc_664b428e362a3",
    "status": "success",
    "response_code": "",
    "message": "The mandate has been reinstated successfully and is now active for debit and balance inquiry",
    "timestamps": "2026-01-16T10:40:19.322Z",
    "data": null,
    "app": "662fd4468d1db5",
    "business": "60cc8f95ba1772018c5c6b1d"
  }
}

Debit successful

Sent when a debit completes successfully for the full amount requested.

{
  "event": "events.mandates.debit.successful",
  "event_id": "evt_abc132",
  "timestamp": "2026-01-20T00:33:00.000Z",
  "data": {
    "success": true,
    "status": "successful",
    "message": "Account debited successfully.",
    "response_code": "00",
    "amount": 50000,
    "mandate": "mmc_664b428e362a3",
    "reference_number": "LNV-DEBIT-abc123",
    "fee": 1000,
    "fee_bearer": "business",
    "narration": "Subscription",
    "app": "662fd4468d1db5",
    "session_id": "999999250919103136775149584552",
    "business": "60cc8f95ba1772018c5c6b1d",
    "customer": "664769512f321a8c",
    "account_details": {
      "bank_code": "058",
      "account_name": "JEREMIAH OYELERE",
      "account_number": "0100013078",
      "bank_name": "GTBank"
    },
    "beneficiary": {
      "bank_code": "000",
      "account_name": "Mono",
      "account_number": "P000001",
      "bank_name": "MONO SETTLEMENT WALLET"
    },
    "date": "2026-01-20T00:33:00.000Z"
  }
}

Debit partially successful (partial sweep)

Sent when a sweep mandate can only collect part of the requested
amount across the customer's linked accounts — the shortfall is in
pending_amount, what was actually collected is in collected_amount.
If a sweep collects the full amount instead, you get the regular
events.mandates.debit.successful event above, not this one — this
event is specific to the partial-collection case.

{
  "event": "events.mandates.debit.partial_debit_successful",
  "event_id": "evt_abc133",
  "timestamp": "2026-01-20T13:07:49.684Z",
  "data": {
    "success": true,
    "status": "partial_debit_successful",
    "message": "Partial debit was successful",
    "response_code": "00",
    "amount": 650000,
    "mandate": "mmc_664b428e362a3",
    "reference_number": "LNV-DEBIT-abc123",
    "date": "2026-01-20T13:07:49.684Z",
    "live_mode": true,
    "fee": 3763,
    "fee_bearer": "business",
    "narration": "Loan repayment",
    "app": "662fd4468d1db5",
    "session_id": "999999260904140740859843765211",
    "business": "60cc8f95ba1772018c5c6b1d",
    "customer": "664769512f321a8c",
    "account_details": {
      "bank_code": "058",
      "account_name": "JEREMIAH OYELERE",
      "account_number": "0100013078",
      "bank_name": "GTBank"
    },
    "beneficiary": {
      "bank_code": "058",
      "account_name": "JEREMIAH OYELERE",
      "account_number": "0100013078",
      "bank_name": "GTBank"
    },
    "pending_amount": 365000,
    "collected_amount": 285000,
    "debit_references": [
      {
        "success": true,
        "reference": "LsOkdXeDUfNsfgB",
        "account_number": "0100013078",
        "account_name": "JEREMIAH OYELERE",
        "bank_code": "058",
        "session_id": "999999260904140736600425981684",
        "response_code": "00",
        "bank_name": "GTBank"
      }
    ]
  }
}

Debit failed

Sent when a debit attempt fails — no funds collected.

{
  "event": "events.mandates.debit.failed",
  "event_id": "evt_abc134",
  "timestamp": "2026-01-20T00:33:00.000Z",
  "data": {
    "success": false,
    "status": "failed",
    "message": "",
    "response_code": "96",
    "amount": 50000,
    "customer": "664769512f321a8c",
    "mandate": "mmc_664b428e362a3",
    "reference_number": "LNV-DEBIT-abc123",
    "account_details": {
      "bank_code": "058",
      "account_name": "JEREMIAH OYELERE",
      "account_number": "0100013078",
      "bank_name": "GTBank"
    },
    "beneficiary": {
      "bank_code": "000",
      "account_name": "JEREMIAH OYELERE",
      "account_number": "P000000",
      "bank_name": "MONO SETTLEMENT WALLET"
    },
    "date": "2026-01-20T00:33:00.000Z",
    "fee_bearer": "business",
    "app": "662fd4468d1db5",
    "business": "60cc8f95ba1772018c5c6b1d"
  }
}

Direct Debit

Mandate pending authorization

Sent when a direct debit mandate is initialized and awaiting customer
authorization. The customer must complete authorization (including the
₦50 bank fee) before the mandate becomes active.

{
    "eventType": "MANDATE_UPDATE",
    "eventData": {
        "externalMandateReference": "LNV-MAND-yokAO260324",
        "mandateCode": "AFDD|01KMGVWXA5KDDV154AKJ0BR",
        "mandateStatus": "PENDING_AUTHORIZATION",
        "mandateAmount": 100000,
        "mandateDescription": "Product payment",
        "autoRenew": true,
        "customerName": "John Doe",
        "customerEmailAddress": "[email protected]",
        "customerPhoneNumber": "08148501147",
        "customerAccountName": "JOHN DOE",
        "customerAccountNumber": "2202541196",
        "customerAccountBankCode": "033",
        "customerAddress": "2 mojisola street",
        "contractCode": "892560411253",
        "startDate": "2026-03-24 22:27:01.0",
        "endDate": "2027-03-24 22:27:01.0"
    }
}

Mandate active

Sent after the customer completes authorization and pays the ₦50 bank
activation fee. The mandate is now active and ready to be charged.

{
    "eventType": "MANDATE_UPDATE",
    "eventData": {
        "externalMandateReference": "LNV-MAND-n5J20260325",
        "mandateCode": "AFDD|01KMJ24AAKRZJYXYTCEZR13",
        "mandateStatus": "ACTIVE",
        "mandateAmount": 100000,
        "mandateDescription": "Product payment",
        "autoRenew": true,
        "customerName": "John Doe",
        "customerEmailAddress": "[email protected]",
        "customerPhoneNumber": "08148501147",
        "customerAccountName": "JOHN DOE",
        "customerAccountNumber": "2202541196",
        "customerAccountBankCode": "033",
        "customerAddress": "2 mojisola street",
        "contractCode": "892560411253",
        "startDate": "2026-03-24 22:27:01.0",
        "endDate": "2027-03-24 22:27:01.0"
    }
}

Mandate cancelled

Sent when a direct debit mandate is cancelled, either by the customer or
by the merchant via the deactivate endpoint.

{
    "eventType": "MANDATE_UPDATE",
    "eventData": {
        "externalMandateReference": "LNV-MAND-E2pr0660209",
        "mandateCode": "AFDD|01KH0VNVKVNXSR7S00HZRFZ4",
        "mandateStatus": "CANCELLED",
        "mandateAmount": 100000,
        "mandateDescription": "Loan repayment",
        "autoRenew": true,
        "customerName": "John Doe",
        "customerEmailAddress": "[email protected]",
        "customerPhoneNumber": "08148501147",
        "customerAccountName": "JOHN DOE",
        "customerAccountNumber": "2202541196",
        "customerAccountBankCode": "033",
        "customerAddress": "2 Mojisola street",
        "contractCode": "892560411253",
        "startDate": "2026-02-09 10:28:15.0",
        "endDate": "2027-02-09 10:28:15.0"
    }
}

Direct debit charge successful

Sent when a direct debit charge is successfully processed against an
acti
ve mandate.

{
    "eventType": "SUCCESSFUL_TRANSACTION",
    "eventData": {
        "transactionReference": "AF|68|202602095952|059409",
        "paymentReference": "LNV-22yHY2260209",
        "paidOn": "2026-02-09 10:59:56.594",
        "paymentDescription": "Direct Debit charge from John Doe",
        "amountPaid": 50,
        "totalPayable": 50,
        "settlementAmount": "49.57",
        "paymentMethod": "DIRECT_DEBIT",
        "paymentStatus": "PAID",
        "currency": "NGN",
        "paymentScope": "LOCAL",
        "customer": { "name": "JOHN DOE", "email": "[email protected]" },
        "product": {
            "reference": "LNV-22yHY20260209",
            "type": "API_NOTIFICATION"
        }
    }
}

Checkout

Checkout payment successful

Sent when a customer completes a checkout payment. paymentMethod is
CARD or ACCOUNT_TRANSFER for a card/bank transfer checkout, or
OPAY/PALMPAY if the customer paid through one of those wallets instead
— same event shape either way.

{
    "eventType": "SUCCESSFUL_TRANSACTION",
    "eventData": {
        "transactionReference": "AF|68|202602095952|059410",
        "paymentReference": "LNV-22yHY2260210",
        "paidOn": "2026-02-09 11:10:00.000",
        "paymentDescription": "Payment from John Doe",
        "amountPaid": 50,
        "totalPayable": 50,
        "settlementAmount": "49.57",
        "paymentMethod": "CARD",
        "paymentStatus": "PAID",
        "currency": "NGN",
        "paymentScope": "LOCAL",
        "customer": { "name": "JOHN DOE", "email": "[email protected]" },
        "product": {
            "reference": "LNV-22yHY20260210",
            "type": "API_NOTIFICATION"
        }
    }
}

Checkout payment rejected

Sent when a checkout payment attempt is rejected.

{
    "eventType": "REJECTED_PAYMENT",
    "eventData": {
        "metaData": { "type": "checkout", "transaction_id": "12345", "user_id": "678" },
        "product": {
            "reference": "LNV-22yHY2260209",
            "type": "API_NOTIFICATION"
        },
        "amount": 100,
        "paymentSourceInformation": {
            "bankCode": "058",
            "amountPaid": 40,
            "accountName": "JOHN DOE",
            "sessionId": "090405230626180003067844645188",
            "accountNumber": "0100013078"
        },
        "transactionReference": "AF|85|20260626175354|041855",
        "created_on": "2026-06-26 17:53:55.0",
        "paymentReference": "LNV-22yHY2260209",
        "paymentRejectionInformation": {
            "bankCode": "035",
            "destinationAccountNumber": "7023576853",
            "bankName": "Wema Bank",
            "rejectionReason": "UNDER_PAYMENT",
            "expectedAmount": 100
        },
        "paymentDescription": "Product payment",
        "customer": {
            "name": "John Doe",
            "email": "[email protected]"
        }
    }
}

Reserve Accounts

Reserve Account funded

Sent when a customer funds their dedicated Reserve Account — same
SUCCESSFUL_TRANSACTION shape as Checkout, with product.type set to
RESERVED_ACCOUNT. (This example mirrors the Checkout one field-for-field
as a best-effort complete version — not yet individually confirmed against
a live Reserve Account payload the way Checkout's was, so some field
values here may need adjusting once that's checked.)

{
    "eventType": "SUCCESSFUL_TRANSACTION",
    "eventData": {
        "transactionReference": "AF|68|202602095952|059411",
        "paymentReference": "LNV-RA-abc123",
        "paidOn": "2026-02-09 11:15:00.000",
        "paymentDescription": "Product payment",
        "amountPaid": 50000,
        "totalPayable": 50000,
        "settlementAmount": "49570",
        "paymentMethod": "ACCOUNT_TRANSFER",
        "paymentStatus": "PAID",
        "currency": "NGN",
        "paymentScope": "LOCAL",
        "customer": { "name": "John Doe", "email": "[email protected]" },
        "product": {
            "reference": "VA-ref-abc123",
            "type": "RESERVED_ACCOUNT"
        }
    }
}

Transfers

Sent for outbound transfers you initiate.

Transfer successful

Sent when a disbursement completes successfully.

{
    "eventType": "SUCCESSFUL_DISBURSEMENT",
    "eventData": {
        "amount": 10,
        "transactionReference": "AFDS|20260317032332|002431",
        "fee": 8,
        "transactionDescription": "Approved or completed successfully",
        "destinationAccountNumber": "0068687503",
        "sessionId": "090405210317032336726272971260",
        "createdOn": "17/03/2026 3:23:32 AM",
        "destinationAccountName": "JOHN DOE",
        "reference": "LNV-TRF-abc123",
        "destinationBankCode": "232",
        "completedOn": "17/03/2026 3:23:38 AM",
        "narration": "This is a quite long narration",
        "currency": "NGN",
        "destinationBankName": "Sterling Bank",
        "status": "SUCCESS"
    }
}

Transfer failed

Sent when a disbursement fails.

{
    "eventType": "FAILED_DISBURSEMENT",
    "eventData": {
        "amount": 17100,
        "transactionReference": "AFDS10620260708214001015343FR7PL8",
        "fee": 20,
        "transactionDescription": "You do not have sufficient balance to process this request. Please fund your account and try again.",
        "destinationAccountNumber": "8088524531",
        "sessionId": "",
        "createdOn": "08/07/2026 9:40:02 PM",
        "destinationAccountName": "JOHN DOE",
        "reference": "LNV-TRF-def456",
        "destinationBankCode": "305",
        "completedOn": "08/07/2026 9:40:07 PM",
        "narration": "Transfer",
        "currency": "NGN",
        "destinationBankName": "OPay",
        "status": "FAILED"
    }
}

Transfer reversed

Sent when a disbursement is reversed — your wallet is refunded
automatically.

{
    "eventType": "REVERSED_DISBURSEMENT",
    "eventData": {
        "transactionReference": "AFDS33920260513211815009133P47MKU",
        "reference": "LNV-TRF-ghi789",
        "narration": "Fund Transfer",
        "currency": "NGN",
        "amount": 145708,
        "status": "REVERSED",
        "fee": 8,
        "destinationAccountNumber": "8088523251",
        "destinationAccountName": "JOHN DOE",
        "destinationBankCode": "305",
        "sessionId": "090405240513211816637369129129",
        "createdOn": "13/05/2026 9:18:16 PM",
        "completedOn": "13/05/2026 9:18:19 PM"
    }
}

Face Matching

Liveness check completed

Sent when a customer finishes a liveness check — the data object is the
full result of the check.

min_brightness/brightness_check only appear when the check was started
via the v2 (or newer) initiate endpoint, which lets you set a brightness
requirement — the v1 initiate endpoint has no way to set this, so a v1
check's payload won't include a
brightness_check object.

{
    "event_type": "liveness_check",
    "data": {
        "data": {
            "callback_url": "https://www.afihan.com",
            "meta": [],
            "widget_id": "yV2iwySJ2j2nGdimJbmsGlDEq",
            "min_brightness": 40,
            "version": "v2"
        },
        "liveness": {
            "entity": {
                "face": {
                    "face_detected": true,
                    "message": "face detected",
                    "multiface_detected": false,
                    "details": {
                        "age_range": {
                            "low": 31,
                            "high": 39
                        },
                        "smile": {
                            "value": false,
                            "confidence": 98.85260009765625
                        },
                        "gender": {
                            "value": "Male",
                            "confidence": 99.27666473388672
                        },
                        "eyeglasses": {
                            "value": false,
                            "confidence": 99.96976470947266
                        },
                        "sunglasses": {
                            "value": false,
                            "confidence": 99.9875717163086
                        },
                        "beard": {
                            "value": true,
                            "confidence": 97.95065307617188
                        },
                        "mustache": {
                            "value": true,
                            "confidence": 50.6424674987793
                        },
                        "eyes_open": {
                            "value": true,
                            "confidence": 93.54592895507812
                        },
                        "mouth_open": {
                            "value": false,
                            "confidence": 94.22428131103516
                        },
                        "emotions": [
                            { "type": "CONFUSED", "confidence": 50.262046813964844 },
                            { "type": "CALM", "confidence": 23.93337631225586 },
                            { "type": "ANGRY", "confidence": 5.853271484375 },
                            { "type": "SURPRISED", "confidence": 4.7454833984375 },
                            { "type": "SAD", "confidence": 3.912353515625 },
                            { "type": "FEAR", "confidence": 3.302001953125 },
                            { "type": "DISGUSTED", "confidence": 0.25730133056640625 },
                            { "type": "HAPPY", "confidence": 0.0672658234834671 }
                        ]
                    },
                    "quality": {
                        "brightness": 41.90166091918945,
                        "sharpness": 73.32209777832031
                    },
                    "confidence": 99.99835205078125,
                    "bounding_box": {
                        "width": 0.25158795714378357,
                        "height": 0.43312492966651917,
                        "left": 0.37966710329055786,
                        "top": 0.3462112545967102
                    }
                },
                "liveness": {
                    "liveness_check": true,
                    "liveness_probability": 98.298
                }
            }
        },
        "brightness_check": {
            "min_required": 40,
            "actual": 41.90166091918945,
            "passed": true
        },
        "image_url": "https://cdn.afihan.com/liveness/yV2iwySJ2j2nGdimJbmsGlDEq_example.jpg",
        "status": true,
        "reason": null
    }
}

Did this page help you?