Update a purchase order payment
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.
Payment Types
Valid payment types: cash, credit_card, debit_card, check, bank_transfer
Total Recalculation
After updating a payment, the system automatically:
- Recalculates
total_paidby summing all payment amounts - Recalculates
total_dueastotal_cost - total_paid
Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Path Parameters
ID of the purchase order
ID of the payment to update
Body
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"
Response
Payment updated successfully