put https://{host}/v1/promotions/customer//evaluation//cancel
Consider a scenario where a particular promotion is applied in a cart but the transaction has not been processed yet. Such a state is called a locked state or pending cart state. This state prevents this promotion from being applied to any other cart. To proceed ahead, the current cart has to be released or canceled. This API can thus be used to cancel any pending carts.
Prerequisites
- Authentication - Basic or OAuth authentication
- Access group resource - Write access to customer group resource
- customerId and evaluationId
API Endpoint Example
https://{{eu}}/api_gateway/v1/promotions/customer/{customerId}/evaluations/{evaluationId}/cancel
Path Parameter
Parameter (Parameters marked as * are required) | Data Type | Description |
---|---|---|
customerId* | Long | Unique Identifier of the customer issuing Cart Promotion |
evaluationId* | String | Unique identifier that is generated when a cart evaluation is performed. |