Unapply Payment Action
Unapplies a payment that’s already been applied to an invoice or invoice line by crediting the amount back to the payment and the invoice or invoice line.
If the Apply Payments to Invoices setting is enabled, payments can be applied to invoices, which creates the PaymentLineInvoice records of type Applied. If the Apply Payments to Invoices feature setting is disabled, payments can be applied to invoice lines, which creates the PaymentLineInvoiceLine records of type Applied.
When payments are unapplied, the PaymentLineInvoice or PaymentLineInvoiceLine records of type Applied has the associated PaymentLineInvoice or PaymentLineInvoiceLine records of type Unapplied.
This action is available in API version 64.0 and later.
This action is available in Enterprise, Unlimited, and Developer Editions where Billing is enabled. To use this action, you need the Payment Ops permission set.
URI: /services/data/v68.0/actions/standard/unapplyPayment
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer TOKEN
Where TOKEN is a placeholder for your OAuth access token.
| Input | Type | Description |
|---|---|---|
description | string | Additional details about the payment line invoice or payment line invoice line that’s processed to unapply the payment. |
effectiveDateTime | datetime | Date and time to use for unapplying the payment from an invoice or invoice line. |
recordId | id | Required ID of the payment line invoice or payment line invoice line record of type Applied that’s processed to unapply the payment. |
| Output | Type | Description |
|---|---|---|
recordId | id | ID of the payment line invoice or payment line invoice line record of type Unapplied that the action created. |
unappliedDateTime | datetime | Date and time when the payment was unapplied. |
POST
This sample request is for the Unapply Payment action.
This sample response is for the Unapply Payment action.