Skip to content
ChainPesaDocsTest mode
Dashboard

Webhooks

Event types

Every event, when it is sent and what it carries.

The data object for each event. Amounts are strings in major units, the same as the API.

payment.completedA payment received the full amount.
data
{
  "id": "pay_Qm3x9Tq1LbZa",
  "amount": "250.000000",
  "paid": "250.000000",
  "currency": "USDT",
  "settle_to": null,
  "reference": "order_1042"
}
payment.underpaidThe customer sent less than the amount due.
data
{
  "id": "pay_Qm3x9Tq1LbZa",
  "expected": "250.000000",
  "received": "200.000000",
  "currency": "USDT"
}
payment.expiredA payment was not paid in time.
data
{
  "id": "pay_Qm3x9Tq1LbZa"
}
payout.awaiting_fundingA Stable Connector payout is waiting for your customer to fund it.
data
{
  "id": "po_7Hc2kLm9PqRs",
  "payment_id": "pay_Qm3x9Tq1LbZa"
}
payout.pending_approvalA large payout is waiting for a second person.
data
{
  "id": "po_7Hc2kLm9PqRs"
}
payout.completedThe money was sent.
data
{
  "id": "po_7Hc2kLm9PqRs",
  "psp_ref": "10238",
  "currency": "NGN",
  "amount": "50000.00",
  "reference": "payout_77"
}
payout.failedThe payout did not go through. Your money has been returned.
data
{
  "id": "po_7Hc2kLm9PqRs",
  "reason": "Beneficiary account rejected by bank"
}
payout.cancelledA waiting payout was cancelled.
data
{
  "id": "po_7Hc2kLm9PqRs"
}
settlement.completedMoney reached your bank or mobile-money account.
data
{
  "id": "stl_4Kd8mNp2QrSt",
  "currency": "NGN",
  "amount": "125000.00",
  "transfer_fee": "0.00",
  "trigger": "scheduled"
}
settlement.failedA settlement did not go through. The balance is restored.
data
{
  "id": "stl_4Kd8mNp2QrSt",
  "currency": "NGN",
  "reason": "Beneficiary account rejected by bank"
}
withdrawal.pending_approvalA large wallet withdrawal is waiting for a second person.
data
{
  "id": "wd_9Lm3pQr5StUv"
}
withdrawal.completedStablecoins left your wallet.
data
{
  "id": "wd_9Lm3pQr5StUv",
  "amount": "100.000000",
  "currency": "USDT",
  "network": "TRON",
  "tx_hash": "0x5f1c9a"
}
withdrawal.failedA withdrawal did not go through. Your balance is restored.
data
{
  "id": "wd_9Lm3pQr5StUv",
  "reason": "chain unavailable"
}