Skip to main content
POST
/
v1
/
webhooks
Create a webhook subscription
curl --request POST \
  --url http://localhost:8080/v1/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "payout.created"
  ],
  "metadata": {}
}
'
{
  "id": "whs_cq1234567890abcdef",
  "merchant_id": "<string>",
  "url": "<string>",
  "events": [
    "payout.created"
  ],
  "status": "active",
  "version": "<string>",
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Merchant API key: ak_live_... or ak_test_...

Body

application/json
url
string<uri>
required
events
enum<string>[]
required
Available options:
payout.created,
payout.approved,
payout.processing,
payout.sent,
payout.completed,
payout.failed,
payout.cancelled,
payout.returned,
beneficiary.created,
beneficiary.updated,
beneficiary.deleted,
batch.uploaded,
batch.completed,
batch.failed,
balance.low,
funding.credit,
screening.hit
metadata
object

Response

201 - application/json

Subscription created

id
string
Example:

"whs_cq1234567890abcdef"

merchant_id
string
url
string<uri>
events
enum<string>[]
Available options:
payout.created,
payout.approved,
payout.processing,
payout.sent,
payout.completed,
payout.failed,
payout.cancelled,
payout.returned,
beneficiary.created,
beneficiary.updated,
beneficiary.deleted,
batch.uploaded,
batch.completed,
batch.failed,
balance.low,
funding.credit,
screening.hit
status
enum<string>
Available options:
active,
inactive
version
string
metadata
object
created_at
string<date-time>
updated_at
string<date-time>