Customer Migrations Guide: Account Import
By now you should be prepared to go ahead and migrate an account, so let’s get stuck in.
In this section we’ll guide you step by step through the process of validating, staging and creating an account, and what kind of responses you can expect to receive.
API Endpoints
Overview
Use this endpoint to validate account data before creating an account.
The endpoint accepts a JSON payload containing an object representing a single account.
Schema
Responses
The following responses may be returned from the API.
| Status code | Description |
|---|---|
200 - OK |
If the payload is valid, a |
400 - Bad Request |
If there are validation errors, a {
"detail": "Could not validate account data.",
"code": "account_failed_validation",
"errors": [
{
"detail": "abcde is not a valid phone number",
"code": "invalid_phone_number",
"attr": "customers.0.landline"
}
]
}For more detail on validation error responses see here. |
Payloads
Domestic account
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"landline": "",
"date_of_birth": "1957-10-11",
"deceased": "",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_sms": false,
"opted_into_offers": true,
"opted_into_recommended": false
}
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01",
"addons": [
{
"band": "GREEN_POWER_50"
}
]
},
{
"tariff_code": "ELEC-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01",
"addons": [
{
"band": "GREEN_POWER_55"
}
]
},
{
"tariff_code": "ELEC-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01",
"addons": [
{
"band": "CARBON_OFFSET_50"
}
]
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
},
{
"identifier": "35438560738869",
"supply_type": "GAS",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 55.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-GAS-12345",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "GAS-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01"
},
{
"tariff_code": "GAS-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01"
},
{
"tariff_code": "GAS-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01"
}
],
"consent_data": {
"GAS_INDEXES": true
}
}
]
}
],
"statements": [
{
"bill_period_from_date": "2021-01-01",
"bill_period_to_date": "2022-01-01",
"statement_path": "EXTERNAL-1234/2021-01-01-to-2022-01-01-electricity.pdf",
"statement_id": "1"
}
],
"supplementary_ledgers": [
{
"ledger_code": "ENERGY_CHEQUE_LEDGER",
"energy_cheques": [
{
"number": "1232542",
"protection_from": "2023-01-01",
"protection_to": "2023-06-01",
"source": "PAPERLESS",
"asp_remittance_ref": "abcdefg-1234567",
"amount": 1234,
"valid_to": "2023-06-01",
"status": "VALID"
}
]
}
],
"notes": [
{
"created_at": "2018-10-10T10:20:00Z",
"body": "This is a note",
"document_paths": [
{
"document_path": "/notes/1234/attachment.jpg"
}
]
}
],
"account_campaigns": [
{
"slug": "super_account",
"campaign_note": "Campaign note"
}
],
"metadata": [
{
"key": "metadata_key",
"value": {
"some_data": "some_value"
}
}
]
}Business account
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"account_type": "BUSINESS",
"business": {
"business_type": "EURL",
"siret": "60487647400494",
"details": [
{
"key": "siren",
"value": "60487647400494"
}
]
},
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"account_contracts": [
{
"valid_from_date": "2023-01-01",
"signed_at_date": "2023-01-01",
"versions": [
{
"applicable_at_date": "2023-01-01",
"terms": [
{
"term_type": "CONTRACT_METADATA",
"metadata": {
"cee_formula_type": "standard"
}
},
{
"term_type": "PRODUCT_RATE_OVERRIDE_SCHEDULE",
"schedules": [
{
"effective_from": "2023-01-01",
"items": [
{
"price_per_unit": "0.2",
"rate_band": "CONSUMPTION_STANDARD",
"product_code": "ELEC-BUSINESS"
}
]
}
]
},
{
"term_type": "TERMINATION_FEE",
"amount": 100.0,
"supply_type": "ELECTRICITY",
"fee_type": "FLAT"
},
{
"term_type": "ISSUANCE_FREQUENCY",
"frequency": "MONTHLY",
"multiplier": 2,
"period_start_day": 1,
"period_start_month": 1
},
{
"term_type": "GUARANTEE_OF_ORIGIN_CONFIGURATION",
"guarantee_of_origin_percentage": 100,
"is_variable": true
},
{
"term_type": "PAYS_BY_DIRECT_DEBIT",
"pays_by_direct_debit": true
},
{
"term_type": "DELAYER_DAYS",
"strategy": "FIXED",
"days": 5
},
{
"term_type": "RATE_GROUP_ELIGIBILITY",
"time_series_specification_schedules": [],
"schedules": [
{
"effective_period": {
"start_date": "2023-01-01"
},
"product_code": "ELEC-BUSINESS",
"rate_group_code": "BUSINESS_RATE_GROUP",
"is_eligible": true
}
]
},
{
"term_type": "CHARACTERISTIC_OVERRIDE",
"overrides": [
{
"characteristic_code": "size",
"override_value": "100"
}
]
}
]
}
],
"identifier": "ABC"
}
],
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"date_of_birth": "1957-10-11"
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-BUSINESS",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-01-01"
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
}
]
}
]
}Account with payment preference for existing instruction
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"landline": "",
"date_of_birth": "1957-10-11",
"deceased": "",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_sms": false,
"opted_into_offers": true,
"opted_into_recommended": false
}
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01",
"addons": [
{
"band": "GREEN_POWER_50"
}
]
},
{
"tariff_code": "ELEC-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01",
"addons": [
{
"band": "GREEN_POWER_55"
}
]
},
{
"tariff_code": "ELEC-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01",
"addons": [
{
"band": "CARBON_OFFSET_50"
}
]
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
},
{
"identifier": "35438560738869",
"supply_type": "GAS",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 55.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-GAS-12345",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "GAS-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01"
},
{
"tariff_code": "GAS-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01"
},
{
"tariff_code": "GAS-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01"
}
],
"consent_data": {
"GAS_INDEXES": true
}
}
]
}
],
"statements": [
{
"bill_period_from_date": "2021-01-01",
"bill_period_to_date": "2022-01-01",
"statement_path": "EXTERNAL-1234/2021-01-01-to-2022-01-01-electricity.pdf",
"statement_id": "1"
}
],
"payment_preferences": [
{
"type": "ACTIVE_EXISTING",
"supply_point_identifier": "46147259228742",
"instruction_reference_params": {
"vendor_name": "GOCARDLESS",
"vendor_reference": "EXISTING-REFERENCE-1234"
}
}
]
}Account with payment preference for new instruction
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"landline": "",
"date_of_birth": "1957-10-11",
"deceased": "",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_sms": false,
"opted_into_offers": true,
"opted_into_recommended": false
}
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01",
"addons": [
{
"band": "GREEN_POWER_50"
}
]
},
{
"tariff_code": "ELEC-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01",
"addons": [
{
"band": "GREEN_POWER_55"
}
]
},
{
"tariff_code": "ELEC-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01",
"addons": [
{
"band": "CARBON_OFFSET_50"
}
]
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
},
{
"identifier": "35438560738869",
"supply_type": "GAS",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 55.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-GAS-12345",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "GAS-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01"
},
{
"tariff_code": "GAS-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01"
},
{
"tariff_code": "GAS-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01"
}
],
"consent_data": {
"GAS_INDEXES": true
}
}
]
}
],
"statements": [
{
"bill_period_from_date": "2021-01-01",
"bill_period_to_date": "2022-01-01",
"statement_path": "EXTERNAL-1234/2021-01-01-to-2022-01-01-electricity.pdf",
"statement_id": "1"
}
],
"payment_preferences": [
{
"type": "ACTIVE_NEW",
"supply_point_identifier": "46147259228742",
"instruction_reference_params": {
"vendor_name": "GOCARDLESS",
"vendor_reference": "SUPPLIER-ELEC-1234"
}
},
{
"type": "ACTIVE_NEW",
"supply_point_identifier": "35438560738869",
"instruction_reference_params": {
"vendor_name": "GOCARDLESS",
"vendor_reference": "SUPPLIER-GAS-12345"
}
}
]
}Account with passive payment preferences
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"landline": "",
"date_of_birth": "1957-10-11",
"deceased": "",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_sms": false,
"opted_into_offers": true,
"opted_into_recommended": false
}
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01",
"addons": [
{
"band": "GREEN_POWER_50"
}
]
},
{
"tariff_code": "ELEC-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01",
"addons": [
{
"band": "GREEN_POWER_55"
}
]
},
{
"tariff_code": "ELEC-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01",
"addons": [
{
"band": "CARBON_OFFSET_50"
}
]
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
},
{
"identifier": "35438560738869",
"supply_type": "GAS",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 55.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-GAS-12345",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "GAS-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01"
},
{
"tariff_code": "GAS-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01"
},
{
"tariff_code": "GAS-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01"
}
],
"consent_data": {
"GAS_INDEXES": true
}
}
]
}
],
"statements": [
{
"bill_period_from_date": "2021-01-01",
"bill_period_to_date": "2022-01-01",
"statement_path": "EXTERNAL-1234/2021-01-01-to-2022-01-01-electricity.pdf",
"statement_id": "1"
}
],
"payment_preferences": [
{
"type": "PASSIVE",
"supply_point_identifier": "46147259228742"
}
]
}Overview
Use this endpoint to stage account data before creating an account. As the name suggests, this endpoint stores the data in Kraken but does not create an account from the data. Staged account data can be updated as many times as you like before an account is created.
Just as with the validation endpoint, this one accepts a JSON payload containing an object representing a single account.
Schema
Responses
The following responses may be returned from the API.
| Status code | Description |
|---|---|
200 - OK |
If the payload is valid, and the request is updating data for an account that has been
staged previously, then a {
"import_supplier": "TENTACLE_ENERGY",
"external_account_number": "1234"
} |
201 - Created |
If the payload is valid, and the request is staging data for an account for the
first time, then a {
"import_supplier": "TENTACLE_ENERGY",
"external_account_number": "1234"
} |
400 - Bad Request |
If account data fails to be staged, then a
|
Payloads
Domestic account
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"landline": "",
"date_of_birth": "1957-10-11",
"deceased": "",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_sms": false,
"opted_into_offers": true,
"opted_into_recommended": false
}
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01",
"addons": [
{
"band": "GREEN_POWER_50"
}
]
},
{
"tariff_code": "ELEC-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01",
"addons": [
{
"band": "GREEN_POWER_55"
}
]
},
{
"tariff_code": "ELEC-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01",
"addons": [
{
"band": "CARBON_OFFSET_50"
}
]
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
},
{
"identifier": "35438560738869",
"supply_type": "GAS",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 55.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-GAS-12345",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "GAS-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01"
},
{
"tariff_code": "GAS-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01"
},
{
"tariff_code": "GAS-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01"
}
],
"consent_data": {
"GAS_INDEXES": true
}
}
]
}
],
"statements": [
{
"bill_period_from_date": "2021-01-01",
"bill_period_to_date": "2022-01-01",
"statement_path": "EXTERNAL-1234/2021-01-01-to-2022-01-01-electricity.pdf",
"statement_id": "1"
}
],
"supplementary_ledgers": [
{
"ledger_code": "ENERGY_CHEQUE_LEDGER",
"energy_cheques": [
{
"number": "1232542",
"protection_from": "2023-01-01",
"protection_to": "2023-06-01",
"source": "PAPERLESS",
"asp_remittance_ref": "abcdefg-1234567",
"amount": 1234,
"valid_to": "2023-06-01",
"status": "VALID"
}
]
}
],
"notes": [
{
"created_at": "2018-10-10T10:20:00Z",
"body": "This is a note",
"document_paths": [
{
"document_path": "/notes/1234/attachment.jpg"
}
]
}
],
"account_campaigns": [
{
"slug": "super_account",
"campaign_note": "Campaign note"
}
],
"metadata": [
{
"key": "metadata_key",
"value": {
"some_data": "some_value"
}
}
]
}Business account
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"account_type": "BUSINESS",
"business": {
"business_type": "EURL",
"siret": "60487647400494",
"details": [
{
"key": "siren",
"value": "60487647400494"
}
]
},
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"account_contracts": [
{
"valid_from_date": "2023-01-01",
"signed_at_date": "2023-01-01",
"versions": [
{
"applicable_at_date": "2023-01-01",
"terms": [
{
"term_type": "CONTRACT_METADATA",
"metadata": {
"cee_formula_type": "standard"
}
},
{
"term_type": "PRODUCT_RATE_OVERRIDE_SCHEDULE",
"schedules": [
{
"effective_from": "2023-01-01",
"items": [
{
"price_per_unit": "0.2",
"rate_band": "CONSUMPTION_STANDARD",
"product_code": "ELEC-BUSINESS"
}
]
}
]
},
{
"term_type": "TERMINATION_FEE",
"amount": 100.0,
"supply_type": "ELECTRICITY",
"fee_type": "FLAT"
},
{
"term_type": "ISSUANCE_FREQUENCY",
"frequency": "MONTHLY",
"multiplier": 2,
"period_start_day": 1,
"period_start_month": 1
},
{
"term_type": "GUARANTEE_OF_ORIGIN_CONFIGURATION",
"guarantee_of_origin_percentage": 100,
"is_variable": true
},
{
"term_type": "PAYS_BY_DIRECT_DEBIT",
"pays_by_direct_debit": true
},
{
"term_type": "DELAYER_DAYS",
"strategy": "FIXED",
"days": 5
},
{
"term_type": "RATE_GROUP_ELIGIBILITY",
"time_series_specification_schedules": [],
"schedules": [
{
"effective_period": {
"start_date": "2023-01-01"
},
"product_code": "ELEC-BUSINESS",
"rate_group_code": "BUSINESS_RATE_GROUP",
"is_eligible": true
}
]
},
{
"term_type": "CHARACTERISTIC_OVERRIDE",
"overrides": [
{
"characteristic_code": "size",
"override_value": "100"
}
]
}
]
}
],
"identifier": "ABC"
}
],
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"date_of_birth": "1957-10-11"
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-BUSINESS",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-01-01"
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
}
]
}
]
}Account with payment preference for existing instruction
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"landline": "",
"date_of_birth": "1957-10-11",
"deceased": "",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_sms": false,
"opted_into_offers": true,
"opted_into_recommended": false
}
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01",
"addons": [
{
"band": "GREEN_POWER_50"
}
]
},
{
"tariff_code": "ELEC-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01",
"addons": [
{
"band": "GREEN_POWER_55"
}
]
},
{
"tariff_code": "ELEC-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01",
"addons": [
{
"band": "CARBON_OFFSET_50"
}
]
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
},
{
"identifier": "35438560738869",
"supply_type": "GAS",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 55.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-GAS-12345",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "GAS-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01"
},
{
"tariff_code": "GAS-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01"
},
{
"tariff_code": "GAS-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01"
}
],
"consent_data": {
"GAS_INDEXES": true
}
}
]
}
],
"statements": [
{
"bill_period_from_date": "2021-01-01",
"bill_period_to_date": "2022-01-01",
"statement_path": "EXTERNAL-1234/2021-01-01-to-2022-01-01-electricity.pdf",
"statement_id": "1"
}
],
"payment_preferences": [
{
"type": "ACTIVE_EXISTING",
"supply_point_identifier": "46147259228742",
"instruction_reference_params": {
"vendor_name": "GOCARDLESS",
"vendor_reference": "EXISTING-REFERENCE-1234"
}
}
]
}Account with payment preference for new instruction
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"landline": "",
"date_of_birth": "1957-10-11",
"deceased": "",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_sms": false,
"opted_into_offers": true,
"opted_into_recommended": false
}
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01",
"addons": [
{
"band": "GREEN_POWER_50"
}
]
},
{
"tariff_code": "ELEC-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01",
"addons": [
{
"band": "GREEN_POWER_55"
}
]
},
{
"tariff_code": "ELEC-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01",
"addons": [
{
"band": "CARBON_OFFSET_50"
}
]
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
},
{
"identifier": "35438560738869",
"supply_type": "GAS",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 55.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-GAS-12345",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "GAS-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01"
},
{
"tariff_code": "GAS-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01"
},
{
"tariff_code": "GAS-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01"
}
],
"consent_data": {
"GAS_INDEXES": true
}
}
]
}
],
"statements": [
{
"bill_period_from_date": "2021-01-01",
"bill_period_to_date": "2022-01-01",
"statement_path": "EXTERNAL-1234/2021-01-01-to-2022-01-01-electricity.pdf",
"statement_id": "1"
}
],
"payment_preferences": [
{
"type": "ACTIVE_NEW",
"supply_point_identifier": "46147259228742",
"instruction_reference_params": {
"vendor_name": "GOCARDLESS",
"vendor_reference": "SUPPLIER-ELEC-1234"
}
},
{
"type": "ACTIVE_NEW",
"supply_point_identifier": "35438560738869",
"instruction_reference_params": {
"vendor_name": "GOCARDLESS",
"vendor_reference": "SUPPLIER-GAS-12345"
}
}
]
}Account with passive payment preferences
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": false,
"billing_address1": "126 Rue de l'Université",
"billing_address2": "",
"billing_address3": "",
"billing_address4": "Paris",
"billing_postcode": "75007",
"sales_channel": "DIRECT",
"sales_subchannel": "Website",
"last_billed_to_date": "2022-08-14",
"customers": [
{
"title": "M.",
"given_name": "Robert",
"family_name": "Terwilliger",
"email": "robert.terwilliger@gmail.com",
"mobile": "+33809685772",
"landline": "",
"date_of_birth": "1957-10-11",
"deceased": "",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_sms": false,
"opted_into_offers": true,
"opted_into_recommended": false
}
}
],
"supply_addresses": [
{
"supply_address1": "126 Rue de l'Université",
"supply_address2": "",
"supply_address3": "",
"supply_address4": "Paris",
"supply_postcode": "75007",
"customer_at_supply_address_from_date": "2019-04-01",
"supply_points": [
{
"identifier": "46147259228742",
"supply_type": "ELECTRICITY",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 60.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-ELEC-1234",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "ELEC-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01",
"addons": [
{
"band": "GREEN_POWER_50"
}
]
},
{
"tariff_code": "ELEC-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01",
"addons": [
{
"band": "GREEN_POWER_55"
}
]
},
{
"tariff_code": "ELEC-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01",
"addons": [
{
"band": "CARBON_OFFSET_50"
}
]
}
],
"consent_data": {
"ELEC_CURVES": true,
"ELEC_INDEXES": false
}
},
{
"identifier": "35438560738869",
"supply_type": "GAS",
"supply_start_date": "2021-07-29",
"payment_schedules": [
{
"amount": 55.0,
"day_of_month": 2,
"frequency": "MONTHLY",
"means": "DD",
"start_date": "2022-01-01"
}
],
"payment_instructions": [
{
"vendor": "GOCARDLESS",
"reference": "SUPPLIER-GAS-12345",
"type": "DIRECT_DEBIT",
"valid_from": "2022-06-15"
}
],
"billing_frequency": 12,
"agreements": [
{
"tariff_code": "GAS-123",
"agreed_at": "2021-07-25T10:03:00+02:00",
"effective_from": "2021-08-01",
"effective_to": "2022-08-01"
},
{
"tariff_code": "GAS-456",
"agreed_at": "2022-07-25T10:03:00+02:00",
"effective_from": "2022-08-01",
"effective_to": "2023-08-01"
},
{
"tariff_code": "GAS-789",
"agreed_at": "2023-07-21T14:05:00+02:00",
"effective_from": "2023-08-01"
}
],
"consent_data": {
"GAS_INDEXES": true
}
}
]
}
],
"statements": [
{
"bill_period_from_date": "2021-01-01",
"bill_period_to_date": "2022-01-01",
"statement_path": "EXTERNAL-1234/2021-01-01-to-2022-01-01-electricity.pdf",
"statement_id": "1"
}
],
"payment_preferences": [
{
"type": "PASSIVE",
"supply_point_identifier": "46147259228742"
}
]
}Overview
Use this endpoint to process account data into an account in Kraken.
The endpoint accepts a JSON payload that contains an object referencing existing staged account
data. The operations_team_name that the account should be linked to should also be
provided. An optional dry_run field is available to test the account creation
process without actually creating the account. This is useful for testing the process to ensure
that an account would be created successfully.
Schema
Responses
The following responses may be returned from the API.
| Status code | Description |
|---|---|
201 - Created |
If the payload is valid and an account has been created, a {
"kraken_account_number": "A-E8981832"
} |
400 - Bad Request |
If there are validation errors, a
If an account has already been imported then two additional fields will be present
in the response:
If the API request was run with the Account would successfully import. Rolled back due to Dry Run. |
429 - Too Many Requests |
There is an optional concurrency limit on the number of accounts that can be
processed at once. If enabled, any requests to create an account that exceed this
limit will be rejected with The concurrency limit is currently: disabled. |
Payloads
Example payload
{
"external_account_number": "EXTERNAL-1234",
"import_supplier_code": "TENTACLE_ENERGY",
"operations_team_name": "A",
"dry_run": false
}