Add Points Redemption Method
POST
v1/managers/loyalty-program/points-redemptionCreates a new redemption method (e.g., gift certificate) for 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.
Contains the configuration settings for the point redemption method.
Specifies the type of redemption rule.
The value of the discount provided as a reward.
The number of points required to redeem the specified discount.
The currency in which the discount value is denominated.
{
"config": {
"type": "fixed_rate_settings",
"discount": 10,
"points": 100,
"currency": "SAR"
}
}
Request samples
Responses
The redemption method is created successfully.
Indicates the overall status of the API response.
Contains details about the points redemption method that was added.
Indicates whether the point redemption method was added successfully. In this case, it is true.
A descriptive message confirming the successful addition of the points redemption method.
Contains detailed information about the newly added point redemption rule.
Contains additional information or messages related to the API response.
Specifies the type of message.
A code representing the specific message.
A short, human-readable title or name for the message.
A detailed description of the message.
{
"status": "string",
"points_redemption": {
"status": true,
"message": "Point redemption method added successfully",
"redemptionRule": {
"store_id": "266fd313-f39a-4f43-82c5-6069651e32cc",
"external_id": "1120",
"name": "100",
"points_to_redeem": 100,
"rule_type": "fixed_rate_settings",
"reward": {
"discount_value": 10
},
"is_active": true,
"id": "bf1aeb4a-d85e-443d-80dc-f0ac43757605",
"updated_at": "2024-07-31T11:10:50.000000Z",
"created_at": "2024-07-31T11:10:50.000000Z"
}
},
"message": {
"type": "string",
"code": "MSG_POPUP_OK",
"name": "\"Points redemption\"",
"description": "\"Point redemption method added successfully\""
}
}