POST
/
v2
/
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"
  }
}

Headers

api-key
string
required

API key is required to call Solid APIs. You can view and manage your API keys in the Solid dashboard.

Body

application/json
description
string

description of the webhook

url
string

url of the webhook endpoint

events
string[]

an array of events to enable for this webhook endpoint. Example ["transaction.status.declined","transaction.status.received"]

Response

201
application/json
Create a Webhook
id
string

unique id of the webhook created

client_id
string

unique id of the client that issued the card

description
string

description of the webhook

url
string

url of the webhook endpoint

events
string[]

an array of events to enable for this webhook endpoint. Example ["transaction.status.declined","transaction.status.received"]

secret
string

webhook signing secret which is returned only at the time of webhook creation

status
enum<string>

status of the webhook

Available options:
active,
inactive
timestamps
object