Skip to main content
A discount code lowers the price on forms that take payment. For fields and response details, see the API reference for listing codes, a single code, creating, updating, deleting, forms, redemptions and the report.

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.
Required arguments:
  • <id> - The discount code’s UUID, from neetoform 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.
Required arguments:
  • <id> - The discount code’s UUID, from neetoform 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.
Required arguments:
  • <id> - The discount code’s UUID, from neetoform 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.
Required arguments:
  • <discount-code-id> - The discount code’s UUID, from neetoform 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.
Required arguments:
  • <discount-code-id> - The discount code’s UUID, from neetoform discount-codes list
Sample output (--json)