post
https://{project_url}/webservice/rest-api/{api_interface}/{version}/purchases/actions/send-purchase
Send a final closed bill to CareCloud. The bill is recorded and processed by the loyalty engine.
What happens when a purchase is sent
- A purchase record is created and its server-generated
purchase_idis returned. - The customer's points balance is updated according to the purchase items, applied rewards, and configured loyalty rules.
- Vouchers selected at bill closure are marked as used.
- A marketing-automation event is triggered.
- The customer's status may be recalculated afterwards based on total purchase amount and other configured criteria.
Related operations
- POST /purchases/actions/accept-payment - calculate applicable discounts and recommended rewards before bill closure; typically called first.
- POST /purchases/actions/recommend-best-rewards - get the list of best-fit rewards available for a bill before deciding which to apply.
- GET /purchases - retrieve purchase records after closure.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
401The client has invalid credentials or auth token.
401The client has invalid credentials or auth token.
403The client does not exist or the client tried to access an unauthorized property or resource.
403The client does not exist or the client tried to access an unauthorized property or resource.
404The resource was not found.
404The resource was not found.
405The resource does not support the specified HTTP method.
405The resource does not support the specified HTTP method.
429Too many requests - more than the resource limit.
500Server is not working as expected.
500Server is not working as expected.
503Temporary state when the service is temporarily unavailable, overloaded or there is a maintenance window.