Update an existing payment’s metadata, references, amounts, allocations, and status. Amount changes are validated to ensure they don’t break existing allocations.
Partner-level JWT token (unscoped). Token payload includes partner_id. Business access is validated via partner ownership. Format: Bearer <your-jwt-token>
Use this for: Multi-business operations where the business_id is specified in the URL and partner has access to multiple businesses.
Business UUID provided by Thred (unique identifier for the business)
A UUID string identifying this payment.
Serializer for updating existing payments. Matches the create endpoint structure (InvoiceRecordPaymentRequestSerializer) to provide consistency between create and update APIs.
Customer UUID (cannot be changed after creation)
Updated total payment amount in cents (must not be less than allocated amount)
x >= 1Updated list of invoice allocations (replaces existing allocations)
Updated payment date (ISO date format: YYYY-MM-DD)
Payment currency (cannot be changed after creation)
1 - 3Updated payment method (bank_transfer, card, cash, cheque, direct_debit)
bank_transfer - bank_transfercredit_card - credit_carddebit_card - debit_cardach - achcheck - checkcash - cashpaypal - paypalstripe - stripeother - otherbank_transfer, credit_card, debit_card, ach, check, cash, paypal, stripe, other Updated internal payment reference
Updated external identifier (must remain unique)
Updated internal notes or description
Legacy field for notes (use 'note' instead)
Updated custom key-value pairs
Updated payment references (bank_reference, end_to_end_id, payment_reference)
Updated payment processor reference
255Updated bank transaction reference
100Updated payment status (pending, processing, completed, failed, cancelled, refunded)
pending - Pendingprocessing - Processingcompleted - Completedfailed - Failedcancelled - Cancelledrefunded - Refundedpending, processing, completed, failed, cancelled, refunded Updated tags for categorization
1Updated payment processor name
100Updated processing fee in cents
x >= 0Response serializer for create invoice payment endpoint
Detailed payment information in response - all amounts in cents