Developers
Use webhooks to be notified about events that happen in your BMC account.
BMC can send webhook events that notify your application any time an event happens on your account.
You can register webhook URLs that we will notify any time an event happens in your account. When the event occurs—a supporter buys coffee for you, or someone purchases your coffeelink, etc.—BMC creates an Event object.
This Event object contains all the relevant information about what just happened, including the type of event and the data associated with that event. BMC then sends the Event object, via an HTTP POST request, to any endpoint URLs that you have defined in your account’s Webhooks settings. You can have BMC send a single event to many webhook endpoints.
We will sent an event with header X-Buymeacoffee-Event :pledges:update. Content will be similiar to the following:
{
"response" : {
"supporter_email" : "",
"number_of_coffees" : "1",
"total_amount" : "3",
"support_created_on" : "2021-01-23 05:23:04"
}
}
to your webhook url:
https://www.buymeacoffee.com