For AI agents: visit https://carecloud.readme.io/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
Calculate the applicable discounts, vouchers, and points for a bill before it is finalised. The response contains the recommendations the cashier can present to the customer; it does not commit the purchase.
What happens when accept-payment is called
CareCloud evaluates the supplied bill items against the customer's eligible benefits (vouchers, discounts, point payment).
The response contains recommended_discounts, vouchers, credit_points, and related fields the cashier can apply.
No purchase record is created and no benefits are consumed by this call. To finalise the bill, call POST /purchases/actions/send-purchase afterwards.