POST /api/public/v1/orders/declinePassRedemption

Changed on

Charges the order's lines a pass would redeem at full price, as when the guest's code is not given: no line of the order redeems a pass until another customer is attached or the charge is taken back. With declined false it is taken back, and the lines redeem again as the guest's passes allow. Refused with shiftClosed once the order's shift has closed (FORBIDDEN; BAD_REQUEST when creating under it) and with FORBIDDEN notShiftParticipant for a caller not taking part in the shift. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
orderId, string required
declined, boolean

Response

OK

object required
id, string required

Changes