Attributes
Unique identifier for the payment.
Unique ID of the invoice payment in an external system for linking and
idempotency.
Timestamp when the payment was completed.
Payment method. Possible values are:
CASH, CHECK, CREDIT_CARD, ACH,
CREDIT_BALANCE, OTHERFee paid by business for processing of payment in positive cents.
Customer payment amount, in cents.
Processor used to make the payment, if any.
Any processor name can be provided and will be tracked.
Timestamp when the payment was imported into Layer.
List of Dedicated Refunds to create with this payment
Tags to apply to the payment. Tags are key-value pairs that can be used to categorize and filter payments.
allocations
array of InvoicePaymentAllocation and InvoicePaymentAllocationToLedgerAccount objects
required
Allocations specify how a payment is distributed. A payment can include two types of allocations:
InvoicePaymentAllocation: Allocates a portion of the payment to a specific invoice.InvoicePaymentAllocationToLedgerAccount: Allocates a portion of the payment directly to a ledger account, rather than to an invoice. This is useful for recording payments that are not associated with a specific invoice, such as overpayments or deposits.
Memo for any text you would like to associate with the invoice payment (for example, to display to end users).
Arbitrary custom metadata in JSON format with a size limit of 1KB.
Any (typically user-visible) identifier you would like to associate with the invoice payment. Can be used to filter when listing invoice payment.
Optional: Create refunds with the invoice payment
This field can be specified when creating an invoice and any of its invoice line items or invoice paymentsList of Dedicated Refunds to create with this payment