Payment Line Apply (POST)
Allocate the balance of a payment to reduce the balance of an invoice. The response includes an ID of the payment line invoice or payment line invoice line that represents the payment balance allocated against the invoice.
Use the Commerce Payments APIs to send your payment and refund details to external payment gateways for processing against a customer’s bank. See Commerce Payments resources to check the APIs for payment gateways, payment captures, and payment authorizations.
64.0
POST
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
paymentId | String | ID of the payment record. | Required | 64.0 |
JSON Example
Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
amount | Double | Amount that’s applied. The amount must be less than the invoice line and payment balance. | Required | 64.0 |
appliedToId | String | ID of the invoice line that this payment is applied to. Specify the IDs for these records. | Required | 64.0 |
associatedAccountId | String | ID of the associated account. | Optional | 64.0 |
comments | String | Comments that you can add to the payment line application. | Optional | 64.0 |
effectiveDate | String | Date from which the payment line application takes effect. | Optional | 64.0 |
Supported values:
- Invoice
- Invoice Line