WHMCS icon

WHMCS

Interact with the WHMCS billing & automation API

Invoice → Add Payment

AI-generated

Summary

Adds a payment to a WHMCS invoice by calling the AddInvoicePayment API action for each input item.

Inputs

  • Invoice ID (required) — Invoice ID to pay. A value of 0 is omitted from the API request.
  • Transaction ID (required) — Unique transaction reference from the gateway; sent as transid.
  • Payment Fields — Optional payment details: amount, date (YYYY-MM-DD HH:MM:SS), fees, gateway module name, and noemail to suppress the confirmation email when true. Empty values are omitted.
  • Custom Parameters — Optional additional WHMCS API parameters, supplied as case-sensitive name/value pairs. They are merged into the request body.

Output shape

One item per input item, containing the WHMCS API response in json.

The request uses POST with form-encoded parameters and JSON response mode. API or request errors stop execution unless Continue On Fail is enabled, in which case that item's output contains an error field.

Links

Discussion