CBL | DevPortal
  • Welcome to the Central Bank of Libya Developer Portal | DevPortal
  • LYPay
    • LYPay Instant Payment System
    • Regulatory Guidelines & Compliance
    • Accounting & Settlement in LYPay
    • LYPay Instant Payment System – Technical Overview
    • API Documentation
      • About the APIs
      • API reference
        • Webhooks
        • Auth
          • Revoke
        • Api
          • V1
            • Miscs
              • Institutions
              • Transaction status
            • Payments
              • Funds transfers
                • Refund
                • Confirm
              • Debited funds transfers
              • Credited funds transfers
                • By internal merchant reference
              • Details
            • Auth
              • Token
              • Password
                • Reset
      • Specification
    • NUMO QR Code Standards
  • Contact & Support
Powered by GitBook
On this page
  1. LYPay
  2. API Documentation
  3. API reference

Webhooks

This page describes the APIs (Webhooks) that should be provided by the Bank or Financial Institutions in order to receive notifications and transaction status Update

PreviousAPI referenceNextAuth

Receive Webhook Notifications

post

Receives webhook notifications from the IPS. The webhook payload can be for transaction status updates (successful or failed) or transaction credit notices. A 'Signature' header with an HMAC value must be provided.

Header parameters
SignaturestringRequired

HMAC signature for webhook authentication

Example: {HMAC VALUE}
Body
one ofOptional
or
Responses
200
Webhook processed successfully
default
An error response object
application/json
post
POST /webhooks HTTP/1.1
Host: 127.0.0.1:8080
Signature: {HMAC VALUE}
Content-Type: application/json
Accept: */*
Content-Length: 168

{
  "webhook": "transaction_status_update",
  "data": {
    "payment_reference": "REF123456789",
    "status": "completed",
    "status_code": "04",
    "amount": {
      "amount": "50000",
      "currency": "LYD"
    }
  }
}

No content