Upload migration data
POST
https://app.speybooks.com/api/v1/migration/{id}/uploadAttach standalone imports to a migration session. Each field links a confirmed import (from the contact, opening-balance, or document importers) to the migration.
All fields are optional; provide the ones you want to attach or update:
contactsImportId: adimp_*id from a contact importbalancesImportId: adimp_*id from an opening-balance importinvoicesImportId: adimp_*id from a sales-document importbillsImportId: adimp_*id from a purchase-document import
Set any field to null to detach it. After updating, the
migration status is recomputed and advanced if appropriate.
Returns 422 if the migration is in a terminal state.
Path parameters
idstringrequiredMigration ID (e.g. mig_1).
Body parameters
balancesImportIdstringoptionalOpening balances import ID (e.g. dimp_2) from the OBCE pipeline.
billsImportIdstringoptionalPurchase bills import ID (e.g. dimp_4) from the ODCE pipeline.
contactsImportIdstringoptionalContacts import ID (e.g. dimp_1) from the UCI pipeline.
invoicesImportIdstringoptionalSales invoices import ID (e.g. dimp_3) from the ODCE pipeline.
Response
200Import IDs attached. Status auto-advances if all required slots are filled.
Show response fields
balancesImportIdstringbillsImportIdstringnullablecontactsImportIdstringidstringinvoicesImportIdstringnullableproviderstringstatusstringError codes
400No import IDs provided.
404Migration not found.
422Migration is in a terminal state (completed/abandoned).