---
title: "État, estimation en jetons et bilan"
method: GET
path: "/migrations/{id}"
tags: ["Migration"]
---

# État, estimation en jetons et bilan

`GET /migrations/{id}`

## Request

- Base URL: `https://fondatoria.com/api/v1`
- URL: `https://fondatoria.com/api/v1/migrations/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

Succès

- object
  - `data` MigrationDetail
    - `id` string
    - `source` 'api' | 'hubspot' | 'pennylane' | 'axonaut' | 'files': files : fichiers envoyés et relus depuis l'espace.
    - `status` 'collecting' | 'analysing' | 'ready' | 'running' | 'done' | 'failed' | 'canceled'
    - `account` string, nullable
    - `counts` object: Éléments nouveaux à reprendre, par type.
      - `contact` integer
      - `deal` integer
      - `quote` integer
      - `invoice` integer
      - `credit_note` integer
    - `alreadyMigrated` integer: Éléments qu'une migration précédente de la même source a déjà apportés : ni repris ni payés.
    - `estimate` object, nullable
      - `tokens` integer
      - `records` integer
      - `lines` object[]
        - `kind` 'contact' | 'deal' | 'quote' | 'invoice' | 'credit_note'
        - `count` integer
        - `unitTokens` integer
        - `tokens` integer
        - `available` boolean: false : l'option qui reçoit ces éléments manque, ils ne sont ni repris ni comptés.
    - `chargedTokens` integer
    - `refundedTokens` integer
    - `applied` integer
    - `skipped` integer
    - `failed` integer
    - `error` string, nullable
    - `createdAt` string, date-time
    - `startedAt` string, date-time, nullable
    - `finishedAt` string, date-time, nullable
    - `balance` integer: Jetons du site.
    - `problems` object[]
      - `kind` string
      - `id` string
      - `status` 'skipped' | 'failed'
      - `reason` string, nullable

## Other responses

- `400`: Requête invalide
- `401`: Clé absente, inconnue, révoquée ou expirée
- `403`: Autorisation manquante ou site inactif
- `404`: Introuvable
- `429`: Quota dépassé ; voir Retry-After

---

[API](https://skmtc.dev/fondatoria/apis/api-sitebuilder.md) · [All operations](https://skmtc.dev/fondatoria/apis/api-sitebuilder/llms.txt) · [OpenAPI document](https://skmtc.dev/fondatoria/apis/api-sitebuilder/revisions/3e438376beac?raw)
