Update an existing payment for a purchase order. All fields are optional - only provided fields will be updated.
The purchase order totals (total_paid and total_due) are automatically recalculated after the payment is updated.
Valid payment types: cash, credit_card, debit_card, check, bank_transfer
After updating a payment, the system automatically:
total_paid by summing all payment amountstotal_due as total_cost - total_paidAuthenticate using a bearer token. To obtain a token, contact [email protected]
ID of the purchase order
ID of the payment to update
Date of the payment (YYYY-MM-DD)
"2024-01-16"
Type of payment
cash, credit_card, debit_card, check, bank_transfer "check"
Amount paid
x >= 0.01600
Payment remarks or notes
1000"Updated check #1234"
External payment reference ID
255"PAY-EXT-12345"
Payment updated successfully