> ## 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.

# Issue a Peppol migration key

> Issues a Peppol migration key for the participant registered through
Invopop for the silo entry, so another Peppol provider can take over
its registration.

It does the same as the **Start Peppol migration** (`peppol.migrate`) workflow action: the key is returned in the response and also stored in the entry's meta, under `migration-key`.

Calling it again for the same entry returns the key already issued instead of a new one. Only parties registered to receive documents through Invopop can be migrated; see [Migrating a participant to another provider](https://docs.invopop.com/guides/peppol.md#migrating-a-participant-to-another-provider) for the rest of the process.

> [!WARNING]
>
> Treat the migration key as a credential and share it only with the new provider.


## OpenAPI

````yaml POST /apps/peppol/v1/entry/{silo_entry_id}/migrate
openapi: 3.1.0
info:
  contact:
    email: dev@invopop.com
    name: Invopop Developers
  description: >-
    Set of end-points that help you register companies for Peppol network
    participation and manage ownership documentation.
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  title: Peppol Service API
  version: 0.1.0
servers:
  - description: production
    url: https://api.invopop.com
security:
  - InvopopAuth: []
paths:
  /apps/peppol/v1/entry/{silo_entry_id}/migrate:
    post:
      summary: Issue a Peppol migration key
      description: |-
        Issues a Peppol migration key for the participant registered through
        Invopop for the silo entry, so another Peppol provider can take over
        its registration.
      operationId: migrateParticipant
      parameters:
        - name: silo_entry_id
          in: path
          required: true
          description: >-
            UUID of the Invopop silo entry of the party registered on Peppol
            through Invopop.
          schema:
            type: string
            format: uuid
            example: 01952667-f2a0-7a66-a3c9-8f4c3c7e5c0b
      responses:
        '200':
          description: Migration key issued, or the key already issued for the participant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrateResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: >-
            The entry has no active Peppol participant, so there is nothing to
            migrate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                status: error
                message: no active peppol participant for entry
        '422':
          description: |-
            The participant cannot be migrated — e.g. it is registered for
            sending only, or its Peppol inbox no longer matches the identity
            it was registered with.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                status: error
                message: participant cannot be migrated
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    MigrateResponse:
      type: object
      required:
        - participant_id
        - migration_key
      properties:
        participant_id:
          type: string
          description: Peppol participant identifier in `scheme:value` format.
          example: '0225:123456789'
        migration_key:
          type: string
          description: |-
            Migration key to hand to the new Peppol provider. Treat it as a
            credential.
          example: Ab12$%cdEF34!!
    Error:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          example: error
        message:
          type: string
          description: Human-readable description of the error.
          example: peppol_id or vat required
  responses:
    Unauthorized:
      description: Missing or invalid authentication token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: error
            message: unauthorized
    InternalServerError:
      description: An unexpected server-side error occurred.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            status: error
            message: internal server error
  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.