Migration API
| Action | Endpoint |
|---|---|
| Start Migration | POST/migration/{tenantLocator}/migrations |
| Start Migrations for an Existing Account | POST/migration/{tenantLocator}/migrations/accounts/{accountLocator} |
| Resume a Paused Migration | PATCH/migration/{tenantLocator}/migrations/{migrationLocator}/resume |
| Attempt to Recover System Error Items for a Migration | PATCH/migration/{tenantLocator}/migrations/{migrationLocator}/recover |
| Pause a Running Migration | PATCH/migration/{tenantLocator}/migrations/{migrationLocator}/pause |
| Patch an Existing Migration Request | PATCH/migration/{tenantLocator}/migrations/{migrationLocator} |
| Get Migration Summary | GET/migration/{tenantLocator}/migrations/{migrationLocator} |
| Get Migration Mappings | GET/migration/{tenantLocator}/migrations/{migrationLocator}/mappings/list |
| Get Migration Mappings for Account | GET/migration/{tenantLocator}/migrations/{migrationLocator}/accounts/{accountLocator}/mappings |
| Get Account Migrations | GET/migration/{tenantLocator}/migrations/{migrationLocator}/accounts/{accountLocator} |
| List Account Migrations | GET/migration/{tenantLocator}/migrations/{migrationLocator}/accounts/list |
| Get Migration Failures | GET/migration/{tenantLocator}/migrations/{migrationLocator}/failures/list |
Migration Management
Start Migration
startMigration/migration/{tenantLocator}/migrationsParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
X-Idempotency-Key | header | string? | No |
See the migration feature guide for more information on idempotency keys.
Required properties
| Property | Type | Description |
|---|---|---|
accountData | AccountMigrationData | |
accounting | AccountingMigrationRequest | |
defaultCreatedBy | uuid | |
disbursements | DisbursementMigrationRequest[] | |
invoices | InvoiceMigrationRequest[] | |
payments | PaymentMigrationRequest[] | |
policies | PolicyMigrationRequest[] |
Required properties
| Property | Type | Description |
|---|---|---|
productName | string | |
durationBasis | Enum years | months | weeks | days | hours | |
id | string | |
createdAt | datetime | |
createdBy | uuid | |
staticData | map<string, object> | |
terms | TermMigrationRequest[] |
Optional properties
| Property | Type | Description |
|---|---|---|
autoRenewalPlanName | string? | |
delinquencyPlanName | string? | |
currency | string? | |
timezone | string? | |
auxData | AuxDataMigrationRequest? | |
billingLevel | Enum? account | inherit | policy | |
preferences | MigrationPreferences?Deprecated |
Properties
| Property | Type | Description |
|---|---|---|
installmentPreferences | MigrationInstallmentPreferences? |
Required properties
| Property | Type | Description |
|---|---|---|
installmentWeights | number[] |
Optional properties
| Property | Type | Description |
|---|---|---|
installmentPlanName | string? | |
anchorMode | Enum? generateDay | termStartDay | dueDay | |
anchorTime | datetime? | |
anchorType | Enum? none | dayOfMonth | anchorTime | dayOfWeek | weekOfMonth | |
autopayLeadDays | number? | |
cadence | Enum? none | fullPay | weekly | everyOtherWeek | monthly | quarterly | semiannually | annually | thirtyDays | everyNDays | |
dayOfMonth | integer? | |
dayOfWeek | Enum? monday | tuesday | wednesday | thursday | friday | saturday | sunday | |
dueLeadDays | integer? | |
generateLeadDays | integer? | |
maxInstallmentsPerTerm | integer? | |
weekOfMonth | Enum? none | first | second | third | fourth | fifth |
Required properties
| Property | Type | Description |
|---|---|---|
settingsName | string | |
entries | AuxDataEntryMigrationRequest[] |
Required properties
| Property | Type | Description |
|---|---|---|
key | string | |
value | string |
Required properties
| Property | Type | Description |
|---|---|---|
issuedTime | datetime | |
transactionType | string | |
createdAt | datetime | |
createdBy | uuid | |
installments | InstallmentMigrationRequest[] |
Optional properties
| Property | Type | Description |
|---|---|---|
preferences | MigrationPreferences? | |
segment | SegmentMigrationRequest? |
Required properties
| Property | Type | Description |
|---|---|---|
id | string | |
paymentTime | datetime | |
paymentType | string | |
data | map<string, object> | |
paymentItems | PaymentItemMigrationRequest[] |
Optional properties
| Property | Type | Description |
|---|---|---|
currency | string? | |
createdBy | uuid? |
Required properties
| Property | Type | Description |
|---|---|---|
accountType | string | |
id | string | |
data | map<string, object> | |
createdAt | datetime |
Optional properties
| Property | Type | Description |
|---|---|---|
autoRenewalPlanName | string? | |
delinquencyPlanName | string? | |
excessCreditPlanName | string? | |
shortfallTolerancePlanName | string? | |
billingLevel | Enum? account | inherit | policy | |
preferences | MigrationPreferences? | |
createdBy | uuid? |
Required properties
| Property | Type | Description |
|---|---|---|
originalAccountBalances | map<string, number> | Key is a currency code (e.g. USD) |
Required properties
| Property | Type | Description |
|---|---|---|
startTime | datetime | |
endTime | datetime | |
dueTime | datetime | |
generateTime | datetime | |
id | string |
Optional properties
| Property | Type | Description |
|---|---|---|
currency | string? | |
timezone | string? | |
invoiceState | Enum? open | settled | discarded |
Required properties
| Property | Type | Description |
|---|---|---|
disbursementTime | datetime | |
disbursementType | string | |
id | string | |
data | map<string, object> | |
sources | CreditItemMigrationRequest[] |
Optional properties
| Property | Type | Description |
|---|---|---|
currency | string? |
Required properties
| Property | Type | Description |
|---|---|---|
amount | number |
Required properties
| Property | Type | Description |
|---|---|---|
amount | number | |
invoiceId | string |
Required properties
| Property | Type | Description |
|---|---|---|
startTime | datetime | |
rootElement | ElementMigrationRequest | |
segmentType | Enum coverage | gap |
Required properties
| Property | Type | Description |
|---|---|---|
startTime | datetime | |
dueTime | datetime | |
generateTime | datetime | |
id | string | |
invoiceId | string |
Required properties
| Property | Type | Description |
|---|---|---|
amount | number | |
id | string | |
installmentNumber | integer |
Required properties
| Property | Type | Description |
|---|---|---|
elementType | string | |
id | string | |
data | map<string, object> | |
charges | ChargeMigrationRequest[] | |
coverageTerms | map<string, object> | |
elements | ElementMigrationRequest[] |
Required properties
| Property | Type | Description |
|---|---|---|
chargeType | string | |
rate | number | |
referenceRate | number | |
tag | string | |
installmentItems | InstallmentItemMigrationRequest[] |
Required properties
| Property | Type | Description |
|---|---|---|
startTime | datetime | |
endTime | datetime | |
transactions | TransactionMigrationRequest[] |
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
migrationState | Enum submitted | processing | paused | finished | failed | error | |
processedAccounts | integer | |
totalAccounts | integer |
Required properties
| Property | Type | Description |
|---|---|---|
errors | ValidationResult | |
originalId | string |
Start Migrations for an Existing Account
startMigrationForAccount/migration/{tenantLocator}/migrations/accounts/{accountLocator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
accountLocator | path | ulid | Yes | |
X-Idempotency-Key | header | string? | No |
Required properties
| Property | Type | Description |
|---|---|---|
defaultCreatedBy | uuid | |
disbursements | DisbursementMigrationRequest[] | |
invoices | InvoiceMigrationRequest[] | |
payments | PaymentMigrationRequest[] | |
policies | PolicyMigrationRequest[] |
Resume a Paused Migration
resumeMigration/migration/{tenantLocator}/migrations/{migrationLocator}/resumeParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes |
voidmigrationwriteAttempt to Recover System Error Items for a Migration
recoverMigration/migration/{tenantLocator}/migrations/{migrationLocator}/recoverParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes |
voidmigrationwritePause a Running Migration
pauseMigration/migration/{tenantLocator}/migrations/{migrationLocator}/pauseParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes |
voidmigrationwriteIn-flight transactions will be completed before the migration pauses.
Patch an Existing Migration Request
patchMigration/migration/{tenantLocator}/migrations/{migrationLocator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes |
PatchAccountMigrationRequestMigrationFailuresResponsemigrationwriteRequired properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid | |
defaultCreatedBy | uuid | |
disbursements | map<string, DisbursementMigrationRequest> | |
invoices | map<string, InvoiceMigrationRequest> | |
payments | map<string, PaymentMigrationRequest> | |
policies | map<string, PolicyMigrationRequest> |
Optional properties
| Property | Type | Description |
|---|---|---|
accountData | AccountMigrationData? |
Required properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid | |
accountOriginalId | string | |
disbursements | map<string, ErrorDetailsResponse> | |
invoices | map<string, ErrorDetailsResponse> | |
payments | map<string, ErrorDetailsResponse> | |
policies | map<string, ErrorDetailsResponse> |
Optional properties
| Property | Type | Description |
|---|---|---|
accountError | ErrorDetailsResponse? |
Migration Information
Get Migration Summary
getMigrationSummary/migration/{tenantLocator}/migrations/{migrationLocator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes |
MigrationResponsemigrationreadGet Migration Mappings
getMigrationMappings/migration/{tenantLocator}/migrations/{migrationLocator}/mappings/listReturns per-account mappings of system locators to original IDs
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes | |
offset | query | integer? | No | |
count | query | integer? | No |
migrationread,listRequired properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | AccountMigrationIdMappingsResponse[] |
Required properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | AccountMigrationIdMappingsResponse[] |
Required properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid | |
migrationLocator | ulid | |
originalAccountId | string | |
disbursements | map<string, MappingObject> | |
invoices | map<string, MappingObject> | |
payments | map<string, MappingObject> | |
policies | map<string, MappingObject> |
Required properties
| Property | Type | Description |
|---|---|---|
migratedAt | datetime | |
originalId | string | |
childrenMappings | map<string, object> |
Get Migration Mappings for Account
getMigrationMappingsForAccount/migration/{tenantLocator}/migrations/{migrationLocator}/accounts/{accountLocator}/mappingsFetches mappings of original IDs to system locators for an account
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes | |
accountLocator | path | ulid | Yes |
AccountMigrationIdMappingsResponsemigrationreadGet Account Migrations
getAccountMigrations/migration/{tenantLocator}/migrations/{migrationLocator}/accounts/{accountLocator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes | |
accountLocator | path | ulid | Yes |
AccountMigrationResponsemigrationreadRequired properties
| Property | Type | Description |
|---|---|---|
accountMigrationState | Enum pending | processing | error | failed | completed | |
errorItems | integer | |
lastUpdated | datetime | |
processedItems | integer | |
totalItems | integer |
Optional properties
| Property | Type | Description |
|---|---|---|
accountLocator | ulid? |
List Account Migrations
listAccountMigrations/migration/{tenantLocator}/migrations/{migrationLocator}/accounts/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes | |
offset | query | integer? | No | |
count | query | integer? | No |
migrationread,listRequired properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | AccountMigrationResponse[] |
Get Migration Failures
getMigrationFailures/migration/{tenantLocator}/migrations/{migrationLocator}/failures/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
migrationLocator | path | ulid | Yes | |
offset | query | integer? | No | |
count | query | integer? | No |
migrationread,listRequired properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | MigrationFailuresResponse[] |