Headers
Property | Type | Description |
---|---|---|
auth | String | Two types of Authentication header: - Basic: requires basic_username and basic_password . This header will be sent as Basic bas64(basic_username:basic_password)- Secret-key: only requires the secret key string. This header will be sent as Bearer secret_key. |
custom | String | Other constants headers that your endpoint requires. |
Body
Property | Type | Description |
---|---|---|
uuid | String | Webhook unique identifier (autogenerated). |
name | String | Webhook name. |
description | String | Webhook description. |
event | String | Event you want to suscribe to. To suscribe to all events send ‘ALL’ string. |
url | String | Webhook endpoint URL. |
is_active | Boolean | Webhook enabled or disabled. |
Example
{
"uuid": "ISGW-4-585a16b094d64ae99d019caf27795536",
"name": "webhook_1",
"description": "My webhook #1",
"event":"TRANSACTION_EVENT",
"headers": {
"auth": {
"basic_username": "my_user",
"basic_password": "my_pass",
"secret_key": "my_secret_key"
},
"custom": {
"header_key_1": "value_1",
"header_key_2": "value_2"
}
},
"url": "http://merchant-host.com/callback",
"is_active": true
}