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

# Modifier les paramètres d'intégration

> Activez ou désactivez la vérification d'identité et le filtrage AML pour votre branche.

Utilisez cet endpoint pour contrôler quelles étapes s'exécutent lors de l'appel [Vérifier le client](/fr/v3/onboarding/verify_customer). Les changements s'appliquent à toutes les demandes d'intégration suivantes de votre branche.

<Note>
  `ivs` et `aml` sont tous deux activés par défaut. Désactiver `ivs` entraînera également l'ignorance du filtrage AML, car le filtrage dépend du renvoi d'un nom vérifié par la vérification d'identité.
</Note>

## Endpoint

```
POST /api/onboarding/settings
```

## Requête

### En-têtes

| En-tête          | Valeur             | Requis |
| ---------------- | ------------------ | ------ |
| `x-access-token` | Votre clé API      | Oui    |
| `Content-Type`   | `application/json` | Oui    |

### Paramètres de corps

| Paramètre | Type    | Requis | Description                                    |
| --------- | ------- | ------ | ---------------------------------------------- |
| `ivs`     | boolean | Non    | Active ou désactive la vérification d'identité |
| `aml`     | boolean | Non    | Active ou désactive le filtrage AML            |

Vous pouvez modifier un ou les deux paramètres en un seul appel. Les champs omis conservent leur valeur actuelle.

### Exemple

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://adhere-api.smartcomply.com/api/onboarding/settings \
    -H "x-access-token: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{ "aml": false }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://adhere-api.smartcomply.com/api/onboarding/settings",
      headers={"x-access-token": "YOUR_API_KEY"},
      json={"aml": False},
  )
  print(response.json())
  ```

  ```javascript Node.js theme={null}
  const response = await fetch("https://adhere-api.smartcomply.com/api/onboarding/settings", {
    method: "POST",
    headers: {
      "x-access-token": "YOUR_API_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ aml: false }),
  });
  const data = await response.json();
  ```
</CodeGroup>

## Réponse

<ResponseField name="status" type="string">
  `"success"` en cas de mise à jour réussie.
</ResponseField>

<ResponseField name="message" type="string">
  `"Settings saved"`
</ResponseField>

<ResponseField name="data" type="object">
  L'état complet des paramètres après la mise à jour.

  <Expandable title="champs de données" defaultOpen>
    <ResponseField name="ivs" type="boolean">
      État actuel de la vérification d'identité.
    </ResponseField>

    <ResponseField name="aml" type="boolean">
      État actuel du filtrage AML.
    </ResponseField>
  </Expandable>
</ResponseField>

### 200 OK

```json theme={null}
{
  "status": "success",
  "message": "Settings saved",
  "data": {
    "ivs": true,
    "aml": false
  }
}
```

### Réponses d'erreur

| Statut HTTP | Message                            | Cause                          |
| ----------- | ---------------------------------- | ------------------------------ |
| `401`       | `"Authorization token is missing"` | Aucun en-tête `x-access-token` |
| `401`       | `"Authorization failed"`           | Jeton non reconnu ou expiré    |
| `400`       | `"Invalid value for ivs"`          | La valeur doit être un booléen |
| `400`       | `"Invalid value for aml"`          | La valeur doit être un booléen |


## OpenAPI

````yaml POST /api/onboarding/settings
openapi: 3.0.3
info:
  title: Adhere API
  description: >-
    Identity verification, credit checks, transaction monitoring, and loan fraud
    detection across Africa.
  version: 3.0.0
servers:
  - url: https://adhere-api.smartcomply.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Nigeria KYC
  - name: Kenya KYC
  - name: Ghana KYC
  - name: Rwanda KYC
  - name: Uganda KYC
  - name: Document Verification
  - name: Biometrics
  - name: Individual Credit
  - name: Business Credit
  - name: Transaction Monitoring
  - name: Transaction Screening
  - name: Transaction KYC
  - name: Loan Fraud
  - name: User Journey
paths:
  /api/onboarding/settings:
    post:
      tags:
        - Customer Onboarding
      summary: Update Onboarding Settings
      description: >-
        Enable or disable identity verification (IVS) and AML screening for your
        branch.
      operationId: updateOnboardingSettings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ivs:
                  type: boolean
                  description: Enable or disable identity verification
                aml:
                  type: boolean
                  description: Enable or disable AML screening
      responses:
        '200':
          description: Settings saved
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: failed
              message:
                type: string
                example: Authentication credentials were not provided.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: Your Adhere API secret key

````