Conscent.ai Developer Documentation
  • Version 2.0
    • Using Conscent.ai
    • Web SDK
    • Login
    • Logout
    • User Details Drawer
    • Google One Tap
    • Mobile SDK
      • iOS(Swift)
        • In-App Purchases with Conscent
      • Android SDK
      • React Native SDK
      • Google In-App Purchases with Conscent
      • Apple In-App Purchases with Conscent
    • Facebook SSO Integration Guide
    • Landing Page API v 2.0
    • AMP Integration
    • Integrating APIs(v2)
      • Purchase Details
      • User Registered Or Not
      • User Registrations
      • Subscription Plans Details
      • Get User Details
      • Add Subscription If User Registered
      • Update UserDetails
      • Update SubscriptionDetails
      • Get All Transaction Details
    • IAM System API Documentation
  • Version 1.0
    • Getting Started
    • On Board
    • Using Conscent.ai
    • Authentication
    • Web SDK
    • Login
    • Logout
    • Amp Documentation
    • Mobile SDK
      • Android
      • Flutter
      • iOS(Swift)
      • React Native SDK
    • Auto Login
    • Creating External Purchases
    • Landing Page API
  • Login Screen Customization
  • Integrating Client Payment Gateway
  • Integrating with APIs
    • User Details and Subscriptions Information
    • Purchased Subscriptions
    • User and Purchase Details
    • Client Purchases
    • Client Micropayments
    • Client Passes
    • Cancel Active Subscriptions
    • Delete User
  • Events API Docs
    • Different Types of Events
    • SSO Login Flow
  • Discount Coupon
    • Dynamic Coupon API Generation:
  • New Webhooks
    • Meter Banner Webhook
    • Paywall Webhook
    • SignUp Webhook
    • Refund Webhook
    • Purchase Webhook
    • Subscription Landing Page Webhook
    • Popup Webhook
    • User Update Webhook
    • Payment Gateway Webhook
    • Review Page Webhook
    • Transaction Webhook
    • Login Webhook
    • Cancel Subscription Webhook
  • Old Webhooks
    • Sign Up Webhook
    • Login Webhook
    • Subscription Payment Webhook
    • Subscription Cancelled Webhook
    • Pass Payment Webhook
    • Subscription Bundle Payment Webhook
    • Review Subscription Webhook
    • Micro Payment Webhook
    • How to validate Webhooks?
  • Registering The Content
    • Create Content
    • Edit Content
    • View Content
  • Country Code List
  • Supported Currencies and Payment Gateways
    • Stripe Supported Country with Currency
    • Razorpay Supported Country with Currency
    • Paypal Supported Country with Currency
  • Errors
  • Loyalty System
    • Web SDK
    • iOS SDK
    • Android SDK
    • Flutter SDK
    • API from server
Powered by GitBook
On this page
  1. New Webhooks

Refund Webhook

A Refund Webhook is used in payment processing systems to notify or trigger actions in response to refund transactions.

Refund.pay_per_use: This event is triggered when a refund is created for a Pay-per-use.

{
  "entity": "event",
  "user_id": "65dde318171dbd055b502de3",
  "event": "refunded.pay_per_use",
  "contains": [
    "refund",
    "user"
  ],
  "payload": {
    "refund": {
      "_id": "65e0220ed03692125f1f3592",
      "paymentGatewayRefundId": "rfnd_NgatMWS157Nzyu",
      "amount": 1,
      "currency": "INR",
      "cancelAccess": false,
      "userId": "65dde318171dbd055b502de3",
      "clientId": "65015ff10070846629fb981e",
      "createdAt": "2024-02-29T06:19:58.420Z",
      "transactionId": "65dde31b171dbd055b502de8",
      "updatedAt": "2024-02-29T06:20:28.907Z"
    },
    "user": {
      "phoneNumber": "8948948898",
      "userId": "65dde318171dbd055b502de3",
      "country": "IN",
      "address": {
        "apartment": "",
        "area": "",
        "pincode": "",
        "landmark": "",
        "city": "",
        "state": "",
        "country": ""
      },
      "name": "",
      "city": "new delhi (okhla phase i)",
      "location": {
        "latitude": 28.5223,
        "longitude": 77.2849,
        "postcode": "110001"
      },
      "username": "8948948898"
    }
  },
  "client_info": {
    "userAgent": "axios/0.21.1",
    "country": "India",
    "countryCode": "IN",
    "deviceType": "desktop"
  },
  "created_at": 1709187629
}

Refund.subscription: This event is triggered when a refund is created for a subscription.

{
  "entity": "event",
  "user_id": "65e01719d03692125f1f323f",
  "event": "refunded.subscription",
  "contains": [
    "user",
    "refund"
  ],
  "payload": {
    "user": {
      "phoneNumber": "8383884833",
      "email": "fvdzcxz@rsgfdcx.fvc",
      "userId": "65e01719d03692125f1f323f",
      "country": "IN",
      "address": {
        "apartment": "",
        "area": "",
        "pincode": "",
        "landmark": "",
        "city": "",
        "state": "",
        "country": ""
      },
      "name": "dfsxzc dvzxc",
      "city": "new delhi (okhla phase i)",
      "location": {
        "latitude": 28.5223,
        "longitude": 77.2849,
        "postcode": "110001"
      },
      "username": "8383884833"
    },
    "refund": {
      "_id": "65e01fe8d03692125f1f356a",
      "paymentGatewayRefundId": "rfnd_NgajgFeD4I04Ve",
      "amount": 1,
      "currency": "INR",
      "cancelAccess": false,
      "userId": "65e01719d03692125f1f323f",
      "clientId": "65015ff10070846629fb981e",
      "createdAt": "2024-02-29T06:10:48.435Z",
      "transactionId": "65e01798d03692125f1f33e5",
      "updatedAt": "2024-02-29T06:11:18.961Z"
    }
  },
  "client_info": {
    "userAgent": "axios/0.21.1",
    "country": "India",
    "countryCode": "IN",
    "deviceType": "desktop"
  },
  "created_at": 1709187079
}

Refund.pass: This event is triggered when a refund is created for a pass.

{
  "entity": "event",
  "user_id": "65d44453cc6cfa43c284a19c",
  "event": "refunded.pass",
  "contains": [
    "refund",
    "user"
  ],
  "payload": {
    "refund": {
      "_id": "65e02242d03692125f1f3593",
      "paymentGatewayRefundId": "rfnd_NgauHW7CMRO717",
      "amount": 1,
      "currency": "INR",
      "cancelAccess": false,
      "userId": "65d44453cc6cfa43c284a19c",
      "clientId": "65015ff10070846629fb981e",
      "createdAt": "2024-02-29T06:20:50.593Z",
      "transactionId": "65d44503cc6cfa43c284a1e6",
      "updatedAt": "2024-02-29T06:21:21.144Z"
    },
    "user": {
      "phoneNumber": "9598598585",
      "userId": "65d44453cc6cfa43c284a19c",
      "country": "IN",
      "address": {
        "apartment": "",
        "area": "",
        "pincode": "",
        "landmark": "",
        "city": "",
        "state": "",
        "country": ""
      },
      "name": "",
      "city": "new delhi (pocket c)",
      "location": {
        "latitude": 28.5246,
        "longitude": 77.2793,
        "postcode": "110001"
      },
      "username": "9598598585"
    }
  },
  "client_info": {
    "userAgent": "axios/0.21.1",
    "country": "India",
    "countryCode": "IN",
    "deviceType": "desktop"
  },
  "created_at": 1709187681
}
PreviousSignUp WebhookNextPurchase Webhook

Last updated 1 year ago