List discount codes
This command lists the discount codes in your workspace, newest first. Use this to find a code’s ID and to see its status and how many times it was used.Sample output (--json)
Show a discount code
This command shows one discount code with its status, its redemption count, and the forms it is enabled on.<id>- The discount code’s UUID, fromneetoform discount-codes list
Create a discount code
This command creates a discount code. Use this when you want to offer a percentage or a fixed amount off. Pass--form-ids to enable the code on forms right away.
--kind is percentage (the default) or fixed. A fixed code needs --currency, and it works only on forms that charge in that currency. To find the form IDs you can use, run neetoform discount-codes forms list.
Update a discount code
This command changes a discount code. Only the fields you pass change.<id>- The discount code’s UUID, fromneetoform discount-codes list
--form-ids replaces the whole list of forms. Leave it out to keep the current forms.
Delete a discount code
This command deletes a discount code and removes it from every form. Past redemptions are kept. The command runs at once and does not ask first.<id>- The discount code’s UUID, fromneetoform discount-codes list
Sample output
List forms for discount codes
This command lists the forms that a discount code can be enabled on, with the currency each form charges in. Use this to pick the values for--form-ids.
List redemptions
This command lists the completed redemptions of one discount code, newest first. Each row shows the original, discount, and paid amounts, and the form and submission.<discount-code-id>- The discount code’s UUID, fromneetoform discount-codes list
Show a discount code report
This command shows the totals of the completed redemptions of one discount code, grouped by form. Use this to see how much a code saved your customers. Limit it to a period with--start-date and --end-date.
<discount-code-id>- The discount code’s UUID, fromneetoform discount-codes list
Sample output (--json)