Customer Wallet
GET
v1/customers/loyalty-program/<<STORE_ID>>/walletRetrieves detailed information about a customer's loyalty wallet, including points balance, currency type, and tier level.
Request
Unique identifier of the store.
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
Specifies the Media Types acceptable for the client. In this case, it signals that the client expects a response in the JSON format.
Preferred language for the response. Defaults to en
if not specified.
Type of the content.
The X-CUSTOMER-TOKEN is a unique identifier generated when a customer logs in through the customer-login API. This token acts as the standard authorization mechanism, allowing the system to recognize the logged-in customer and grant them access to appropriate resources.
Request samples
Responses
The Wallet is retrieved successfully.
Indicates the overall status of the API response, encapsulating various details within the wallet and message objects.
Contains detailed information about the user's wallet, including balances, points history, and transaction details.
The current total of points available in the user's wallet.
The total of points that are pending and not yet available for use.
The points that the user can immediately use.
The points that have been used by the user.
The cumulative total of positive points the user has earned over time.
A list of past point transactions, detailing each transaction's specifics.
Contains any additional information or messages related to the API response.
A code representing the message type or error code, if any.
The name of the message or error, if available.
A detailed description of the message or error, providing more context.
{
"status": "string",
"wallet": {
"points_balance": 9795,
"pending_points_balance": 0,
"available_points": 5600,
"used_points": 101,
"total_positive_points": 0,
"history": [
{
"date": "\"2024-07-24T07:42:12.000000Z\"",
"reason": null,
"points": 200,
"direction": "\"+\"",
"type": "\"PaymentReward\"",
"order_number": 39001552,
"expiry_date": "\"2025-07-19T07:42:40.028933Z\"",
"point_status": "\"Active\"",
"collection_method": "\"Reward for a placed order\""
}
]
},
"message": {
"type": "string",
"code": null,
"name": null,
"description": null
}
}