POST /api/public/v1/shifts/open

Changed on

Opens the location's shared shift and joins the caller, and puts on it the location's shiftless unshipped orders a buyer requested. Read shifts.openingInfo for the current cash-count policy and business currency. When the location requires a count, omitting startingCashCents is refused with BAD_REQUEST and refusal startingCashRequired. Submit startingCashCents in minor units (zero is valid) together with startingCashCurrency and startingCashExponent from openingInfo.currencyExponent (defaults to 2 for older callers). A submitted currency or exponent that no longer matches the business is refused with CONFLICT and refusal startingCashCurrencyChanged; read openingInfo again and recount in that currency. An existing open shift is refused with CONFLICT and refusal shiftAlreadyOpen; join it instead. An archived location is refused with PRECONDITION_FAILED and refusal locationArchived. Locations not requiring a count still accept opening without these optional fields. 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
startingCashCents, integer
startingCashExponent, integer
startingCashCurrency, string
locationId, string required

Response

OK

unknown required

Changes