Customer Migrations Guide: Requesting Data
Overview
Use this endpoint to find out the status of a single account import process.
Possible statuses:
UNKNOWN
- No account found in Kraken for the external account number and import supplier code. Either a previous process attempt has failed, or the import has never been attempted to be processed.COMPLETED
- An account has been created in Kraken for the external account number and import supplier code.IN_PROGRESS
- There is currently a migration process attempting to create this account.
Responses
The following responses may be returned from the API.
Status code | Description |
---|---|
200 - OK |
If the account import process exists (whether an account has been created
or not), a For example: {
"status": "COMPLETED",
"kraken_account_number": "A-12AB34CD"
} |
404 - Not Found |
If an account cannot be found for the given
To resolve the error, check that the account has been imported and that the
|
Overview
Use this endpoint to list all accounts for import, whether they are pending (their data has been staged) or have had a Kraken account created.
Responses
The following responses may be returned from the API.
Status code | Description |
---|---|
200 - OK |
If any pending or imported accounts are found for the given
[
{
"external_account_number": "1234",
"kraken_account_number": null,
"account_created_at": null
},
{
"external_account_number": "5678",
"kraken_account_number": "A-56785678",
"account_created_at": "2020-01-01T12:00:00Z"
}
] |
Overview
Use this endpoint to list all accounts pending import (their data has been staged).
Responses
The following responses may be returned from the API.
Status code | Description |
---|---|
200 - OK |
If any accounts pending import are found for the given [
{
"external_account_number": "1234",
"kraken_account_number": null,
"account_created_at": null
}
] |
Overview
Use this endpoint to list all accounts that have been imported and now have a Kraken account.
Responses
The following responses may be returned from the API.
Status code | Description |
---|---|
200 - OK |
If any imported accounts are found for the given [
{
"external_account_number": "5678",
"kraken_account_number": "A-56785678",
"account_created_at": "2020-01-01T12:00:00Z"
}
] |
Overview
Use this endpoint to list the status of all meter points for an already imported account in Kraken.
Responses
The following responses may be returned from the API.
Status code | Description |
---|---|
200 - OK |
If the request is valid, a [
{"mpxn":"9349409806","status":"PRE_REGISTRATION"}
] |
404 - Not Found |
If an account is not found, or no meter points are found on the account, then a
[
{"error": f"No meterpoints found for EXTERNAL-1234"}
] |