WHMCS icon

WHMCS

Interact with the WHMCS billing & automation API

Invoice → Apply Credit

AI-generated

Summary

Applies a specified amount of credit to a WHMCS invoice using the ApplyCredit API action. The node sends one API request for each input item and returns WHMCS’s response for each item.

Inputs

  • Invoice ID (required) — Numeric invoice ID. A value of 0 is omitted from the API request.
  • Amount (required) — Credit amount to apply; a value of 0 is omitted from the API request.
  • Custom Parameters — Optional additional WHMCS API parameters, entered as case-sensitive name and value pairs. These are merged into the request and can override fields with the same names.

Output shape

A list of items, each containing the WHMCS API response for the corresponding input item.

The request uses the ApplyCredit action. A failed request stops execution unless Continue On Fail is enabled, in which case that item contains an error field.

Links

Discussion