v4
OpenAPI 3.0.02026-07-31811,0021.1 MBRemoves an already applied cashback from a checkout.
Use this endpoint when your integration needs to explicitly undo a checkout cashback redeem before the order is created. Depending on the platform integration, BonifiQ also cancels the underlying redeem after removing the cashback from the checkout.
When to use
Call this endpoint when the shopper manually removes the cashback, abandons the checkout flow or when your platform decides the cashback should no longer be used.
Input parameters
- CustomerId (required): Customer identifier used by your store, such as e-mail or CPF/document.
- CheckoutId (required): Platform checkout/cart identifier from which the cashback should be removed.
- Total (optional): Current checkout total. Use it when the integration requires the caller to send the latest total explicitly.
Response envelope
The endpoint returns BaseExternalApiResponse<CheckoutRemoveCashbackResponse>.
- Code: two-digit business code for the final outcome.
- CodeName: enum name associated with Code.
- Severity: Success, Warning or Error.
- HasError: true only for request/validation failures that should be treated as an API error.
- HasWarning: true when the request is valid but there is nothing to remove or the outcome is only informational.
- Result.Success: true when the cashback was effectively removed.
- Result.CustomerMessage: human-readable message describing the final state.
Business outcomes
A valid request may still return Severity = Warning. This is expected when:
- the checkout does not exist
- the checkout exists but no cashback is currently applied
Validation errors
Invalid requests return 400 Bad Request with Severity = Error. This happens when the customer cannot be identified or the CheckoutId is missing.
Response codes
- 01 / CustomerNotFound / Error: the informed customer could not be found.
- 02 / CheckoutIdRequired / Error: the request did not include CheckoutId.
- 03 / CheckoutNotFound / Warning: the checkout was not found in the platform.
- 04 / CashbackNotApplied / Warning: the checkout exists but no cashback is currently applied.
- 07 / CashbackRemovedSuccessfully / Success: the cashback was removed successfully.
Request body
Response
A checkout removal response with business code, severity and removal outcome.