Unleashed icon

Unleashed

Interact with Unleashed inventory management API

Invoice → Create

AI-generated

Summary

Creates a new sales invoice in Unleashed and returns the created invoice data.

Inputs

  • customerCode (required) — The customer code for the invoice.
  • invoiceDetails — A collection of invoice-level details including invoice number, dates, currency, tax rates, discount rates, delivery address, and comments.
  • invoiceLineItems — A fixed collection of line items to add to the invoice, each containing a product code, quantity, unit price, and optional discount/tax codes.

Output shape

a single record containing the created invoice data

The operation returns the full resource object for the newly created invoice as returned by the Unleashed API.

Examples

Example 1: Create a standard sales invoice for a customer

Set Customer Code, Invoice Details (dates, currency), and add Line Items with Product Codes and quantities.

Example 2: Create a credit note with a discount

Specify the Customer Code, set Invoice Number (if required), define a Discount Rate, and populate Line Items.

Links

Discussion