Orderly Helper icon

Orderly Helper

Build Orderly protobuf JSON objects for Orderly actions

Actions107

Voucher → Create Voucher Code

AI-generated

Summary

Builds an Orderly VoucherCode protobuf JSON object from a voucher code string. The node trims the value, requires it to be non-empty, and returns the object for each input item without making an API call.

Inputs

  • Voucher Code (required) — Code string used for the object’s Code field. Defaults to the incoming item’s Code, then voucherCode, or an empty string.

Output shape

One JSON object per input item, containing the protobuf JSON representation of a VoucherCode (with a Code field).

An empty or whitespace-only code raises an error. With Continue On Fail enabled, the item instead returns an error field containing the message.

Links

Discussion