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
Example payload
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": "false",
"billing_address1": "Utrechtsedwarsstraat",
"billing_address2": "107-109",
"billing_address3": "",
"billing_address4": "Amsterdam",
"billing_postcode": "1017 WD",
"customers": [
{
"given_name": "Jorn",
"family_name": "Oosterwijk",
"email": "jorn.oo@gmail.com",
"mobile": "+31741072122",
"landline": "",
"date_of_birth": "1950-08-31",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_offers": true,
"opted_into_sms": true
},
"user_details": [
{
"namespace": "external_id",
"value": "A123456789"
}
]
}
],
"supply_addresses": [
{
"supply_address1": "Vijzelstraat",
"supply_address2": "45",
"supply_address3": "",
"supply_address4": "Amsterdam",
"supply_postcode": "1017 HE",
"customer_at_supply_address_from_date": "2023-01-01",
"meter_points": [
{
"ean": "871685920001232914",
"agreements": [
{
"supply_type": "ELECTRICITY",
"effective_from": "2023-01-01",
"tariff_code": "TEST-AGILE-ELEC",
"agreed_at": "2023-01-01",
"params": {
"historical_contract_number": "000001",
"historical_contract_pdf_path": "contracts/123-abc/contract_000001.pdf"
},
"monthly_advance_charge_template": {
"total_monthly_advance_amount": "1089",
"forecast_annual_consumption": "1000",
"forecast_consumption_units": "KWH_CONSUMPION",
"forecast_annual_generation": "500",
"forecast_generation_units": "KWH_CONSUMPION",
"cost_details": [
{
"band": "ADVANCE_SUPPLIER_DYNAMIC_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_SUPPLIER_PURCHASING_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_SUPPLIER_FIXED_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_GRID_FEE",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_1",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_2",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_3",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_4",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_5",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
}
]
}
}
],
"last_billed_to_date": "2024-06-01",
"supply_start_date": "2023-01-01",
"supply_type": "ELECTRICITY",
"smart_meter_administrative_status": "ON",
"market_segment": "RETAIL",
"location_description": "",
"meters": [
{
"meter_id": "123456789",
"type": "SMART",
"smart_meter_technical_communication": "ON",
"active_from": "2023-01-01",
"registers": [
{
"register_id": "1.8.1",
"metering_direction": "CONSUMPTION",
"multiplication_factor": 1,
"number_of_digits": 6,
"time_of_use": "OFF_PEAK"
},
{
"register_id": "1.8.2",
"metering_direction": "CONSUMPTION",
"multiplication_factor": 1,
"number_of_digits": 6,
"time_of_use": "PEAK"
}
]
}
],
"energy_meter_point_configuration_periods": [
{
"allocation_method": "SMART",
"energy_delivery_status": "ACTIVE",
"energy_flow_direction": "CONSUMPTION",
"metering_method": "MONTHLY",
"physical_status": "IN_OPERATION",
"profile_category": "E1A",
"physical_capacity": 100,
"cap_tar_code": "7520607100185",
"start_date": "2023-10-01"
}
],
"energy_meter_point_grid_operator_effective_periods": [
{
"grid_operator_code": "8719333035529",
"start_date": "2023-10-01"
}
],
"billing_configuration_periods": [
{
"residency_status": "NON_RESIDENT",
"energy_tax_exception": "BUSINESS",
"start_date": "2023-10-01",
"end_date": "2024-04-01"
},
{
"residency_status": "RESIDENT",
"energy_tax_exception": "NO_EXCEPTION",
"start_date": "2024-04-01"
}
],
"estimated_annual_volumes": [
{
"direction": "CONSUMPTION",
"energy_netted_peak": 1000,
"energy_netted_off_peak": 500,
"start_at": "2024-01-01T00:00:00",
"end_at": "2024-12-31T23:59:59"
},
{
"direction": "PRODUCTION",
"energy_netted_peak": 100,
"energy_netted_off_peak": 50,
"start_at": "2024-01-01T00:00:00",
"end_at": null
}
]
},
{
"ean": "871692160010200300",
"agreements": [
{
"supply_type": "GAS",
"effective_from": "2023-01-01",
"tariff_code": "TEST-AGILE-GAS",
"agreed_at": "2023-01-01",
"params": {
"historical_contract_number": "000002",
"historical_contract_pdf_path": "contracts/123-abc/contract_000002.pdf"
},
"monthly_advance_charge_template": {
"total_monthly_advance_amount": "1089",
"forecast_annual_consumption": "1000",
"forecast_consumption_units": "CUBIC_METRES_CONSUMPTION",
"forecast_annual_generation": "0",
"forecast_generation_units": "CUBIC_METRES_CONSUMPTION",
"cost_details": [
{
"band": "ADVANCE_SUPPLIER_DYNAMIC_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_SUPPLIER_PURCHASING_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_SUPPLIER_FIXED_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_GRID_FEE",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_1",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_2",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_3",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_4",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_5",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
}
]
}
}
],
"last_billed_to_date": "2024-06-01",
"supply_start_date": "2023-01-01",
"supply_type": "GAS",
"smart_meter_administrative_status": "ON",
"market_segment": "RETAIL",
"location_description": "",
"meters": [
{
"meter_id": "987654321",
"type": "SMART",
"smart_meter_technical_communication": "ON",
"active_from": "2023-01-01",
"registers": [
{
"register_id": "1.8.0",
"metering_direction": "CONSUMPTION",
"multiplication_factor": 1,
"number_of_digits": 6
}
]
}
],
"energy_meter_point_configuration_periods": [
{
"allocation_method": "SMART",
"energy_delivery_status": "ACTIVE",
"energy_flow_direction": "CONSUMPTION",
"metering_method": "MONTHLY",
"physical_status": "IN_OPERATION",
"profile_category": "G1A",
"physical_capacity": 100,
"cap_tar_code": "7520607100186",
"start_date": "2023-10-01"
}
],
"energy_meter_point_grid_operator_effective_periods": [
{
"grid_operator_code": "8719333035530",
"start_date": "2023-10-01"
}
],
"billing_configuration_periods": [
{
"energy_tax_exception": "NO_EXCEPTION",
"start_date": "2023-10-01",
"end_date": "2024-04-01"
},
{
"energy_tax_exception": "NO_EXCEPTION",
"start_date": "2024-04-01"
}
]
}
]
}
],
"ledgers": [
{
"identifiers": [
"871685920001232914",
"871692160010200300"
],
"last_settlement_balance": 100,
"last_settlement_closing_date": "2023-12-31",
"last_settlement_issue_date": "2023-12-31",
"ledger_code": "ENERGY_LEDGER",
"ledger_balance": 100,
"transactions_in_open_settlement_period": [
{
"transaction_id": "1",
"transaction_date": "2024-01-23",
"amount": 532.4,
"type": "SUPPLY_CHARGE",
"associated_invoice_number": "INV_101",
"display_note": "Monthly invoice (2024-01-01 - 2024-02-01)",
"supply_type": "ELECTRICITY",
"product_code": "TEST-AGILE-ELEC",
"line_items": [
{
"rate_band": "ADVANCE_SUPPLIER_DYNAMIC_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "48372000-56d9-4204-9a7d-f146471d76b6"
}
},
{
"rate_band": "ADVANCE_SUPPLIER_PURCHASING_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "f684277f-f145-44ac-8cd6-8e16edf18142"
}
},
{
"rate_band": "ADVANCE_SUPPLIER_FIXED_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "8fbc9a34-0b51-49b0-824e-72ba88c2b8ef"
}
},
{
"rate_band": "ADVANCE_GRID_FEE",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "86e61202-961a-444a-a8db-c1919d86fc01"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_1",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "f47267d1-bf42-410e-bebb-299ec6f0ff07"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_2",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "405b2808-d691-4f4e-a3f9-b3db868cea63"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_3",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "dd62597b-d4c6-44d1-8e19-02e8d85285c5"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_4",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "222795fc-92b5-4b23-9c69-8ccacf57faa1"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_5",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "1bc704c2-16f4-48b5-bbc9-6760814dcdb0"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_REDUCTION",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "6a15b806-f6f7-4fbb-9108-accc822a0a28"
}
}
],
"tax_items": [
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "48372000-56d9-4204-9a7d-f146471d76b6"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "f684277f-f145-44ac-8cd6-8e16edf18142"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "8fbc9a34-0b51-49b0-824e-72ba88c2b8ef"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "86e61202-961a-444a-a8db-c1919d86fc01"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "f47267d1-bf42-410e-bebb-299ec6f0ff07"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "405b2808-d691-4f4e-a3f9-b3db868cea63"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "dd62597b-d4c6-44d1-8e19-02e8d85285c5"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "222795fc-92b5-4b23-9c69-8ccacf57faa1"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "1bc704c2-16f4-48b5-bbc9-6760814dcdb0"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "6a15b806-f6f7-4fbb-9108-accc822a0a28"
}
}
]
},
{
"transaction_id": "2",
"transaction_date": "2024-01-23",
"amount": 532.4,
"type": "PAYMENT",
"reason": "ACCOUNT_CHARGE_PAYMENT",
"associated_invoice_number": "INV_101",
"display_note": "Monthly invoice (2024-01-01 - 2024-02-01)",
"reference": "",
"payment_type": "DD_REGULAR_COLLECTION"
},
{
"transaction_id": "3",
"transaction_date": "2024-02-23",
"amount": 479.16,
"type": "SUPPLY_CHARGE",
"associated_invoice_number": "INV_102",
"display_note": "Monthly invoice (2024-01-01 - 2024-02-01)",
"supply_type": "GAS",
"product_code": "TEST-AGILE-GAS",
"line_items": [
{
"rate_band": "ADVANCE_SUPPLIER_DYNAMIC_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "0190b66c-4456-7827-8358-1b7ad66041fc"
}
},
{
"rate_band": "ADVANCE_SUPPLIER_PURCHASING_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "1972903f-888e-415b-bea0-ba408a22315a"
}
},
{
"rate_band": "ADVANCE_SUPPLIER_FIXED_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "fd7a6e8a-91fe-44de-b985-a662360913c7"
}
},
{
"rate_band": "ADVANCE_GRID_FEE",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "3ccc599b-94b8-4908-9f0a-4733c85aa9fd"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_1",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "0e09c28d-8a30-46aa-886e-5ca8c2825a92"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_2",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "ea43c08b-1f23-4e9a-822c-6c53b44971eb"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_3",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "993f88db-723a-4c6e-8d8c-db5f68c832a0"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_4",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "6eb58d4e-c615-4d05-8539-4bf1054da013"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_5",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "23ea8db0-174c-493d-bbdf-fd11850a7eef"
}
}
],
"tax_items": [
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "0190b66c-4456-7827-8358-1b7ad66041fc"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "1972903f-888e-415b-bea0-ba408a22315a"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "fd7a6e8a-91fe-44de-b985-a662360913c7"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "3ccc599b-94b8-4908-9f0a-4733c85aa9fd"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "0e09c28d-8a30-46aa-886e-5ca8c2825a92"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "ea43c08b-1f23-4e9a-822c-6c53b44971eb"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "993f88db-723a-4c6e-8d8c-db5f68c832a0"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "6eb58d4e-c615-4d05-8539-4bf1054da013"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "23ea8db0-174c-493d-bbdf-fd11850a7eef"
}
}
]
},
{
"transaction_id": "4",
"transaction_date": "2024-02-23",
"amount": 479.16,
"type": "PAYMENT",
"reason": "ACCOUNT_CHARGE_PAYMENT",
"associated_invoice_number": "INV_102",
"reference": "",
"payment_type": "DD_REGULAR_COLLECTION"
}
],
"historical_statement_transactions": [
{
"amount": "100",
"associated_invoice_number": "invoice-2",
"display_note": "some display note",
"note": "some note",
"payment_type": "DD_REGULAR_COLLECTION",
"transaction_date": "2022-01-31",
"transaction_id": "4d71ad52-3515-4fe9-b60c-f1015eac53fe2",
"type": "PAYMENT"
},
{
"amount": 104,
"associated_invoice_number": "identifiable-invoice-number",
"display_note": "2022 Credits",
"transaction_date": "2022-12-31",
"transaction_id": "52eea2b7-c678-446e-8246-f45c50a8ded9P",
"type": "CREDIT",
"reason": "IMPORTED_CREDIT"
}
]
}
],
"statements": [
{
"bill_period_from_date": "2024-01-01",
"bill_period_to_date": "2024-02-01",
"gross_amount": 5324,
"issued_date": "2024-01-23",
"number": "INV_101",
"statement_id": "e5dd3c54-f621-4c59-bdf1-fa896388a6a8",
"statement_path": "statements/327797/433411-1654079544-20241212-20250111.pdf",
"statement_pdf_context": {}
},
{
"bill_period_from_date": "2024-01-01",
"bill_period_to_date": "2024-02-01",
"gross_amount": 47916,
"issued_date": "2024-02-23",
"number": "INV_102",
"statement_id": "e5dd3c54-f621-4c59-bdf1-fa896388a6a8",
"statement_path": "statements/327797/433411-1654079544-20241212-20250111.pdf",
"statement_pdf_context": {}
}
]
}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
Example payload
{
"external_account_number": "EXTERNAL-1234",
"import_supplier": "TENTACLE_ENERGY",
"unknown_occupier": "false",
"billing_address1": "Utrechtsedwarsstraat",
"billing_address2": "107-109",
"billing_address3": "",
"billing_address4": "Amsterdam",
"billing_postcode": "1017 WD",
"customers": [
{
"given_name": "Jorn",
"family_name": "Oosterwijk",
"email": "jorn.oo@gmail.com",
"mobile": "+31741072122",
"landline": "",
"date_of_birth": "1950-08-31",
"customer_preferences": {
"opted_into_updates": true,
"opted_into_offers": true,
"opted_into_sms": true
},
"user_details": [
{
"namespace": "external_id",
"value": "A123456789"
}
]
}
],
"supply_addresses": [
{
"supply_address1": "Vijzelstraat",
"supply_address2": "45",
"supply_address3": "",
"supply_address4": "Amsterdam",
"supply_postcode": "1017 HE",
"customer_at_supply_address_from_date": "2023-01-01",
"meter_points": [
{
"ean": "871685920001232914",
"agreements": [
{
"supply_type": "ELECTRICITY",
"effective_from": "2023-01-01",
"tariff_code": "TEST-AGILE-ELEC",
"agreed_at": "2023-01-01",
"params": {
"historical_contract_number": "000001",
"historical_contract_pdf_path": "contracts/123-abc/contract_000001.pdf"
},
"monthly_advance_charge_template": {
"total_monthly_advance_amount": "1089",
"forecast_annual_consumption": "1000",
"forecast_consumption_units": "KWH_CONSUMPION",
"forecast_annual_generation": "500",
"forecast_generation_units": "KWH_CONSUMPION",
"cost_details": [
{
"band": "ADVANCE_SUPPLIER_DYNAMIC_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_SUPPLIER_PURCHASING_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_SUPPLIER_FIXED_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_GRID_FEE",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_1",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_2",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_3",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_4",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_5",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
}
]
}
}
],
"last_billed_to_date": "2024-06-01",
"supply_start_date": "2023-01-01",
"supply_type": "ELECTRICITY",
"smart_meter_administrative_status": "ON",
"market_segment": "RETAIL",
"location_description": "",
"meters": [
{
"meter_id": "123456789",
"type": "SMART",
"smart_meter_technical_communication": "ON",
"active_from": "2023-01-01",
"registers": [
{
"register_id": "1.8.1",
"metering_direction": "CONSUMPTION",
"multiplication_factor": 1,
"number_of_digits": 6,
"time_of_use": "OFF_PEAK"
},
{
"register_id": "1.8.2",
"metering_direction": "CONSUMPTION",
"multiplication_factor": 1,
"number_of_digits": 6,
"time_of_use": "PEAK"
}
]
}
],
"energy_meter_point_configuration_periods": [
{
"allocation_method": "SMART",
"energy_delivery_status": "ACTIVE",
"energy_flow_direction": "CONSUMPTION",
"metering_method": "MONTHLY",
"physical_status": "IN_OPERATION",
"profile_category": "E1A",
"physical_capacity": 100,
"cap_tar_code": "7520607100185",
"start_date": "2023-10-01"
}
],
"energy_meter_point_grid_operator_effective_periods": [
{
"grid_operator_code": "8719333035529",
"start_date": "2023-10-01"
}
],
"billing_configuration_periods": [
{
"residency_status": "NON_RESIDENT",
"energy_tax_exception": "BUSINESS",
"start_date": "2023-10-01",
"end_date": "2024-04-01"
},
{
"residency_status": "RESIDENT",
"energy_tax_exception": "NO_EXCEPTION",
"start_date": "2024-04-01"
}
],
"estimated_annual_volumes": [
{
"direction": "CONSUMPTION",
"energy_netted_peak": 1000,
"energy_netted_off_peak": 500,
"start_at": "2024-01-01T00:00:00",
"end_at": "2024-12-31T23:59:59"
},
{
"direction": "PRODUCTION",
"energy_netted_peak": 100,
"energy_netted_off_peak": 50,
"start_at": "2024-01-01T00:00:00",
"end_at": null
}
]
},
{
"ean": "871692160010200300",
"agreements": [
{
"supply_type": "GAS",
"effective_from": "2023-01-01",
"tariff_code": "TEST-AGILE-GAS",
"agreed_at": "2023-01-01",
"params": {
"historical_contract_number": "000002",
"historical_contract_pdf_path": "contracts/123-abc/contract_000002.pdf"
},
"monthly_advance_charge_template": {
"total_monthly_advance_amount": "1089",
"forecast_annual_consumption": "1000",
"forecast_consumption_units": "CUBIC_METRES_CONSUMPTION",
"forecast_annual_generation": "0",
"forecast_generation_units": "CUBIC_METRES_CONSUMPTION",
"cost_details": [
{
"band": "ADVANCE_SUPPLIER_DYNAMIC_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_SUPPLIER_PURCHASING_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_SUPPLIER_FIXED_COST",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_GRID_FEE",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_1",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_2",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_3",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_4",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
},
{
"band": "ADVANCE_ENERGY_TAX_STEP_5",
"net_amount": 100,
"tax_amount": 21,
"tax_rate": 0.21
}
]
}
}
],
"last_billed_to_date": "2024-06-01",
"supply_start_date": "2023-01-01",
"supply_type": "GAS",
"smart_meter_administrative_status": "ON",
"market_segment": "RETAIL",
"location_description": "",
"meters": [
{
"meter_id": "987654321",
"type": "SMART",
"smart_meter_technical_communication": "ON",
"active_from": "2023-01-01",
"registers": [
{
"register_id": "1.8.0",
"metering_direction": "CONSUMPTION",
"multiplication_factor": 1,
"number_of_digits": 6
}
]
}
],
"energy_meter_point_configuration_periods": [
{
"allocation_method": "SMART",
"energy_delivery_status": "ACTIVE",
"energy_flow_direction": "CONSUMPTION",
"metering_method": "MONTHLY",
"physical_status": "IN_OPERATION",
"profile_category": "G1A",
"physical_capacity": 100,
"cap_tar_code": "7520607100186",
"start_date": "2023-10-01"
}
],
"energy_meter_point_grid_operator_effective_periods": [
{
"grid_operator_code": "8719333035530",
"start_date": "2023-10-01"
}
],
"billing_configuration_periods": [
{
"energy_tax_exception": "NO_EXCEPTION",
"start_date": "2023-10-01",
"end_date": "2024-04-01"
},
{
"energy_tax_exception": "NO_EXCEPTION",
"start_date": "2024-04-01"
}
]
}
]
}
],
"ledgers": [
{
"identifiers": [
"871685920001232914",
"871692160010200300"
],
"last_settlement_balance": 100,
"last_settlement_closing_date": "2023-12-31",
"last_settlement_issue_date": "2023-12-31",
"ledger_code": "ENERGY_LEDGER",
"ledger_balance": 100,
"transactions_in_open_settlement_period": [
{
"transaction_id": "1",
"transaction_date": "2024-01-23",
"amount": 532.4,
"type": "SUPPLY_CHARGE",
"associated_invoice_number": "INV_101",
"display_note": "Monthly invoice (2024-01-01 - 2024-02-01)",
"supply_type": "ELECTRICITY",
"product_code": "TEST-AGILE-ELEC",
"line_items": [
{
"rate_band": "ADVANCE_SUPPLIER_DYNAMIC_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "48372000-56d9-4204-9a7d-f146471d76b6"
}
},
{
"rate_band": "ADVANCE_SUPPLIER_PURCHASING_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "f684277f-f145-44ac-8cd6-8e16edf18142"
}
},
{
"rate_band": "ADVANCE_SUPPLIER_FIXED_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "8fbc9a34-0b51-49b0-824e-72ba88c2b8ef"
}
},
{
"rate_band": "ADVANCE_GRID_FEE",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "86e61202-961a-444a-a8db-c1919d86fc01"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_1",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "f47267d1-bf42-410e-bebb-299ec6f0ff07"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_2",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "405b2808-d691-4f4e-a3f9-b3db868cea63"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_3",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "dd62597b-d4c6-44d1-8e19-02e8d85285c5"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_4",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "222795fc-92b5-4b23-9c69-8ccacf57faa1"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_5",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "1bc704c2-16f4-48b5-bbc9-6760814dcdb0"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_REDUCTION",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "6a15b806-f6f7-4fbb-9108-accc822a0a28"
}
}
],
"tax_items": [
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "48372000-56d9-4204-9a7d-f146471d76b6"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "f684277f-f145-44ac-8cd6-8e16edf18142"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "8fbc9a34-0b51-49b0-824e-72ba88c2b8ef"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "86e61202-961a-444a-a8db-c1919d86fc01"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "f47267d1-bf42-410e-bebb-299ec6f0ff07"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "405b2808-d691-4f4e-a3f9-b3db868cea63"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "dd62597b-d4c6-44d1-8e19-02e8d85285c5"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "222795fc-92b5-4b23-9c69-8ccacf57faa1"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "1bc704c2-16f4-48b5-bbc9-6760814dcdb0"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "6a15b806-f6f7-4fbb-9108-accc822a0a28"
}
}
]
},
{
"transaction_id": "2",
"transaction_date": "2024-01-23",
"amount": 532.4,
"type": "PAYMENT",
"reason": "ACCOUNT_CHARGE_PAYMENT",
"associated_invoice_number": "INV_101",
"display_note": "Monthly invoice (2024-01-01 - 2024-02-01)",
"reference": "",
"payment_type": "DD_REGULAR_COLLECTION"
},
{
"transaction_id": "3",
"transaction_date": "2024-02-23",
"amount": 479.16,
"type": "SUPPLY_CHARGE",
"associated_invoice_number": "INV_102",
"display_note": "Monthly invoice (2024-01-01 - 2024-02-01)",
"supply_type": "GAS",
"product_code": "TEST-AGILE-GAS",
"line_items": [
{
"rate_band": "ADVANCE_SUPPLIER_DYNAMIC_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "0190b66c-4456-7827-8358-1b7ad66041fc"
}
},
{
"rate_band": "ADVANCE_SUPPLIER_PURCHASING_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "1972903f-888e-415b-bea0-ba408a22315a"
}
},
{
"rate_band": "ADVANCE_SUPPLIER_FIXED_COST",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "fd7a6e8a-91fe-44de-b985-a662360913c7"
}
},
{
"rate_band": "ADVANCE_GRID_FEE",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "3ccc599b-94b8-4908-9f0a-4733c85aa9fd"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_1",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "0e09c28d-8a30-46aa-886e-5ca8c2825a92"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_2",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "ea43c08b-1f23-4e9a-822c-6c53b44971eb"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_3",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "993f88db-723a-4c6e-8d8c-db5f68c832a0"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_4",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "6eb58d4e-c615-4d05-8539-4bf1054da013"
}
},
{
"rate_band": "ADVANCE_ENERGY_TAX_STEP_5",
"start_date": "2024-01-01",
"end_date": "2024-01-31",
"number_of_units": 1.0,
"price_per_unit": 44.0,
"net_amount": 44.0,
"params": {
"ref": "23ea8db0-174c-493d-bbdf-fd11850a7eef"
}
}
],
"tax_items": [
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "0190b66c-4456-7827-8358-1b7ad66041fc"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "1972903f-888e-415b-bea0-ba408a22315a"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "fd7a6e8a-91fe-44de-b985-a662360913c7"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "3ccc599b-94b8-4908-9f0a-4733c85aa9fd"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "0e09c28d-8a30-46aa-886e-5ca8c2825a92"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "ea43c08b-1f23-4e9a-822c-6c53b44971eb"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "993f88db-723a-4c6e-8d8c-db5f68c832a0"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "6eb58d4e-c615-4d05-8539-4bf1054da013"
}
},
{
"amount": 9.24,
"tax_type": "VAT",
"rate": 0.21,
"unit_type": "PROPORTION",
"params": {
"vat_on": "23ea8db0-174c-493d-bbdf-fd11850a7eef"
}
}
]
},
{
"transaction_id": "4",
"transaction_date": "2024-02-23",
"amount": 479.16,
"type": "PAYMENT",
"reason": "ACCOUNT_CHARGE_PAYMENT",
"associated_invoice_number": "INV_102",
"reference": "",
"payment_type": "DD_REGULAR_COLLECTION"
}
],
"historical_statement_transactions": [
{
"amount": "100",
"associated_invoice_number": "invoice-2",
"display_note": "some display note",
"note": "some note",
"payment_type": "DD_REGULAR_COLLECTION",
"transaction_date": "2022-01-31",
"transaction_id": "4d71ad52-3515-4fe9-b60c-f1015eac53fe2",
"type": "PAYMENT"
},
{
"amount": 104,
"associated_invoice_number": "identifiable-invoice-number",
"display_note": "2022 Credits",
"transaction_date": "2022-12-31",
"transaction_id": "52eea2b7-c678-446e-8246-f45c50a8ded9P",
"type": "CREDIT",
"reason": "IMPORTED_CREDIT"
}
]
}
],
"statements": [
{
"bill_period_from_date": "2024-01-01",
"bill_period_to_date": "2024-02-01",
"gross_amount": 5324,
"issued_date": "2024-01-23",
"number": "INV_101",
"statement_id": "e5dd3c54-f621-4c59-bdf1-fa896388a6a8",
"statement_path": "statements/327797/433411-1654079544-20241212-20250111.pdf",
"statement_pdf_context": {}
},
{
"bill_period_from_date": "2024-01-01",
"bill_period_to_date": "2024-02-01",
"gross_amount": 47916,
"issued_date": "2024-02-23",
"number": "INV_102",
"statement_id": "e5dd3c54-f621-4c59-bdf1-fa896388a6a8",
"statement_path": "statements/327797/433411-1654079544-20241212-20250111.pdf",
"statement_pdf_context": {}
}
]
}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
}