Enkash APIs
HomePayment GatewayPayoutsCreate Account
HomePayment GatewayPayoutsCreate Account
Login
  1. Webhook Data Apis
  • Payouts Overview
  • Payouts Sign Up
  • Payout Methods
  • Payout API Response Codes
  • Payouts Integration Steps
  • Encrypting and Decrypting Payload
  • Payouts Status Codes
  • Get Authentication Token
    • Get Authentication Token
  • Beneficiary Apis
    • Create Beneficiary
    • Search Beneficiary
    • Delete Beneficiary
  • Transfer Apis
    • Create Payout
    • Search Payouts
    • Create Batch Payout
  • Payout Account Apis
    • Get Balance
    • Get Source Bank Account Details
    • Add Source Bank Account
    • Fetch Bank Statement
  • Webhook Data Apis
    • Get Webhook Data
      GET
    • Create Webhook Data
      POST
  1. Webhook Data Apis

Create Webhook Data

POST
/api/v0/webhook-data
Webhook Data Apis

Request

Body Params application/json
headers
object 
optional
Additional properties
string 
optional
webhookUrl
string 
required
sslCertificate
string 
optional
events
array[string]
required
Allowed values:
PAYOUT_SUCCESSPAYOUT_PENDINGPAYOUT_FAILEDUTILITY_BILLPAY_SUCCESSUTILITY_BILLPAY_FAILEDUTILITY_BILLPAY_PENDING
enabled
boolean 
optional
companyId
string 
optional
Match pattern:
^CEK[A-Z0-9]{7}$
Example
{
    "headers": {
        "property1": "string",
        "property2": "string"
    },
    "webhookUrl": "string",
    "sslCertificate": "string",
    "events": [
        "PAYOUT_SUCCESS"
    ],
    "enabled": true,
    "companyId": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test.your-api-server.com/api/v0/webhook-data' \
--header 'Content-Type: application/json' \
--data-raw '{
    "headers": {
        "property1": "string",
        "property2": "string"
    },
    "webhookUrl": "string",
    "sslCertificate": "string",
    "events": [
        "PAYOUT_SUCCESS"
    ],
    "enabled": true,
    "companyId": "string"
}'

Responses

🟢200OK
*/*
OK
Body
response_code
integer <int32>
optional
response_message
string 
optional
payload
object (WebhookDataResponse) 
optional
companyId
string 
optional
headers
object 
optional
webhookUrl
string 
optional
sslCertificate
string 
optional
events
array[string]
optional
Allowed values:
PAYOUT_SUCCESSPAYOUT_PENDINGPAYOUT_FAILEDUTILITY_BILLPAY_SUCCESSUTILITY_BILLPAY_FAILEDUTILITY_BILLPAY_PENDING
enabled
boolean 
optional
Example
{
    "response_code": 0,
    "response_message": "string",
    "payload": {
        "companyId": "string",
        "headers": {
            "property1": "string",
            "property2": "string"
        },
        "webhookUrl": "string",
        "sslCertificate": "string",
        "events": [
            "PAYOUT_SUCCESS"
        ],
        "enabled": true
    }
}
Modified at 2024-10-10 08:30:40
Previous
Get Webhook Data
Built with