Toggle Redemption Method Status
PUT
v1/managers/loyalty-program/points-redemption/update-statusEnables or disables a specific redemption method within a store's loyalty program.
Request
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.
The Media Type of the body of the request. This is used to describe the structure of the data in the body.
A unique identifier for the loyalty redemption rule that is being targeted by the request.
A flag indicating whether to activate (1) or deactivate (0) the specified loyalty redemption rule.
{
"redemptionRuleUuid": "c5ed20de-fe99-40b8-9fee-36b05b1a8436",
"status": 1
}
Request samples
Responses
Redemption method status toggled successfully.
Indicates the overall status of the API response.
The redemption_rule section provides detailed information about a specific point redemption rule.
A unique identifier for the specific redemption rule. This ID is used to track and manage the rule within the system.
An identifier used by external systems to track or reference the redemption rule.
The unique identifier of the store where this redemption rule is applied.
The name or label given to this redemption rule.
The number of points required to redeem the associated reward. This value represents the cost in points for the customer to obtain the benefit.
The type of rule that defines how the reward is calculated or applied.
Any specific conditions or restrictions that apply to this redemption rule.
A boolean value indicating whether this redemption rule is currently active. True means the rule is active and can be used by customers.
The timestamp indicating when the redemption rule was created.
The timestamp indicating when the redemption rule was updated.
The timestamp indicating when the redemption rule was deleted.
Contains detailed information about the message.
Specifies the type of message.
A specific code representing the type.
A short, human-readable title or name for the message.
A detailed description of the message, providing more context.
{
"status": "string",
"redemption_rule": {
"id": "7ba3e0ac-0ca9-4eeb-9026-01ec09ea3f6a",
"external_id": "15505",
"store_id": "8b1cf62d-d05c-4405-949d-5c1cdcc64987",
"name": "35",
"points_to_redeem": 35,
"rule_type": "percentage_discount_settings",
"reward": {
"discount_value": 3
},
"conditions": null,
"is_active": true,
"created_at": "2023-04-03T09:17:47.000000Z",
"updated_at": "2023-08-03T09:17:47.000000Z",
"deleted_at": null
},
"message": {
"type": "string",
"code": "MSG_POPUP_OK",
"name": "Points redemption",
"description": "Update point redemption method status"
}
}