POST /api/public/v1/loyalty/updateWalletDesign

Changed on

Replaces the Wallet card design overrides of the organization's launched loyalty program, or clears them back to inheriting every default with design: null. A client editing slots leaves the deprecated fields out; fields that equal the stored design's are read as a copy and never undo a slots edit, and BAD_REQUEST refuses a fields toggle turned on with no empty slot. An editor sends the design it edited from as baseline: the save is then refused with CONFLICT and refusal walletDesignChanged when the stored design no longer equals it, a cleared design reading as its defaults, and stores nothing. Without baseline the save overwrites as before. The draft images the design names are adopted with the save; a design naming one of another organization, or one being or already deleted, is refused with CONFLICT and refusal mediaDraftImageExpired, and that image must be uploaded again. Each image in images the stored design does not already name must also be a Wallet design draft image this organization uploaded through mediaDrafts.control: a URL no upload recorded is refused the same way, so a save never publishes an arbitrary URL as an override. Leaves the program's settings untouched and issues no pass; a Google Wallet pass already issued is brought in step with the saved design in the background. Refused with NOT_FOUND before the first launch, and with FORBIDDEN and refusal loyaltyDisabled while the business switched Loyalty off, featureRestrictedByPlan while its plan restricts Loyalty, or featureNotEntitled while its plan lacks Loyalty. Refused with FORBIDDEN and refusal billingReadOnly once an overdue subscription's grace has run out, and subscriptionEnded once the business's verified base plan has ended with no eligible base in its place. Either refusal is lifted for this operation's category by an active plan grant whose plan allows it, which does not change the subscription's own standing. 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
organizationId, string required
design, object nullable required
baseline, object

Response

OK

object required
design, unknown
effective, object required

Changes

    • info

      added the new optional request property baseline/images

    • info

      added the new optional request property design/anyOf[subschema #1]/images

    • info

      added the required property effective/appleIconUrl to the response with the status

    2 more changes in this revision