Thanks George,
Funny you should mention stripe, because I use that webhook as well – these are both critical to our app, so hoping you can deliver on this! And yes, PHP7. It’s all sandbox stuff, so no worries on keys.
Here is the header output:
connection |
close |
x-forwarded-for |
52.21.26.131 |
cache-control |
max-age=259200 |
host |
webhook.site |
accept-encoding |
gzip |
content-type |
application/json |
content-length |
169 |
user-agent |
Go-http-client/1.1 |
And the body:
{
"error": null,
"item_id": "4obwBvv8LvHrlweWWNdLcER3G1lzJaFdvQ9JX",
"new_transactions": 16,
"webhook_code": "INITIAL_UPDATE",
"webhook_type": "TRANSACTIONS"
}
EDIT: I should add, there are other webhooks from plaid that have more complex structures such as:
{
"webhook_type": "TRANSACTIONS",
"webhook_code": "TRANSACTIONS_REMOVED",
"item_id": "wz666MBjYWTp2PDzzggYhM6oWWmBb",
"removed_transactions": [
"yBVBEwrPyJs8GvR77N7QTxnGg6wG74H7dEDN6",
"kgygNvAVPzSX9KkddNdWHaVGRVex1MHm3k9no"
],
"error": null
}
and
{
"webhook_type": "ITEM",
"webhook_code": "ERROR",
"item_id": "wz666MBjYWTp2PDzzggYhM6oWWmBb",
"error": {
"display_message": "The provided credentials were not correct.
Please try again.",
"error_code": "ITEM_LOGIN_REQUIRED",
"error_message": "the provided credentials were not correct",
"error_type": "ITEM_ERROR",
"status": 400
}
}