> ## Documentation Index
> Fetch the complete documentation index at: https://developer.tazapay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Statuses and webhooks

> How verification link statuses relate to entity statuses, which webhooks to act on, and how to handle resubmissions

A verification link has its own status, separate from the entity's status. This page explains both, how they relate, and which webhooks your app should act on.

## Link statuses

| Status | Meaning for an individual | Meaning for a business | What to do |
| - | - | - | - |
| `pending` | Link is active and verification is in progress | Link is active. The representative is completing the flow, or directors and owners are verifying | Wait for the next webhook |
| `requires_action` | The individual needs to resubmit a document | The company needs to resubmit, for example an unreadable document | Show the customer the reason and direct them back to the same link. See [Resubmission and rejection reasons](#resubmission-and-rejection-reasons) |
| `approved` | Verification passed. The entity is approved automatically | Verification passed. The entity is approved automatically | The customer can transact. See [Link status and entity status](#link-status-and-entity-status) |
| `rejected` | Verification failed permanently | Verification failed permanently | Review the rejection reasons |
| `expired` | Link expired, or was expired via the API | Link expired, or was expired via the API | Links are not renewed automatically. Generate a new link if needed, subject to the generation prerequisites |

Approved and rejected links cannot be regenerated or manually expired. An already-expired link can be expired again without triggering another expiry event. Submitting the entity with [Submit Entity](https://developer.tazapay.com/api-reference/tazapay-api/submit-entity-business.md) expires an active `pending` or `requires_action` link and sends a `kyc_link.expired` webhook.

## Link status and entity status

Two statuses are in play, and they answer different questions.

* The **link status** reports the **verification result** from the hosted check.
* The **entity status** is the entity's status on Tazapay.

Entities verified through Tazapay Onboard are **approved automatically**. When verification passes, the entity moves to `approved` with no separate compliance review, so your customer can transact straight away.

> [!TIP]
>
> Treat the entity status as the source of truth for whether a customer can transact, and use the link status for the verification result.

Both are sent as webhooks, and **their order is not guaranteed**. The entity webhooks (`entity.approval_processing`, `entity.approval_succeeded`) can arrive before `kyc_link.approved`, so don't build logic that depends on one arriving first. Use `entity.approval_succeeded` (or an entity `approval_status` of `approved` from [Fetch Entity](https://developer.tazapay.com/api-reference/tazapay-api/fetch-entity.md)) as the signal that the customer is ready.

> [tab] Individual
>
> | Event | Link status | Entity status |
> | - | - | - |
> | Link generated | `pending` | `initiated` |
> | Individual asked to resubmit a document | `requires_action` | `initiated` (unchanged) |
> | Verification passed | `approved` | `submitted` → `approved` |
> | Verification failed permanently | `rejected` | `submitted` → `rejected` |
> | Link expires or is expired via the API | `expired` | `initiated` (unchanged) |
> | Entity submitted with Submit Entity while a link is active | `expired` | `submitted` |

> [tab] Business
>
> | Event | Link status | Entity status |
> | - | - | - |
> | Link generated | `pending` | `initiated` |
> | Company asked to resubmit | `requires_action` | `initiated` (unchanged) |
> | Verification passed | `approved` | `submitted` → `approved` |
> | Verification failed permanently | `rejected` | `submitted` → `rejected` |
> | Link expires or is expired via the API | `expired` | `initiated` (unchanged) |
> | Entity submitted with Submit Entity while a link is active | `expired` | `submitted` |

`requires_action` and `expired` never change the entity status. Later changes to an approved entity, such as suspension, do not change the link status.

## Handle webhooks

Subscribe to the `kyc_link.*` events and the [entity approval events](https://developer.tazapay.com/api-reference/tazapay-api/entity-webhook.md). To set up an endpoint, verify signatures and handle retries, see the [Webhooks guide](https://developer.tazapay.com/api-reference/appendix/webhooks-guide.md).

| Event | What your app does |
| - | - |
| `kyc_link.pending` | Record that verification has started |
| `kyc_link.requires_action` | Show the customer `verification_result.rejection_reasons[].user_message` and send them back to the same `url` |
| `kyc_link.approved` | Record that verification passed. The entity is approved automatically |
| `kyc_link.rejected` | Tell the customer verification failed, and stop onboarding. This is final |
| `kyc_link.expired` | Offer to generate a new link |
| `entity.approval_succeeded` | **Unlock the customer.** They are ready to transact |
| `entity.approval_rejected` | The entity was rejected. Stop onboarding |

Make the handler idempotent by event `id`.

> [!TIP]
>
> Webhooks can be delayed or missed, for example during your own deployments. When a customer returns to your app, [retrieve the KYC link](https://developer.tazapay.com/api-reference/tazapay-api/retrieve-kyc-link.md) and [fetch the entity](https://developer.tazapay.com/api-reference/tazapay-api/fetch-entity.md) and reconcile them with what you stored.

## Resubmission and rejection reasons

When a link moves to `requires_action`, the `verification_result` tells you what needs correcting. Show this to your customer instead of sending them back to the link without context.

```json theme={null}
{
  "verification_result": {
    "outcome": "requires_action",
    "rejection_type": "RETRY",
    "rejection_reasons": [
      {
        "code": "COMPANY_INCORRECT_DATA",
        "description": "The specified company name in the profile does not match the data in the corporate documents.",
        "user_message": "Please check the company name and resubmit."
      }
    ]
  }
}
```

| Field | Use |
| - | - |
| `user_message` | Customer-friendly text you can show as is, for example "Please upload a clearer proof of address". When the reviewer did not add a message, Tazapay supplies a default for the reason, or a general message asking the customer to review the page and resubmit |
| `code` | Machine-readable reason, from our verification provider. Use it to branch your own handling |
| `description` | Additional detail supplied with the review. Intended for you rather than the customer |

> [accordion] Example reason codes
>
> `code` is passed through unchanged from our verification provider and new codes are added over time, so treat it as an opaque reason for your own logging and handle unknown codes gracefully. Use the link `status` to know the outcome and `user_message` for what to tell the customer.
>
> | Code | Meaning |
> | - | - |
> | `BAD_PROOF_OF_ADDRESS` | The full name or address is missing, unreadable or does not match the address entered |
> | `UNSATISFACTORY_PHOTOS` | Required fields of the document are not readable or visible |
> | `EXPIRATION_DATE` | The document has expired or has an unsuitable expiry date |
> | `BAD_FACE_MATCHING` | The face in the selfie cannot be matched to the document photo |
> | `COMPANY_INCORRECT_DATA` | The company name or registration number does not match the corporate documents |
> | `COMPANY_NOT_VALIDATED_BENEFICIAL_OWNERS` | The beneficial owners requested for verification have not all passed the required checks |
> | `FORGERY` | The document is suspected to be a forgery or has been tampered with |
>
> For the complete and current list of codes, see [Sumsub's rejection labels](https://docs.sumsub.com/docs/rejection-explanatory-buttons).

The same fields appear in the [`kyc_link.requires_action` webhook](https://developer.tazapay.com/api-reference/tazapay-api/kyc-link-webhook) and in [Retrieve a KYC link](https://developer.tazapay.com/api-reference/tazapay-api/retrieve-kyc-link.md). Reasons for a `rejected` result use the same shape. Their `user_message` can be empty, because a final rejection has no next step for the customer.

For what to do when details were entered incorrectly, see the [FAQs](https://developer.tazapay.com/tazaonboard/results/faqs.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.