Webhooks
Listen for events on your Payink account so your integration can automatically trigger reactions.
Payink uses webhooks to notify your application when an event happens in your account. Webhooks are particularly useful for asynchronous events e.g when a customer pays an invoice.

What are webhooks

Webhooks refers to a combination of elements that collectively create a notification and reaction system within a larger integration.
Metaphorically, webhooks are like a phone number that Payink calls to notify you of activity in your Payink account. The activity could be the creation of a new customer or the payout of funds to your bank account. The webhook endpoint is the person answering that call who takes actions based upon the specific information it receives.
Non-metaphorically, the webhook endpoint is just more code on your server, which could be written in Ruby, PHP, Node.js, or whatever. The webhook endpoint has an associated URL (e.g., https://example.com/webhooks). The Payink notifications are 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. The webhook endpoint uses the event details to take any required actions, such as indicating that an order should be fulfilled.
Last modified 1mo ago
Copy link