I am new in python. I need to get the data based via url. The data is based on a unique number which is in payload. I can't seem to find a way to initiate a variable in "CUSTNO" in payload and iterate it. iterate it. (I have removed some of the payload data)
url = 'url'
payload = "<CHANNELID></CHANNELID>\r\n </FCDB_HEADER>\r\n <FCDB_BODY>\r\n <CUSTOMER>\r\n " \
"<CUSTNO>123456789</CUSTNO>\r\n </CUSTOMER>\r\n"
response = requests.request("POST", url, data=payload, headers=headers)
xml_response = response.text
print(xml_response)