Orderly Helper icon

Orderly Helper

Build Orderly protobuf JSON objects for Orderly actions

Actions107

Delivery → Create Voucher Code

AI-generated

Summary

Builds an Orderly protobuf JSON VoucherCode object from the required voucher code string. The code is trimmed, validated as nonempty, and returned for each input item; this operation does not create a voucher in Orderly.

Inputs

  • Voucher Code (required) — The voucher code string. Defaults to $json.Code, then $json.voucherCode; the first nonempty value is used.

Output shape

A single JSON object per input item, with the voucher code represented in the Code field.

The value is trimmed; an empty value causes an error. With Continue On Fail enabled, an item error is returned as { "error": "..." }.

Links

Discussion