SAGE Create sales invoice function

The SAGE Create sales invoice function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Sage connector function to create a sales invoice.

For a full list of available functions, please read SAGE functions.


Description

The Create sales invoice function creates a new sales invoice in Sage. Provide the contact ID, invoice date, and an array of line items with descriptions, quantities, unit prices, and ledger account IDs.


Setting it up

{{popups:rpas/add:action=sage-create-sales-invoice}}

Once on a process map:

  1. Navigate to the process where you would like to add the function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the SAGE Create sales invoice option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Sage connector to use
Contact IDYesText-Contact ID (use List contacts to find)
DateYesText-Invoice date (YYYY-MM-DD)
Invoice LinesYesTextarea-JSON array of line items, e.g. [{"description":"Service","quantity":1,"unit_price":500}]
VariableYesText-Variable to store the created invoice

Output variables

VariableTypeDescription
VariableObjectThe created invoice with id, invoice_number, total, status

Errors

  • Contact not found – the contact ID is invalid
  • Validation error – required fields are missing or invalid

Tips

  • Use List contacts to find the contact ID first
  • Date format must be YYYY-MM-DD
  • Use variables in the line items JSON for dynamic values

Related functions

  • List sales invoices – List existing invoices
  • List contacts – Find contact IDs
  • List ledger entries – View ledger

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.