Goldylocks icon

Goldylocks

Interact with the Goldylocks ERP API

Document Line → Create

AI-generated

Overview

This node operation creates a new document line in the Goldylocks ERP system. It is useful for adding items to documents such as invoices, orders, or other transactional documents managed within the ERP. For example, when processing a sales order, this operation can add individual product lines specifying the item, quantity, price, and other details.

Use Case Examples

  1. Adding a product line to a sales invoice with specified quantity and price.
  2. Creating a document line with discount and observations for an order.

Properties

Name Meaning
Document ID (Id_documento) The identifier of the document to which the line will be added.
Item ID (Id_artigo) The identifier of the item or product to add as a line in the document.
Quantity (Quantidade) The quantity of the item to add in the document line.
Additional Fields Optional additional fields for the document line such as associated line ID, discount, observations, price, and price line number.

Output

JSON

  • json - The response from the Goldylocks API after creating the document line, including details of the created line.

Dependencies

  • Goldylocks ERP API access with API key credentials

Troubleshooting

  • Ensure that the Document ID and Item ID are valid and exist in the Goldylocks ERP system to avoid errors.
  • Check that the API key credential is correctly configured and has permissions to create document lines.
  • Common errors may include missing required fields or invalid data types; verify input values especially for numeric fields like quantity and price.

Discussion