Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: moniepoint-webhook-idand moniepoint-webhook-timestamp , is in notification header.

Sample Notification Received:

...

Code Block
{
  "user-agent": "ReactorNetty/1.1.9",
  "content-length": "623",
  "accept": "application/json",
  "accept-encoding": "gzip",
  "content-type": "application/json",
  "moniepoint-webhook-id": "a7603882-b75e-43b8-bb0e-f8d95d9a05e7",
  "moniepoint-webhook-signature": "muPzWhsvQfqKrRegthzLrNk3CMX7D6APTgEyxXgRABc=",
  "moniepoint-webhook-timestamp": "1730475285755",
  "x-forwarded-for": "141.147.77.31",
  "x-forwarded-host": "webhook-subscription.free.beeceptor.com",
  "x-forwarded-proto": "https"
}

Payload:

Code Block
{
  "data": {
    "amount": 25300,
    "businessId": 150,
    "customFields": {
      "Invoice ID": "iu12$%h"
    },
    "responseCode": "09",
    "terminalSerial": "TestDev24",
    "businessOwnerId": 100,
    "responseMessage": "Airtime Purchase Pending",
    "transactionTime": "2024-09-24T09:32:57.916+0100",
    "transactionType": "AIRTIME",
    "merchantReference": "",
    "transactionStatus": "PENDING",
    "transactionReference": "ATP|2MPT0073|1838496008589305650183849600858930565120",
    "retrievalReferenceNumber": ""
  },
  "eventId": "91478699df6e5ca5-aec78c5e-49b542c8-b0d89a93-6996864febccbd21cfa650ba",
  "subject": {
    "domain": "CHANNELS",
    "resource": "business",
    "resourceId": "150"
  },
  "createdAt": "2024-11-01T16:3419:4557.692223987912103129",
  "eventType": "V1_POS_AIRTIME_TRANSACTION"
}