Block Client API

Block Callback Func

ApplyDiscountCode1

Apply the given discount code to the current cart.

Kind Block Callback
Method postMessage
Message Data { "bubblehouseBlockClientCall": "ApplyDiscountCode1", ... }

Input

  • instance string required

    Block instance identifier passed to the Blocks API.

    Empty string if an instance identifier has not been provided.

  • code string required

    The discount code string to use

Previous
AddProductToCart1