master_data
Create a new change process request
Creates a new changed customer data process request for given customerID/contractID. For each changed value you need a new request. Not all changes are applicable to a consumer or producer, some are role specific.
POST
/
v3
/
master_data
/
changes
/
Create a new change process request
curl --request POST \
--url https://api.lumenaza.de/v3/master_data/changes/ \
--header 'Content-Type: application/json' \
--data '
{
"new_value": "<string>",
"contract_id": "<string>",
"consumer_id": "<string>",
"producer_id": "<string>"
}
'import requests
url = "https://api.lumenaza.de/v3/master_data/changes/"
payload = {
"new_value": "<string>",
"contract_id": "<string>",
"consumer_id": "<string>",
"producer_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
new_value: '<string>',
contract_id: '<string>',
consumer_id: '<string>',
producer_id: '<string>'
})
};
fetch('https://api.lumenaza.de/v3/master_data/changes/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lumenaza.de/v3/master_data/changes/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'new_value' => '<string>',
'contract_id' => '<string>',
'consumer_id' => '<string>',
'producer_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lumenaza.de/v3/master_data/changes/"
payload := strings.NewReader("{\n \"new_value\": \"<string>\",\n \"contract_id\": \"<string>\",\n \"consumer_id\": \"<string>\",\n \"producer_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.lumenaza.de/v3/master_data/changes/")
.header("Content-Type", "application/json")
.body("{\n \"new_value\": \"<string>\",\n \"contract_id\": \"<string>\",\n \"consumer_id\": \"<string>\",\n \"producer_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumenaza.de/v3/master_data/changes/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"new_value\": \"<string>\",\n \"contract_id\": \"<string>\",\n \"consumer_id\": \"<string>\",\n \"producer_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"change_id": 123
}Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
salutation- salutationfirst_name- first_namelast_name- last_namebirthday- birthdayprefered_delivery_start- prefered_delivery_startis_business- is_businesstelephone- telephonedeliv_address_zipcode- deliv_address_zipcodedeliv_address_city- deliv_address_citydeliv_address_street- deliv_address_streetdeliv_address_addition- deliv_address_additiondeliv_address_house_number- deliv_address_house_numberbill_address_zipcode- bill_address_zipcodebill_address_addition- bill_address_additionbill_address_house_number- bill_address_house_numberbill_address_street- bill_address_streetbill_address_city- bill_address_citybank_data_last_name- bank_data_last_namebank_data_iban- bank_data_ibanbank_data_bic- bank_data_bicbank_data_first_name- bank_data_first_namemeter_id- meter_idsepa_reference- sepa_referenceannual_consumption- annual_consumptionname_title- name_titlesepa_date- sepa_dateprevious_provider- previous_provideremail- emailsaas_customer_lead_id- saas_customer_lead_idcustom_name- custom_nameis_small_business- is_small_businesscompany_name- company_nametax_number- tax_numberdate_of_commissioning- date_of_commissioningaccounting_email- accounting_emailbalance_account- balance_accountplant_status- plant_statuspayment_responsible- payment_responsible
Available options:
salutation, first_name, last_name, birthday, prefered_delivery_start, is_business, telephone, deliv_address_zipcode, deliv_address_city, deliv_address_street, deliv_address_addition, deliv_address_house_number, bill_address_zipcode, bill_address_addition, bill_address_house_number, bill_address_street, bill_address_city, bank_data_last_name, bank_data_iban, bank_data_bic, bank_data_first_name, meter_id, sepa_reference, annual_consumption, name_title, sepa_date, previous_provider, email, saas_customer_lead_id, custom_name, is_small_business, company_name, tax_number, date_of_commissioning, accounting_email, balance_account, plant_status, payment_responsible Response
201 - application/json
Change process created
identifier for change process
⌘I
Create a new change process request
curl --request POST \
--url https://api.lumenaza.de/v3/master_data/changes/ \
--header 'Content-Type: application/json' \
--data '
{
"new_value": "<string>",
"contract_id": "<string>",
"consumer_id": "<string>",
"producer_id": "<string>"
}
'import requests
url = "https://api.lumenaza.de/v3/master_data/changes/"
payload = {
"new_value": "<string>",
"contract_id": "<string>",
"consumer_id": "<string>",
"producer_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
new_value: '<string>',
contract_id: '<string>',
consumer_id: '<string>',
producer_id: '<string>'
})
};
fetch('https://api.lumenaza.de/v3/master_data/changes/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lumenaza.de/v3/master_data/changes/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'new_value' => '<string>',
'contract_id' => '<string>',
'consumer_id' => '<string>',
'producer_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lumenaza.de/v3/master_data/changes/"
payload := strings.NewReader("{\n \"new_value\": \"<string>\",\n \"contract_id\": \"<string>\",\n \"consumer_id\": \"<string>\",\n \"producer_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.lumenaza.de/v3/master_data/changes/")
.header("Content-Type", "application/json")
.body("{\n \"new_value\": \"<string>\",\n \"contract_id\": \"<string>\",\n \"consumer_id\": \"<string>\",\n \"producer_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumenaza.de/v3/master_data/changes/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"new_value\": \"<string>\",\n \"contract_id\": \"<string>\",\n \"consumer_id\": \"<string>\",\n \"producer_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"change_id": 123
}
