Ceffu OpenAPI Documentation Platform
  1. Development Tools and Resource
Ceffu OpenAPI Documentation Platform
  • Changes
    • Upcoming Changes
    • Change log
  • Development Tools and Resource
    • Overview
      • Welcome to Ceffu OpenAPI
    • Quickstart
      • Initial Setup
      • Using the Ceffu SDK
    • Authentication
    • Rate limit
    • Error Codes
    • Webhook Introduction
  • Concepts
    • Ceffu Custody
  • System Endpoints
    • Get System status
  • Wallet Management
    • Ceffu Supported Asset Endpoint
      • Get Prime Wallet supported coins list
      • Get Qualified Wallet supported coins list
      • Get Cosign Wallet supported coins list
    • Qualified Wallets and Prime Wallets Endpoint
      • Create Wallet
      • Update Wallet Details
      • Get Wallet List
      • Get Asset Details
      • Get Wallet Asset Summary
    • Deposits
      • Get Deposit Address
      • Get Deposit History
      • Get Deposit Detail
    • Withdrawals
      • Withdrawal
      • Get Withdrawal Fee (estimated)
      • Get Withdrawal History
      • Get Withdrawal Details
    • Whitelisted Addresses
      • Get Whitelisted Address List
      • Get Correspondent’s Options
      • Add/Edit Whitelisted Address
    • Transactions
      • Transaction History List
  • PW Sub Wallets
    • Sub-Wallet Management
      • Create Sub-Wallet
      • Update Sub-Wallet Details
      • Get Sub-Wallet List
      • Get Sub-Wallet Asset Details
      • Get Sub-Wallet Asset Summary
    • Sub-Wallet Deposits
      • Get Sub-Wallet Deposit Address
      • Get Deposit Address List under Prime Wallet
      • Get Deposit History under Sub-Wallet
      • Get Sub-Wallet Deposit History By Prime Wallet
    • Internal Transfers
      • Transfer between Sub Wallet and Prime Wallet
      • Get Transfer History between Sub-Wallet and Prime Wallet
    • Transactions
      • Get Transaction Details of Prime Wallet Internal Transfer
  • MirrorX
    • Link & Account
      • Get MirrorX LinkId List
    • Balances & Positions
      • Check MirrorX Available amount
      • Get MirrorX Asset Positions
    • Orders
      • Get MirrorX Orders
      • Place MirrorX Orders
  • Webhooks & Notifications
    • Resend webhook notifications
  • Archive
    • Mirror Endpoints
      • Get Mirror Linked Binance UID List
      • MIrror Assets Application
      • MIrror Assets Settlement
      • Get Mirror Operation Records
      • Get Mirrored Asset Positions
      • Get Mirrored Asset Summary
    • Wallet Endpoints
      • Get Transfer Detail with Exchange
      • Get Transfer History with Exchange
      • Transfer with Exchange
      • Get Withdrawal History
      • Get Withdrawal Details
      • Withdrawal
      • Get Sub-Wallet List (V1)
  1. Development Tools and Resource

Webhook Introduction

Overview:#

Webhooks allow Ceffu to send real-time notifications to your backend when important events occur (such as deposits or withdrawals). Instead of polling the API for updates, your system will automatically receive push callbacks from Ceffu. Once a webhook endpoint is configured, Ceffu will POST event data to your URL whenever a subscribed event happens. You can then verify the signature and process the event in your system.

How to start with The Webhook?#


1.
Webhook Setup Procedure on website
Navigate to Entity Management > Webhook Endpoint Management (after API key management) to set up a webhook endpoint
Click on the "Add Webhook Endpoint" button.
Provide an appropriate name for your webhook endpoint and specify the HTTPS URL.
Select the wallets linked to the webhook and indicate the types of events the webhook should monitor. For Prime Wallet Sub Wallets, please select "All Wallets."
Click on the "Submit" button to create the webhook.
Note:
You can create up to 30 webhooks.
When a new webhook is created, it is disabled by default. Enable it using the toggle switch once your service is ready.
For each event dispatched from the webhook, an HTTP status code 200 is expected to indicate successful delivery. If no response is received, the system will retry, with increasing delays between attempts: 30s, 120s, 480s, 1920s, and 7680s. If all retries fail, Ceffu will mark the delivery status as 'Failed'.
A webhook endpoint will be suspended after 500 failed notifications (this limit resets daily, UTC+0, or each time the webhook is re-enabled). You can manually re-enable it via the user interface to resume message reception.
Any response other than HTTP 200, including no response (“null”), is considered a failure.
There is a "Test" button on the website. Clicking it sends a POST request with empty data to the webhook endpoint. The test is successful if an HTTP 200 OK response is received within 10 seconds; otherwise, it fails. Failures from these tests will not be counted towards the suspension limit.

2.
Decode the data
Content type of response is in application/json
Response Example:
{
   "entityId": "36981140216868864",
   "webhookId": "1788141873578217474",
   "sign": "gawAT2ndVvqfyGmFmQwjHXzCRorHbcxFmz6uE/SUJHLZjmwlqUZNH2t6WiBdRHEuk9fvEREWQwBl5nN6pzsX4Q==",
   "event": "1",
   "timestamp": 1720606148847,
   "data": {
     "orderViewId": "20400454368144883712",
     "txId": null,
     "transferType": 20,
     "direction": 10,
     "fromAddress": "1544594690749788161",
     "toAddress": "1572553622146764801",
     "network": null,
     "coinSymbol": "TRX",
     "amount": "1.33000000000000000000",
     "feeSymbol": null,
     "feeAmount": null,
     "status": 40,
     "confirmedBlockCount": null,
     "maxConfirmBlock": null,
     "unlockConfirm": null,
     "memo": null,
     "txTime": 1720606148703,
     "walletIdStr": "1572553622146764801"
   }
 }
Response structure:
AttributesDefinition
entityIdInstitution Id
webhookIdWebhook Id
signSignature of response
event
  • "1" (DEPOSIT_SUCCESS)
  • "2" (DEPOSIT_FAILED)
  • "3" (WITHDRAWAL_SUCCESS)
  • "4" (WITHDRAWAL_FAILED)
  • "5" (DEPOSIT_PENDING, Non-whitelisted From Address)
  • "11" (DELEGATION_SUCCESS)
  • "12" (DELEGATION_FAILED)
  • "13" (UNDELEGATION_SUCCESS)
  • "14" (UNDELEGATION_FAILED)
timestampUnix time
dataDetail data of corresponding event
Download Key for checking signature

Code Samples for verifying signature:#

Javascript:
Python:
Java:
Previous
Error Codes
Next
Ceffu Custody