Payments are mapped from Batch Payments of payment receipts (type P invoices). Payment receipts are issued by a taxpayer who receives a payment for a previously issued deferred invoice. A Payment belongs to a Batch Payment and a deferred invoice (which the payment is applied), and the latter has its fields paidAmount, dueAmount and fullyPaidAt automatically updated based on the received payments.