Cashback Rules
GET
v1/customers/loyalty-program/<<STORE_ID>>point-cashback-rulesRetrieves information about cashback rules associated with a store's loyalty program.
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.
Unique Id of the store.
Request samples
Responses
Cashback rules are retrieved successfully.
Indicates the overall status of the API response.
A list of rules that dictate how cashback points are rewarded in exchange for a certain amount spent.
A unique identifier for this specific cashback rule.
References the "pos," likely indicating a point-of-sale system.
Identifies the specific store where this rule is applicable.
1 point is rewarded for every 1 unit of currency spent.
Specifies the amount that needs to be spent to earn points, in this case, 1 unit of currency.
Not specified, meaning this rule does not restrict which customers it applies to.
The rule is currently inactive.
The date and time when this rule was created.
The last date and time when this rule was modified.
The date and time when this rule was deleted.
Contains detailed information about the message.
Specifies the type of message.
A specific code representing the message type.
A short, human-readable title or name for the message.
A detailed description of the message, providing more context.
{
"status": "string",
"point_cahsback_rules": [
{
"id": "b1e3ca5d-2a89-4993-89bf-0f31a4b70b00",
"external_id": "pos",
"store_id": "3dfc16e6-ad19-4126-9c2a-5e4a7fb73051",
"points_rewarded": 1,
"amount_to_spend": 1,
"available_to": null,
"is_active": false,
"created_at": "2023-12-28T10:32:13.000000Z",
"updated_at": "2024-08-11T10:59:24.000000Z",
"deleted_at": null
}
],
"message": {
"type": "string",
"code": null,
"name": null,
"description": null
}
}