Skip to main content

Adjust applied amounts

POST 

/api/v3/transaction/:transaction_id/_action/changeAppliedAmounts

Use this to adjust how much of a payment or credit is applied to specific invoices, or which invoices a payment or credit is applied to.

On every REST API request, you need to specify all of the invoices the payment is applied to. Any existing applications of the payment will be overwritten by the applications in this REST API request (e.g. if an invoice previously had this payment applied to it, and you don't specify that invoice in this request, the payment application will be removed from that invoice).

To unapply the payment entirely, specify an empty applied_to array.

Note: You can only adjust how payments and credits are applied.

Request

Body

    applied_to

    object

    0

    object

    invoice_id integer
    applied number

    1

    object

    invoice_id integer
    applied number

Responses

Action completed successfully

Schema

    code integer
    status string
    message stringnullable
    details objectnullable
    response boolean
Loading...