Attributes
string
required
Unique identifier for the payment.
string
Unique ID of the invoice payment in an external system for linking and
idempotency.
object
The customer associated with this payment, if one has been set.
You can tag a payment with a customer before it is allocated to any invoice (for example, a standalone deposit).
Once the payment has invoice allocations, the customer must match the customer on every allocated invoice.
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.
Allowed only when
method is CREDIT_CARD, ACH, CREDIT_BALANCE, or OTHER.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 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.
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