# Update Entity Onboarding

Update an existing onboarding with new compliance declarations, risk assessment results, or additional documentation. Typically used when the onboarding is in `PENDING_ADDITIONAL_DOCUMENTATION` status.

**PATCH** `/banking/entities/{entity_id}/onboardings/{onboarding_id}`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Update Entity Onboarding (Banking Connectivity)

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Path parameters

- `entity_id` (string, required)
  The `id` of the entity obtained from [Create Entity](https://temp-yuno-docs.readme.io/reference/create-entity).
- `onboarding_id` (string, required)
  The `id` of the onboarding obtained from [Create Entity Onboarding](https://temp-yuno-docs.readme.io/reference/create-entity-onboarding).

## Body

Content type: `application/json`

- `account_id` (string, required)
  The unique identifier of the merchant's WHITELABEL account (UUID, 36 characters).
- `compliance_declaration` (object)
  Updated legal agreements.
  - `terms_of_service` (object)
    - `accepted` (boolean)
    - `version` (string)
    - `accepted_at` (string)
    - `accepted_ip` (string)
  - `privacy_policy` (object)
    - `accepted` (boolean)
    - `version` (string)
    - `accepted_at` (string)
    - `accepted_ip` (string)
- `risk_assessment` (object)
  Updated risk assessment results.
  - `assessed_at` (string)
  - `pep_status` (object)
    - `is_pep` (boolean)
    - `pep_level` (string)
    - `position` (string)
    - `country` (string)
  - `rca_status` (object)
    - `risk_level` ("LOW" | "MEDIUM" | "HIGH")
    - `classified_at` (string)
    - `assessed_by` (string)
  - `sanctions_screening` (object)
    - `appears_on_sanctions_list` (boolean)
    - `sanctions_list_name` (string)
    - `screened_at` (string)
- `source_of_funds` (object)
  Updated source of funds information.
  - `primary_source` ("EMPLOYMENT_SALARY" | "BUSINESS_INCOME" | "INVESTMENTS" | "RENTAL_INCOME" | "PENSION" | "GOVERNMENT_BENEFITS" | "INHERITANCE" | "FAMILY_SUPPORT" | "SAVINGS" | "LOTTERY_GAMBLING" | "SALE_OF_ASSETS" | "CRYPTOCURRENCY" | "FREELANCE_CONSULTING" | "OTHER")
  - `secondary_sources` (string[])
  - `description` (string)
  - `estimated_annual_income` (object)
    - `amount` (number)
    - `currency` (string)
- `documentation` (object[])
  Additional or updated KYC/KYB documents. Uses the same structure as [Create Entity Onboarding](https://temp-yuno-docs.readme.io/reference/create-entity-onboarding).
  - `type` ("IDENTITY_DOCUMENT" | "PROOF_OF_ADDRESS" | "BANK_STATEMENT" | "BUSINESS_DOCUMENT" | "TAX_INFORMATION" | "FINANCIAL_DOCUMENT" | "BIOMETRIC_VERIFICATION" | "EMPLOYMENT_INFORMATION", required)

Example:

```json
{
  "account_id": "550e8400-e29b-41d4-a716-446655440000",
  "compliance_declaration": {
    "terms_of_service": {
      "accepted": true,
      "version": "1.2.0",
      "accepted_at": "2026-02-01T10:05:00Z",
      "accepted_ip": "192.168.1.1"
    },
    "privacy_policy": {
      "accepted": true,
      "version": "2.1.0",
      "accepted_at": "2026-02-01T10:05:00Z",
      "accepted_ip": "192.168.1.1"
    }
  },
  "risk_assessment": {
    "assessed_at": "2026-02-01T10:05:00Z",
    "pep_status": {
      "is_pep": false,
      "pep_level": null,
      "position": null,
      "country": null
    },
    "rca_status": {
      "risk_level": "LOW",
      "classified_at": "2026-02-01T10:05:00Z",
      "assessed_by": "Merchant Compliance Team"
    },
    "sanctions_screening": {
      "appears_on_sanctions_list": false,
      "sanctions_list_name": null,
      "screened_at": "2026-02-01T09:00:00Z"
    }
  },
  "source_of_funds": {
    "primary_source": "EMPLOYMENT_SALARY",
    "secondary_sources": [
      "INVESTMENTS"
    ],
    "description": "Primary income from full-time employment, supplemented by investment portfolio",
    "estimated_annual_income": {
      "amount": 175000,
      "currency": "USD"
    }
  },
  "documentation": [
    {
      "type": "BANK_STATEMENT"
    }
  ]
}
```

## Responses

### 200

- `id` (string)
- `entity_id` (string)
- `status` (string)
- `provider_status` (string)
- `requirements` (object[])
- `updated_at` (string)

Example:

```json
{
  "id": "onb_990e8400-e29b-41d4-a716-446655440000",
  "entity_id": "ent_660e8400-e29b-41d4-a716-446655440000",
  "status": "PENDING",
  "provider_status": "verification_pending",
  "requirements": [
    {}
  ],
  "updated_at": "2026-02-01T10:05:00Z"
}
```

### 400

Bad Request

- `code` (string)
- `messages` (string[])
- `http_code` (integer)

Example:

```json
{
  "code": "VALIDATION_ERROR",
  "messages": [
    "Onboarding has reached a terminal status and cannot be updated"
  ],
  "http_code": 400
}
```

### 404

Not Found

- `code` (string)
- `messages` (string[])
- `http_code` (integer)

Example:

```json
{
  "code": "ONBOARDING_NOT_FOUND",
  "messages": [
    "Onboarding not found"
  ],
  "http_code": 404
}
```