Flex Platform icon

Flex Platform

Interactie met Flex Platform API

Invoices → Update (Patch)

AI-generated

Overview

This node interacts with the Flex Platform API to update existing invoice-related objects. Specifically, for the 'Invoices' resource and 'Update (Patch)' operation, it allows users to modify fields of invoice objects such as Collection Invoice, Invoice, Invoice Line, or Invoice Contact by specifying the object type, the ID of the item to update, and the fields to change. This is useful for scenarios where invoice data needs to be corrected or updated dynamically, such as adjusting amounts, changing statuses, or updating custom fields.

Use Case Examples

  1. Updating the amount and status of a specific invoice by providing its ID and new values.
  2. Modifying a custom field on an invoice line item to reflect new information.

Properties

Name Meaning
Model Selects the type of invoice-related object to update (e.g., Collection Invoice, Invoice, Invoice Line, Invoice Contact).
ID The unique identifier (UUID or number) of the invoice-related item to update.
Update Fields Specifies the fields and their new values to update on the selected invoice object. Includes predefined fields like Amount and Status, and allows specifying any other custom field by name.

Output

JSON

  • json - The updated invoice object returned from the Flex Platform API.

Dependencies

  • Requires an API key credential for Flex Platform API authentication.

Troubleshooting

  • Common issues include providing an invalid or missing ID, which will cause the API to fail to locate the item to update.
  • Incorrect field names or data types in 'Update Fields' can cause the API to reject the update request.
  • Errors in custom field names or malformed JSON in other operations may cause failures; ensure field names match the API specification exactly.

Discussion