LogoLogo
  • Welcome!
  • Integrating Klasha
    • Getting Started
    • Prerequisites
    • Integration Checklist
    • Wrap Up
  • Overview
    • Introduction
    • Parameters
    • Token Generation
    • Errors
    • Countries & Payment Methods
  • Accepting Payments
    • Test Payments
    • Payments API
      • Mobile money
      • USSD
    • Payment Link
      • Dashboard
      • Payment Link API
    • Klasha Inline
    • HTML Checkout
  • PLUGINS AND SDKS
    • Plugins
    • Mobile SDKs
    • Web SDKs
  • MISC
    • Transaction Status
    • Webhook
    • API Status
  • Features
    • One-time Payments
    • Recurrent Payment
  • Transfers
    • Payout
      • ZAR Payout(new encryption)
      • KES Payout(new encryption)
      • ZMW Payout(new encryption)
      • TZS Payout(new encryption)
      • CNY Payout(new encryption)
    • Klasha Wire API
    • Swap API
    • Currency Coverage
  • Bank Account Collection
    • Virtual Account Creation
    • VA balance and statement
    • Business Identification Service
Powered by GitBook
On this page
  1. MISC

Webhook

Webhook response

If you have Webhook notifications set up on your dashboard, we will send you a transaction response, a sample of which can be found below:

{
  "event": "charge.completed",
  "data": {
    "createdAt": "2021-11-18T15:23:16.781",
    "narration": "CARD Transaction ",
    "destinationCurrency": "NGN",
    "sourceAmount": 0.0023,
    "sourceCurrency": "USD",
    "tnxRef": "test910-on2007u047e-errrtd",
    "status": "successful",
    "destinationAmount": 1,
    "customer": {
      "id": 13,
      "name": "Steph Oj",
      "email": "stephen@klasha.com",
      "phone": null,
      "createdAt": "2021-07-20 10:28:43",
      "updatedAt": "2021-07-20 10:28:43"
    }
  }
}

Resend Webhook

POST {{env_url}}/nucleus/tnx/webhook?reference={{tx_ref}}

This endpoint allows you to resend webhooks from failed sending queues to your server.

You’d need to pass, as header the x-auth-token. This can be obtained from your merchant dashboard → Settings → Generate API keys → Merchant public key.

Headers

Name
Value

Content-Type

application/json

x-auth-token

Your merchant public key

Authorization

Bearer {{token}}

Query Params

"reference": {{tx_ref}}

Response

{
    "message": "webhook sent for reference {{tx_ref}}",
    "error": null,
    "data": null
}
PreviousTransaction StatusNextAPI Status

Last updated 9 months ago