Attributes
string
required
Unique identifier for the payment.
string
Unique ID of the invoice payment in an external system for linking and
idempotency.
string
required
Timestamp when the payment was completed.
enum
required
Payment method. Possible values are:
CASH, CHECK, CREDIT_CARD, ACH,
CREDIT_BALANCE, OTHERinteger
required
Fee paid by business for processing of payment in positive cents.
array of InvoicePaymentFee objects
integer
required
Customer payment amount, in cents.
string
Processor used to make the payment, if any.
Any processor name can be provided and will be tracked.
ISO8601 timestamp
required
Timestamp when the payment was imported into Layer.
array of CreateDedicatedRefundParams objects
List of Dedicated Refunds to create with this payment
array of TagKeyValue objects
Tags to apply to the payment. Tags are key-value pairs that can be used to categorize and filter payments.
array of InvoicePaymentAllocation objects
required
Invoice allocations allow specifying a payment to be for multiple invoices.
Most commonly the full payment will be allocated to a single invoice, but any number of allocations are allowed.
The sum of all allocations must be equal to the payment amount.
Array of Tags
string
Memo for any text you would like to associate with the invoice payment (for example, to display to end users).
object
Arbitrary custom metadata in JSON format with a size limit of 1KB.
string
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 paymentsarray of CreateDedicatedRefundParams objects
List of Dedicated Refunds to create with this payment