Add Redemption to Cart
POST
v1/stores/<<STORE_ID>>/carts/loyalty-redemption-method/addAllows adding a chosen redemption method to a customer's shopping cart.
Request
Specifies the Media Types acceptable for the client. In this case, it signals that the client expects a response in the JSON format.
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.
Preferred language for the response. Defaults to en if not specified.
The User-Agent header contains information about the user agent (browser or app) making the request. It allows the server to provide a tailored response depending on the user agent's capabilities and preferences.
A unique identifier for the current cart session.
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.
Contains details about a specific point redemption method that the user wants to add or update.
A unique identifier for the point redemption method.
An external identifier associated with the point redemption method.
The unique identifier of the store associated with this redemption method.
The name or label of the redemption method.
The number of points required to redeem this reward.
The type of rule applied to the redemption method, such as "fixed_rate_settings".
Details about the reward associated with the redemption method.
Any conditions or restrictions applicable to the redemption method. Null indicates no specific conditions.
Indicates whether the redemption method is currently active.
The date and time when the redemption method was created, in ISO 8601 format.
The date and time when the redemption method was last updated, in ISO 8601 format.
The date and time when the redemption method was deleted, if applicable.
{
"point_redemption_method": {
"id": "c2e3d648-8fb2-4dde-8ce3-4c71ddd9a181",
"external_id": 1667,
"store_id": "cba413cc-a358-4a1a-b8b1-711122555215",
"name": "5",
"points_to_redeem": 5,
"rule_type": "fixed_rate_settings",
"reward": {
"discount_value": 5
},
"conditions": null,
"is_active": 1,
"created_at": "2023-05-31T14:26:43.000000Z",
"updated_at": "2023-05-31T14:26:43.000000Z",
"deleted_at": null
}
}
Request samples
Responses
The redemption method is added to the cart successfully.
A status code indicating the outcome of the operation. In this case, "SUCCESS_WITHOUT_PAYLOAD" suggests that the loyalty points were redeemed successfully, but no additional data or payload is returned with the response.
A confirmation message indicating that the loyalty points have been successfully redeemed.
{
"code": "SUCCESS_WITHOUT_PAYLOAD",
"message": "Loyalty points redeemed successfully"
}