x-api-key: ********************
{
"events": [
"payment.success",
"payment.failed"
],
"url": "https://api.example/webhooks/lopay"
}
curl --location --request POST 'https://api.lopay.com/api/1/partner/webhooks' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"events": [
"payment.success",
"payment.failed"
],
"url": "https://api.example/webhooks/lopay"
}'
{
"id": "ep_1srOrx2ZWZBpBUvZwXKQmoEYgab",
"events": [
"payment.success",
"payment.failed"
],
"url": "https://api.example/webhooks/lopay",
"webhookSecretKey": "whsec_YXDKaykd6oBK7J/hrFqstWuFfAxbVFSl"
}