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. Integrating with APIs

User and Purchase Details

Get the user Details and subscriptions.

GET {API_URL}/user/user-and-purchase-details

Auth required: NO

Query Parameters

Name
Type
Description

userId

String

user id of the user

email

String

email of the user

phoneNumber

String

phone number of the user

from

ISODateString

to

ISODateString

You need to pass either phone number or email of the user from which hw has made the purcahse.

{
    "userdetails": {
        "name": "Pushpankar",
        "phoneNumber": "9936225088",
        "secondaryEmail": "skdfjn@jnadf.com",
        "address": {
            "apartment": "Flat",
            "area": "Area",
            "pincode": "Zip",
            "landmark": "",
            "city": "City",
            "state": "ANDAMAN & NICOBAR ISLANDS",
            "country": "IN"
        },
        "country": "IN",
        "promotionalOptIn": true,
        "lastPurchasedOn": "2023-04-17T14:01:00.411Z",
        "wallet": {
            "balance": {
                "$numberDecimal": "0.00"
            },
            "currency": "INR"
        }
    },
    "userSubscriptions": [
        {
            "_id": "63b2b8b938dcac1e9a1d55c6",
            "client": "Demo Client",
            "price": 400,
            "gst": 61.01711999999999,
            "purchasedOn": "2023-01-02T10:58:01.603Z",
            "subscriptionTitle": "Digital",
            "expiryDate": "2023-02-02T10:58:01.600Z",
            "subscriptionType": {
                "physical": false,
                "digital": true,
                "adFree": false
            },
        "partialAccess": false,
	 "sectionsInclude": [],
	 "authorsInclude": [],
	 "sectionsExclude": [],
	 "authorsExclude": [],
	 "tagsInclude": [],
	 "tagsExclude": [],
            "benefits": "It's very good,Very Helpful,Good to read,Good content,50% OFF, 100% OFF",
            "logoUrl": "https://conscent-public.s3.ap-south-1.amazonaws.com/Static+Assets/Outlook-Logo.png\n",
            "freeTrial": false,
            "tierId": "6347b644bff071350cfd0f55",
            "clientId": "5f92a62013332e0f667794dc",
            "gstComponents": {
                "physical": 0,
                "digital": 0
            },
            "subscriptionDurationInMonths": 1,
            "subscriptionPriceInInr": 400,
            "allowCancellation": false,
            "cancellationUrl": "",
            "allowRenewal": true,
            "renewalUrl": "https://dashboards.tsbdev.co/dashboard/consumption?subscription=63b2b8b938dcac1e9a1d55c6"
        },
        {
            "_id": "637f9be1837ec364a7fa1683",
            "client": "Demo Client",
            "price": 49,
            "gst": 7.4745972,
            "purchasedOn": "2022-11-24T16:29:21.159Z",
            "subscriptionTitle": "AD Free-Lite",
            "expiryDate": "2022-12-24T16:29:21.153Z",
            "subscriptionType": {
                "physical": false,
                "digital": false,
                "adFree": true
            },
						"partialAccess": false,
			      "sectionsInclude": [],
			      "authorsInclude": [],
			      "sectionsExclude": [],
			      "authorsExclude": [],
			      "tagsInclude": [],
			      "tagsExclude": [],
            "benefits": "Ad-free experience, Digital Access, Premium Content",
            "logoUrl": "https://conscent-public.s3.ap-south-1.amazonaws.com/Static+Assets/Outlook-Logo.png\n",
            "freeTrial": false,
            "tierId": "61e951161a563d0729652d23",
            "clientId": "5f92a62013332e0f667794dc",
            "gstComponents": {
                "physical": 0,
                "digital": 0
            },
            "subscriptionDurationInMonths": 1,
            "subscriptionPriceInInr": 49,
            "allowCancellation": false,
            "cancellationUrl": "",
            "allowRenewal": true,
            "renewalUrl": "https://dashboards.tsbdev.co/dashboard/consumption?subscription=637f9be1837ec364a7fa1683"
        }
    ],
    "passes": [
        {
            "_id": "637c710d7153ef201cd8be8f",
            "client": "Demo Client",
            "price": 78,
            "gst": 11.898338399999998,
            "purchasedOn": "2022-11-22T06:49:49.989Z",
            "expiryDate": "2022-11-22T13:49:49.968Z",
            "freeTrial": false,
            "clientId": "5f92a62013332e0f667794dc",
            "gstComponents": {
                "physical": 0,
                "digital": 0
            }
        }
    ],
    "payPerUses": [
        {
            "_id": "643d511c0dfb996ad37a0f1c",
            "client": "Demo Client",
            "price": 10,
            "gst": 1.525428,
            "purchasedOn": "2023-04-17T14:01:00.377Z",
            "expiryDate": "2023-04-24T14:01:00.350Z",
            "freeTrial": false,
            "clientId": "5f92a62013332e0f667794dc",
            "gstComponents": {
                "physical": 0,
                "digital": 0
            }
        },
        {
            "_id": "642bbb2b5a3e9b1441cbb058",
            "client": "Demo Client",
            "price": 9999,
            "gst": 1525.2754572,
            "purchasedOn": "2023-04-04T05:52:43.823Z",
            "expiryDate": "2023-04-06T05:52:43.810Z",
            "freeTrial": false,
            "clientId": "5f92a62013332e0f667794dc",
            "gstComponents": {
                "physical": 0,
                "digital": 0
            }
        },
        {
            "_id": "64103ec1644c430727a2b654",
            "client": "Demo Client",
            "price": 10,
            "gst": 1.525428,
            "purchasedOn": "2023-03-14T09:30:41.364Z",
            "expiryDate": "2023-03-16T09:30:41.345Z",
            "freeTrial": false,
            "clientId": "5f92a62013332e0f667794dc",
            "gstComponents": {
                "physical": 0,
                "digital": 0
            }
        },
        {
            "_id": "637f9b78837ec364a7fa151c",
            "client": "Demo Client",
            "price": 16,
            "gst": 2.4406848,
            "purchasedOn": "2022-11-24T16:27:36.304Z",
            "expiryDate": "2022-11-26T16:27:36.294Z",
            "freeTrial": false,
            "clientId": "5f92a62013332e0f667794dc",
            "gstComponents": {
                "physical": 0,
                "digital": 0
            }
        }
    ]
}
PreviousPurchased SubscriptionsNextClient Purchases

Last updated 2 months ago