Goldylocks icon

Goldylocks

Interact with the Goldylocks ERP API

Document → Create

AI-generated

Overview

This node operation creates a new document in the Goldylocks ERP system. It requires the user to provide the Customer ID, Document Type ID, and Document Series. Upon execution, it sends a POST request to the Goldylocks API to create the document and returns the new document ID. This operation is useful for automating document creation workflows such as invoices, orders, or other document types managed within the ERP system.

Use Case Examples

  1. Creating a sales invoice document for a specific customer by providing their ID, the type of document (e.g., invoice), and the document series identifier.
  2. Automating the creation of purchase orders by specifying the customer and document details programmatically.

Properties

Name Meaning
Customer ID (idCliente) The unique identifier of the customer for whom the document is being created.
Document Type ID (Tipo_documento) The identifier for the type of document to create, such as invoice, order, etc.
Document Serie (Serie_documento) The series or batch identifier for the document, used for organizational or numbering purposes.

Output

JSON

  • new_document_id - The ID of the newly created document returned by the API.

Dependencies

  • Goldylocks ERP API
  • An API key credential for authentication

Troubleshooting

  • Ensure that the Customer ID, Document Type ID, and Document Series are correctly provided and valid in the ERP system.
  • Check that the API key credential is correctly configured and has the necessary permissions to create documents.
  • Common errors may include authentication failures, missing required parameters, or invalid document type or series IDs. Verify the API response messages for specific error details.

Discussion