- Introduction
- Environments
- Authentication
- Webhooks
- Terminal ordering
- Reporting
- Errors
- Getting started
- Payment Links
- Webhook subscriptions
- Merchants
- List all merchantsGET
- Register a new merchantPOST
- Get merchant detailsGET
- Update merchant bank details for receiving payouts. PUT
- Get merchant onboarding linkGET
- Create account session with permissions for the specified embedded components.POST
- Get list of available hardware for given merchant to purchaseGET
- Order terminal hardware for the specified merchant.POST
- Marketing Deeplinks
- Reports
Update existing webhook subscription
Production Environment
Production Environment
PUT
/api/1/partner/webhooks/{id}
Webhook subscriptions
Request
Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
id
string <uuid>
required
Example:
ep_1srOrx2ZWZBpBUvZwXKQmoEYgab
Body Params application/json
events
array[string]
required
Allowed values:
merchant.capabilities.updatedmerchant.payout.createdmerchant.payout.paidmerchant.payout.cancelledmerchant.payout.failedpayment.successpayment.failedpaymentLink.createdpaymentLink.updatedpaymentLink.revoked
url
string <uri>
required
merchantIds
array[string <uuid>] | null
optional
<= 1 items
Example
{
"events": [
"payment.success"
],
"url": "https://api.example/webhooks/lopay"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.lopay.com/api/1/partner/webhooks/' \
--header 'Content-Type: application/json' \
--data-raw '{
"events": [
"payment.success"
],
"url": "https://api.example/webhooks/lopay"
}'
Responses
🟢200OK
application/json
Body
id
string
required
events
array[string]
required
Allowed values:
merchant.capabilities.updatedmerchant.payout.createdmerchant.payout.paidmerchant.payout.cancelledmerchant.payout.failedpayment.successpayment.failedpaymentLink.createdpaymentLink.updatedpaymentLink.revoked
url
string <uri>
required
Example
{
"id": "ep_1srOrx2ZWZBpBUvZwXKQmoEYgab",
"events": [
"payment.success",
"payment.failed"
],
"url": "https://api.example/webhooks/lopay"
}
🟠400Bad Request
🟠401Unauthorized
Modified at 2025-03-03 16:34:00