curl --request POST \
--url https://api.sandbox.solidfi.com/v2/webhook \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{
"description": "Transaction Webhook",
"url": "http://test-url.com/txn-webhook",
"events": [
"transaction.status.declined",
"transaction.status.received"
]
}'
{
"id": "whk_0190e7185e4874dab687e7af88f6f368",
"client_id": "cli_01901368dbc174a9864a7cb156b0a207",
"description": "Transaction Webhook",
"url": "http://test-url.com/txn-webhook",
"events": [
"transaction.status.declined",
"transaction.status.received"
],
"status": "active",
"timestamps": {
"created_at": "2024-07-24T23:34:12Z",
"updated_at": "2024-07-25T10:22:11Z",
"deleted_at": "2024-07-26T05:45:19Z"
}
}
Create a Webhook
curl --request POST \
--url https://api.sandbox.solidfi.com/v2/webhook \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '{
"description": "Transaction Webhook",
"url": "http://test-url.com/txn-webhook",
"events": [
"transaction.status.declined",
"transaction.status.received"
]
}'
{
"id": "whk_0190e7185e4874dab687e7af88f6f368",
"client_id": "cli_01901368dbc174a9864a7cb156b0a207",
"description": "Transaction Webhook",
"url": "http://test-url.com/txn-webhook",
"events": [
"transaction.status.declined",
"transaction.status.received"
],
"status": "active",
"timestamps": {
"created_at": "2024-07-24T23:34:12Z",
"updated_at": "2024-07-25T10:22:11Z",
"deleted_at": "2024-07-26T05:45:19Z"
}
}
API key is required to call Solid APIs. You can view and manage your API keys in the Solid dashboard.
"{{api_key}}"
Create a Webhook
The response is of type object
.