Apply Payments and Credits by Rules Action

Apply payments and credits to posted invoices by adhering to the specified rules.

This action uses predefined logic to allocate payments and credits, reducing any manual intervention and errors.

This action is available in API version 66.0 and later.

URI: /services/data/v68.0/actions/standard/applyPaymentsAndCreditsByRules

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

InputTypeDescription
accountIdreferenceRequired. The ID of the account to perform the settlement of payments and credits against invoices in adherence with the applied rules.
targetDatedateOptional. The date used to select invoices and invoice lines with a posted date equal to or later than the target date to apply payments and credits.
OutputTypeDescription
rulesApplicationResponseApex-definedThe Apex RulesApplicationResponse record that contains the results of rules application including the list of applied rules, application details, and any errors.

POST

Here’s a sample request for the Apply Payments and Credits by Rules action.

Here’s a sample success response for the Apply Payments and Credits by Rules action.

Here’s a sample error response for the Apply Payments and Credits by Rules action.