Distru icon

Distru

Interact with the Distru Public API v1

Actions35

Invoices → Post Payment

AI-generated

Overview

This node operation posts a payment to a specific invoice in the Distru system. It is useful for automating the recording of payments against invoices, ensuring accurate financial tracking and reconciliation. For example, it can be used to log a payment made by a customer, specifying the payment method, amount, date, and description.

Use Case Examples

  1. Recording a payment for an invoice after receiving customer payment.
  2. Automating payment entries in accounting workflows to keep invoice statuses updated.

Properties

Name Meaning
Resource ID The unique identifier of the invoice to which the payment will be posted.
Payment Method ID The identifier of the payment method used for the payment.
Amount The amount of the payment being posted.
Payment Datetime The date and time when the payment was made.
Description A description or note about the payment.
Additional Fields Optional additional fields such as Quickbooks deposit account ID and name to provide extra payment details.

Output

JSON

  • json - The response data from the Distru API after posting the payment, typically including details of the posted payment or a success confirmation.

Dependencies

  • Requires an API token credential for the Distru API, which must be set in the node credentials configuration.

Troubleshooting

  • Error if the API token is not set: Ensure the Distru API token is correctly configured in the node credentials.
  • Error if Resource ID (invoice ID) is missing: Provide a valid invoice ID to post the payment.
  • Error if required payment fields (payment method ID, amount, payment datetime, description) are missing: Ensure all required fields are filled.
  • Error if binary data is expected but missing (not applicable for this operation as it does not use binary data).

Discussion