# Resource migrations

> For the complete machine-readable documentation index, see [llms.txt](https://apidocs.chargebee.com/llms.txt).


Resource Migration is used for finding the status of customer migration between Chargebee sites.

## Sample Resource migration

```json
{
  "from_site": "yourapp",
  "entity_type": "customer",
  "entity_id": "test123",
  "status": "failed",
  "created_at": 1539327043,
  "updated_at": 1539327043,
  "object": "resource_migration"
}
```

## Resource migrations attributes

## Input Parameters

- `from_site` (required, string, min chars=4, max chars=50)
  Domain name to which the item is moved.

- `entity_type` (required, enumerated string)
  Type of the entity this record is stored for
  Possible enum values:
    - `customer`
      Entity that represents a customer

- `entity_id` (required, string, max chars=100)
  Handle of the customer in the current site.

- `status` (required, enumerated string, default=failed)
  Status of the copy customer process.
  Possible enum values:
    - `scheduled`
      Scheduled
    - `failed`
      Failed
    - `succeeded`
      Succeeded

- `errors` (optional, string, max chars=65k)
  Filled only if the copy operation gets failed

- `created_at` (required, timestamp(UTC) in seconds)
  Time the log is created

- `updated_at` (required, timestamp(UTC) in seconds)
  Time the log is updated

