Currently I am trying to export a JSON file of all my products from Product Templates using the following Endpoint, I do receive the basic parameters expected which is ID, Data, state and index. My products contain additional fields like Price, quantity etc and I am trying to have these fields included within the query response parameters. Is there anyway to go about this? current code below.
headers = {
'Oauth-token': hidden,
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
'download_token': hidden,
'Content-Type': 'application/octet-stream',
'Accept-Encoding': 'gzip, deflate, br',
'Connection': 'keep-alive'
}
params = {
'filter': '',
'root' : '',
'offset':'0'
}
f = a.get('https://......./rest/v11_8/ProductTemplates/tree', headers=headers, params=params)
print (f.content)
response received:
{"id":"92ff167e...","type":"product","data":"Spoons","state":"","index":1822}