Cashback Rule Method Update
POST
v1/managers/loyalty-program/points-collection/updateUpdates the configuration of a cashback rule 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.
Contains the configuration settings for the loyalty cashback rule.
The amount of money required to earn points under the loyalty cashback rule.
The number of points earned for the specified amount of money.
{
"ruleId": "7656e0f6-0259-4bcf-90d6-b7ad1fcdcb2f",
"config": {
"money": 100,
"points": 1
}
}
Request samples
Responses
The cashback rule method status is updated successfully.
Indicates the overall status of the API response.
The data section provides details about the status of the points collection update and the specifics of the points collection methods.
Indicates that the points collection method has been successfully updated.
A confirmation message indicating that the points collection method was updated without any issues.
Indicates whether the cashback feature is enabled.
This is a list of the different methods available for collecting points, detailing the specifics of each method.
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": {},
"data": {
"status": true,
"message": "Points collection updated successfully",
"is_cashback_enabled": false,
"points_collection_methods_list": [
{
"id": "b1e3ca5d-2a89-4993-89bf-0f31a4b70b00",
"external_id": "pos",
"store_id": "3dfc16e6-ad19-4126-9c2a-5e4a7fb73051",
"points_rewarded": 1,
"amount_to_spend": 100,
"available_to": null,
"is_active": false,
"created_at": "2023-12-28T10:32:13.000000Z",
"updated_at": "2023-08-28T10:32:13.000000Z",
"deleted_at": null
}
]
},
"message": {
"type": "string",
"code": "MSG_POPUP_OK",
"name": "Points collection",
"description": "Points collection updated successfully"
}
}