curl --location 'https://api.nomba.com/v1/webhooks/events' \
--header 'Authorization: Bearer <token> \
--header 'Content-Type: application/json' \
--header 'accountId: <accountId>'\
--data '{
"accountId": "6703XXXd1-158a-42XX-8f0b-XXXXXXXXX",
"limit": 20
}'
{
"code": "200",
"description": "Webhook events fetched successfully",
"data": {
"list": [
{
"webHookId": 782,
"eventURL": "https://hip-guinea-supr.net",
"description": "new",
"eventType": "order_success",
"enabled": true
},
{
"webHookId": 257,
"eventURL": "https://hip-guinea-supr.net",
"description": "new",
"eventType": "payment_success",
"enabled": true
}
],
"pageToken": ""
}
}
Learn how to fetch all webhook event types.
curl --location 'https://api.nomba.com/v1/webhooks/events' \
--header 'Authorization: Bearer <token> \
--header 'Content-Type: application/json' \
--header 'accountId: <accountId>'\
--data '{
"accountId": "6703XXXd1-158a-42XX-8f0b-XXXXXXXXX",
"limit": 20
}'
{
"code": "200",
"description": "Webhook events fetched successfully",
"data": {
"list": [
{
"webHookId": 782,
"eventURL": "https://hip-guinea-supr.net",
"description": "new",
"eventType": "order_success",
"enabled": true
},
{
"webHookId": 257,
"eventURL": "https://hip-guinea-supr.net",
"description": "new",
"eventType": "payment_success",
"enabled": true
}
],
"pageToken": ""
}
}
POST /v1/webhooks/events
Hide object
Hide event object
payment_success
).curl --location 'https://api.nomba.com/v1/webhooks/events' \
--header 'Authorization: Bearer <token> \
--header 'Content-Type: application/json' \
--header 'accountId: <accountId>'\
--data '{
"accountId": "6703XXXd1-158a-42XX-8f0b-XXXXXXXXX",
"limit": 20
}'
{
"code": "200",
"description": "Webhook events fetched successfully",
"data": {
"list": [
{
"webHookId": 782,
"eventURL": "https://hip-guinea-supr.net",
"description": "new",
"eventType": "order_success",
"enabled": true
},
{
"webHookId": 257,
"eventURL": "https://hip-guinea-supr.net",
"description": "new",
"eventType": "payment_success",
"enabled": true
}
],
"pageToken": ""
}
}