Skip to main content

The code below here is working succesfully, but now I try to built it in Postman Webhook.
But I can't get the correct settings; keep getting Response 400:

website_url = 'https://vbtverhuurmakelaars.nl/api/properties/search?type=purchase'


payload = {
"limit": 12,
"page": 1,
"filter": {
"city": "Eindhoven",
"radius": 0,
"address": "",
"priceRental": {
"min": 0,
"max": 0
},
"availablefrom": "",
"surface": 70,
"rooms": [2],
"typeCategory": ""
}
}

headers = {
"Content-Type": "application/json"
}


s = requests.Session()
response = s.post(website_url, data=json.dumps(payload), headers=headers)

 

 

What setting is incorrect here? I tried Raw, Json, Form, anything but without success.

Hi @samwhoelse 

Good question.

Try changing to a Custom Request (POST).

 


Yup. That worked! Well great!