v1
latestOpenAPI 3.0.32026-07-24153644.3 KBRewardsService
Simulates a reward redemption for a specified order value.
This endpoint is designed to simulate a reward redemption with a authentication laywer.
The response includes pertinent information about the simulation operation.
post/api/v1alpha1/rewards:simulate
Headers
Brandstring required
The brand label provided by us.
Request body
Example request
{
"source": "pdv",
"orderVoucher": "ORDERVOUCHER",
"sellerVoucher": "SELLERVOUCHER"
}Response
A successful response.
Example response
{
"rewards": [
{
"reward": {
"id": 1,
"dueDate": "2024-02-02T04:22:18-03:00",
"rate": 20,
"status": "available",
"availableAt": "2024-02-02T04:22:18-03:00",
"createdAt": "2024-02-02T04:22:18-03:00",
"canceledAt": "2024-02-02T04:22:18-03:00"
},
"campaign": {
"id": 1,
"name": "Every store with 10 cashback",
"description": "All products have a 10% cashback until the end of the month or the end of stock. The cashback will be available 7 days after the purchase date and can be used for up to 20% of the next purchase."
}
}
]
}