Legacy Migration
Legacy Migration
The Legacy Migration object
Attributes
Job ID
Authenticate with legacy API
/legacy-migration/authAuthenticate with legacy Space Invoices credentials and get a list of owned organizations.
Header parameters
Account Id on which the request is made. Optional if user is part of only one account.
Body parameters
Email for legacy Space Invoices account
Password for legacy Space Invoices account
curl -X POST "https://eu.spaceinvoices.com/legacy-migration/auth" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-account-id: YOUR_ACCOUNT_ID" \
-H "Content-Type: application/json" \
-d '{
"email": "string",
"password": "string"
}'Returns
{
"organizations": [
{
"id": "string",
"name": "string",
"country": "string",
"tax_number": "string",
"created_at": "string",
"already_migrated": true,
"migrated_environment": "string"
}
]
}Create migration job
/legacy-migration/jobsCreate a new legacy migration job.
Header parameters
Account Id on which the request is made. Optional if user is part of only one account.
Body parameters
Legacy organization ID to migrate
Target environment
Possible values: "live", "sandbox"
curl -X POST "https://eu.spaceinvoices.com/legacy-migration/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-account-id: YOUR_ACCOUNT_ID" \
-H "Content-Type: application/json" \
-d '{
"legacy_org_id": "string",
"environment": "live"
}'List migration jobs
/legacy-migration/jobsList all migration jobs for the current account.
Header parameters
Account Id on which the request is made. Optional if user is part of only one account.
curl "https://eu.spaceinvoices.com/legacy-migration/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-account-id: YOUR_ACCOUNT_ID"Returns
{
"data": [
{
"id": "string",
"legacy_org_id": "string",
"environment": "string",
"entity_id": "string",
"status": "pending",
"step": "string",
"step_number": 0,
"total_steps": 0,
"progress_detail": "string",
"error": "string",
"created_at": "string",
"started_at": "string",
"completed_at": "string"
}
]
}Get migration job status
/legacy-migration/jobs/{id}Get status and progress of a migration job.
Header parameters
Account Id on which the request is made. Optional if user is part of only one account.
Path parameters
Migration job ID
curl "https://eu.spaceinvoices.com/legacy-migration/jobs/{id}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-account-id: YOUR_ACCOUNT_ID"Returns
Job ID
{
"id": "string",
"legacy_org_id": "string",
"environment": "string",
"entity_id": "string",
"status": "pending",
"step": "string",
"step_number": 0,
"total_steps": 0,
"progress_detail": "string",
"error": "string",
"created_at": "string",
"started_at": "string",
"completed_at": "string"
}