Client Micropayments

Get the details of the micro-payments.

GET {API_URL}/client/purchases/micropayments

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

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.

{
    "purchases": [
        {
            "availedOffers": [],
            "promotional": false,
            "categories": [],
            "freeTrial": false,
            "migrated": false,
            "clientId": "5f92a62013332e0f667794dc",
            "clientContentId": "Client-Story-Id-1",
            "contentId": "61fba4adcbcaaf727a00168d",
            "buyingPrice": 8,
            "price": 10,
            "priceDetails": {
                "price": 10,
                "currency": "INR"
            },
            "expiryDate": "2023-04-15T10:22:57.494Z",
            "createdAt": "2023-04-13T10:22:57.507Z",
            "userId": "6346608680c2216fe33d84fa",
            "userEmail": "bnnnn@gmail.com",
            "userPhoneNumber": "8750314176",
            "userName": "Kajal",
            "userAddress": {
                "apartment": "ggghhh",
                "area": "kkkkkhhh",
                "pincode": "922111",
                "landmark": "sasshhh",
                "city": "jjjjjhhh",
                "state": "ffffffhhh",
                "country": "iiiiihhh"
            }
        },
        {
            "availedOffers": [],
            "promotional": false,
            "categories": [],
            "freeTrial": false,
            "migrated": false,
            "clientId": "5f92a62013332e0f667794dc",
            "clientContentId": "Client-Story-Id-3",
            "contentId": "620b94557bef8873d93bf32b",
            "buyingPrice": 8,
            "price": 10,
            "priceDetails": {
                "price": 10,
                "currency": "INR"
            },
            "expiryDate": "2023-03-26T06:58:54.416Z",
            "createdAt": "2023-03-16T06:58:54.434Z",
            "userId": "6346608680c2216fe33d84fa",
            "userEmail": "bnnnn@gmail.com",
            "userPhoneNumber": "8750334265",
            "userName": "Kajal",
            "userAddress": {
                "apartment": "ggghhh",
                "area": "kkkkkhhh",
                "pincode": "922111",
                "landmark": "sasshhh",
                "city": "jjjjjhhh",
                "state": "ffffffhhh",
                "country": "iiiiihhh"
            }
        },
        {
            "availedOffers": [],
            "promotional": false,
            "categories": [],
            "freeTrial": false,
            "migrated": false,
            "clientId": "5f92a62013332e0f667794dc",
            "clientContentId": "Client-Story-Id-1",
            "contentId": "61fba4adcbcaaf727a00168d",
            "buyingPrice": 16,
            "price": 20,
            "priceDetails": {
                "price": 20,
                "currency": "INR"
            },
            "expiryDate": "2023-02-11T07:39:49.821Z",
            "createdAt": "2023-02-09T07:39:49.856Z",
            "userId": "6346608680c2216fe33d84fa",
            "userEmail": "bnnnn@gmail.com",
            "userPhoneNumber": "8750334265",
            "userName": "Kajal",
            "userAddress": {
                "apartment": "ggghhh",
                "area": "kkkkkhhh",
                "pincode": "922111",
                "landmark": "sasshhh",
                "city": "jjjjjhhh",
                "state": "ffffffhhh",
                "country": "iiiiihhh"
            }
        }
    ],
    "paginationInfo": {
        "pageNumber": 1,
        "pageSize": 3,
        "recordsReturned": 3
    }
}

Last updated