Actions508
- Activities Actions
- Approval Policies Actions
- Approval Policy Assignments Actions
- Approval Workflows Actions
- Attachments Actions
- Automatic Invoicing Rules Actions
- Bankaccounts Actions
- Bills Actions
- Boards Actions
- Bookings Actions
- Comments Actions
- Companies Actions
- Contact Entries Actions
- Contracts Actions
- Custom Domain Actions
- Custom Fields Actions
- Custom Field Options Actions
- Custom Field Sections Actions
- Dashboards Actions
- Deal Cost Rates Actions
- Deal Statuses Actions
- Deals Actions
- Deleted Items Actions
- Discussions Actions
- Document Styles Actions
- Document Types Actions
- Emails Actions
- Entitlements Actions
- Events Actions
- Exchange Rates Actions
- Expenses Actions
- Filters Actions
- Holiday Calendars Actions
- Holidays Actions
- Integrations Actions
- Invitations Actions
- Invoice Attributions Actions
- Invoice Templates Actions
- Invoices Actions
- Line Items Actions
- Lost Reasons Actions
- Memberships Actions
- Notifications Actions
- Organization Memberships Actions
- Organization Subscriptions Actions
- Organizations Actions
- Overheads Actions
- Pages Actions
- Pageversions Actions
- Passwords Actions
- Payment Reminder Sequences Actions
- Payments Actions
- People Actions
- Permission Sets Actions
- Pipelines Actions
- Placeholder Usages Actions
- Placeholders Actions
- Prices Actions
- Project Assignments Actions
- Projects Actions
- Pulses Actions
- Purchase Orders Actions
- Rate Cards Actions
- Report Categories Actions
- Reports Actions
- Revenue Distributions Actions
- Salaries Actions
- Sections Actions
- Service Assignments Actions
- Service Types Actions
- Service Type Assignments Actions
- Services Actions
- Sessions Actions
- Subsidiaries Actions
- Survey Fields Actions
- Survey Field Options Actions
- Survey Responses Actions
- Surveys Actions
- Tags Actions
- Task Lists Actions
- Taskdependency Actions
- Tasks Actions
- Taxrates Actions
- Team Memberships Actions
- Teams Actions
- Time Entries Actions
- Time Entries - Bulk Actions
- Time Entry Versions Actions
- Time Tracking Policies Actions
- Timers Actions
- Timesheet Reports Actions
- Timesheets Actions
- Todos Actions
- Users Actions
- Webhook Logs Actions
- Webhooks Actions
- Widgets Actions
- Workflow Statuses Actions
- Workflows Actions
Invoices → Preview invoice
AI-generatedSummary
Generate a preview of an invoice based on specified criteria without creating the actual invoice.
Inputs
- Sent On ID — The sent on ID of the resource to preview.
- Budget IDs — Array of budget IDs to include in the invoice preview.
- Invoicing Method — Sets the invoicing method; valid values are 'uninvoiced_time_and_expenses', 'uninvoiced_amount', or 'percentage'.
- Invoicing By — Determines invoicing by service or budget; required if invoicing method is 'uninvoiced_amount' or 'percentage'.
- Percentage (required) — The percentage of budget revenue to invoice; required if invoicing method is 'percentage'.
- Display Format — The display format for the invoice preview.
- Expense Display Format — Display format specifically for expenses in the invoice preview.
- Locale — Locale setting; required if invoicing method is 'uninvoiced_time_and_expenses'.
- Date From — Start date filter to limit invoicing preview to a range.
- Date To — End date filter to limit invoicing preview to a range.
Output shape
a single JSON object containing the invoice preview details as returned by the Productive API.
The output provides a detailed preview of what the invoice would look like based on inputs; it does not create or send an invoice. Errors are returned in the output JSON under an error property if operation fails and continueOnFail is enabled.
Examples
Example 1: Preview invoice for uninvoiced time and expenses between two dates for specific budgets.
Set Invoicing Method to 'uninvoiced_time_and_expenses', provide Budget IDs, Date From, Date To, and Locale.