Hi, not too sure what this could be without actually seeing your integration, but generally 400s mean that the webhooks RevenueCat are sending are not being accepted. Here is the following format that the Slack webhooks we send are in:
{
"app_id": 12345,
"payload": {
"attachments": [
{
"color": "#30B296",
"fallback": "Customer user_id just renewed their subscription of product_name",
"fields": [
{
"value": ":smiley_cat: Customer <customer_history_url> just renewed their subscription."
},
{
"short": false,
"title": "Product",
"value": "product_name"
},
{
"short": false,
"title": "Revenue",
"value": "$4.99"
}
],
"ts": 1684691858
}
],
"channel": "notification_revenuecat",
"icon_url": "https://app.revenuecat.com/favicon-96x96.png",
"username": "RevenueCat"
},
"product_identifier": "product_name"
}
I have just followed the instructions for the integration, so I don’t think my set-up is of any difference.
What I meant by the Slack curl example is that the message they sent is the following:
POST https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
Content-type: application/json
{
"text": "Hello, world."
}
I though they might have change the messages that they expect.
I will anyway check my integration and see if there is anything wrong there. Thanks
Well actually I am stupid. I was using a normal Webhook instead of the Slack Webhook in the integration page. So mystery solved, my bad.