POST /api/public/v1/mediaDrafts/control

Changed on

Carries the media SDK's initUpload and completeUpload for a draft image of purpose. The upload must name an organization owner, and the caller needs the purpose's permission there (loyalty:configure for wallet-design-draft and loyalty-stamp-image-draft), and the organization must take new work of the purpose's feature (Loyalty), else FORBIDDEN with refusal loyaltyDisabled while the business switched Loyalty off, featureRestrictedByPlan while its plan restricts Loyalty, or featureNotEntitled while its plan lacks Loyalty, and with FORBIDDEN and refusal billingReadOnly or subscriptionEnded while its billing standing admits no new commitment, unless an active plan grant admits the loyalty category. The draft image is recorded before the presigned upload is answered, and its canonical URL before the completion is. Any other operation is refused with BAD_REQUEST; an image already released or expired with CONFLICT and refusal mediaDraftImageExpired. 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
purpose, 'wallet-design-draft' | 'loyalty-stamp-image-draft' required
request, union required

Response

OK

union required
object required
OR
object required
OR
object required
OR
object required
OR
object required
OR
object required
OR
object required
OR
object required
OR
object required
OR
object required

Changes