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

# LexOfficeServiceImpl

> Aufruf öffentlicher Servicemethoden über die REST API: lexOfficeServiceImpl

<ResponseField name="beanId" type="string">
  Die Spring-Bean-ID des aufzurufenden Services.

  lexOfficeServiceImpl
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Bean-Scope. Für Serviceaufrufe wird PROTOTYPE verwendet.
</ResponseField>

<ResponseField name="functionName" type="string">
  Der öffentliche Methodenname des Services, der in der Signatur angegeben ist.
</ResponseField>

<ResponseField name="args" type="object[]">
  Das Argument-Array der Methode. Jedes Argument wird mit dem Index 0, 1 usw. übergeben; der Wert muss dem Java-Parametertyp entsprechen.
</ResponseField>

## Headers

```http theme={null}
POST /api/v1/bean/request
Content-Type: application/json
Lang-Context: de
Site-Context: my-site
Authorization: Bearer <token>
```

Senden Sie `Lang-Context` und `Site-Context` mit jeder Anfrage. Für geschützte Methoden senden Sie das JWT im Header `Authorization` im Format `Bearer <token>`.

**Zugriff:** ADMIN. **Bearer Token:** erforderlich.

* GUEST — nicht angemeldete Benutzer; nur Whitelist-Services sind verfügbar.
* USER — Authentifizierung erforderlich; Methoden mit USER-Prüfung sind verfügbar.
* ADMIN — vollständiger Zugriff auf öffentliche Methoden aller Services.
* Wenn eine Methode intern eine Rolle prüft, kann GUEST null erhalten.

## Methoden

<ResponseField name="init" type="void">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### init

  ```json theme={null}
  {
    "beanId": "lexOfficeServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "init",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="isLexOfficeKeyDefined" type="boolean">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### isLexOfficeKeyDefined

  ```json theme={null}
  {
    "beanId": "lexOfficeServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "isLexOfficeKeyDefined",
    "args": []
  }
  ```
</ResponseField>

<ResponseField name="createPayoutInvoice" type="Attachment">
  | Argument    | Typ      | Beschreibung                |
  | ----------- | -------- | --------------------------- |
  | `orderId`   | `String` | Übergeben über `args[0].0`. |
  | `profileId` | `String` | Übergeben über `args[1].1`. |

  ### createPayoutInvoice

  ```json theme={null}
  {
    "beanId": "lexOfficeServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "createPayoutInvoice",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="createCommissionInvoice" type="Attachment">
  | Argument    | Typ      | Beschreibung                |
  | ----------- | -------- | --------------------------- |
  | `orderId`   | `String` | Übergeben über `args[0].0`. |
  | `profileId` | `String` | Übergeben über `args[1].1`. |

  ### createCommissionInvoice

  ```json theme={null}
  {
    "beanId": "lexOfficeServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "createCommissionInvoice",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="retrieveContact" type="Contact">
  | Argument | Typ      | Beschreibung                |
  | -------- | -------- | --------------------------- |
  | `id`     | `String` | Übergeben über `args[0].0`. |

  ### retrieveContact

  ```json theme={null}
  {
    "beanId": "lexOfficeServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "retrieveContact",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>
