Skip to content

alegra income-debit-notes create

alegra income-debit-notes create

Create a income-debit-note

Synopsis

Create a income-debit-note.

Provide the body with --file (recommended for nested documents), --data '', or one or more --set key=value pairs for flat fields. The body is pre-flight validated for your country; use --no-validate to skip.

alegra income-debit-notes create [flags]

Examples

  alegra income-debit-notes create -f income-debit-note.json
  alegra income-debit-notes create --set name="Example"
  echo '{...}' | alegra income-debit-notes create -f -

Options

      --country string    Country for pre-flight validation (default: auto-detected from the account)
  -d, --data string       Request body as a JSON string
      --draft             Create as a draft (strip any electronic stamp from the body)
  -f, --file string       Read JSON request body from a file (use - for stdin)
  -h, --help              help for create
      --no-validate       Skip client-side pre-flight validation
      --set stringArray   Set a top-level field: key=value (value parsed as JSON when valid). Repeatable. For nested documents (e.g. invoice items[]) use --file.

Options inherited from parent commands

      --base-url string             Override the API base URL (env: ALEGRA_BASE_URL)
      --columns strings             Comma-separated columns for table/csv output
      --dry-run                     Print the equivalent curl request without sending it
      --no-color                    Disable colored output (also respects the NO_COLOR env var)
  -o, --output string               Output format: table, json, yaml, csv (env: ALEGRA_OUTPUT)
      --profile string              Configuration profile to use (env: ALEGRA_PROFILE)
      --requests-per-second float   Client-side rate limit (default from config)
      --show-token                  In --dry-run, do not redact the Authorization header
  -v, --verbose                     Enable verbose (debug) logging to stderr

SEE ALSO