put https://sandbox.finmid.com/api/v2/b2b-payments/payment-requests//line-items/
The order details for a payment request can be updated after the payment request is created. For partially paid-out payment requests, the following conditions should be considered:
- The
total_price
of the line items after the update must be greater than or equal to the amount already paid out. - If thetotal_price
of the line items after the update equals the amount already paid out, the payment request status will automatically change to PENDING_REPAYMENT.
For updating a certain line item details, you'll only need 2 things:
- Payment request ID specified on creation
- Line item ID specified on creation.
This API does not support the addition/deletion of a line item from the payment request.