Cashback Rule Method Update Status
PUT
v1/managers/loyalty-program/points-collection/update-statusEnables or disables a specific cashback rule 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.
This token is used to authenticate and access information related to the store. It is obtained through an OAuth mechanism and is required to perform operations on the store's data. The X-Manager-Token
should be included in the header of API requests that require store-related information.
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 cashback rule that is being targeted by the request.
A flag indicating whether to activate (1) or deactivate (0) the specified loyalty cashback rule.
{
"ruleId": "7656e0f6-0259-4bcf-90d6-b7ad1fcdcb2f",
"activate": 1
}
Request samples
Responses
OK
Indicates the overall status of the API response.
The activation section provides details about the deactivation of a points collection method and includes a list of the affected methods.
Indicates that the points collection method has been successfully deactivated. The true value signifies that the deactivation process was completed without issues.
A confirmation message indicating that the points collection method was deactivated successfully.
This is a list of the points collection methods that have been affected by the deactivation.
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",
"activation": {
"status": true,
"message": "Points collection method deactivated successfully",
"points_collection_methods_list": [
{
"id": "bab22f60-68e9-4411-af87-06ef6fde0943",
"external_id": 15343,
"store_id": "c509b4f8-c5e9-4bad-b145-04f7241fa22e",
"points_rewarded": 30,
"amount_to_spend": 5,
"available_to": {
"tags": [
{}
],
"level": {
"levelId": null,
"levelName": null
}
},
"is_active": 0,
"created_at": "2023-03-29T20:51:11.000000Z",
"updated_at": "2023-09-29T20:51:11.000000Z",
"deleted_at": null
}
]
},
"message": {
"type": "string",
"code": null,
"name": null,
"description": null
}
}