Salla icon

Salla

Execute Salla Merchant API operations through the unified Actions backend.

Actions150

Orders → Create Invoice

AI-generated

Summary

Generate an invoice for an order in Salla by specifying the order ID, invoice type, and data format used to create the invoice.

Inputs

  • Sub-resource (required) — Select a sub-resource within Orders, must be 'invoice' to create an invoice.
  • Order Id (required) — The numeric ID of the order for which the invoice will be created.
  • Type (required) — Invoice type to create; can be either 'tax_invoice' or 'credit_note'. Note that a 'credit_note' requires a prior 'tax_invoice'.
  • Data Type (required) — The format of the invoice payload. It can be 'order' to use existing order totals, 'data' for manual custom data, 'url' to provide a PDF invoice link, or 'file' to upload or reference a file handled by Salla.
  • Additional Fields — Optional additional invoice fields not explicitly listed.
  • Custom Data Settings — When Data Type is 'Custom Data', supply invoice values such as invoice number, sub total, total, shipping cost, cash on delivery cost, tax, and tax value.
  • URL Settings — When Data Type is 'URL', provide the link to the hosted PDF invoice.
  • File Settings — When Data Type is 'File', provide file reference information handled by Salla.
  • Return Mode — Choose whether the node returns the Salla data payload only (default) or the full backend response envelope including status and raw data.

Output shape

a list of JSON objects representing the created invoice or API response envelope depending on Return Mode.

The output is either an array of data payload items or a full response envelope per Salla API response, selectable via the Return Mode parameter.

Examples

Example 1: Create a tax invoice using existing order totals for order ID 123456

Set Sub-resource to 'invoice', Order Id to 123456, Type to 'tax_invoice', Data Type to 'order', and Return Mode to 'dataOnly'.

Discussion