Reputation: 1575
I'm developing a Website (site A) that will receive a call from another website (site B) through Webhook.
The site B will send the following structure:
{
"data": {
"subscription_id": "F4115E5E28AE4CCA941FCCCCCABE9A0A",
"status": "pending",
"id": "1757E1D7FD5E410A9C563024250015BF",
"account_id": "70CA234077134ED0BF2E0E46B0EDC36F"
},
"event": "invoice.created"
}
The guide of site B says that this data will send with content-type application/x-www-form-urlencoded and using a POST method.
How could I setup it on POSTMAN?
I'm trying the following:1st configuring the header / content type as show below
2nd: I configure the body like this:
and then I click on the submit button and it becomes like this:
Is this right?
If so, how could I get this on my Action?
Upvotes: 3
Views: 20092
Reputation: 66
After using 'raw', there's a dropdown menu next to it, which in it's turn, can be set to JSON. The header of the Post request will be automatically configured.
Upvotes: 5
Reputation: 1259
Try to choose 'raw' and paste your json data. Keep the content-type header on application/x-www-form-urlencoded.
For me it's working. I have tested with WebApi controller method which receives one complex type parameter (similar to your structure)
Upvotes: 1