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#

  1. Can only be done within the first 5 minutes of order creation.
  2. Can only be done on an order with 'placed' state.
  3. Discard the payment details of the client's order.

Mechanism#

  1. Set the order state as Valuerejected.
  2. Send a push notification to the client regarding the rejection along with the Function inputmessage.