Purchase Details
Get the details of previously purchased subscriptions.
GET
{API_URL}/client/purchases/subscriptions
Auth required: YES
Please pass your API key as the username and API secret as the password as Basic Auth to access the endpoint
Query Parameters
Name
Type
Description
userId
String
user id of the user
from
ISODateString
to
ISODateString
phoneNumber
String
phone number of the user
String
email of the user
You need to pass either phone number or email of the user from which hw has made the purcahse.
{
"purchases": [
{
"purchaseId": "67a0705df09a0268df88a303",
"orderId": "order_Pr9hE1QCz6yDZp",
"renewSubscription": false,
"userId": "67a06ff5f09a0268df88a060",
"clientUserId": null,
"userEmail": "ayushhhhhhhh@gmail.com",
"userName": "asfghdg",
"billingAddress": {
"area": "ASDSFV",
"pincode": "2134",
"state": "sADFS",
"country": "SDAF",
"apartment": "",
"landmark": "",
"city": ""
},
"shippingAddress": {
"area": "",
"pincode": "",
"state": "",
"country": "",
"apartment": "",
"landmark": "",
"city": ""
},
"clientReferenceId": null,
"userAddress": {
"name": "ASDSF",
"area": "ASDSFV",
"pincode": "2134",
"state": "sADFS",
"country": "SDAF",
"apartment": "",
"city": "",
"landmark": ""
},
"subscriptionId": "677b78f1d57c7ff71baefe95",
"transactionId": "67a0703b74e35313f380bab7",
"gatewayPaymentId": "pay_Pr9hcIjMbN4Nf1",
"status": "COMPLETE",
"subscriptionName": "Autocar PRO PLUS Annual Subscription",
"subscriptionRate": 899,
"chargedAmount": 899,
"paymentSource": "",
"paymentMethod": "NETBANKING",
"taxIncludedInPrice": true,
"taxInformation": [
{
"category": "DIGITAL",
"taxAmount": 0,
"taxBasePrice": 899,
"clientTaxAmount": 0,
"clientTaxBasePrice": 899,
"taxRate": 0,
"taxName": "SGST",
"_id": "67a0705df09a0268df88a307"
},
{
"category": "PHYSICAL",
"taxAmount": 0,
"taxBasePrice": 0,
"clientTaxAmount": 0,
"clientTaxBasePrice": 0,
"taxRate": 0,
"taxName": "CGST",
"_id": "67a0705df09a0268df88a308"
}
],
"taxCountry": "IN",
"subscriptionStatus": "ACTIVE",
"daysSubscribed": 2,
"typeOfConversion": "RAZORPAY",
"loginCountLast30Days": 3,
"subscriptionType": "ONE_TIME",
"subscriptionDetails": {
"inrPrice": 899,
"duration": 12,
"originalSubscriptionPrice": 899,
"durationType": "months"
},
"revokedDate": null,
"revokeStatus": false,
"redeemedCouponCode": null,
"renewedSubscriptionDetails": null,
"manuallyRenewed": false,
"availedOffers": [],
"promotional": false,
"categories": [],
"freeTrial": false,
"migrated": false,
"clientId": "641b0e856e306e46f88e29c6",
"clientContentId": "102856",
"contentId": "64e46fd398e2135c3a9d4dea",
"buyingPrice": 899,
"price": 899,
"device": "desktop",
"priceDetails": {
"price": 899,
"currency": "INR",
"_id": "67a0705df09a0268df88a304"
},
"expiryDate": "2026-02-03T07:28:58.396Z",
"tierId": "677b78f1d57c7ff71baefe98",
"createdAt": "2025-02-03T07:29:33.613Z",
"updatedAt": "2025-02-03T07:29:33.660Z",
"partialAccess": false,
"sectionsInclude": [],
"authorsInclude": [],
"sectionsExclude": [],
"authorsExclude": [],
"tagsInclude": [],
"tagsExclude": []
}
],
"paginationInfo": {
"pageNumber": 1,
"pageSize": 500,
"recordsReturned": 1
}
}
Last updated