Webhooks allow your server to automatically receive notifications about events in our system. Instead of periodically polling the API, you configure one endpoint and we send you an HTTP request for each important event.
To connect webhooks, you need:
{
"type": "charge",
"action": "charge_settle",
"merchant": "lasta",
"buyer": {
"id": "UUID",
"email": "email@email.email",
"metaData": {
"key": "value from buyer meta"
}
},
"chargeData": {
"id": "UUID",
"status": "settled",
"buyerId": "UUID",
"buyerEmail": "email@email.email",
"buyerMetaData": {
"key": "value from buyer meta"
},
"firstName": "first name",
"lastName": "last name",
"createdAt": "2024-03-30 23:35:00.123456",
"isServiceFee": true,
"order": {
"id": "UUID",
"type": "initial",
"currency": "USD",
"amount": "123.12",
"metaData": {
"key": "value from order meta"
},
"locale": "en"
},
"paymentMethod": {
"type": "card",
"data": {
"bin": "123456",
"lastFour": "1234"
},
"binData": {
"bin": "123456",
"brand": "visa",
"issuer": "WELLS FARGO BANK NA",
"cardType": "DEBIT",
"cardLevel": "CLASSIC",
"countryIsoTwo": "US"
}
},
"provider": {
"name": "provider",
"mid": {
"name": "mid"
}
}
}
}