Skip to main content
Your callback URL is the address to which LigdiCash sends result notifications. You provide it in the callback_url field of every transaction creation request.

Technical requirements

CriterionRequired
ProtocolHTTP or HTTPS
AccessibilityPublicly reachable from the internet
AuthenticationNo basic auth or token in the URL
Accepted methodPOST
Accepted formatsapplication/json and application/x-www-form-urlencoded
In production, prefer HTTPS to protect data in transit — even though HTTP is technically accepted by LigdiCash.

Setting the callback at creation

Depending on the transaction type, callback_url is passed in two different places in the request body. In the commande object — for Payout:
In the actions object — for Payin:
You can use a different URL per transaction type or a single URL that dispatches based on the payload content.

Local development

Your local machine is not reachable from the internet. To test the callback locally, use a tunnel like ngrok or Expose, which creates a public HTTPS URL pointing to your local server.
The ngrok URL changes every time you restart on the free plan. Use a fixed subdomain or deploy to a staging environment for more stable testing.