Reject order
Description#
Allows businesses to reject orders if need be.
Input#
Reason#
- Type
- Enum of type string
- Validation
- Required
Message#
- Type
- String
- Validation
- Required
Additional validation#
- Can only be done within the first 5 minutes of order creation.
- Can only be done on an order with 'placed' state.
- Discard the payment details of the client's order.
Mechanism#
- Set the order state as Valuerejected.
- Send a push notification to the client regarding the rejection along with the Function inputmessage.