Gigapay uses Webhooks to let you know any time an event happens on your account. Webhooks are completely optional, however they allow you to receive real-time updates on events related to your Gigapay account. We notify on the following events:
Employee.created
Employee.notified
Employee.verified
Payout.created
Payout.notified
Payout.accepted
Invoice.created
Invoice.paid
The notifications simply contain the object that triggered the event, as represented in the API. For example, the notification for a Employee.verified
event may look as following:
POST https://gigatron.se/webhooks/employees/ HTTP/1.1Content-Type: application/jsonGigapay-Signature: t=1583327301,v1=ad583e2b2093c8d6fb3b65e04b99fc5988e98c0c312909acad334072da7e99ec...{"id": "25d2af38-59b9-4f73-9452-51787fed5c84","name": "Karl Karlsson","cellphone_number": null,"email": karl.karlsson@gmail.com,"metadata": {"user_id": 3,}"created_at": "2019-05-20T15:33:08.974624Z","verified_at": "2019-05-21T09:13:48.625263",}