post
https://{project_url}/webservice/rest-api/{api_interface}/{version}/purchases/actions/recommended-best-rewards
Method returns all rewards and vouchers available for a specific client application (e-commerce, POS, etc.).
The response includes reward definitions and customer-specific vouchers that are valid at the time of the request. For each item, a parameter defines the maximum usage per purchase.
If the value of this parameter is zero, the item cannot be applied.
Each item in the response can represent one of two types:
- Reward definition - a catalog-level reward identified by an alphanumeric code (for example,
PTV12). - Voucher - a reward issued to a specific customer, identified by a numeric code generated by CareCloud or a custom code syntax defined by the client.
Rewards are always associated with products via bill items.
429Too many requests - more than the resource limit.
503Temporary state when the service is temporarily unavailable, overloaded or there is a maintenance window.