curl --request GET 'https://api.mayar.id/credit/v1/credit/customer/paginate-credit-history/PQVS4KGY?productId=40f26fbe-f4d8-4693-975f-e6d105d291e6&membershipTierId=261acae0-d6ae-4d8c-adf5-6fb8c2361514&page=1&limit=5' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data ''
{
    "statusCode": 200,
    "message": "success",
    "total": 10,
    "page": 1,
    "limit": 5,
    "totalPages": 2,
    "data": [
        {
            "id": "68a84724c8d5f89bdeae7346",
            "createdAt": "2025-08-22T10:32:04.204Z",
            "amount": -100000,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "walletType": "MEMBERSHIP",
            "type": "EXPIRE_VOID",
            "referenceId": "68a56306c8d5f89bdeae32fd"
        },
        {
            "id": "68a84724c8d5f89bdeae7344",
            "createdAt": "2025-08-22T10:32:03.972Z",
            "amount": 0,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "walletType": "MEMBERSHIP",
            "type": "EXPIRE_VOID",
            "referenceId": "68a562b2c8d5f89bdeae32fa"
        },
        {
            "id": "68a6b896c8d5f89bdeae3d5c",
            "createdAt": "2025-08-21T06:11:34.145Z",
            "amount": 6000,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "expiredAt": "2027-07-20T05:52:50.053Z",
            "walletType": "ADD_ON",
            "type": "TOPUP"
        },
        {
            "id": "68a6b31bc8d5f89bdeae3d2c",
            "createdAt": "2025-08-21T05:48:11.194Z",
            "amount": 5000,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "expiredAt": "2027-07-20T05:52:50.053Z",
            "walletType": "ADD_ON",
            "type": "TOPUP"
        },
        {
            "id": "68a573d7c8d5f89bdeae3370",
            "createdAt": "2025-08-20T07:05:59.723Z",
            "amount": -100000,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "expiredAt": null,
            "walletType": "MEMBERSHIP",
            "type": "CREDIT_USAGE"
        }
    ]
}
curl --request GET 'https://api.mayar.id/credit/v1/credit/customer/paginate-credit-history/PQVS4KGY?productId=40f26fbe-f4d8-4693-975f-e6d105d291e6&membershipTierId=261acae0-d6ae-4d8c-adf5-6fb8c2361514&page=1&limit=5' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data ''
{
    "statusCode": 200,
    "message": "success",
    "total": 10,
    "page": 1,
    "limit": 5,
    "totalPages": 2,
    "data": [
        {
            "id": "68a84724c8d5f89bdeae7346",
            "createdAt": "2025-08-22T10:32:04.204Z",
            "amount": -100000,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "walletType": "MEMBERSHIP",
            "type": "EXPIRE_VOID",
            "referenceId": "68a56306c8d5f89bdeae32fd"
        },
        {
            "id": "68a84724c8d5f89bdeae7344",
            "createdAt": "2025-08-22T10:32:03.972Z",
            "amount": 0,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "walletType": "MEMBERSHIP",
            "type": "EXPIRE_VOID",
            "referenceId": "68a562b2c8d5f89bdeae32fa"
        },
        {
            "id": "68a6b896c8d5f89bdeae3d5c",
            "createdAt": "2025-08-21T06:11:34.145Z",
            "amount": 6000,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "expiredAt": "2027-07-20T05:52:50.053Z",
            "walletType": "ADD_ON",
            "type": "TOPUP"
        },
        {
            "id": "68a6b31bc8d5f89bdeae3d2c",
            "createdAt": "2025-08-21T05:48:11.194Z",
            "amount": 5000,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "expiredAt": "2027-07-20T05:52:50.053Z",
            "walletType": "ADD_ON",
            "type": "TOPUP"
        },
        {
            "id": "68a573d7c8d5f89bdeae3370",
            "createdAt": "2025-08-20T07:05:59.723Z",
            "amount": -100000,
            "productId": "40f26fbe-f4d8-4693-975f-e6d105d291e6",
            "status": "ACTIVE",
            "membershipTierId": "9bbbfa01-1bf8-4e4d-8470-cdf7066b6ea2",
            "customerId": "faa4ee60-cf45-4043-b964-303890713bb9",
            "merchantId": "35776524-8ea9-46ac-b2dd-89efc496593f",
            "expiredAt": null,
            "walletType": "MEMBERSHIP",
            "type": "CREDIT_USAGE"
        }
    ]
}
Endpoint:
https://api.mayar.id/credit/v1/credit/customer/paginate-credit-history/{memberId}?productId={productId}&membershipTierId={membershipTierId}&page=1&limit=5

Authorization

Authorization
string
required
Example:Authorization | Bearer Paste-Your-API-Key-Here

Path Parameters

memberId
string
The unique identifier of the member whose credit balance is being queried.
customerId
string
The unique identifier of the customer whose credit balance is being queried balance.
either memberId or customerId must be used to get the desired customer credit history.

Query Parameters

productId
string
required
The unique identifier of the product associated with the credit balance.
page
integer
default:"1"
The page number for pagination.
limit
integer
default:"10"
The unique identifier of the membership tier associated with the credit balance.
sortField
string
default:"datetime"
The field name used to sort results.
sortOrder
string
default:"desc"
The order of sorting. Accepts "asc" or "desc".
startDate
string
The start date filter for the query range.
endDate
string
The end date filter for the query range.
membershipTierId
string
The unique identifier of the membership tier associated with the credit history.
walletType
string
The type of wallet to filter credit history (e.g., "MEMBERSHIP", "ADD_ON").
type
string
The transaction type filter (e.g., "TOPUP", "MERCHANT_TOPUP" , "TRIAL_TOPUP", "EXPIRE_VOID" , "CREDIT_USAGE").

Response

Successful Response

Main Structure (Root)

statusCode
integer
required
Status code form API.
messages
string
required
Status message that describes the status code.
total
string
required
Indicates the total data.
page
string
required
Indicates the current page.
limit
string
required
Indicates the current limit (page size).
totalPages
string
required
Indicates the total page.
data
array of object
Result list of requested data.