Skip to main content
Best answer

Webhook not working in Zapier but response 200 in Python. See code:


samwhoelse

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.

Best answer by Troy TessaloneBest answer by Troy Tessalone

Hi @samwhoelse 

Good question.

Try changing to a Custom Request (POST).

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30895 replies
  • Answer
  • June 4, 2023

Hi @samwhoelse 

Good question.

Try changing to a Custom Request (POST).

 


samwhoelse
  • Author
  • New
  • 1 reply
  • June 4, 2023

Yup. That worked! Well great!