publ betaReference (MCP guide)
Open publ console

publ Reference

vod_products_apply

Creates or edits a whole-app access product in the Basic VOD app (pApp C00001). Shows a preview first; the change runs only after confirmation. After a creation the selling price and access period cannot be changed (the original edit screen has no such fields). Called without confirmToken it previews and returns a confirmToken; repeating the same input with it executes once. Ask the user again before executing; this cannot be undone. When the preview has requiresReconfirmation, execute only with irreversibleConfirmed: true after the person confirms again.

Inputs

Field Required here Contract
action Yes one of: create, edit (by kind)
action.confirmation Yes When action.kind is create: CREATE_VOD_PRODUCT
action.fields Yes When action.kind is create: object
action.fields.presentationalName Yes When action.kind is create: string; min length 1; max length 20
action.fields.isDeactivated Yes When action.kind is create: boolean
action.fields.availablePurchaseMethodsType Yes When action.kind is create: CASH_ONLY, CASH_AND_CP
action.fields.currency No When action.kind is create: KRW, USD; Optional assertion against the freshly read channel currency. Omit to use that verified currency; this never changes the channel currency or supplies a default.
action.fields.originalPrice No When action.kind is create: string; pattern ^(?:0|[1-9]\d{0,8})(?:\.\d{1,2})?$; Create: omission uses sellingPrice. Edit: omission preserves the original price; clearing is not supported.
action.fields.name Yes When action.kind is create: string; min length 1; max length 20
action.fields.sellingPrice Yes When action.kind is create: string; pattern ^(?:0|[1-9]\d{0,8})(?:\.\d{1,2})?$
action.fields.expiryPeriodInDays Yes When action.kind is create: 1 or 3 or 7 or 15 or 30 or 60 or 90 or 180 or 365
action.productId Yes When action.kind is edit: integer; greater than 0
action.confirmation Yes When action.kind is edit: CHANGE_VOD_PRODUCT
action.fields Yes When action.kind is edit: object
action.fields.presentationalName Yes When action.kind is edit: string; min length 1; max length 20
action.fields.isDeactivated Yes When action.kind is edit: boolean
action.fields.availablePurchaseMethodsType Yes When action.kind is edit: CASH_ONLY, CASH_AND_CP
action.fields.currency No When action.kind is edit: KRW, USD; Optional assertion against the freshly read channel currency. Omit to use that verified currency; this never changes the channel currency or supplies a default.
action.fields.originalPrice No When action.kind is edit: string; pattern ^(?:0|[1-9]\d{0,8})(?:\.\d{1,2})?$; Create: omission uses sellingPrice. Edit: omission preserves the original price; clearing is not supported.
confirmToken No string; pattern ^ct[a-f\d]{32}$; The confirmToken from this tool's preview result. Omit it to preview; repeat the same input with it to execute.
irreversibleConfirmed No true; true only after the person confirmed again, when the preview has requiresReconfirmation: the action cannot be undone.