clientId and userEmail are resolved from the JWT token and do not needAuthorization: ********************{
"type": "PAYMENT",
"url": "https://example.com/webhook/payment",
"descriptions": "Webhook for payment notifications",
"criteriaMethods": [
{
"code": "EWALLET_TNG",
"name": "e-Wallet TNG",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
},
{
"code": "EWALLET_GRABPAY",
"name": "e-Wallet GRABPAY",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
}
]
}curl --location --request POST '/v1/webhooks' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "PAYMENT",
"url": "https://example.com/webhook/payment",
"descriptions": "Webhook for payment notifications",
"criteriaMethods": [
{
"code": "EWALLET_TNG",
"name": "e-Wallet TNG",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
},
{
"code": "EWALLET_GRABPAY",
"name": "e-Wallet GRABPAY",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
}
]
}'{
"status": "200",
"message": "success",
"data": {
"id": 1,
"webhookId": "WBH-20240101-ABC123",
"type": "PAYMENT",
"url": "https://example.com/webhook/payment",
"descriptions": "Webhook for payment notifications",
"createdDate": "2024-01-01T10:00:00+07:00",
"updatedDate": "2024-01-01T10:00:00+07:00",
"criteriaMethods": [
{
"code": "EWALLET_TNG",
"name": "e-Wallet TNG",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
},
{
"code": "EWALLET_GRABPAY",
"name": "e-Wallet GRABPAY",
"groupCode": "EWALLET",
"groupName": "e-Wallet"
}
]
}
}