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