Webhooks
Getpaid sends real-time notifications on progress on each application, this allows platforms to react to each event (or missing events), for instance:
Fig.1 - Application Lifecycle.
Common scenarios for notifications
- Activate your Merchant on your platform once you receive the notification Application Approved.
- Get in contact with Getpaid support team if you receive an Event Application Action Required.
Platforms will provide the endpoints where Getpaid will send the notifications. If those endpoints are unavailable, after 10 retries Getpaid will pause all notifications to the endpoints.
Setting the webhook URL
Webhook URLs are defined when initiating an application, by setting the urls.webhook field:
{
"applicant": {
"email": "jon.smith@acme.com",
"first_name": "Jon",
"last_name": "Smith"
},
"currencies": [
"EUR"
],
"integration": {
"type": "hosted"
},
"language": "en",
"reference": "merch-001",
"urls": {
"webhook": "http://example.com"
}
}
For more details on the Initiate Application API call, see Initiate Onboarding.
Webhook Events
We currently send webhooks for the following events:
Application Started
The application_started event occurs when
the merchant visits the hosted onboarding page for the first time.
Example Webhook
{
"id": "evt_4r8t310nhp2mferdc1waa07s5d",
"type": "application_started",
"occurred_at": "2019-08-24T14:15:22Z",
"data": {
"id": "app_44678r08jtm8zbt227tzhc4nw5",
"merchant_id": "acc_4zjjxn0nm1tnweqbttedkvnsc8",
"reference": "merch-001"
}
}
Application Submitted
The application_submitted event occurs
when an application has been submitted by a merchant.
Example Webhook
{
"id": "evt_4r8t310nhp2mferdc1waa07s5d",
"type": "application_submitted",
"occurred_at": "2019-08-24T14:15:22Z",
"data": {
"id": "app_44678r08jtm8zbt227tzhc4nw5",
"merchant_id": "acc_4zjjxn0nm1tnweqbttedkvnsc8",
"reference": "merch-001"
}
}