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

# Set representative

> Set the legal representative of the company being onboarded.

Sets the legal representative who completes the onboarding, and their email. The email is required. Invopop uses it to contact the representative about the terms of service. Without this request, the onboarding uses the first person of the party, and it can only be confirmed when that person has an email.

The request also sends the current version of the party to the onboarding. A changed representative or party removes the documents uploaded so far.


## OpenAPI

````yaml POST /apps/gov-de/v1/entry/{silo_entry_id}/representative
openapi: 3.1.0
info:
  contact:
    email: dev@invopop.com
    name: Invopop Developers
  description: >-
    Set of end-points for the Germany app, to complete a supplier's onboarding
    without the hosted onboarding pages.
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  title: Germany Service API
  version: 0.1.0
servers:
  - description: production
    url: https://api.invopop.com
security:
  - InvopopAuth: []
paths:
  /apps/gov-de/v1/entry/{silo_entry_id}/representative:
    post:
      summary: Set the legal representative
      description: |-
        Sets the legal representative of the company and their email.
        Invopop uses the email to contact the representative about the
        terms of service. Without
        this request, the onboarding uses the first person of the party,
        and it can only be confirmed when that person has an email.

        The request also sends the current version of the party to the
        onboarding. A changed representative or party removes the
        documents uploaded so far.
      operationId: setEntryRepresentative
      parameters:
        - $ref: '#/components/parameters/SiloEntryID'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Representative'
      responses:
        '204':
          description: Representative stored.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    SiloEntryID:
      name: silo_entry_id
      in: path
      required: true
      description: ID of the `org.Party` silo entry being onboarded.
      schema:
        type: string
        example: 5b45453c-cdd0-11ed-afa1-0242ac120002
  schemas:
    Representative:
      type: object
      required:
        - given
        - surname
        - email
      properties:
        given:
          type: string
          description: Given name of the legal representative.
          example: Erika
        surname:
          type: string
          description: Surname of the legal representative.
          example: Mustermann
        role:
          type: string
          description: Role of the legal representative in the company.
          example: Geschäftsführerin
        email:
          type: string
          format: email
          description: |-
            Email of the legal representative. Invopop uses it to contact
            the representative about the terms of service.
          example: erika.mustermann@example.com
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable description of the error.
          example: The ID document must be a PNG or JPEG image.
  responses:
    BadRequest:
      description: |-
        The request is not valid, the step is not required for this
        workspace, the representative has no email, or the onboarding is
        already submitted.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: The view must be front, back or page.
    Unauthorized:
      description: Missing or invalid authentication token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: missing enrollment
    NotFound:
      description: |-
        The silo entry does not exist, or it has no onboarding. Run the
        registration workflow first.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: no approval for this silo entry
    UnprocessableEntity:
      description: |-
        The silo entry does not contain a party, or the workspace has not
        enabled the Germany app.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Germany app is not enrolled for this workspace
    InternalServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: fetching silo entry
  securitySchemes:
    InvopopAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        Authenticate using a valid Invopop enrollment token in the `Bearer`
        scheme.

        Example: `Authorization: Bearer <token>`

````

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