Gigstack icon

Gigstack

Interact with Gigstack API for Mexican tax-compliant invoicing and payments

Invoice → Update Draft

AI-generated

Overview

This node operation updates a draft invoice in the Gigstack system. It allows users to modify specific fields of an existing draft invoice, such as currency, exchange rate, payment method, payment form, CFDI use, series, and metadata. This operation is useful for scenarios where a draft invoice needs to be adjusted before finalizing or stamping it, such as correcting payment details or updating currency information.

Use Case Examples

  1. Updating the currency and exchange rate of a draft invoice before finalizing it.
  2. Changing the payment method or form on a draft invoice to reflect new payment arrangements.
  3. Adding or modifying metadata associated with a draft invoice for better tracking or integration purposes.

Properties

Name Meaning
Draft ID The ID of the draft invoice to update.
Update Fields Fields to update on the draft invoice, including currency, exchange rate, payment method, payment form, CFDI use, series, and metadata.
Team ID Optional team ID for multi-team access; leave empty to use the default team.

Output

JSON

  • currency - Updated currency of the draft invoice.
  • exchange_rate - Updated exchange rate of the draft invoice.
  • payment_method - Updated payment method of the draft invoice.
  • payment_form - Updated payment form of the draft invoice.
  • use - Updated CFDI use code of the draft invoice.
  • series - Updated series identifier of the draft invoice.
  • metadata - Updated metadata of the draft invoice.

Dependencies

  • Gigstack API key credential

Troubleshooting

  • Ensure the Draft ID provided is correct and exists in the Gigstack system to avoid 'not found' errors.
  • Verify that the metadata JSON is properly formatted to prevent JSON parsing errors.
  • Check that the API key credential is valid and has sufficient permissions to update draft invoices.
  • If the update fails, review the specific error message returned by the Gigstack API for guidance on required or invalid fields.

Links

Discussion