When the event is related to customer, (an event that starts with customer_ ), can we expect the webhook’s payload to have the customer href always?
Hi @gokul, yes, any events related to a Customer resource would have the Customer’s href in the webhook payload.
Here’s an example payload for the event ccustomer_funding_source_added which includes links to the Master Account, the event, the newly created funding-source resource, and the Customer account to whom the funding-source was attached -
"_links": {
"self": {
"href": "https://api-sandbox.dwolla.com/events/84f296e9-08a6-46b2-bb23-bd25552492f5"
},
"account": {
"href": "https://api-sandbox.dwolla.com/accounts/ad5f2162-404a-4c4c-994e-6ab6c3a13254"
},
"resource": {
"href": "https://api-sandbox.dwolla.com/funding-sources/00e17e13-8ebb-4160-96e7-c632170ef9f9"
},
"customer": {
"href": "https://api-sandbox.dwolla.com/customers/e358a488-6699-4d79-bbfb-c5bf58100ea4"
}
},
"id": "84f296e9-08a6-46b2-bb23-bd25552492f5",
"resourceId": "00e17e13-8ebb-4160-96e7-c632170ef9f9",
"topic": "customer_funding_source_added",
"timestamp": "2017-01-20T22:15:48.265Z",
"created": "2017-01-20T22:15:48.265Z"
}
You can also check out our Webhook Events article for more examples of webhook payloads for Customer related events.
Please let us know if you come across any questions!
1 Like