Micro Payment Webhook

This event occurs when the user makes the payment for per article/content.

You can register your webhook endpoint for receiving ConsCent purchased content data by logging in to your ConsCent Client Dashboard and navigating to the Webhook Page. You will be able to enable/disable and edit your webhook URL from this section. Once the webhook URL is registered and the webhook is in the enabled state - the endpoint will receive the user's purchased content data anytime the user purchases any content on the client's platform or application via ConsCent. Moreover, the webhook is secured by basic auth using the Client's API Key and API Secret provided by ConsCent on the SDK Integration section of the client dashboard - ConsCent Client Integration. You can optionally choose to keep the endpoint protected and authenticate using the provided credentials which are passed in the headers of the POST request to the configured webhook endpoint.

Micro Payment JOSN
{
  "gstComponents": {
    "physical": 0,
    "digital": 0
  },
  "inrGstComponents": {
    "physical": 0,
    "digital": 0
  },
  "contentType": {
    "digital": true,
    "adFree": false
  },
  "categories": [],
  "bundle": false,
  "bundleContentIds": [],
  "paymentType": [
    "REPEAT"
  ],
  "migrated": false,
  "_id": "6437ade44c60bc0552ad3477",
  "userAccount": "642ed4902107e35b19bf29fa",
  "clientId": "5f92a62013332e0f667794dc",
  "paywallId": "6435427bb0658c70abe7d18d",
  "clientContentId": "Client-Story-Id-4",
  "contentId": "61fa72efb76afa4ce17fde95",
  "buyingPrice": 79.2,
  "price": 99,
  "country": "IN",
  "city": "deoli",
  "location": {
    "latitude": 28.5025,
    "longitude": 77.2312
  },
  "userCountry": "IN",
  "expiryDate": "2023-04-20T07:23:16.810Z",
  "priceDetails": {
    "price": 99,
    "currency": "INR"
  },
  "type": "CONTENT",
  "operatingSystem": "Mac OS",
  "device": "desktop",
  "createdAt": "2023-04-13T07:23:16.829Z",
  "updatedAt": "2023-04-13T07:23:16.829Z",
  "__v": 0,
  "userId": "642ed4902107e35b19bf29fa",
  "userPhoneNumber": "9488298324",
  "userName": "",
  "userAddress": {
    "apartment": "",
    "area": "",
    "pincode": "",
    "landmark": "",
    "city": "",
    "state": "",
    "country": ""
  }
}

Last updated